diff options
Diffstat (limited to 'src/main/java/net/elytrium/limboauth/migration')
-rw-r--r-- | src/main/java/net/elytrium/limboauth/migration/MigrationHash.java | 4 |
1 files changed, 4 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 5f6cb71..ba20655 100644 --- a/src/main/java/net/elytrium/limboauth/migration/MigrationHash.java +++ b/src/main/java/net/elytrium/limboauth/migration/MigrationHash.java @@ -69,6 +69,10 @@ public enum MigrationHash { SHA512_NO_SALT((hash, password) -> { String[] args = hash.split("\\$"); // $SHA$hash return args.length == 3 && args[2].equals(getDigest(password, "SHA-512")); + }), + SHA512_P_REVERSED_HASH((hash, password) -> { + String[] args = hash.split("\\$"); // $SHA$hash$salt + return args.length == 4 && args[2].equals(getDigest(password + args[3], "SHA-512")); }); private final MigrationHashVerifier verifier; |