加密/解密app.config文件 [英] Encrypt/Decrypt app.config file

查看:258
本文介绍了加密/解密app.config文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我想在App配置文件中加密/解密连接字符串。



请帮忙。

谢谢,

Sneha

Hi,

I want to Encrypt/Decrypt connection string in App config file.

Please help.
Thanks,
Sneha

推荐答案

参考:http://msdn.microsoft.com/en-us/library/ms254494.aspx [ ^ ]


Hi Sneha,



我建议你编写自己的加密/解密技术并将其作为可运行的应用程序。也可以在其他项目中使用。

当然它会帮助你在项目中,它会帮助你学习一点。



使用你自己的方法加密连接字符串并将其放在app.config中

从应用程序中的app.config读取加密连接字符串并在使用之前将其解密。



这会给人留下深刻印象你也是经理;-)



谢谢,

RK
Hi Sneha,

I would suggest you to write your own encryption/decryption technique and make it as runnable application.Which can be used in other project also.
Sure it will help you in project as well as it would help you learn a bit.

Encrypt the connection string using your own method and put it in app.config
Read the encrypted connection string from app.config in application and decrypt it before using it.

This would impress you manager as well ;-)

Thanks,
RK


这篇关于加密/解密app.config文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆