Expand my Community achievements bar.

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

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

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

AEM LinksLinkedIn

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

AEM LinksLinkedIn

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

AEM LinksLinkedIn