it.cosenonjaviste:tomcat-bcrypt

BCrypt support for Tomcat Realms

License

License

Categories

Categories

Tomcat Container Application Servers
GroupId

GroupId

it.cosenonjaviste
ArtifactId

ArtifactId

tomcat-bcrypt
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

it.cosenonjaviste:tomcat-bcrypt
BCrypt support for Tomcat Realms
Project URL

Project URL

https://github.com/andreacomo/tomcat-bcrypt
Source Code Management

Source Code Management

https://github.com/andreacomo/tomcat-bcrypt.git

Download tomcat-bcrypt

How to add to project

<!-- https://jarcasting.com/artifacts/it.cosenonjaviste/tomcat-bcrypt/ -->
<dependency>
    <groupId>it.cosenonjaviste</groupId>
    <artifactId>tomcat-bcrypt</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/it.cosenonjaviste/tomcat-bcrypt/
implementation 'it.cosenonjaviste:tomcat-bcrypt:1.0.0'
// https://jarcasting.com/artifacts/it.cosenonjaviste/tomcat-bcrypt/
implementation ("it.cosenonjaviste:tomcat-bcrypt:1.0.0")
'it.cosenonjaviste:tomcat-bcrypt:jar:1.0.0'
<dependency org="it.cosenonjaviste" name="tomcat-bcrypt" rev="1.0.0">
  <artifact name="tomcat-bcrypt" type="jar" />
</dependency>
@Grapes(
@Grab(group='it.cosenonjaviste', module='tomcat-bcrypt', version='1.0.0')
)
libraryDependencies += "it.cosenonjaviste" % "tomcat-bcrypt" % "1.0.0"
[it.cosenonjaviste/tomcat-bcrypt "1.0.0"]

Dependencies

provided (2)

Group / Artifact Type Version
org.apache.tomcat : tomcat-catalina jar 8.0.28
org.apache.tomcat : tomcat-coyote jar 8.0.28

test (2)

Group / Artifact Type Version
junit : junit jar 4.12
org.mockito : mockito-core jar 1.10.19

Project Modules

There are no modules declared in this project.

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>

Versions

Version
1.0.0