return getSecret(18);
}
- static byte[] createGroupId() {
- return getSecretBytes(16);
- }
-
- static byte[] createUnrestrictedUnidentifiedAccess() {
- return getSecretBytes(16);
+ static byte[] createStickerUploadKey() {
+ return getSecretBytes(32);
}
private static String getSecret(int size) {
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;