Рет қаралды 5,374
Hello friends.
I am Lipsa Patra. I am a software engineer. Welcome to my youtube channel
Easy 2Excel .
In this video we will learn about ,Spring Boot Password Encryption for Application Configuration File using Jasypt(Java Simplified Encryption).
It will help us to encrypt the sensitive information in properties file attribute.
Here I am sharing the steps used for encryption/decryption using Jasypt.
1- add jasypt-spring-boot-starter maven dependency
2- Add annotation @EnableEncryptableProperties to the main class
3-decide a secret key used for encryption/decryption // lipsa
4-Generate encrypted key using jasypt online encryption
link :
5-add the encrypted key in the propeties/yml file in the following format
ENC(GENEARTED_ENCRYPTED_KEY)
6-pass the secret key to decrypt at run time and run the application in usual manner
a.set -Djasypt.encryptor.password=lipsa as environment variable /VM argument
b. add the below properties in application config file
jasypt.encryptor.password=lipsa