Initializes a newly created word array.
Optional
(Optional) An array of 32-bit words.
(Optional) The number of significant bytes in the words.
var wordArray = CryptoJS.lib.WordArray.create(); var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607]); var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607], 6); Copy
var wordArray = CryptoJS.lib.WordArray.create(); var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607]); var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607], 6);
Creates a word array filled with random bytes.
The number of random bytes to generate.
The random word array.
var wordArray = CryptoJS.lib.WordArray.random(16); Copy
var wordArray = CryptoJS.lib.WordArray.random(16);
Initializes a newly created word array.