Exemplo n.º 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())}"));
 }
Exemplo n.º 2
0
 public static string GetAuth(string noPhone, string noApi)
 {
     return(SecurityHelper.GetBase64Encode($"{noPhone}:{noApi}"));
 }