Converting a 64 bit number string to word array using CryptoJS
问题 I want to know if a string with integer data can be converted to a CryptoJS word array correctly? Example. Can I convert "175950736337895418" into a word array the same way I can create a word array out of 175950736337895418 (int value). I have some code that converts integer values to word array // Converts integer to byte array function getInt64Bytes( x ){ var bytes = []; for(var i = 7;i>=0;i--){ bytes[i] = x & 0xff; x = x>>8; } return bytes; } //converts the byte array to hex string