Created
August 2, 2014 23:25
-
-
Save jarheadjred/616fe39306d3d8b7ae8b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// replace the previous signKey function with this one calling the CryptoJS Library instead of Google's libraries. | |
// It assumes that you have added the CryptoJS library as a file in your google script project. | |
// | |
/* Encode with standard HMAC-SHA512 */ | |
function signKey(url, secret) { | |
var signature = CryptoJS.HmacSHA512(url, secret).toString(); | |
Logger.log(signature); | |
return signature; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment