在存储到数据库之前,如何在asp.net中加密密码 [英] How to encrypt Password in asp.net Before Storing into Database
本文介绍了在存储到数据库之前,如何在asp.net中加密密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我是新的asp.net开发人员,我想要一些有关如何在存储到数据库之前进行加密以及如何在检索之后解密数据的信息.
我想将密码保存在数据库中,如何使其变得不可读.
解决方案
不要加密密码"是简单的答案.
参见此处:密码存储:操作方法. [ ^ ]
将密码保存到数据库之前,请使用一些加密算法.
在取回密码时,请使用解密算法.将密钥保存在其他位置.
请参考 http://nadarmuthukumar.blogspot.in/2012/04/encryption-decryption.html [ ^ ]进行加密解密.
I am New asp.net Developer, I want some Information regarding how we can encrypt before storing into database and Decrypt data after retrieving.
I want to save passwords in database, How to make them unreadable.
解决方案
"Don''t encrypt passwords" is the simple answer.
See here: Password Storage: How to do it.[^]
Before saving your password to database, use some of the encryption algorithm.
And while retrieving the password back use decryption algorithm. Save your key on some other place.
Refer http://nadarmuthukumar.blogspot.in/2012/04/encryption-decryption.html[^] for encryption decryption.
这篇关于在存储到数据库之前,如何在asp.net中加密密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文