srcagency / credentials Goto Github PK
View Code? Open in Web Editor NEWSecure password hashing and verification in Node.js.
Secure password hashing and verification in Node.js.
The initial argument for the expired
method was to allow for continuous rehashing of passwords on sign up as they became too weak (as defined by days
).
The problem with the current expired
method is that it is actually cumbersome to use in practice during a sign in, as you would have to hash the same password twice given the way verify
works.
I am not clarified about this.
http://security.stackexchange.com/questions/3272/password-hashing-add-salt-pepper-or-is-salt-enough
Test the impact on hashing performance.
If you try to verify hashes generated by [email protected] the verify function with return false.
This can be easily replicated by running the following code on Runkit:
https://runkit.com/embed/zgp4an2ckb58
In case Runkit doesn't work, you can try to verify the following hash with 3.0.2:
{"salt":"8Nqw3LkHwILdMvZaibpFUGyVeMqYi5KsZwUqF9Esxnlkxt/tjEmO0Hjmdjqm6/FezgSfHrIoUQTyinsKJxvR6GJt","hash":"lXXvFBZecCsmyX+A/24TWVvvNTaixBLdYQD0sGSKNaAj58u4TXQBwI8vCFTwy0xsDHvsczoHKZufNoai1uxr1+3t","keyLength":66,"hashMethod":"pbkdf2","iterations":919715}
password is "foo".
Taylor Hornby (https://twitter.com/DefuseSec) has offered to do a security review of this library: https://twitter.com/tjconceptdk/status/607203601740660736
I hope he will also be able to answer whether we need a constant time comparison at all.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.