在WinForms app.config,.NET中加密密码 [英] Encrypting passwords in WinForms app.config, .NET

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

问题描述

我想在配置文件中存储一个密码,但是我希望它被加密,以便在应用程序中可以读取,解密和使用。加密这样的密码最好的方法是什么?

编辑:我只想加密密码,而不是整个配置,或整个部分。

解决方案

在.NET app.config文件中加密密码


I want to store a password in a config file but i would like it to be encrypted so that in the app it can be read, decrypted and used. What's the best way to encrypt a password like this?
Edit: I want to encrypt only password, not whole config, or whole section.

解决方案

Encrypting Passwords in a .NET app.config File

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

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