내 커뮤니티 업적 표시줄을 확대합니다.

Submissions are now open for the 2026 Adobe Experience Maker Awards.
해결됨

I want to encrypt a field value in AEM Forms, How can we encrypt a field in AEM forms

Avatar

Level 1
 
1 채택된 해결책 개

Avatar

정확한 답변 작성자:
Community Advisor

@dasarinikhil 

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

Thanks,
Siva

원본 게시물의 솔루션 보기

2 답변 개

Avatar

정확한 답변 작성자:
Community Advisor

@dasarinikhil 

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

Thanks,
Siva

Avatar

Level 10

Hi @SivakumarKanoori  wont the key be visible in js ? And how would we decrypt in Java with this route ?