How? Encrypt and Decrypt user membership passwords in ASP.NET

后端 未结 4 604
名媛妹妹
名媛妹妹 2021-01-05 05:17

We are creating a new site using ASP.NET membership provider for user registration and log in. Our old system encrypted user passwords so that we could recover them if we ne

4条回答
  •  [愿得一人]
    2021-01-05 05:55

    You need to use passwordFormat="Encrypted" rather than passwordFormat="Hashed". Then you can use the DecryptPassword method of the MembershipProvider to decrypt the password when necessary.

提交回复
热议问题