diff --git a/Client/src/main/java/com/baseband/client/util/misc/Trypt.java b/Client/src/main/java/com/baseband/client/util/misc/Trypt.java index eaa4d29..a6616b7 100644 --- a/Client/src/main/java/com/baseband/client/util/misc/Trypt.java +++ b/Client/src/main/java/com/baseband/client/util/misc/Trypt.java @@ -39,8 +39,11 @@ public class Trypt { output[newLocation + 1] = (byte) (old ^ salt ^ key[(i++ ^ cRandE.nextInt(0x7fffffff)) % key.length]); } - for (byte b = 0; b < input[cRandE.nextInt(input.length)]; b++) { - cRandE.nextLong(); + for (int i = 0; i < scramble; i++) { + byte b = input[cRandE.nextInt(input.length)]; + for (int j = 0; j < b; j++) { + cRandE.nextLong(); + } } return output; @@ -60,8 +63,11 @@ public class Trypt { output[i] = (byte) (encrypted ^ salt ^ key[(i++ ^ cRandD.nextInt(0x7fffffff)) % key.length]); } - for (byte b = 0; b < output[cRandD.nextInt(output.length)]; b++) { - cRandD.nextLong(); + for (int i = 0; i < scramble; i++) { + byte b = input[cRandD.nextInt(input.length)]; + for (int j = 0; j < b; j++) { + cRandD.nextLong(); + } } return output;