Skip to content

Instantly share code, notes, and snippets.

@DeskWOW
Last active March 11, 2016 23:00
Show Gist options
  • Save DeskWOW/cc95bf4ce62d53640cd7 to your computer and use it in GitHub Desktop.
Save DeskWOW/cc95bf4ce62d53640cd7 to your computer and use it in GitHub Desktop.
// Sign hash with secret
var hash = CryptoJS.HmacSHA256(context, shared);
// encrypt signed hash to base64
var b64Hash = CryptoJS.enc.Base64.stringify(hash);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment