andreacomo / tomcat-bcrypt

BCrypt password encryption for Tomcat 8 and above

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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>

About

BCrypt password encryption for Tomcat 8 and above

License:MIT License


Languages

Language:Java 100.0%