Chapter 10. Jasypt encryption
You can use a command to use Jasypt to encrypt passwords in the console.
10.1. jasypt:encrypt Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
Abstract
Encrypts a password
Synopsis Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
jasypt:encrypt
[
password
] [
--help
]
Details Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
Use this command to encrypt a plain text password
JBossA-MQ:karaf@root> jasypt:encrypt passwordsample JBossA-MQ:karaf@root>(ENC)J0qF8Sk5P4KJRdyLs8LzQYRHfyXs7yWT/CyIDPqHqK2wwc6FbgwsTPK+WCsBgMK9
JBossA-MQ:karaf@root> jasypt:encrypt passwordsample
JBossA-MQ:karaf@root>(ENC)J0qF8Sk5P4KJRdyLs8LzQYRHfyXs7yWT/CyIDPqHqK2wwc6FbgwsTPK+WCsBgMK9
Arguments Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
The command's arguments are as follows:
Argument | Interpretation |
---|---|
password | Enter the password to be encrypted in plain text |
--help | Displays the online help for this command |