Spring Boot Password Encryption for application properties file using Jasypt

preview_player
Показать описание

In this video, I will guide you how to:
- Use Jasypt Maven plugin with default encryption configuration (for those who don't have deep knowledge about encryption algorithm)
- Use a custom encryptor to customize various parameters of the encryption algorithm

In details, you will learn:
- Setup dependencies for Jasypt library and Jasypt Maven plugin
- Encrypt a single String value
- Decrypt an encrypted string value
- Re-encryption with a new private key
- Code a custom Jasypt configuration class

#springsecurity #encryption #jasypt #springframework #springboot
Рекомендации по теме
Комментарии
Автор

Clear and useful tutorial, keep up the good work!

UberDurable
Автор

Nice video. Keep uploading spring boot related videos 👌👌👌

studentbestspot
Автор

Nice video

Question: How to provide the VM argument(the private key for encryption) when we deploy our code to QA/Prod environment?

shreekantsahu
Автор

Thanks for the video. Great info!.
Decryption does not work for some reason. Keeps returning 'Error Decrypting: null'. Does jasypt also work on custom properties in the application.properties?

AnanthChristyGeorge
Автор

How to keep the key secure, if we are deploying it using docker and kubernetes environment?
As we will be using yaml files, and we will write this command directly with the key.

rohitrainbow
Автор

This jasypt encryptor is not stable bro Nam. The first time I used it after adding the line
in VM arguments, it started normally. Now I'm doing the same as the first time and it failed to start (the same error when you don't add the line in VM arguments).

ktn
Автор

Can we just add dependencies in pom.xml and run Maven: encrypt- value cmd. Will it do encryption.

Also I Need to know detail process of decryption while running spring boot application

shubhamtomar
Автор

The method setStringOutputType(String) is undefined for the type SimplePBEConfig

aravindselvaraju
Автор

Thank you for the video.
I am getting the error as - Failed to bind properties under 'spring.datasource.password' to java.lang.String
I checked this error & they said change the algorithm & iv-generator-classname, I did that as well... Still getting the same issue

shwetamalabade
Автор

Sir in my system spring boot is very slow... most of the time it comes as not responding.
I have 32 bit system
Any idea how to resolve this issue?

goutamar
Автор

I get this exception while running mvn jasypt command
A required class was missing whirl executing vom.github.ulisesbocchio: jasypt-maven-plugin:3.0.3.: encrypt-value :

anamikakhanna
Автор

Hi Nam Ha Minh,
thanks for the Password Encryption video.
Can you kindly give me JSTL tag for base64 encoder for images ?
Thnak you.

samuelsodagudi
Автор

Putting connection details inside properties is always a bad idea and not recommend. Use jndi instead so connection can be setup in app server cluster

pasza
Автор

Don't you want new faster computer?

amazekhashaa
welcome to shbcf.ru