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">
 <authentication>
 <login-module code="org.jboss.security.auth.spi.UsersRolesLoginModule" flag="required">
 <module-option name="hashAlgorithm">MD5</module-option>
 <module-option name="hashEncoding">base64</module-option>
 <module-option name="usersProperties">tools-users.properties</module-option>
 <module-option name="rolesProperties">tools-roles.properties</module-option>
 </login-module>
 </authentication>
 </application-policy>
 <!-- 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 org.jboss.security.Base64Encoder your_password md5

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

  • Create a file named tools-users.properties 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:

 username=password
 Add the following line to the newly created file:
 imuser=<Password_Generated_In_Previous_Step>