# Bcrypt Generator & Checker

> Hash passwords with bcrypt and check a password against a hash. Runs entirely in your browser — nothing is uploaded.

Source: https://toffeekit.com/tools/bcrypt-generator

**Category:** [Security](https://toffeekit.com/category/security) · **Price:** Free · **Runs:** in your browser, nothing is uploaded

Open the tool: https://toffeekit.com/tools/bcrypt-generator

**Also useful for:** bcrypt, bcrypt hash, password hash, bcrypt checker, verify bcrypt, 2y, laravel, salt rounds

## How it works

1. Type the Password and set the Cost (rounds).
2. Pick a Prefix: $2b$, $2a$ or $2y$ for PHP and Laravel.
3. Click Generate bcrypt hash and copy the result.
4. To check a hash, switch to Verify, paste the password and hash, and click Check password.

## FAQ

### What is bcrypt?

Bcrypt is a password hashing function designed to be slow. A random salt is built into every hash and the cost setting makes each guess expensive, which protects stored passwords against cracking.

### What cost factor should I use?

OWASP recommends at least 10. Pick the highest cost that keeps hashing around 250 milliseconds on your server; many apps use 10 to 12. Each step up doubles the time.

### Why do I get a different hash every time?

Each hash uses a new random 128-bit salt, stored inside the hash itself. Verifying still works because the checker reads the salt back out of the hash.

### What is the difference between $2a$, $2b$ and $2y$?

They're versions of the same algorithm. $2b$ is current, $2y$ is PHP's label and $2a$ is older. For normal passwords all three give the same result, so you can swap the prefix for the system you're using.

### Is there a password length limit?

Yes. Bcrypt only uses the first 72 bytes of a password. The tool warns you when a password is longer, because the extra characters are ignored.

### Is Bcrypt Generator & Checker free and private?

Yes. It's free with no sign-up or limits, and it runs entirely in your browser, so what you type or paste never leaves your device. It works on phones and computers alike.

## Privacy

Bcrypt Generator & Checker runs entirely in your browser. Your files and text are processed on your device and are never uploaded.

## Related tools

- [Password Generator](https://toffeekit.com/tools/password-generator) — Strong random passwords from your browser's crypto.
- [Text Redactor](https://toffeekit.com/tools/text-redactor) — Hide emails, phones, cards and more in any text.
- [Passphrase Generator](https://toffeekit.com/tools/passphrase-generator) — Memorable random-word passphrases with entropy.
- [Password Strength Checker](https://toffeekit.com/tools/password-strength-checker) — Test a password's strength and crack time privately.
- [Text Encrypt / Decrypt](https://toffeekit.com/tools/text-encryption) — Encrypt messages with a password using AES-256.
- [File Encrypt / Decrypt](https://toffeekit.com/tools/file-encryption) — Password-protect any file with AES-256 encryption.

