示例#1
0
        public static string GenerateSignature(string method, string requestUrl, string data)
        {
            string message = $"{method}&{Uri.EscapeDataString(requestUrl)}&{data}";

            return(CryptoHelper.GenerateHMAC(PinterestConstants.CLIENT_SECRET, message));
        }
示例#2
0
 public static string GenerateInstallId()
 {
     return(CryptoHelper.GenerateMD5(new Random().Next(0, 0xffffff).ToString()).Substring(0, 31));
 }