AES Two way password encoder
The AES prefix is deprecated since version 2.11, use the AES2 prefix this prefix offers better cryptographic strength. Moving from AES to AES2 prefix requires you te re-generate the password strings |
Description
The AES two-way password encoder plugin allows you to encrypt and decrypt passwords using a provided key string.
Configuration
The configuration of this encoder is for the whole Hop environment and can as such only be done using system properties. These properties are listed below and can also be specified as system properties with hop-run:
-
HOP_PASSWORD_ENCODER_PLUGIN
: set this to the ID of this plugin: AES2 -
HOP_AES_ENCODER_KEY
: Specify the key to use to encode or decode passwords
Noteworthy
Please note that passwords are encoded with prefix
which is AES2 plus a space. This means that it’s different from standard, Hop encoded, passwords which have prefix AES2
which is Encrypted plus a space. The consequence of this is that you need to encode passwords either one way or another. Mixing password encoding is not supported.Encrypted
Best practices
Make sure to only use variables and parameters to specify passwords. Store the passwords in an environment using the projects plugin. This way you can store the passwords in a single file specific for the given environment (development, test, production, …).
Secure the passwords file. Even though passwords are encrypted it’s better to be safe than sorry. A password that can’t be read, encrypted or otherwise, can’t be seen in any way. So use appropriate file security on the file in which you eventually store the passwords. This advice is doubly true for the key.
You can specify the key using a variable as well.