c# - Apply hashing to secure passwords generated within the app -
I have 150 weird predefined passwords and usernames in my Windows Phone 8 app.
Every time a user enters the password and username, the app checks its authenticity and works accordingly.
For obvious security reasons, I want to protect my password so that "extra genius brains" do not find any way to manipulate them in their own app.
Will someone tell you how to use SHA-1 hashing and store those passwords in a haired format?
Thank you!
var sha = new SHA1Managed (); Var bytes = System.Text.Encoding.UTF8.GetBytes (password); Byte [] hashed password = sha.ComputeHash (bytes);
Comments
Post a Comment