signalapp / libsignal-protocol-javascript

This library is no longer maintained. libsignal-protocol-javascript was an implementation of the Signal Protocol, written in JavaScript. It has been replaced by libsignal-client’s typesafe TypeScript API.
https://signal.org
GNU General Public License v3.0
1.96k stars 311 forks source link

Encryption of Media Files #79

Open aimanabsi opened 3 years ago

aimanabsi commented 3 years ago

is there a way to encrypt and send media files like pdf,png via this lib?

seanieb commented 3 years ago

Not really. How it's normally done is you encrypt the file using a symmetric encryption method, upload the file to a storage service like s3. Then you send the key and the location of the file to the recipient via the signal library.

aimanabsi commented 3 years ago

then how can i send pdf file using this api lib ?

seanieb commented 3 years ago

If you're just trying trying to send encrypted files I would recommend:

https://github.com/magic-wormhole/magic-wormhole OR using https://github.com/FiloSottile/age

kitlu007 commented 3 years ago

@aimanabsi Hello. Im implementing the libsignal library too in flutter. While text are encrypted, what about media files like images, videos, gifs, docx, pdfs users send toneach other. Arent they encrypted part of the library ? If not , how do i do it ?