如何在 CryptoJS 中解密以下加密?
how to decrypt the below encryption in CryptoJS?
我在 javascript 上有以下加密代码,我如何在 javascript 上解密它?我是 encryption/decryption 的新手,需要有人帮助解密该方法。提前致谢。
var text = "The quick brown fox jumps over the lazy dog. ";
var secret = "René Über";
var encrypted = CryptoJS.AES.encrypt(text, secret);
encrypted = encrypted.toString();
console.log("Cipher text: " + encrypted);
像这样?
let decr = CryptoJS.AES.decrypt(encrypted, secret);
decr = decr.toString(CryptoJS.enc.Utf8);
console.log("Decrypted: ", decr);
我在 javascript 上有以下加密代码,我如何在 javascript 上解密它?我是 encryption/decryption 的新手,需要有人帮助解密该方法。提前致谢。
var text = "The quick brown fox jumps over the lazy dog. ";
var secret = "René Über";
var encrypted = CryptoJS.AES.encrypt(text, secret);
encrypted = encrypted.toString();
console.log("Cipher text: " + encrypted);
像这样?
let decr = CryptoJS.AES.decrypt(encrypted, secret);
decr = decr.toString(CryptoJS.enc.Utf8);
console.log("Decrypted: ", decr);