PrivTab

bcrypt 生成与校验

生成或校验 bcrypt 哈希

在浏览器中运行 · 无需上传

此工具及本页说明目前仍为英文。功能完全相同:一切都在你的浏览器中运行。

What do you want to do?

Each step up doubles the time. 10 to 12 is usual for websites today.

  • 任何内容都不会离开你的设备
  • 服务器不限制文件大小
  • 无需注册,无水印
  • 免费

How to use the bcrypt generator

  1. Choose to make a hash or to check one.
  2. Type the password, and the hash when checking.
  3. Copy the hash, or read whether they match.

Good to know

  • Hashes start with $2b$, the current version. Hashes starting with $2a$ and $2y$ (PHP) can be checked too.
  • The cost is the number of rounds as a power of 2: each step up doubles the time it takes to make and to check a hash, for you and for an attacker. 10 to 12 is usual for websites.
  • Each hash gets a new random salt, so the same password gives a different hash every time. All of them check correctly.
  • bcrypt uses only the first 72 bytes of a password; the page warns when a password is longer.

Your passwords stay on your device

Hashing and checking run in your browser with bcrypt.js. Nothing you type is sent anywhere.

常见问题

Can a bcrypt hash be turned back into the password?

No. bcrypt is one-way: the only way to find the password is to try candidates, which the cost makes slow on purpose. That is why you can check a guess here but not "decrypt" a hash.

Is my password sent anywhere?

No. The hash is made in your browser, and this site's security policy blocks the page from sending anything.