Skip to content

Instantly share code, notes, and snippets.

@jarheadjred
Created August 2, 2014 23:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jarheadjred/616fe39306d3d8b7ae8b to your computer and use it in GitHub Desktop.
Save jarheadjred/616fe39306d3d8b7ae8b to your computer and use it in GitHub Desktop.
// 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