Spring Boot Password Encryption using Jasypt | Jasypt Password Encryption

preview_player
Показать описание
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

b. add the below properties in application config file

Рекомендации по теме
Комментарии
Автор

Nice explanation. This question was asked in interview but I couldn't answer then.
But now I am ready.
Thanks.

Just one Qs: keeping secret key in property file is safe ?

dheerendraupadhyay
Автор

Nice explanation, could you please do one video on environmental variables to encrypt and decrypt user name and password using jasypt...

sudhakarkothapalli
Автор

my getting this error
Failed to bind properties under 'spring.datasource.password' to java.lang.String:
Reason: Failed to bind properties under 'spring.datasource.password' to java.lang.String

meghnaraghunath
Автор

didn't you hear the audio quality before uploading on youtube?

keyurnayee
welcome to shbcf.ru