Configuring extensions for password encryption
Most of our extensions support password encryption. To use this service, please follow these steps exactly as specified.
NOTE | Once done, you will have to uncomment the encryptionKey
and encryptedPassword
and update them with the ones that you generate in the config.yml file.
When you complete these steps, your extension will be ready for password encryption.
Contents
- Generate the encrypted password
- Configure config.yml with the encrypted password
STEP 1. How do I generate the encrypted password?
In this case, we will take Cassandra Monitoring Extension as an example.
- Navigate to your Machine Agent installation folder, then head to the “monitors” folder.

- Now enter your Extension folder, or in our case, “
CassandraMonitor
” and copy the name of the jar file (here, “cassandra-monitoring-extension.jar
”)
- Open your terminal and navigate to the CassandraMonitor folder.
- In the folder within terminal, make sure the jar file is present (i.e.,
cassandra-monitoring-extension.jar
).
- Once you’ve verified all the details, run the following command. This command will give you your encrypted password.
java -cp "cassandra-monitoring-extension.jar" com.appdynamics.extensions.crypto.Encryptor myKey myPassword
The “myKey” in the command can be any random key that you'd like to use to encrypt the password. The “myPassword” is the plaintext password that you normally use to log in to your product. This is the password that you are trying to encrypt.
NOTE | If you have special characters in your plaintext password or your encryption key, you need to escape the special characters with a backslash (\) in the above command.
For example, if the plaintext password is myPa$$word
, the encryption command should look like this:
java -cp "cassandra-monitoring-extension.jar" com.appdynamics.extensions.crypto.Encryptor myKey myPa\$\$word
- Once you run the command, here is how the encrypted password will be generated:
The value under “Encrypted String
” above corresponds to your encrypted password.
- Save the values for your
encryptionKey
and Encrypted String
in a text editor so that you don’t lose them.
STEP 2. Configuring config.yml with the encrypted password:
- In the
config.yml
of the extension, insert the encryptionKey
and Encrypted String
.
- The value for
encryptionKey
field is the random encryption key that was used in the command. For example, in the example above we used myKey
as the encryption key.
The value of encryptedPassword
is the result of the above command.

Once you complete all the steps in this article, your extension will be ready to use the newly generated encrypted password.