srcagency / credentials

Secure password hashing and verification in Node.js.
8 stars 3 forks source link

Find the right model for rehashing #3

Open tjconcept opened 9 years ago

tjconcept commented 9 years ago

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.