Encrypt password from UI and decrypt from Java | Community
Skip to main content
Level 3
Apr 6, 2023 6:44 AM UTC
Solved

Encrypt password from UI and decrypt from Java

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
arunpatidar
arunpatidarAccepted solution
New Participant
Apr 6, 2023 10:36 AM UTC

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

3 replies

arunpatidar
arunpatidarAccepted solution
New Participant
Apr 6, 2023 10:36 AM UTC

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.

 

Translate
Arun Patidar
Level 3
Apr 10, 2023 6:01 AM UTC

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

Translate
arunpatidar
New Participant
Apr 10, 2023 10:11 AM UTC

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

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

Translate
Arun Patidar