diff options
Diffstat (limited to 'src/main/java/net/elytrium/limboauth/migration/MigrationHash.java')
-rw-r--r-- | src/main/java/net/elytrium/limboauth/migration/MigrationHash.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/net/elytrium/limboauth/migration/MigrationHash.java b/src/main/java/net/elytrium/limboauth/migration/MigrationHash.java index 3894507..3110a2a 100644 --- a/src/main/java/net/elytrium/limboauth/migration/MigrationHash.java +++ b/src/main/java/net/elytrium/limboauth/migration/MigrationHash.java @@ -31,6 +31,11 @@ public enum MigrationHash { return arr.length == 4 && arr[3].equals(MigrationHash.getDigest(MigrationHash.getDigest(password, "SHA-256") + arr[2], "SHA-256")); }), + AUTHME_NP((hash, password) -> { + String[] arr = hash.split("\\$"); // SHA$salt$hash + return arr.length == 3 + && arr[2].equals(MigrationHash.getDigest(MigrationHash.getDigest(password, "SHA-256") + arr[1], "SHA-256")); + }), ARGON2(new Argon2Verifier()), SHA512_DBA((hash, password) -> { String[] arr = hash.split("\\$"); // SHA$salt$hash |