# Password Hash Generator

> Hash a password with PBKDF2-SHA256 and a random salt, or verify a password against a stored hash. Runs in your browser with the Web Crypto API.

- Page: https://mondaytool.com/tools/bcrypt-generator
- Category: security
- Price: free, no sign-up. Most tools run in the browser, so input is not uploaded.
- Use it: open https://mondaytool.com/tools/bcrypt-generator. It is an interactive web page; this file is its documentation.

Last updated: 14 October 2026

## Hash and verify passwords with PBKDF2-SHA256

This **password hash generator** turns a password into a salted PBKDF2-SHA256 hash, and it can check a password against a hash you already have. It is useful for testing login code, seeding a test database or learning how password hashing works. Note: despite the page address, the tool does *not* produce bcrypt hashes. It uses PBKDF2 with SHA-256 through your browser's Web Crypto API.

## How to use it

1. Open the **Hash Password** tab and type your password. Use **Show** to check what you typed.
2. Leave the salt empty to get a random 16-byte salt, click **Generate**, or paste your own salt in hex.
3. Pick the number of iterations: 100,000, 310,000 or 600,000.
4. Click **Hash Password**, then **Copy** the result.
5. To check a password, open **Verify Password**, enter the password and paste the stored hash string.

## How it works

PBKDF2 runs a keyed SHA-256 function over the password and salt many times. Each extra round makes guessing passwords slower for an attacker. The tool derives a 256-bit key and prints it as hex in one string:

`pbkdf2:sha256:::`

Because the iterations and salt are stored inside the string, verification can repeat the exact same calculation. It splits the string, hashes the new password with that salt and iteration count, and compares the result. You see a clear match or no-match message.

## Choosing iterations

| Option | Label in the tool |
| --- | --- |
| 100,000 | Minimum |
| 310,000 | Recommended (default) |
| 600,000 | High security |

More iterations mean a slower hash, both for you and for anyone trying to crack it. The current OWASP guidance for PBKDF2-HMAC-SHA256 is 600,000 iterations, so pick that for new systems if your server can handle it.

## Tips

- If you type your own salt, use an even number of hex characters (0–9, a–f). The tool does not check the salt format.
- The verifier only reads the `pbkdf2:sha256:…` format made by this tool. Other formats, such as Django or Werkzeug strings, will show an error.
- Use a fresh random salt for every password. Never reuse one salt across users.

## Frequently asked questions

### Is this a bcrypt generator?

No. It creates PBKDF2-SHA256 hashes, not bcrypt hashes. Both are slow, salted password hashes, but their output formats are different and not interchangeable.

### Is my password sent to a server?

No. Hashing and verification run in your browser with the Web Crypto API (SubtleCrypto). Nothing is uploaded.

### Why does the same password give a different hash each time?

A new random salt is created each time you leave the salt field empty. Use the same salt and iteration count to get the same hash again.
