Encrypting Secrets

The crypt goal encrypts the given argument using the application configured master key store and the specified alias. This allows to encrypt sensitive configuration values.

This goal executes the crypt tool on the project. It is a shortcut for the tool goal with crypt specified as first argument.

This goal requires a properly configured key store, named master, in the application. See this page for more information about configuration key stores.

Parameters

Parameters can be given as system properties (-DparameterName=parameterValue) or specified in the pom.xml plugin declaration:

Name Type Mandatory Description
args String Yes The string of all arguments passed to the crypt tool.

Examples

Encryption of a password using alias alias1 in the master key store:

mvn -Dargs="--alias alias1 thePasswOrd" -q seedstack:crypt
   

On this page


Edit