Hash passwords securely with bcrypt
The bcrypt generator turns a password into a bcrypt hash – the industry standard for storing credentials securely. Unlike fast hashes such as MD5 or SHA-256, bcrypt is deliberately compute-intensive and includes a built-in salt, which makes brute-force and rainbow-table attacks far harder. The tool is aimed at developers building login systems or checking existing hashes, and it runs entirely in your browser.
Common use cases
- Store passwords: Create the hash that goes into your database instead of the plaintext password, secure and individually salted.
- Verify hashes: Check whether a password matches an existing bcrypt hash, for example when debugging a login.
- Tune the cost factor: Try different cost values to find the right balance between security and server load.
- Seeds and test data: Create reproducible hashes for demo or test users without writing a backend script.
How to create a bcrypt hash
- 1 Enter the password you want to hash into the input field.
- 2 Choose the cost factor (work factor) – higher means more secure but slower.
- 3 Generate the bcrypt hash and copy it into your database or code.
- 4 To verify, paste a password and an existing hash and see whether they match.
Why bcrypt?
bcrypt was designed to be slow on purpose: the cost factor lets you raise the computational effort so that hashes stay hard to crack even with future hardware. The built-in salt ensures that identical passwords never produce the same hash. Choose the cost factor as high as your server performance allows – values around 10 to 12 are a good starting point. For plain file-integrity checks, on the other hand, a fast SHA hash is the better fit.