Solved
I want to encrypt a field value in AEM Forms, How can we encrypt a field in AEM forms
No text available
In the rule editor -> value commit event you can use below.
This key can be used to encrypt and decrypt.
var key = "encrypkey";
encrypting:
var encrypted = CryptoJS.AES.encrypt(value, key);
// console.log("encrypted ==>"+encrypted);
decrypting:
var decrypted = CryptoJS.AES.decrypt(encrypted , key);
var decryptedValue = decrypted.toString(CryptoJS.enc.Utf8)
hope this helps
Thanks,
Siva
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.