Most of our extensions support password encryption. To use this service, please follow these steps exactly as specified. 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.
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 myKeymyPassword
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: