mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-09-20 19:00:58 +02:00
Bcrypt only support $2a previously
This commit is contained in:
parent
30564fad6e
commit
0c20101947
@ -395,7 +395,7 @@ public class BCRYPT implements EncryptionMethod {
|
|||||||
off = 3;
|
off = 3;
|
||||||
else {
|
else {
|
||||||
minor = salt.charAt(2);
|
minor = salt.charAt(2);
|
||||||
if (minor != 'a' || salt.charAt(3) != '$')
|
if (minor < 'a' || minor > 'z' || salt.charAt(3) != '$')
|
||||||
throw new IllegalArgumentException("Invalid salt revision");
|
throw new IllegalArgumentException("Invalid salt revision");
|
||||||
off = 4;
|
off = 4;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user