How to save the Password in C# .NET?

后端 未结 5 989
南笙
南笙 2021-01-13 12:50

I am making a C#.NET application wherein I have designed an Administrator account. Now to Login in that account the Administrator has to enter the password.

My Ques

5条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-13 13:18

    Assuming this is to persist the user's credentials on the server: store a hash of the password in the database. Ideally, you should compute and store something like SALT + sha1(SALT + password) where SALT is some random string computed for each password stored.

提交回复
热议问题