/// <summary> /// sha,到base64 /// </summary> /// <param name="str"></param> /// <returns></returns> public static string ComputeHMACSHA1Base64(string key, string msg) { byte[] dataHashed = ComputeHMACSHA1Bytes(key, msg); return(ZBase64.EncodeTo64(dataHashed)); }
/// <summary> /// sha,到base64 /// </summary> /// <param name="str"></param> /// <returns></returns> public static string ComputeSHABase64(string str) { byte[] dataHashed = ComputeSHABytes(str); return(ZBase64.EncodeTo64(dataHashed)); }