Optionalkey: number[]default: DEFAULT_128
cipherText
See https://github.com/ricmoo/aes-js Possible keys lengths are: 128 bits (16 bytes), 192 bits (24 bytes) or 256 bits (32 bytes). To generate a random key: window.crypto.getRandomValues(new Uint8Array(16));
Performs AES encryption on provided text using provided key