My mistake, there should be enum which decides about the header:
openpgp.message.readArmored(openpgp.armor.encode(openpgp.enums.armor.message,
binaryContent));

But yes, it works for me

W dniu 23.04.2015 o 22:34, Tio Oscar pisze:
> this works?
> 
> El jue., 23 de abr. de 2015 a la(s) 3:22 p. m., Paweł Górny
> <[email protected] <mailto:[email protected]>> escribió:
> 
> 
>     yep, I had to do it too.
> 
>     var message =
>     openpgp.message.readArmored(openpgp.armor.encode(binaryContent));
> 
> 
>     W dniu 21.04.2015 o 07:11, Barry de Graaff pisze:
>     > 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
>     >>
>     > 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.
>     >
>     >> _______________________________________________
>     >>
>     >> http://openpgpjs.org
>     >> Subscribe/unsubscribe: http://list.openpgpjs.org
>     >
>     >
>     > _______________________________________________
>     >
>     > http://openpgpjs.org
>     > Subscribe/unsubscribe: http://list.openpgpjs.org
>     >
> 
>     --
>     Paweł Górny
>     mailto:[email protected] <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
>     _______________________________________________
> 
>     http://openpgpjs.org
>     Subscribe/unsubscribe: http://list.openpgpjs.org
> 
> 
> 
> _______________________________________________
> 
> http://openpgpjs.org
> Subscribe/unsubscribe: http://list.openpgpjs.org
> 


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

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

Reply via email to