Hello,

 

I am trying to use OpenPGPjs for Decryption of Files. With encrypted HTML
and text Files it works fine. 
But for other filetypes I have issues with generating the message object
with the function fromBinary().



What I do:

I have the link to the File. So I do a http request to that link and get a
Uint8Array back.This Array I cast to an complete String and give it to the
fromBinary(value) function.

OpenPGPjs creates a Message Object and also the decryption does openpgpjs
but the result is not correct. I don’t get the original file I just have the
binary data as before the decryption.
In my case the original File is a .pdf or a .png/.jpg. 

So my question is how must I convert my byteArray that this function will
work fine?

Greetings from Germany,

Christian Bechtluft 

 

Verschlüsseln Sie Ihre E-Mails mit gpg4o für Outlook | Encrypt your email
with gpg4o

----------------------------------------------------------------------------
---------------------------------------

Christian Bechtluft

Auszubildender

 

Giegerich & Partner GmbH  

Robert-Bosch-Straße 18 | D-63303 Dreieich

Tel. +49 6103 5881-42 | Fax +49 6103 5881-39

 <mailto:[email protected]> [email protected] |
<http://www.giepa.de/> http://www.giepa.de 

 

Geschäftsführer: Dipl.-Ing. (TU) Hans-Joachim Giegerich

Amtsgericht Offenbach/Main | HRB 33236

----------------------------------------------------------------------------
---------------------------------------

 



----------------------------------------------------------------------------
---------------------------------------

 

_______________________________________________

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

Reply via email to