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

后端 未结 4 614
名媛妹妹
名媛妹妹 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 06:10

    Storing passwords in recoverable format is a very poor idea. If you can recover them so can anyone who breaks into your server.

    You're better off using a standard hash+salt approach and having a password reset mechanism to handle the case where users forget their password.

提交回复
热议问题