Bcrypt generator
Hash passwords with bcrypt or verify a password against an existing bcrypt hash.
Bcrypt generator
Bcrypt is a password-hashing function built to be slow and salted, so it is the right tool for storing user passwords — and the wrong one for encrypting messages you plan to read back. This generator does two jobs. In hash mode it takes a password and returns a bcrypt hash such as $2b$10$… that you can store in a database. In verify mode it takes a password plus an existing hash and tells you whether they match, which is exactly what a login check does on the server.
The cost, or rounds, sets how much work each hash takes: every extra round doubles the time. A higher cost makes offline guessing slower for an attacker, but also makes each hash slower for you, so pick a value your hardware can afford on every login. This tool allows 4 to 12; the default of 10 is a common production choice. Because bcrypt runs entirely in your browser here, a high cost can take a noticeable moment on a phone — that is the algorithm working as designed, not a hang.
Every hash embeds its own random salt, generated with the browser's cryptographically secure random source, so hashing the same password twice gives two different hashes and both still verify. That salt is what defeats precomputed rainbow tables. Note that bcrypt only reads the first 72 bytes of a password.
Bcrypt is one-way: there is no "decrypt". You can only verify a candidate password against a stored hash, never recover the original from it. Everything happens locally in your browser — the password you type is never uploaded, logged or sent anywhere, which is what makes it safe to test real passwords here.