Tag: gigya

构建和validationGigya签名

我根据Gigya 构建签名的说明编写了一个方法来validation指定时间戳和UID的gigya 签名 。 这是Gigya的psuedo代码: string constructSignature(string timestamp, string UID, string secretKey) { // Construct a “base string” for signing baseString = timestamp + “_” + UID; // Convert the base string into a binary array binaryBaseString = ConvertUTF8ToBytes(baseString); // Convert secretKey from BASE64 to a binary array binaryKey = ConvertFromBase64ToBytes(secretKey); // Use the HMAC-SHA1 […]