且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

难道ASP.NET身份2使用的machineKey散列密码?

更新时间:2023-02-25 08:37:43

您并不需要设置密码机键。本机密钥用于加密/解密(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.