← All tools

Bcrypt Generator

Hash passwords with bcrypt and verify them against a hash.

生成 Bcrypt 哈希

Cost 越大越慢、越抗暴力破解,一般取 10~12。每次生成的哈希都不一样(自带随机盐),这是正常现象,任意一次生成的结果都能用。

验证哈希

全程在浏览器本地用 bcryptjs 计算,密码和哈希都不会上传到任何服务器。

Overview

Bcrypt is a purpose-built password hashing algorithm with a configurable cost factor. This tool hashes a plaintext password and can verify a password against an existing hash.

How to Use

  1. Enter a plaintext password.
  2. Choose the salt/cost rounds.
  3. Copy the generated bcrypt hash, or paste a hash to verify a password against it.

Common Use Cases

  • Generating a test password hash for a backend user table
  • Verifying that a login flow's hash comparison works correctly
  • Understanding how cost rounds affect bcrypt hash generation time

FAQ

Why use bcrypt instead of MD5 or SHA-256 for passwords?

Bcrypt is deliberately slow and includes a salt by design, making brute-force and rainbow-table attacks far more expensive than with fast general-purpose hashes.

Related Tools