Spring Boot Password Encryption using Jasypt | Jasypt Password Encryption

  Рет қаралды 5,374

Easy 2 Excel

Easy 2 Excel

Күн бұрын

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

Пікірлер: 9
@kirane5911
@kirane5911 9 ай бұрын
Thank you for video
@dheerendraupadhyay9791
@dheerendraupadhyay9791 2 жыл бұрын
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 ?
@easy2excel927
@easy2excel927 2 жыл бұрын
you can set the secret key as environment variable/vm argument and run your application
@maxfeldman6654
@maxfeldman6654 2 жыл бұрын
Thank you Lipsa!
@sudhakarkothapalli3342
@sudhakarkothapalli3342 3 жыл бұрын
Nice explanation, could you please do one video on environmental variables to encrypt and decrypt user name and password using jasypt...
@easy2excel927
@easy2excel927 3 жыл бұрын
Thanks Sudhakar. sure will do
@meghnaraghunath4508
@meghnaraghunath4508 2 жыл бұрын
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
@keyurnayee1575
@keyurnayee1575 2 жыл бұрын
didn't you hear the audio quality before uploading on youtube?
@gerdsfargen6687
@gerdsfargen6687 2 жыл бұрын
What is browja
Write Your First AWS Lambda Function Using Java | AWS Lambda
13:35
Easy 2 Excel
Рет қаралды 3,6 М.
SCHOOLBOY. Мама флексит 🫣👩🏻
00:41
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 7 МЛН
АЗАРТНИК 4 |СЕЗОН 1 Серия
40:47
Inter Production
Рет қаралды 1,4 МЛН
АЗАРТНИК 4 |СЕЗОН 3 Серия
30:50
Inter Production
Рет қаралды 862 М.
.NET Framework vs .NET Core vs .NET vs .NET Standard vs C#
25:14
IAmTimCorey
Рет қаралды 553 М.
SCHOOLBOY. Мама флексит 🫣👩🏻
00:41
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 7 МЛН