egramtel/egram.tel

Pass encryption key into CheckDatabaseEncryptionKey

x2bool opened this issue · 3 comments

CheckDatabaseEncryptionKey takes encryption key as a parameter. Database should be encrypted and the key somehow should be stored on computer (OS-specific key storage???).

Speaking of local storage, personally I would advise either of these packages: Realm, LiteDB. Perhaps, OS-specific key storage would be more secure (not sure about this), but anyway we need to store preferences, settings (#22), cache, etc..

Usually the encryption key is never changed and is stored in some OS keychain

From TdLib Docs

I thinks this means there is some OS-specific keychain where encryption keys are usually stored.

Yeah we are gonna need some DB. I am up to anything really. I didn't try Realm, but it looks cool.