Skip to content

Instantly share code, notes, and snippets.

@rajeevshukla
Last active December 13, 2018 21:59
Show Gist options
  • Save rajeevshukla/17c76a5230df37d71eeb85208abcb4cc to your computer and use it in GitHub Desktop.
Save rajeevshukla/17c76a5230df37d71eeb85208abcb4cc to your computer and use it in GitHub Desktop.
Encrypting database password with secret key
<user_home>\.m2\repository\org\jasypt\jasypt\1.9.2>java -cp jasypt-1.9.2.j
ar org.jasypt.intf.cli.JasyptPBEStringEncryptionCLI input="Tgi$912" password=vo
ipsecretz algorithm=PBEWithMD5AndDES
----ENVIRONMENT-----------------
Runtime: Oracle Corporation Java HotSpot(TM) 64-Bit Server VM 25.181-b13
----ARGUMENTS-------------------
algorithm: PBEWithMD5AndDES
input: Tgi$912
password: voipsecretz
----OUTPUT----------------------
kmRyn5KQFd+M5hWMZEey1A==
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment