Skip to content

Commit

Permalink
reduce hash iterations from 2 million to 210k iterations, in order to…
Browse files Browse the repository at this point in the history
… be faster on login and safe enough

issue #58
  • Loading branch information
alekszivko committed Mar 3, 2025
1 parent 5a49ec1 commit c5f36f8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public Map<String, String> calcHashedCredentialMap(String clearTextPassword) {
}

private String hashAndSaltPassword(String clearTextPassword, ByteSource salt) {
return new Sha512Hash(clearTextPassword, salt, 2000000).toHex();
return new Sha512Hash(clearTextPassword, salt, 210000).toHex();
}

private ByteSource getSalt() {
Expand Down

0 comments on commit c5f36f8

Please sign in to comment.