Rijndael的商店IV和钥匙 [英] Store IV and Key for Rijndael

查看:85
本文介绍了Rijndael的商店IV和钥匙的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要将用户名和密码存储在app.config中.我想使用Rijndael算法对这些值进行加密.我在哪里存储用于解密un和pw的密钥和IV?我需要将应用程序部署到具有不同用户的不同服务器上.

I need to store username and password in an app.config. I want to encrypt these values using Rijndael algorithm. Where do I store the key and IV for decrypting the un and pw? I need to deploy the application to different servers with different users.

推荐答案

通常使用RSA或DPAPI加密来加密web.config或app.config文件.

Encrypting the web.config or app.config file is usually done with RSA or DPAPI encryption.

我不确定是否适合您的情况,只有在限制了应用程序用户而非管理员的情况下,它才有效.

I'm not sure if it would suit you in your case, it's only effective if the users of the applications are restricted and not administrators.

http://msdn.microsoft.com/en-us/library /ff647398.aspx

这篇关于Rijndael的商店IV和钥匙的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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