如何加密密码 [英] How to encrypt password
问题描述
我怎么能在asp.net MVC加密密码字段设置为以加密形式存储?
How can I encrypt the password field in asp.net MVC to be store in encrypted form?
推荐答案
典型的工作流程将涉及生成盐值,并使用该散列密码,然后将它们存储两个排。这是记录在细节在许多地方,很容易搜索到。
Typical workflow would involve generating a salt value and using that to hash the password and then storing them both in the row. This is documented in detail in many places and is easily searched.
如果你真的只想要一种快速散列或无盐加密看看<一个href=\"http://msdn.microsoft.com/en-us/library/system.web.security.formsauthentication.hashpasswordforstoringinconfigfile.aspx\"相对=nofollow> FormsAuthentication.HashPasswordForStoringInConfigFile
If you truly just want a way to quickly hash or encrypt without salt take a look at FormsAuthentication.HashPasswordForStoringInConfigFile
这篇关于如何加密密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!