Tool Hub

Bcrypt 哈希

生成并验证 bcrypt 密码哈希 (浏览器安全纯 JS)

生成 bcrypt 密码哈希或对现有哈希验证密码。更高的盐轮数可增强暴力破解防御,但会增加生成时间 (每轮翻倍)。现代推荐值为 10-12。

要哈希的任意字符串 — 不是真实密码。

使用方法

  1. 选择
  2. 上传并选择
  3. Copy the resulting hash string for use in tests or documentation.
  4. Switch to "Verify hash" mode, enter the original string and the stored hash, and click "Verify" to confirm they match.
  5. All computation runs locally in your browser and nothing is stored or sent anywhere.

示例

  • Hashing "hunter2" with 10 rounds produces a string like $2b$10$... in about 100ms; the format line confirms version 2b and 10 rounds.
  • In verify mode, pasting that hash back and entering "hunter2" returns a match, while entering "hunter3" returns a mismatch.

生产环境使用前请验证输出。无担保 — 参见 条款.