- Is this a real bcrypt implementation?
- Yes — a browser-side bcrypt that produces valid $2b$ format hashes. Verifiable by any bcrypt-compatible library.
- Which cost should I use?
- 10–12 for web apps (login takes 100-300ms, acceptable UX). 14+ for high-value credentials (takes seconds — too slow for login). 4 is insecure; only use for tests.
- Why is it slow in the browser?
- Bcrypt is intentionally expensive. Browser JS adds ~2-3x overhead vs native. For production, hash server-side in compiled code.
- Is argon2 better than bcrypt?
- For new projects yes — memory-hardness resists GPU attacks. Bcrypt is still fine for existing systems; don't migrate just to migrate. OWASP accepts both.