예제 #1
0
 /// <summary>
 /// Hash utility - pass the hash algorithm name as a string i.e. SHA1, MD5 etc.
 /// </summary>
 /// <param name="input"></param>
 /// <param name="algorithm"></param>
 /// <returns>Hashed String</returns>
 public static string HashIt(this string input, string algorithm)
 {
     return(SecurityHelper.HashIt(input, algorithm));
 }
예제 #2
0
 /// <summary>
 /// Hash utility - pass the hash algorithm name as a string i.e. SHA1, MD5 etc.
 /// </summary>
 /// <param name="input"></param>
 /// <param name="algorithm"></param>
 /// <param name="upperCase"></param>
 /// <returns></returns>
 public static string HashIt(this string input, string algorithm, bool upperCase)
 {
     return(SecurityHelper.HashIt(input, algorithm, upperCase));
 }