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