Skip to content

Bcrypt 哈希与验证

使用 bcrypt 对密码进行哈希,或针对现有 bcrypt 哈希验证密码。成本因子可配置。完全在浏览器中运行。

Privacy & Security
cosmodev ~/tools/bcrypt-
2^12 = 4 096 轮

越高 = 越慢 + 越安全。成本 12 在普通笔记本上约需 4ms;10-12 是常见的生产范围。

100% 在浏览器中运行 - 密码和哈希永远不会离开你的设备。

Send to AI
I am storing user passwords for a web app with at most 10 000 users. Compare bcrypt (cost 12), scrypt, and Argon2id for this workload: resistance to GPU cracking, memory requirements, DoS risk on the login endpoint, and the parameters you would actually deploy. Give a concrete recommendation and the exact parameter values.