Пример #1
0
 public static string GetSignature <T>(T obj, string path, string secretKey)
 {
     return(SecurityHelper.GetHash_HMAC_SHA512(secretKey, $"{path}{GetQueryString<T>(obj)}{SecurityHelper.GetHash_SHA256(GetNonce())}"));
 }
Пример #2
0
 public static string GetAuth(string noPhone, string noApi)
 {
     return(SecurityHelper.GetBase64Encode($"{noPhone}:{noApi}"));
 }