node-login
node-login copied to clipboard
New password hashing scheme: PBKDF2
Fully backwards compatible. New user passwords will be hashed using PBKDF2 (10000 iterations, sha256, 16 byte salt) and stored in MongoDB (hash length 32) along with a pass_ver field (pass_ver = 1). Users with no pass_ver field (or pass_ver = 0) will be validated using MD5. I have been using this exact code in production with 1000+ users.
I've incorporated similar changes in my new release of nogin, a fork of node-login. (Mentioning as there has been no activity or responses here.)