Expass Overview
A secure password hashing/encryption library for node and JavaScript.
Features:
- Pre-hash password
- Use scrypt for anti-parallelization
- Use symmetric encryption for storing the password
- Use global secret (a.k.a. pepper) for extra security
- Algorithms can be replaced by custom ones
- Whole library can be re-implemented
Why?
I needed a secure way to store passwords in a database. Following the best practices recommended by the OWASP, and using modern algorithms, to avoid common attacks like rainbow tables, brute force, and dictionary attacks.
What is the difference between this library and others?
This library is designed to be secure, and to be easy to use.
| Feature | ExPass | bcrypt | scrypt | hash | pbkdf2 |
|---|---|---|---|---|---|
| Pre-hash | ✔️ | ❌ | ❌ | ❌ | ❌ |
| Use salt |