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

Add support for other hashing mechanisms #13

Closed
ketan opened this issue May 29, 2017 · 0 comments

Comments

Projects
None yet
1 participant
@ketan
Copy link
Member

commented May 29, 2017

SHA1 as a password hashing mechanism has been deprecated. Industry standard recommendation is bcrypt or PBKDF2.

From this page

What hash algorithm should I use?

DO use:

DO NOT use:

  • Fast cryptographic hash functions such as MD5, SHA1, SHA256, SHA512, RipeMD, WHIRLPOOL, SHA3, etc.
  • Insecure versions of crypt ($1$, $2$, $2x$, $3$).
  • Any algorithm that you designed yourself. Only use technology that is in the public domain and has been well-tested by experienced cryptographers.

@ketan ketan referenced this issue May 29, 2017

Merged

Updated readme #12

ketan added a commit that referenced this issue Jun 12, 2017

ketan added a commit that referenced this issue Jun 12, 2017

Add support for bcrypt hashing (#13)
This commit adds BCrypt (0.4) from http://www.mindrot.org/projects/jBCrypt/

If the password matches the SHA1 hash, use it, but warn.
If the password does not match the SHA1, fallback to verify with bcrypt.

@ketan ketan closed this Jul 20, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.