Nheko-Reborn / mtxclient

Client API library for Matrix, built on top of libcurl
MIT License
40 stars 25 forks source link

File encryption #20

Closed deepbluev7 closed 4 years ago

deepbluev7 commented 5 years ago

This implements the bits needed for file encryption and decryption and adds the EncryptedFile members to their respective events. I am not good with crypto, so this could be insecure, but it works for decryption at least (see the test I added). Encryption seems to work with nheko and inspecting the events, they seem to be okay.

Does returning a BinaryBuf make sense? Or should we return a string?