Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

ssss

var CryptoJS = require("crypto-js");

var stringSecretData = 'Lorem ipsum dolor sit amet, ...'.repeat(2);
var password = 'RadwagSecretPassPhaserdg09acostam';
var encrypted = CryptoJS.AES.encrypt(stringSecretData, password).toString();
console.log(encrypted);

var decrypted = CryptoJS.AES.decrypt(encrypted.toString(), password);
console.log(decrypted.toString(CryptoJS.enc.Utf8));

Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.