难道ASP.NET身份2使用的machineKey散列密码? [英] Does ASP.NET Identity 2 use machinekey to hash the password?

查看:205
本文介绍了难道ASP.NET身份2使用的machineKey散列密码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了ASP.NET MVC 5.应用程序现在我需要在服务器上部署应用程序。我现有的密码在ASP.NET身份2工作的时候部署?或者,我需要用我在我的客户机在同一台机器密钥?

I have created an application in ASP.NET MVC 5. Now I need to deploy the application on the server. Will my existing passwords work in ASP.NET Identity 2 when I deploy? Or do I need to use the same machine key that I have in my client machine?

推荐答案

您并不需要设置密码机键。本机密钥用于加密/解密(ViewState中,会话,饼干等)不是哈希。

You do not need to set the machine key for passwords. The machine key is used for encryption/decryption (ViewState, Session, Cookies, etc.) not for hashing.

如果您正在使用的应用程序的多个实例(天青认为云服务),那么你要设置机器键,以便饼干和权威性的门票可以在的情况下使用。

If you are using multiple instances of the application (think Azure Cloud Service) then you'll want to set the machine key so that cookies and auth tickets can be used across instances.

这篇关于难道ASP.NET身份2使用的machineKey散列密码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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