S
shapper
Hello,
I am using the following to hash a string:
public static string Hash(string text) {
MD5CryptoServiceProvider crypto = new
MD5CryptoServiceProvider();
byte[] hash = null;
UTF8Encoding encoder = new UTF8Encoding();
hash = crypto.ComputeHash(encoder.GetBytes(text));
return hash.ToString();
} // Hash
I debugged it but I still get a byte and I can't see the hashed
string ...
What am I missing?
Thanks,
Miguel
I am using the following to hash a string:
public static string Hash(string text) {
MD5CryptoServiceProvider crypto = new
MD5CryptoServiceProvider();
byte[] hash = null;
UTF8Encoding encoder = new UTF8Encoding();
hash = crypto.ComputeHash(encoder.GetBytes(text));
return hash.ToString();
} // Hash
I debugged it but I still get a byte and I can't see the hashed
string ...
What am I missing?
Thanks,
Miguel