如何加密密码 [英] How to encrypt password

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

问题描述

我怎么能在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屋!

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