2 Replies Latest reply on Apr 29, 2008 4:51 PM by Mauricio Salatino

    MD5 MessageDigest not available

    Miquel Beltran Newbie

      Hi everybody.

      I'm adding Md5 hashcode security to my users passwords. but I'm getting the following error:


      ERROR [Util] Password hash calculation failed
      java.security.NoSuchAlgorithmException: MD5 MessageDigest not available


      Everytime I login.

      My code is:

      <login-module code = "org.jboss.security.auth.spi.DatabaseServerLoginModule"
       flag = "required">
       <!--<module-option name = "unauthenticatedIdentity">guest</module-option>-->
       <module-option name = "dsJndiName">java:/woneview</module-option>
       <module-option name = "principalsQuery">SELECT password FROM bu_usuario WHERE username=?</module-option>
       <module-option name = "rolesQuery">SELECT rol, 'Roles' FROM bu_roles WHERE username=?</module-option>
      
       <module-option name = "hashAlgorithm">MD5</module-option>
       <module-option name = "hashEncoding">base64</module-option>
      
       </login-module>
      


      I think I forgot to add something to the jboss path, but I have not found any information.

      Any comments are welcome.