NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
PyPI · #182 most downloaded on PyPI
Modern password hashing for your software and your servers
Last release 1 years ago
25 Sep 2025
Release timing varies
gaps range from 3 weeks to 1.7 years
Most releases are documented
notes for 22 of 27 stable releases
1 version withdrawn
withdrawn after publishing
13 years old
28 releases · first in 2013
Added support for Python 3.14 and free-threaded Python 3.14.
Bumped MSRV to 1.74.
Added support for Python 3.14 and free-threaded Python 3.14.
Added support for Windows on ARM.
Passing hashpw a password longer than 72 bytes now raises a ValueError. Previously the password was silently truncated, following the behavior of the original OpenBSD bcrypt implementation.
Dropped support for Python 3.7.
Dropped support for Python 3.7.
We now support free-threaded Python 3.13.
We now support PyPy 3.11.
We now publish wheels for free-threaded Python 3.13, for PyPy 3.11 on manylinux, and for ARMv7l on manylinux.
One column per quarter.
Bump Rust dependency versions - this should resolve crashes on Python 3.13 free-threaded builds.
Bump Rust dependency versions - this should resolve crashes on Python 3.13 free-threaded builds.
We no longer build manylinux wheels for PyPy 3.9.
Removed the BCRYPT_ALLOW_RUST_163 environment variable.
Bump Rust dependency versions
Removed the BCRYPT_ALLOW_RUST_163 environment variable.
* Bump Rust dependency versions
Bump Rust dependency versions
Publish both py37 and py39 wheels. This should resolve some errors relating to initializing a module multiple times per process.
Publish both py37 and py39 wheels. This should resolve some errors relating to initializing a module multiple times per process.
Fixed the type signature on the kdf method.
Fixed the type signature on the kdf method.
Fixed packaging bug on Windows.
Fixed incompatibility with passlib package detection assumptions.
Dropped support for Python 3.6.
Dropped support for Python 3.6.
Bumped MSRV to 1.64. (Note: Rust 1.63 can be used by setting the BCRYPT_ALLOW_RUST_163 environment variable)
We now build PyPy manylinux wheels.
We now build PyPy manylinux wheels.
Fixed a bug where passing an invalid salt to checkpw could result in a pyo3_runtime.PanicException. It now correctly raises a ValueError.
bcrypt is now implemented in Rust. Users building from source will need to have a Rust compiler available. Nothing will change for users downloading w
bcrypt is now implemented in Rust. Users building from source will need to have a Rust compiler available. Nothing will change for users downloading wheels.
We no longer ship manylinux2010 wheels. Users should upgrade to the latest pip to ensure this doesn’t cause issues downloading wheels on their platform. We now ship manylinux_2_28 wheels for users on new enough platforms.
NUL bytes are now allowed in inputs.
Fixed packaging of py.typed files in wheels so that mypy works.
Fixed packaging of py.typed files in wheels so that mypy works.
Added support for compilation on z/OS
Added support for compilation on z/OS
The next release of bcrypt with be 4.0 and it will require Rust at compile time, for users building from source. There will be no additional requirement for users who are installing from wheels. Users on most platforms will be able to obtain a wheel by making sure they have an up to date pip. The minimum supported Rust version will be 1.56.0.
This will be the final release for which we ship manylinux2010 wheels. Going forward the minimum supported manylinux ABI for our wheels will be manylinux2014. The vast majority of users will continue to receive manylinux wheels provided they have an up to date pip.
Added typehints for library functions.
Added typehints for library functions.
Dropped support for Python versions less than 3.6 (2.7, 3.4, 3.5).
Shipped abi3 Windows wheels (requires pip >= 20).
Set a setuptools lower bound for PEP517 wheel building.
Set a setuptools lower bound for PEP517 wheel building.
We no longer distribute 32-bit manylinux1 wheels. Continuing to produce them was a maintenance burden.
Added support for compilation on Haiku.
Added support for compilation on Haiku.
Added support for compilation on AIX.
Added support for compilation on AIX.
Dropped Python 2.6 and 3.3 support.
Switched to using abi3 wheels for Python 3. If you are not getting a wheel on a compatible platform please upgrade your pip version.
Fixed compilation with mingw and on illumos.
Fixed compilation with mingw and on illumos.
Fixed a compilation issue on Solaris.
Fixed a compilation issue on Solaris.
Added a warning when using too few rounds with kdf.
Fixed a compile issue affecting big endian platforms.
Fixed a compile issue affecting big endian platforms.
Fixed invalid escape sequence warnings on Python 3.6.
Fixed building in non-UTF8 environments on Python 2.
Resolved a UserWarning when used with cffi 1.8.3.
Resolved a UserWarning when used with cffi 1.8.3.
Fixed a regression where $2a hashes were vulnerable to a wraparound bug.
Added support for checkpw, a convenience method for verifying a password.
Ensure that you get a $2y$ hash when you input a $2y$ salt.
Fixed a regression where $2a hashes were vulnerable to a wraparound bug.
Fixed compilation under Alpine Linux.
Switched the C backend to code obtained from the OpenBSD project rather than openwall.
Switched the C backend to code obtained from the OpenBSD project rather than openwall.
Added support for bcrypt_pbkdf via the kdf function.
Added support for an adjustible prefix when calling gensalt.
Added support for an adjustible prefix when calling gensalt.
Switched to CFFI 1.0+
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →