Advertisement
STANAANDREY

crypto js

Jul 20th, 2024
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import CryptoJS from 'crypto-js'
  2. let c = (CryptoJS.AES.encrypt('ceva', 'key'))
  3. console.log(String(c));
  4. console.log(CryptoJS.AES.decrypt(String(c), 'key').toString(CryptoJS.enc.Utf8));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement