I am using below configuration setting for session management on Redis. Now due to some security reasons I need to encrypt the connection string.
What is the way to doing this.
Below is the configuration which I am using in my web config file.
<sessionState mode="Custom" customProvider="MySessionStateStore">
<providers>
<add applicationName="testapp" loggingClassName="Logger"
loggingMethodName="Log"
connectionString="x.x.x.x:6381,x.x.x.x:6381,x.x.x.x:6381,
ssl=false,password=xxx" name="MySessionStateStore"
type="Microsoft.Web.Redis.RedisSessionStateProvider"
host="" accessKey="" ssl="true" />
</providers>
</sessionState>
Edit 1
The is no other code in my project where I can decrypt the connection string. I wanted to know that only.
Do I require to overwrite any class or is there any way?