Last active
December 11, 2015 09:19
-
-
Save joscha/4579290 to your computer and use it in GitHub Desktop.
CryptoJS WordArray add integer. Resources used:
* http://code.google.com/p/crypto-js/
* https://github.com/jtobey/javascript-bignum/ JSFiddle is here: http://jsfiddle.net/joscha/B2heY/
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
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