egramtel / egram.tel

Crossplatform Telegram client
https://egram.tel
MIT License
372 stars 72 forks source link

Pass encryption key into CheckDatabaseEncryptionKey #20

Open x2bool opened 6 years ago

x2bool commented 6 years ago

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

worldbeater commented 6 years ago

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 (https://github.com/egramtel/egram.tel/issues/22), cache, etc..

x2bool commented 6 years ago

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.

x2bool commented 6 years ago

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