DevToolBox免费
博客

Bcrypt Hash 生成器

生成可配置成本因子的 bcrypt 密码 hash。免费使用,无需注册。

𝕏 Twitterin LinkedIn

评价此工具

3.9 / 5 · 219 人评价

保持更新

获取每周开发技巧和新工具通知。

无垃圾邮件,随时退订。

Enjoy these free tools?

Buy Me a Coffee

How to Use

  1. Enter the password you want to hash
  2. Set the cost factor (default: 10)
  3. Click Generate to create the bcrypt hash
  4. Copy the hash for use in your application's database

Common Use Cases

  • Generating password hashes for user registration systems
  • Verifying stored passwords during authentication
  • Testing bcrypt implementations in your application
  • Comparing different cost factors for performance tuning

Frequently Asked Questions

What cost factor should I use for bcrypt?
A cost of 10-12 is recommended for most web applications, balancing security and performance. Cost 10 takes about 100ms per hash. Each increment doubles the time.
Is bcrypt better than SHA-256 for passwords?
Yes. SHA-256 is designed to be fast, which makes it vulnerable to brute-force attacks. Bcrypt is intentionally slow and includes a built-in salt, making it much more secure for password storage.
Can I verify a password against a bcrypt hash?
Yes. Enter the password and the bcrypt hash, and the tool will tell you if they match. The salt is embedded in the hash, so no separate salt is needed.