Skip to content

Application to demonstrate the use of Jasypt to encrypt and decrypt and sensitive value in the application.

Notifications You must be signed in to change notification settings

deepakbhalla/springboot-jasypt-encryption-decryption

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

springboot-jasypt-encryption-decryption

Application to demonstrate the use of Jasypt to encrypt and decrypt and sensitive value in the application.

What is Jasypt

Jasypt stands for 'Java Simplified Encryption'

Jasypt is a java library which allows the developer to add basic encryption capabilities to his/her projects with minimum effort, and without the need of having deep knowledge on how cryptography works.

Spring Boot Jasypt Dependency

img.png

Jasypt Secret Password

Provided as VM argument: -Djasypt.encryptor.password=mypassword

jasypt_password_vm_argument.png

OpenAPI Specification

OpenAPI swagger shows the API which uses Jasypt to encrypt and decrypt the input provided by user.

http://localhost:8080/my-application/swagger-ui/index.html

open_api_swagger.png

Encrypt using Jasypt from Command Prompt

  • Command:
java -cp jasypt-1.9.3.jar org.jasypt.intf.cli.JasyptPBEStringEncryptionCLI input="Deepak" password="hello" algorithm=PBEWithMD5AndDES

jasypt_encrypt_command_line.png

Decrypt using Jasypt from Command Prompt

  • Command:
java -cp jasypt-1.9.3.jar org.jasypt.intf.cli.JasyptPBEStringDecryptionCLI input="I4pJwX8EitE6PO1fLouLMw==" password="hello" algorithm=PBEWithMD5AndDES

jasypt_decrypt_command_line.png

References:

http://www.jasypt.org/

About

Application to demonstrate the use of Jasypt to encrypt and decrypt and sensitive value in the application.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages