# Bcrypt - Erlang wrapper for OpenBSD's Blowfish password hashing code (now v2.0.0)

**URL:** <https://erlangforums.com/t/bcrypt-erlang-wrapper-for-openbsds-blowfish-password-hashing-code-now-v2-0-0/6084>\
**Category:** Libraries\
**Tags:** erlang, crypto\
**Created:** [October 27, 2026, 9:25am UTC](https://erlangforums.com/t/bcrypt-erlang-wrapper-for-openbsds-blowfish-password-hashing-code-now-v2-0-0/6084 "2026-10-27T09:25:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mworrell](https://erlangforums.com/user_avatar/erlangforums.com/mworrell/32/267_2.png) [@mworrell](https://erlangforums.com/u/mworrell)\
**Post date:** [October 27, 2026, 9:25am UTC](https://erlangforums.com/t/bcrypt-erlang-wrapper-for-openbsds-blowfish-password-hashing-code-now-v2-0-0/6084/1 "2026-10-27T09:25:33Z")

</div>

> erlang-bcrypt is a wrapper around the OpenBSD Blowfish password hashing algorithm, as described in [A Future-Adaptable Password Scheme](http://www.openbsd.org/papers/bcrypt-paper.ps) by Niels Provos and David Mazieres.
> 
> This bcrypt repository at erlangpack is in active maintainance and used as the basis of the Hex package.

We have released bcrypt 2.0.0

It is a major update from the previous 1.2 release.

Changes:

- Ported upstream BSD fixes; new salts use `$2b$`, while legacy `$2a` verification is preserved.
- Added bounded inputs, strict salt validation, and secure memory clearing.
- Replaced custom NIF threads and queues with OTP dirty schedulers.
- Added support for `$2y$` PHP hashing

If you are using 1.2.2 or earlier then I advise to upgrade to this new release.

> **[bcrypt](https://hex.pm/packages/bcrypt)**
>
> An Erlang wrapper (NIF or port program) for the OpenBSD password scheme, bcrypt.

> **[GitHub - erlangpack/bcrypt: Erlang wrapper for OpenBSD's Blowfish password...](https://github.com/erlangpack/bcrypt)**
>
> Erlang wrapper for OpenBSD's Blowfish password hashing code
