Password Encoder/Decoder in Spring Boot

sah1 :

I have a spring boot application that stores certain passwords which are used by another application(App2) to get connections to databases.

I want to encrypt these passwords such that they can be decoded in App2 if a key is available. What's the best way to go about it?

BCrypt does not serve my purpose as I also need to decode the data

ewramner :

Use a TextEncryptor as you are already using Spring. The password and salt that you use when you create one represent your secret:

Encryptors.text("password", "salt");

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Spring Boot console password

Spring Boot Password Encoding

Validating Password and Confirmed Password Spring Boot

Change Password API Spring Boot

Match password efficiently in Spring Boot - JPA

Update Password Using Spring Boot and JPA Is Not Working

Remove "Using default security password" on Spring Boot

Zonky + Spring Boot + Postgres + Flyway with Username and Password

Spring Boot application properties decrypting jpa password

Decode a password before login Spring Boot

Spring Boot - Key Store Password set in Code

Matching encoded password field spring boot

MySQL password contains '=' having wrong password issue in spring boot

Password encoding and decoding using Spring Security, Spring Boot and MongoDB

Spring Boot/ Spring Security, login form, password checking

Using Azure KeyVault for database password in Spring Boot application

Spring Boot 2.1 embedded Tomcat - keystore password was incorrect

Spring boot and jwt Encoded password does not look like BCrypt

What is username and password when starting Spring Boot with Tomcat?

Configuring Spring Boot Security to use BCrypt password encoding in Grails 3.0

Error "The method withDefaultPasswordEncoder() is undefined for the type User" Spring Boot password

Spring Boot OAuth 2 - expiring refresh tokens when password changed

Storing configurable encrypted password of MongoDB User in Spring Boot

Login errors in spring boot: Encoded password does not look like BCrypt

Spring boot 2.2 and setting HTTPS. Why two password as needed

Set In Property File - Bcrypt datasource password over Spring Boot

Updating auto renewed DB password in JDBC connection - Spring Boot

Java spring boot encrypt admin password before storing it in database?

Can i load username and password by file in spring boot + hibernate?