Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 1.09 KB

File metadata and controls

24 lines (18 loc) · 1.09 KB

Build Status Released Version

Tomcat BCrypt

Want to use BCrypt hashed password with your preferred Tomcat (8 or above) Realm?

This is an implementation of Tomcat CredentialHandler wrapping jBCrypt (0.4), Java implementation of bcrypt algorithm.

How to use

  • Download latest jar
  • Copy to TOMCAT_HOME/lib folder
  • Nest BCryptoCredentialHandler in your preferred Realm, for example:
<Context>
    <Realm className="org.apache.catalina.realm.JDBCRealm"
        [...]
        >
        <CredentialHandler className="it.cosenonjaviste.tomcat.BCryptoCredentialHandler"/>
    </Realm>
</Context>