C# - Securely storing a password locally

前端 未结 6 1287
终归单人心
终归单人心 2020-12-17 00:58

I\'m creating a C# application that will lock out functionality (key combinations, windows task bar, etc.) in a Kiosk-style environment. One of the requirements is that some

6条回答
  •  青春惊慌失措
    2020-12-17 01:20

    You need a hash of the password and validate using the hashed text. Adding a salt can make your password more secure. In .Net, you can use System.Security.Cryptography.RNGCryptoServiceProvider .

    Here is a good article talking about how to store your passwords and I use its way in my web application.

提交回复
热议问题