patrickfav / bcrypt

A Java standalone implementation of the bcrypt password hash function. Based on the Blowfish cipher it is the default password hash algorithm for OpenBSD and other systems including some Linux distributions. Includes a CLI Tool.
https://favr.dev/opensource/bcrypt
Apache License 2.0
482 stars 49 forks source link

Support 24 byte hash output and make null terminator optional #3

Closed patrickfav closed 6 years ago

patrickfav commented 6 years ago

Most implementations mirror the OpenBSD impl of using only 23 bytes of the blowfish has (184 bit) and use a null terminator since version $2a$ requires it. Other implemenations (e.g. BC) do not do these things for you.

Add flags in the Version config to support these advanced features.