开发者

Encrypt ApplicationServices ConnectionString

开发者 https://www.devze.com 2022-12-21 09:52 出处:网络
Is there a way where I can set the .NET ApplicationServices connection string in the code behind? Instead of having plain text in my web.c开发者_如何学Goonfig? Or can I just put the encrypted value th

Is there a way where I can set the .NET ApplicationServices connection string in the code behind? Instead of having plain text in my web.c开发者_如何学Goonfig? Or can I just put the encrypted value there and then decrypt and pass it again?

Thanks!


You can encrypt settings in your config file. Here is the article on MSDN on how.


You can create/implement/use a ProtectedConfigurationProvider to transparently decrypt the configuration settings.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号