Skip to content

Instantly share code, notes, and snippets.

/*
* Updated to support HMAC and Base64
* var CryptoJS = new Crypto().CryptoJS;
* var hash = CryptoJS.HmacSHA256('message','key');
* gs.info(hash.toString(CryptoJS.enc.Base64));
*/
var Crypto = Class.create();
Crypto.prototype = {
initialize: function() {