Does ASP.NET Identity 2 use machinekey to hash the password?

前端 未结 1 763
滥情空心
滥情空心 2020-12-20 03:36

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 d

相关标签:
1条回答
  • 2020-12-20 04:01

    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.

    0 讨论(0)
提交回复
热议问题