https://github.com/deepakbhalla/springboot-jasypt-encryption-decryption
Application to demonstrate the use of Jasypt to encrypt and decrypt and sensitive value in the application.
https://github.com/deepakbhalla/springboot-jasypt-encryption-decryption
decryption encryption jasypt jasypt-command-line openapi3 security springboot-jasypt swagger
Last synced: about 2 months ago
JSON representation
Application to demonstrate the use of Jasypt to encrypt and decrypt and sensitive value in the application.
- Host: GitHub
- URL: https://github.com/deepakbhalla/springboot-jasypt-encryption-decryption
- Owner: deepakbhalla
- Created: 2023-10-26T08:11:19.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-10-26T14:57:00.000Z (over 1 year ago)
- Last Synced: 2025-01-18T17:49:22.672Z (3 months ago)
- Topics: decryption, encryption, jasypt, jasypt-command-line, openapi3, security, springboot-jasypt, swagger
- Language: Java
- Homepage:
- Size: 223 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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

### Jasypt Secret Password
Provided as VM argument: -Djasypt.encryptor.password=mypassword

### 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

### 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
```
### 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
```
References:
http://www.jasypt.org/