Created
October 6, 2022 09:49
-
-
Save firaja/12d80f8cef3a88a9866b448c21dbafb8 to your computer and use it in GitHub Desktop.
Password4j - determine bcrypt parameters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int minimumTime = 1500; | |
BenchmarkResult<BcryptFunction> benchmark = SystemChecker.benchmarkBcrypt(minimumTime); | |
benchmark.getElapsed(); // 929ms | |
benchmark.getPrototype(); // BcryptFunction object with 14 rounds |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment