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

Popular posts from this blog

How can I add a seperate action listener to all 14 of my buttons at once that can determine player turn?(java) -

php - Sorting an multidimension array using usort fails -

Simple file compression in C -