Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. const cipherBytes = CryptoJS.AES.encrypt(strVal, key, opts);
  2. const cipherText = cipherBytes.toString();
  3.  
  4. // This works fine on my local machine
  5. console.log('Decrypted', CryptoJS.AES.decrypt(cipherText, key, opts).toString(CryptoJS.enc.Utf8));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement