Creating encrypted passwords

VERSION 4 Published

Created on: 26-Jun-2007 08:24 by flux - Last Modified:  13-May-2008 08:31 by David Brown

This article addresses what steps are needed to encrypt the password used to start your engine and your database password. You may want to encrypt your password in order to keep your system more secure.

Secure engine password

When creating a secure engine, you may find yourself wanting to encrypt the password used to start the engine. In order to encrypt a password, you will want to run the following command in your Flux installation directory:

java -cp flux.jar flux.Main encryptpassword myPassword


The command will run the Flux password encryption mechanism on the password "myPassword". The following line is printed out with the encrypted password (where "myEncryptedPassword" is the newly encrypted password).

Encrypted password is myEncryptedPassword


Once the password has been encrypted, you can place it into your engine's startup command as the "encryptedpassword" argument.

For example:

-username admin -encryptedpassword myEncryptedPassword start


Once this is done, you should have a fully functional secure engine working with an encrypted password.

Database password

You also may find yourself wanting to encrypt the password to your database. To encrypt the database password, run the encryption command discussed above. Then, in your Flux engine configuration (.fec) file add the following argument:

JDBC_ENCRYPTED_PASSWORD=myEncryptedPassword


You should now be able to have a secure database password in you .fec file rather than a password stored in plain text.
Average User Rating
(0 ratings)




There are no comments on this document