Binary files are encrypted using AES, signed and sent as an attachment. The
AES key is also sent as an attachment that is encrypted with the recipient's
public key.

 

The recipient decrypts the AES key with his private key, and then uses AES
key to decrypt the binary file.

 

Hope that helped.

 

Michael Vaughn

Fastdata2go.com

 

From: [email protected] [mailto:[email protected]] On
Behalf Of Barry de Graaff
Sent: Tuesday, April 21, 2015 12:11 AM
To: OpenPGP.js Mailing List
Subject: RE: [openpgpjs] Decryption of the binary message

 

I looked for this too, but could not find it, other than some hint in the
Github issues,

 

ended up base64 encoding first, 

 

If anyone knows how to deal with binary files in openpgp, I also like to
know!

> Date: Mon, 20 Apr 2015 19:41:20 +0200
> From: [email protected] <mailto:[email protected]> 
> To: [email protected] <mailto:[email protected]> 
> Subject: [openpgpjs] Decryption of the binary message
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
> 
> Hello
> 
> I am a little lost. Is it possible to decrypt a message which is not
> armored, like a file encrypted with gpg?
> message.fromBinary() creates only one literal package.
> 
> - -- 
> Paweł Górny
> mailto:[email protected] http://pawelgorny.com
> * only way to feel the noise is when it's good and loud *
> 
> In reply please use the key: 0xF0F72044
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
> 
> iQIcBAEBCgAGBQJVNTpAAAoJELu+nPvw9yBEPAcP/3jHtGl8gqfjvHzIPwh4/UAe
> w4lgXmoVl/cuSV+N4vDFjo6PuqlDzeUztnNN080609HzmRgdLmT1OrfnCvAKDIyS
> xpfiHkrRsWc4izOwpS+dP3Ys1o41pKy9FZd4s5fCZQT/jLZLBQqPK2Vv163tJgbZ
> zPdlfyr0RCd7x2chsDz6jzYazx0r8XYD4dCF+AJjvnVjVK1r886uY9NPgcFBRiHd
> 9qUC2OMq3R67oA/a+Mebxb1sA/WlwyCHXi0c4OhxNqVV+jKjNRCstsiauoWdDecv
> AuyZ7em/j91feUhwTx4sbpyG1QTLciFTZ+qs4Lpy6ZoGe1NyFu3nzx7Irctwb/zQ
> GRJqoHvOXh0n9ZnfH37oebgVGRfNJ55Op0yKlB4qk8HtLT41WirPnnwRVPj8FGi7
> XnUKuVqUszAGdRNm5zyJlQe90kJqdzFqX0wevyngKyBRiaL3O3qUd6VUIOAjySfD
> tnqsGzLsgp7Kc3l1X8Q2i50xZAaaW1NrRsTNcwRJwWOgxsxZvLU/z4QmSfv++Jda
> S34ZAvc6YanGHxTUUHNUPamvsTWNXllII399jh8ANJGc3lCZ9f5AqW27GLSpjInn
> uc+7m0Zov5xZa705Rzh9y9sxjkft5ivrnC0UhnFUdRc5C9f9+5KKtale4czbslHA
> 7fDEU/+I2wEegwcecuzb
> =ONpq
> -----END PGP SIGNATURE-----
> _______________________________________________
> 
> http://openpgpjs.org
> Subscribe/unsubscribe: http://list.openpgpjs.org

_______________________________________________

http://openpgpjs.org
Subscribe/unsubscribe: http://list.openpgpjs.org

Reply via email to