Convert ASP.NET Membership Passwords from Encrypted to Hashed

后端 未结 3 1451
轮回少年
轮回少年 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:41

    IMHO, Greg's response (and the associated comments) on your previous question (Changing passwordFormat from Encrypted to Hashed) is the way to go. Essentially, you want to:

    1. Add a hashed membership provider
    2. Loop through all of the encrypted password users,
    3. For each one decrypt the password, create the hash, store it, delete the encrypted version from the database, and move on.

    When you are done, all of the encrypted password users should be converted to hashed.

提交回复
热议问题