Security

How to Hash a Password with Bcrypt

Step-by-step guide to generating and verifying bcrypt password hashes using the DevHexLab Bcrypt Generator.

Tool Used

bcrypt Hash Generator

Open tool
1

Open the Bcrypt Generator

Navigate to /tools/security/bcrypt-generator.

2

Enter the password

Type the password you want to hash into the input field. The tool never transmits this to any server.

3

Set the cost factor

Choose a cost (work factor) between 10 and 14. Higher values produce more secure hashes but take longer to compute. 12 is the current recommended default.

4

Hash and copy

Click Hash. The bcrypt hash appears and is ready to store in your database. You can also use the Verify tab to check that a plain-text password matches a stored hash.

All done!

You are ready to use bcrypt Hash Generator like a pro.

Try it now
All guides