Refactor sticker upload

This commit is contained in:
AsamK 2020-03-23 13:18:39 +01:00
parent 23845eab47
commit 4ff28458ff
4 changed files with 76 additions and 103 deletions

View file

@ -34,6 +34,10 @@ class KeyUtils {
return getSecretBytes(16);
}
static byte[] createStickerUploadKey() {
return getSecretBytes(64);
}
private static String getSecret(int size) {
byte[] secret = getSecretBytes(size);
return Base64.encodeBytes(secret);