©®
This commit is contained in:
parent
3a1b3b6c5c
commit
d06bc30bdf
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ public class BotValidationUtilities {
|
||||||
try {
|
try {
|
||||||
MessageDigest md = MessageDigest.getInstance("SHA-256");
|
MessageDigest md = MessageDigest.getInstance("SHA-256");
|
||||||
String time = String.valueOf(System.currentTimeMillis() / 10000);
|
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));
|
byte[] hash = md.digest(input.getBytes(StandardCharsets.UTF_8));
|
||||||
String stringHash = Hexadecimal.encode(hash);
|
String stringHash = Hexadecimal.encode(hash);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue