Convert ASP.NET Membership Passwords from Encrypted to Hashed

后端 未结 3 1491
轮回少年
轮回少年 2021-01-21 15:26

I\'ve developed a website that uses ASP.NET membership. Based on comments from previous sites, I decided to encrypt passwords so they could be recovered for users who forgot the

3条回答
  •  遇见更好的自我
    2021-01-21 15:50

    Maybe I'm missing something here, but it should be pretty simple. Create a process to decrypt the password, then salt accordingly and store the hash of the salt + user's decrypted password in the database. Obviously you don't want to be hashing the user's encrypted password. Don't forget to store the salt too.

提交回复
热议问题