phxql / argon2-jvm

Argon2 Binding for the JVM
GNU Lesser General Public License v3.0
330 stars 32 forks source link

needsRehash method #67

Closed sephiroth-j closed 4 years ago

sephiroth-j commented 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.

Inspired by PHP's password_needs_rehash

phxql commented 4 years ago

Thanks for your contribution, much appreciated! :)