如何完全加密app配置文件 [英] How can encrypt app config file completely

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

问题描述





我有一个wpf应用程序,在安装应用程序时,我想加密我的app配置文件

怎么能我这样做

请帮帮我



提前致谢

Kunjammu

Hi,

I have a wpf application, when installing the application, i want to encrypt my app config file
how can i do that
Please help me

Thanks in advance
Kunjammu

推荐答案

1.您只能加密应用程序配置中使用的设置值。



2.为了做到这一点你可以使用对称加密算法并创建一个简单的应用程序,将给定的值加密为XML文件(类似于app.config),然后将这些文件用作app.config,最后解密来自<$ c的app.config中的值$ c> Window_Loaded 事件。



3.您可以在下一篇文章中找到有关加密的示例:C# AES 256位带盐的加密库 [ ^ ]
1.You can encrypt only the values of the settings used in you app config.

2.In order to do that you could use an symmetric encryption algorithm and create a simple application that encrypt the given values into an XML file (similar with app.config), then use these file as app.config, and finally decrypt the values from app.config in Window_Loaded event.

3.You can find examples about encryption in the next article: C# AES 256 bits Encryption Library with Salt[^]


这篇关于如何完全加密app配置文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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