Password encryption of JBoss AS 5.1.0 GA web console is used for USSD, SMSC and GMLC. To encrypt your password follow the steps below:  

  • Edit C:\jboss-5.1.0.GA\server\default\conf\login-config.xml by adding the following lines:

<!-- start of tools configuration Identity Manager-->
 <application-policy name="tools">
 <login-module code="" flag="required">
 <module-option name="hashAlgorithm">MD5</module-option>
 <module-option name="hashEncoding">base64</module-option>
 <module-option name="usersProperties"></module-option>
 <module-option name="rolesProperties"></module-option>
 <!-- end of tools configuration Identity Manager-->
  • Open command prompt to C:\jboss-5.1.0.GA\server\default\lib and run following command:

java -cp C:\jboss-5.1.0.GA\common\lib\jbosssx.jar your_password md5

replace your_password with the password value you would like to encrypt.

  • Create a file named under C:\jboss-5.1.0.GA\server\default\conf - each line in this file should contain a username and a password in the following format:

 Add the following line to the newly created file: