mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-12-25 01:57:48 +01:00
#663 Don't print stacktrace when encountering invalid hash formats
This commit is contained in:
parent
e818395575
commit
00cb01b3bd
@ -4,6 +4,7 @@ import fr.xephi.authme.ConsoleLogger;
|
|||||||
import fr.xephi.authme.security.crypts.description.AsciiRestricted;
|
import fr.xephi.authme.security.crypts.description.AsciiRestricted;
|
||||||
import fr.xephi.authme.security.pbkdf2.PBKDF2Engine;
|
import fr.xephi.authme.security.pbkdf2.PBKDF2Engine;
|
||||||
import fr.xephi.authme.security.pbkdf2.PBKDF2Parameters;
|
import fr.xephi.authme.security.pbkdf2.PBKDF2Parameters;
|
||||||
|
import fr.xephi.authme.util.StringUtils;
|
||||||
|
|
||||||
import javax.xml.bind.DatatypeConverter;
|
import javax.xml.bind.DatatypeConverter;
|
||||||
|
|
||||||
@ -31,8 +32,8 @@ public class CryptPBKDF2Django extends HexSaltedMethod {
|
|||||||
try {
|
try {
|
||||||
iterations = Integer.parseInt(line[1]);
|
iterations = Integer.parseInt(line[1]);
|
||||||
} catch (NumberFormatException e) {
|
} catch (NumberFormatException e) {
|
||||||
ConsoleLogger.logException("Could not read number of rounds in '" + hashedPassword.getHash()
|
ConsoleLogger.showError("Could not read number of rounds for CryptPBKDF2Django:"
|
||||||
+ " for CryptPBKDF2Django", e);
|
+ StringUtils.formatException(e));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
String salt = line[2];
|
String salt = line[2];
|
||||||
|
Loading…
Reference in New Issue
Block a user