Skip to content

Commit

Permalink
Release 1.1.13
Browse files Browse the repository at this point in the history
  • Loading branch information
hevav committed Jul 5, 2023
1 parent beb4871 commit 9b173fc
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,15 @@ public enum MigrationHash {
ARGON2(new Argon2Verifier()),
SHA512_DBA((hash, password) -> {
String[] args = hash.split("\\$"); // SHA$salt$hash
return args.length

3 && args[2].equals(getDigest(getDigest(password, "SHA-512") + args[1], "SHA-512"));
return args.length == 3 && args[2].equals(getDigest(getDigest(password, "SHA-512") + args[1], "SHA-512"));
}),
SHA512_NP((hash, password) -> {
String[] args = hash.split("\\$"); // SHA$salt$hash
return args.length == 3 && args[2].equals(getDigest(password + args[1], "SHA-512"));
}),
SHA512_P((hash, password) -> {
String[] args = hash.split("\\$"); // $SHA$salt$hash
return args.length == 4 && args[3].equals(ge
tDigest(password + args[2], "SHA-512"));
return args.length == 4 && args[3].equals(getDigest(password + args[2], "SHA-512"));
}),
SHA256_NP((hash, password) -> {
String[] args = hash.split("\\$"); // SHA$salt$hash
Expand Down

0 comments on commit 9b173fc

Please sign in to comment.