neuhalje / bouncy-gpg

Make using Bouncy Castle with OpenPGP fun again!
https://neuhalje.github.io/bouncy-gpg/
Other
205 stars 58 forks source link

A way to encrypt with just a public key #44

Open thasaleni opened 4 years ago

thasaleni commented 4 years ago

Describe the bug it is normal for third parties to give you a public key to encrypt a file you will send to them, i.e: they don't give you anything else, and the key is not signed. Currently the library requires a recipient address (which if I understand correctly is to search for the public key?) But you don't really need to search as if you are given a public key file you will only have that public key in the file and nothing else. To Reproduce Steps to reproduce the behavior (code sample) Try and encrypt a file with just a unsigned public key, and no recipient address Expected behavior A clear and concise description of what you expected to happen. You should be able to encrypt a file with just the public key as available, official GPG tools can do that without any problem, but if you want to automate that with code this library constrains you

System (please complete the following information):

ispringer commented 4 years ago

See also #27, which I think would also cover this issue.