Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const cipherBytes = CryptoJS.AES.encrypt(strVal, key, opts);
- const cipherText = cipherBytes.toString();
- // This works fine on my local machine
- console.log('Decrypted', CryptoJS.AES.decrypt(cipherText, key, opts).toString(CryptoJS.enc.Utf8));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement