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
/** | |
* EXAMPLE | |
* var myhash = CryptoJS.HmacSHA1(mine[2], secret); | |
* myhash = byteArrayConversion(myhash); | |
*/ | |
function wordArrayToByteArray(hash){ | |
return hash.words | |
//map each word to an array of bytes | |
.map(function(v){ | |
// create an array of 4 bytes (less if sigBytes says we have run out) |
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
license: gpl-3.0 | |
height: 600 |