secure-password

JSON →
library 4.0.0 ·javascript
verified Jun 7, 2026

Password hashing library using Argon2id via libsodium. Current stable version is 4.0.0, with maintenance releases on GitHub. It provides safe defaults, future-proof work factor upgrades, and uses Buffers for memory safety. Differentiates from bcrypt and scrypt by using the modern Argon2id algorithm and offering explicit rehashing guidance (VALID_NEEDS_REHASH).