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?
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?