Generate bcrypt hash

Create a bcrypt password hash with a random salt and selected cost.

freeworks offlinenothing uploaded
ToolBcrypt Hash Generator
Input
Output
Put this on your own site

The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.

Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.

Preview

How it works

Bcrypt expands a password and a random salt through an EksBlowfish key schedule for the selected cost, then encodes the salt and derived checksum in its modular crypt format. The cost doubles the key-schedule work for each increment.

  • A per-password salt separates equal passwords; cost raises offline work.

Worked example

Hash Password
Generate a bcrypt hash for secure password storage (output varies due to random salt)
Input
											my-secret-password
										
Output
												$2b$10$KEpGjgx8hbjnrlKCPMEar.cYzK8KYGN9RDG/Gb7NytN2I3clZyNmG
											

When to use this

Legacy account stores, import migrations, and bcrypt test vectors create password hashes.

Edge cases

  • Passwords beyond bcrypt’s effective input limit need a migration plan.
  • A reused salt makes equal passwords visibly equal.
  • Raising cost increases login latency and resource use.

References