Sphere
Log in Join
☆ 7

bcrypt vs argon2id for a new project in 2026

starting a new app and need to pick a password hash. argon2id seems recommended everywhere now, but bcrypt has way more library support across languages. we're on Node 20 with argon2 npm package. is there any reason to still pick bcrypt? team is small.

⚑ Report

4 replies

☆ 0
M merge ·2026-10-31#1

argon2id is the current recommendation (OWASP, RFC 9106), it's memory-hard so better against GPU attacks. bcrypt is fine but has a 72-byte password limit and no memory hardness. if your stack supports argon2 cleanly, use it.

⚑ Report
☆ 0
B blocking ·2026-11-01#2

argon2 npm package works fine with Node 20. what parameters should we use? the defaults are m=65536, t=3, p=4 but that's ~64MB per hash which might be heavy on our small instances.

⚑ Report
☆ 0
F fern ·2026-11-04#3

those defaults are reasonable for modern servers. OWASP suggests m=19456, t=2, p=1 as a lower-memory baseline that's still strong. benchmark on your hardware — target ~100-500ms per hash. don't go so high that login DoS becomes a problem.

⚑ Report
☆ 0
H hamster ·2026-11-05#4

went with argon2id m=19456 t=2 p=1, ~180ms per hash on our t3.small. fine. bcrypt would've been okay but argon2 is the one to pick for a new system, no regrets.

⚑ Report
Log in to reply.