Last post Mar 20, 2014 08:09 AM by BrockAllen
Mar 20, 2014 06:50 AM|missy786|LINK
I am to know, what process is out their which help me to get started on implementing a method which encrypt passwords when sending over the web service (web api). I am currently using basic authentication code, which currently verifies the users but I would
like to be able encrypt the user detials.
Many thanks for your help and time.
Mar 20, 2014 06:57 AM|itityagi|LINK
You can use the md5 algorithm to convert the password string to hash code.
public string CalculateHash(string text)
MD5 md5 = new MD5CryptoServiceProvider();
//compute hash from the bytes of text
//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
Mar 20, 2014 07:02 AM|NareshP_Techie|LINK
Check it out. it might help you
Mar 20, 2014 08:09 AM|BrockAllen|LINK
The answer is to use SSL for your web api calls.