mirror of
https://github.com/oven-sh/bun
synced 2026-03-02 13:31:01 +01:00
## Summary - Fix incorrect description of bcrypt cost parameter in hashing docs: `log10` → `log2` - The bcrypt cost factor is a power-of-2 exponent (cost=10 means 2^10 = 1,024 rounds), confirmed by `src/bun.js/api/crypto/PasswordObject.zig` which uses the value as `rounds_log` with valid range 4–31 ## Test plan - Documentation-only change, no code behavior affected Fixes #27474 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Bot <claude-bot@bun.sh> Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>