![]() |
![]() |
![]() |
![]() |
![]() |
||||||||||||||||
![]() |
Home | Download | Lists | Issues | ![]() |
||||||||||||||||||
![]() |
![]() |
![]() |
![]() |
![]() |
||||||||||||||||
Ciphering passwordsApache OpenEJB now provides an easy and extensible way to cipher databases passwords. Not that by default, this feature is not activated so plain passwords are used. Usage
Command line toolApache OpenEJB also provides a command line tool allowing password cipher algorithm. Actually, it's useful to get the ciphered value of a plain text value using a given algorithm. NAMEopenejb cipher - OpenEJB Cypher Tool SYNOPSISopenejb cipher options <value> DESCRIPTIONThe OpenEJB Cipher tool is an OPTIONAL tool that allows you to use PasswordCipher algorithm to encode/decode values. It can be used to deploy into an offline server, however in this scenario it simply copies the archive into the openejb.base/apps directory which is something that can be done manually with a simple copy command or drag and drop. The OpenEJB Cipher tool can be executed from any directory as long as <OPENEJB_HOME>/bin is in the system PATH. Before running this tool you need to set the environment variable OPENEJB_HOME to the path of the directory where you unpacked the OpenEJB installation. For for the remainder of this document we will assume you unpacked OpenEJB into the directory C:\openejb-3.1.2. In Windows, the cipher tool can be executed as follows: C:\openejb-3.1.2> bin\openejb cipher --help In UNIX, Linux, or Mac OS X, the cipher tool can be executed as follows: [user@host openejb-3.1.2]# bin/openejb cipher --help Depending on your OpenEJB version, you may need to change execution bits to make the scripts executable. You can do this with the following command. [user@host openejb-3.1.2]# chmod 755 bin/openejb From here on out, it will be assumed that you know how to execute the right openejb script for your operating system and commands will appear in shorthand as show below. openejb cipher --help OPTIONS
EXAMPLESEncrypt a plain password using the default algorithm. Output xMH5uM1V9vQzVUv5LG7YLA== |
![]() |
|||||||||||||||||||
|
![]() |