©®
This commit is contained in:
parent
fc9151f2f8
commit
2e4809e9fe
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ public class BotValidationUtilities {
|
|||
try {
|
||||
MessageDigest md = MessageDigest.getInstance("SHA-256");
|
||||
String time = String.valueOf(System.currentTimeMillis() / 10000);
|
||||
String input = "babyboom:" + key + ":" + client.player.getUuidAsString() + command.replaceAll("&[0-9a-fklmnor]", "") + ":" + time;
|
||||
String input = "babyboom:" + key + ":" + client.player.getUuidAsString() + ":" + command.replaceAll("&[0-9a-fklmnor]", "") + ":" + time;
|
||||
byte[] hash = md.digest(input.getBytes(StandardCharsets.UTF_8));
|
||||
String stringHash = Hexadecimal.encode(hash);
|
||||
|
||||
|
|
Loading…
Reference in a new issue