static private ComputeHash ( string text ) : byte[] | ||
text | string | |
return | byte[] |
static byte[] ComputeHash(string text)
{
if (null == text || 0 == text.Length)
{
return new byte[0];
}
byte[] bytes = Encoding.UTF8.GetBytes(text);
return MD5.Create().ComputeHash(bytes);
}