Expand my Community achievements bar.

Join us in celebrating the outstanding achievement of our AEM Community Member of the Year!
SOLVED

Encrypt password from UI and decrypt from Java

Avatar

Level 4

Hi all,

 

How do we encrypt the password from UI and decrypt in my backend servlet? Are there any OOTB features to do so?

 

Best Regards,

Kiruthiga

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

OOTB, it is possible to encrypt and decrypt at the backend using https://sling.apache.org/documentation/bundles/commons-crypto.html

You can't do that from UI to backend or use public and private key encryption.

 



Arun Patidar

View solution in original post

3 Replies

Avatar

Correct answer by
Community Advisor

OOTB, it is possible to encrypt and decrypt at the backend using https://sling.apache.org/documentation/bundles/commons-crypto.html

You can't do that from UI to backend or use public and private key encryption.

 



Arun Patidar

Avatar

Level 4

is there a way to encrypt from UI in the POST request and decrypt the same from backend?

Avatar

Community Advisor

You can't do encryption but you can encode and decode using any encoding algo

example : https://www.javatpoint.com/java-base64-encode-decode  



Arun Patidar