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

A way to encrypt with just a public key #44

Open
thasaleni opened this issue Mar 31, 2020 · 1 comment
Open

A way to encrypt with just a public key #44

thasaleni opened this issue Mar 31, 2020 · 1 comment

Comments

@thasaleni
Copy link

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):**

  • Device: [e.g. iPhone6]
    Lenovo Thinkpad

  • OS: [e.g. Linux]
    Windows 10

  • Java [output of java -version]
    java version "1.8.0_231"
    Java(TM) SE Runtime Environment (build 1.8.0_231-b11)
    Java HotSpot(TM) 64-Bit Server VM (build 25.231-b11, mixed mode)

  • Version [e.g. 2.2.0]
    2.2.0
    Additional context
    Add any other context about the problem here.

@ispringer
Copy link
Contributor

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

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

2 participants