return getSecret(18);
}
- static byte[] createGroupId() {
- return getSecretBytes(16);
- }
-
static byte[] createStickerUploadKey() {
return getSecretBytes(32);
}
return Base64.encodeBytes(secret);
}
- private static byte[] getSecretBytes(int size) {
+ static byte[] getSecretBytes(int size) {
byte[] secret = new byte[size];
RandomUtils.getSecureRandom().nextBytes(secret);
return secret;