Open fedika opened 5 years ago
const encryptedString = 'mzyNiHkzVf3UpIYBkPFT1w=='; let keyUtf8 = CryptoJS.enc.Utf8.parse('devtester@2018!!')
const ciphertext = await CryptoJS.AES.decrypt(encryptedString, keyUtf8, { mode: CryptoJS.mode.ECB, keySize: 128, });
ciphertext = CryptoJS.enc.Utf8.stringify(ciphertext).toString();
When converting key to UTF8 array buffer issue resolved
Hi CryptoJS,
So I'm trying to make a program which able to encrypt/decrypt as https://www.devglan.com/online-tools/aes-encryption-decryption works. But I have a problem here with my work which it returns invalid value when I applied CryptoJS.
Here my work:
log show error 'RangeError: Invalid array length' while on the site could return valid value as shown https://ibb.co/pRDrm4P
Did I make mistake? I really appreciate for the insight.
Thank you