[jboss-jira] [JBoss JIRA] (SECURITY-698) command line utility to generate hashed passwords

Tom Fonteyne (JIRA) jira-events at lists.jboss.org
Tue Sep 25 09:17:36 EDT 2012


Tom Fonteyne created SECURITY-698:
-------------------------------------

             Summary: command line utility to generate hashed passwords
                 Key: SECURITY-698
                 URL: https://issues.jboss.org/browse/SECURITY-698
             Project: PicketBox 
          Issue Type: Feature Request
      Security Level: Public (Everyone can see)
          Components: JBossSX
    Affects Versions: JBossSecurity_2.0.4.SP8
            Reporter: Tom Fonteyne
            Assignee: Anil Saldhana
            Priority: Trivial


org/​ jboss/​ security/​ auth/​ spi/​ UsernamePasswordLoginModule.java  supports "hashAlgorithm" setting to allow encrypted passwords to be used.

Current options to generate the passwords is with:

echo -n <password> | openssl dgst -md5 -binary | openssl base64 

or with:

org.jboss.crypto.CryptoUtil:

String hashedPassword = CryptoUtil.createPasswordHash("MD5", CryptoUtil.BASE64_ENCODING, null, null, password);

It would be nice if we added a little class with a main method that taked the encoding + the password and generates the hashed password.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the jboss-jira mailing list