bcrypt.js icon indicating copy to clipboard operation
bcrypt.js copied to clipboard

How do you check if password needs re-hash?

Open nicgene opened this issue 6 years ago • 1 comments

Is there any way to check if the hash implements the algorithm?

I've done it in other languages. https://www.php.net/manual/en/function.password-needs-rehash.php

nicgene avatar Apr 23 '19 20:04 nicgene

The only case I can think of is, when you increase the saltrounds, that you check if the given hash is lower than the desired hash. If so, rehash with more rounds and same salt...

Uzlopak avatar Jan 09 '22 22:01 Uzlopak