Need help with libbcrypt?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

149 Stars 54 Forks Other 37 Commits 0 Opened issues


bcrypt password hash C library

Services available


Need anything else?

Contributors list

# 253,987
31 commits

This library is a simple wrapper providing a convenient reentrant interface for the bcrypt password hashing algorithm implementation as provided by Solar Designer at An exact copy of that source code is included in the crypt_blowfish subdirectory.

The provided C interface is inspired in the bcrypt Python module that can be found at, and consists of a function to generate salts with the characteristic work factor parameter, one to generate password hashes which can also used to verify passwords and one designed specifically to verify passwords and avoid timing attacks. Please check the header bcrypt.h. It contains the prototypes and lots of comments with examples.

All this code is released to the public domain under the terms of CC0. See the COPYING file for the legal text.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.