Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add optional file encryption #2

Open
Arturro43 opened this issue Sep 29, 2021 · 3 comments
Open

Add optional file encryption #2

Arturro43 opened this issue Sep 29, 2021 · 3 comments

Comments

@Arturro43
Copy link

A nice addition would be to add the ability to encrypt files (e.g. using AES256) to achieve a zero-knowledge cloud out of Telegram's cloud storage.

@ilbertt
Copy link
Owner

ilbertt commented Sep 29, 2021

Would be nice, but where should you/the bot save the encryption key? It could not be other than the chat (as it happens now with filesystem) to avoid data go outside Telegram, but this doesn't end in a real zero-knowledge application.
Also, according to this FAQ, Telegram already keeps encrypted all your data from third parties.

Anyway @Arturro43, do you have an idea on how to achieve your suggestion? If yes, feel free to open a PR!

@Arturro43
Copy link
Author

I don't have programming skills, but my friend told me, that "homomorphic encryption" which allows to perform an operation on encrypted data without decrypting them in such a way that the result is identical to that which would be obtained if the operation were performed on unencrypted data

So, for example, the sender sends an encrypted key to the bot, the bot performs a homomorphic operation on the key whose argument is a symmetric key and sends back.

The sender decrypts and compares what he has received with the input data and in this way they determine the symmetric key.

https://github.com/jonaschn/awesome-he

@ilbertt
Copy link
Owner

ilbertt commented Sep 30, 2021

Maybe it could work, but the user would have the responsibility to safely store the key

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants