Encrypt the Data Source Password using Secured Identity
17.1.1. Encrypt the data source password The data source password is encrypted using the SecureIdentityLoginModule main method by passing in the clear text password. The SecureIdentityLoginModule is provided by jbosssx.jar. Procedure 17.2. Encrypt a data source password - Platform versions 5.0 and 5.0.1 This procedure encrypts a data source password on JBoss Enterprise Application Platform versions 5.0 and 5.0.1 Change directory to the jboss-as directory Invoke the SecureIdentityLoginModule with the following command, supplying the clear text password as PASSWORD: Linux command java -cp client/jboss-logging-spi.jar:common/lib/jbosssx.jar \ org.jboss.resource.security.SecureIdentityLoginModule PASSWORD Windows command: java -cp client\jboss-logging-spi.jar;common\lib\jbosssx.jar \ org.jboss.resource.security.SecureIdentityLoginModule PASSWORD Result: The command will return an encrypted password. Procedure 17.3. Encrypt a data source password - Platform version 5.1 and later This procedure encrypts a data source password on JBoss Enterprise Application Platform versions 5.1 and later Change directory to the jboss-as directory Linux command java -cp client/jboss-logging-spi.jar:lib/jbosssx.jar \ org.jboss.resource.security.SecureIdentityLoginModule PASSWORD Windows command: java -cp client\jboss-logging-spi.jar;lib\jbosssx.jar \ org.jboss.resource.security.SecureIdentityLoginModule PASSWORD Result: The command will return an encrypted password.