Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New password hashing scheme: PBKDF2 #54

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

SCG82
Copy link

@SCG82 SCG82 commented Feb 10, 2019

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.

@SCG82 SCG82 force-pushed the newhash branch 2 times, most recently from 4539196 to 8df4718 Compare September 15, 2019 10:53
@brettz9
Copy link

brettz9 commented May 25, 2020

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.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants