Ad uuid to ubot production

This commit is contained in:
7cc5c4f330d47060 2024-10-03 22:12:12 -04:00
parent af4d014b87
commit fc9151f2f8
Signed by: 7cc5c4f330d47060
SSH key fingerprint: SHA256:e+4tcZut1nBpe10PqjaO+Rvie0Q7W4qIvFzcUw+7riA

View file

@ -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 + ":" + 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);