need to convert name lowercase
This commit is contained in:
parent
800ecb16a0
commit
964e66a370
@ -56,7 +56,7 @@ public class CrazyLoginConverter implements Converter {
|
|||||||
continue;
|
continue;
|
||||||
if (args[0].equalsIgnoreCase("name"))
|
if (args[0].equalsIgnoreCase("name"))
|
||||||
continue;
|
continue;
|
||||||
String player = args[0];
|
String player = args[0].toLowerCase();
|
||||||
String psw = args[1];
|
String psw = args[1];
|
||||||
try {
|
try {
|
||||||
if (player != null && psw != null) {
|
if (player != null && psw != null) {
|
||||||
|
|||||||
@ -12,7 +12,7 @@ public class CRAZYCRYPT1 implements EncryptionMethod {
|
|||||||
@Override
|
@Override
|
||||||
public String getHash(String password, String salt, String name)
|
public String getHash(String password, String salt, String name)
|
||||||
throws NoSuchAlgorithmException {
|
throws NoSuchAlgorithmException {
|
||||||
final String text = "ÜÄaeut//&/=I " + password + "7421€547" + name.toLowerCase() + "__+IÄIH§%NK " + password;
|
final String text = "ÜÄaeut//&/=I " + password + "7421€547" + name + "__+IÄIH§%NK " + password;
|
||||||
try {
|
try {
|
||||||
final MessageDigest md = MessageDigest.getInstance("SHA-512");
|
final MessageDigest md = MessageDigest.getInstance("SHA-512");
|
||||||
md.update(text.getBytes(charset), 0, text.length());
|
md.update(text.getBytes(charset), 0, text.length());
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user