Extension methods for strings.
Esempio n. 1
0
 /// <summary>
 /// Computes the SHA1 hash.
 /// </summary>
 /// <param name="str">The STR.</param>
 /// <returns></returns>
 public static byte[] ComputeSHA1Hash(string str)
 {
     byte[] data = StringUtilities.GetBytesFromString(str);
     return(ComputeSHA1Hash(data));
 }