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

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -