Пример #1
0
 public static string get_sha1_string(string str)
 {
     byte[] bytes_sha1_out = SHA1Helper.get_sha1_bytes(str);
     return(DataHelper.Bytes2HexString(bytes_sha1_out));
 }
Пример #2
0
 public static string get_macsha1_string(byte[] data, string key)
 {
     byte[] bytes_sha1_out = SHA1Helper.get_macsha1_bytes(data, key);
     return(DataHelper.Bytes2HexString(bytes_sha1_out));
 }