libtd-ktx / kotlinx.telegram.coroutines / setDatabaseEncryptionKey
setDatabaseEncryptionKey
suspend fun
TelegramFlow
.setDatabaseEncryptionKey(newEncryptionKey:
ByteArray
?):
Unit
Suspend function, which changes the database encryption key. Usually the encryption key is never changed and is stored in some OS keychain.
Parameters
newEncryptionKey
- New encryption key.