File tree Expand file tree Collapse file tree
src/main/java/net/elytrium/limboauth/migration Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -40,18 +40,15 @@ public enum MigrationHash {
4040 ARGON2 (new Argon2Verifier ()),
4141 SHA512_DBA ((hash , password ) -> {
4242 String [] args = hash .split ("\\ $" ); // SHA$salt$hash
43- return args .length
44-
45- 3 && args [2 ].equals (getDigest (getDigest (password , "SHA-512" ) + args [1 ], "SHA-512" ));
43+ return args .length == 3 && args [2 ].equals (getDigest (getDigest (password , "SHA-512" ) + args [1 ], "SHA-512" ));
4644 }),
4745 SHA512_NP ((hash , password ) -> {
4846 String [] args = hash .split ("\\ $" ); // SHA$salt$hash
4947 return args .length == 3 && args [2 ].equals (getDigest (password + args [1 ], "SHA-512" ));
5048 }),
5149 SHA512_P ((hash , password ) -> {
5250 String [] args = hash .split ("\\ $" ); // $SHA$salt$hash
53- return args .length == 4 && args [3 ].equals (ge
54- tDigest (password + args [2 ], "SHA-512" ));
51+ return args .length == 4 && args [3 ].equals (getDigest (password + args [2 ], "SHA-512" ));
5552 }),
5653 SHA256_NP ((hash , password ) -> {
5754 String [] args = hash .split ("\\ $" ); // SHA$salt$hash
You can’t perform that action at this time.
0 commit comments