Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decrypt pdf file with public key on iOS #25

Open
bechirghodbane opened this issue Jun 30, 2016 · 0 comments
Open

Decrypt pdf file with public key on iOS #25

bechirghodbane opened this issue Jun 30, 2016 · 0 comments

Comments

@bechirghodbane
Copy link

bechirghodbane commented Jun 30, 2016

Hello,
I want to encrypt a pdf file with public key before sending it to the server where i can decrypt it with a private key.
Before that, I was using the demo application on ios and I was trying to read pdf file as NSData then generate the encrytion and decryption result in order to validate the output of the hole process , in other words , I wanted to check if the output file after the encrytion and decryption is still a valid pdf file like the original one.
Unfortenetly , it seems that the output file is corrupted since I get this error when I tried to show the final pdf file on a webview .

failed to find `endstream' marker; trying to recover.
FlateDecode: decoding error: invalid bit length repeat.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant