Posted on: 3/25/2014 2:33:25 PM | Views : 572

I am writing to seek help, in how do i go about create method which can store and send hash password over the web api.  This is what I currently have in my user class:
public string CalculateHash(string Password) { MD5 md5 = new MD5CryptoServiceProvider(); //compute hash from the bytes of text md5.ComputeHash(ASCIIEncoding.ASCII.GetBytes(Password)); //get hash result after compute it byte[] result = md5.Hash; StringBuilder strBuilder = new StringBuilder(); for (int i = 0; i < result.Length; i++) { //change it into 2 hexadecimal digits //for each byte strBuilder.Append(result[i].ToString("x2")); } return strBuilder.ToString(); } public api_login Validate2(string userName, string Password) { ...

Go to the complete details ...