Skip to content

Instantly share code, notes, and snippets.

@joscha
Last active December 11, 2015 09:19
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 joscha/4579290 to your computer and use it in GitHub Desktop.
Save joscha/4579290 to your computer and use it in GitHub Desktop.
var hash = CryptoJS.HmacSHA1("Message", "Secret Passphrase");
var hashPlusOne = CryptoJS.enc.Hex.parse(BigInteger.parse(hash.toString(),16).add(1).toString(16));
console.log(hash.toString(),hashPlusOne.toString());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment