I have the following example (encrypted text and secret key):
It was tested in devglan
I tried this code, but isn't working.
var myPassword = "MassivePaymentConfigurat";
var encrypted = "6pjSh7cwGE1+zbTRlBlGSg==";
var decrypted = CryptoJS.AES.decrypt(encrypted, myPassword, {
mode: CryptoJS.mode.ECB,
padding: CryptoJS.pad.Pkcs7
});
console.log(decrypted.toString(CryptoJS.enc.Utf8));