Skip to content

Latest commit

 

History

History
67 lines (40 loc) · 1.77 KB

jasypt.asciidoc

File metadata and controls

67 lines (40 loc) · 1.77 KB
Table of Contents

jasypt

The jasypt commandlet allows to install jasypt and encrypt or decrypt secrets using strong encryption given a secure masterpassword. See also devon4j password encryption guide for further details.

The arguments (devon jasypt «args») are explained by the following table:

Table 1. Usage of devon mvn
Argument(s) Meaning

setup

setup jasypt (install and verify), configurable via JASYPT_VERSION

encrypt

Encrypt a secret with a masterpassword

decrypt

Decrypt an encrypted secret with a masterpassword

example

devon jasypt encrypt
Enter masterpassword: master
Enter secret to encrypt/decrypt: secret

----ENVIRONMENT-----------------

Runtime: AdoptOpenJDK OpenJDK 64-Bit Server VM 11.0.9.1+1



----ARGUMENTS-------------------

input: secret
password: master
ivGeneratorClassName: org.jasypt.iv.RandomIvGenerator
algorithm: PBEWITHHMACSHA512ANDAES_256



----OUTPUT----------------------

fQPbaDd8wq0h0qOZw/AEKp2TD4Y07Y//M5PzaLgF3qL7YnBQjiGLtW8s5XkP3Ly9

devon jasypt decrypt
Enter masterpassword: master
Enter secret to encrypt/decrypt: fQPbaDd8wq0h0qOZw/AEKp2TD4Y07Y//M5PzaLgF3qL7YnBQjiGLtW8s5XkP3Ly9

----ENVIRONMENT-----------------

Runtime: AdoptOpenJDK OpenJDK 64-Bit Server VM 11.0.9.1+1



----ARGUMENTS-------------------

input: fQPbaDd8wq0h0qOZw/AEKp2TD4Y07Y//M5PzaLgF3qL7YnBQjiGLtW8s5XkP3Ly9
password: master
ivGeneratorClassName: org.jasypt.iv.RandomIvGenerator
algorithm: PBEWITHHMACSHA512ANDAES_256



----OUTPUT----------------------

secret