Closed sephiroth-j closed 4 years ago
fixes #56
New method needsRehash(String, int, int, int) that checks if the given hash matches the given options. If the method returns true, the verified password should be rehashed and updated with the new hash.
needsRehash(String, int, int, int)
true
Inspired by PHP's password_needs_rehash
password_needs_rehash
Thanks for your contribution, much appreciated! :)
fixes #56
New method
needsRehash(String, int, int, int)
that checks if the given hash matches the given options. If the method returnstrue
, the verified password should be rehashed and updated with the new hash.Inspired by PHP's
password_needs_rehash