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

Can't decrypt flutter-openpgp encrypted content with bouncycastle.openpgp #19

Open
volmus opened this issue Dec 10, 2020 · 2 comments
Open
Labels
bug Something isn't working question Further information is requested

Comments

@volmus
Copy link

volmus commented Dec 10, 2020

Hi!

I'm encrypting content with flutter-openpgp and trying to decrypt it in a java application using bouncycastle openpgp.

Bouncycastle openpgp throws this error:

java.lang.ClassCastException: org.bouncycastle.openpgp.PGPLiteralData cannot be cast to org.bouncycastle.openpgp.PGPCompressedData
java.lang.ClassCastException: org.bouncycastle.openpgp.PGPLiteralData cannot be cast to org.bouncycastle.openpgp.PGPCompressedData

I can decrypt the content using linux cli tools, so the content should be fine. Is there a way to encrypt content with flutter-openpgp so that it becomes PGPCompressedData instead of PGPLiteralData?

Thank you!

@jerson
Copy link
Owner

jerson commented Dec 11, 2020

Hi @volmus thanks for report the issue, I have not tried in java with that library, but I think I can help to make it work, would be great if you could share a small java project with a single call to decrypt, so if you have something like that should be great, from my side im gonna be testing with more options for encrypt method

@volmus
Copy link
Author

volmus commented Dec 11, 2020

Can I send you the java project via mail? Could you tell me your adress?

@jerson jerson added bug Something isn't working question Further information is requested labels May 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants