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

gpg vs gpg2 differences can cause issue in some specific cases #1

Open
balos1 opened this issue Jan 9, 2017 · 3 comments
Open

gpg vs gpg2 differences can cause issue in some specific cases #1

balos1 opened this issue Jan 9, 2017 · 3 comments
Assignees

Comments

@balos1
Copy link
Owner

balos1 commented Jan 9, 2017

There are systems that currently have two GnuPG versions at the same time, with binaries named gpg and gpg2. In some specific cases, like using x25519 keys, the script fails because of this.

@balos1 balos1 added the bug label Jan 9, 2017
@balos1 balos1 self-assigned this Jan 9, 2017
@balos1
Copy link
Owner Author

balos1 commented Jan 18, 2017

First off, I still need to explore that actual issue more.

One possible solution is to use the official GnuPG python bindings. However, the con to this is that the bindings are a pain to build and install. Prebuilt binaries of easy-gpg-to-paper would be a necessity in this case to maintain "easy".

A better solution is to probably pipe a key directly into easy-gpg-to-paper for exporting and to pipe a reassembled key to stdout for importing. Then the script is totally independent of gpg. Usage of the script would then be something like:

gpg --export-secret-key | gpg2paper.py export -png -o my-key.png
gpg2paper.py import -png -i my-key*.png | gpg --import

@DancingQuanta
Copy link

I perfer the piping method. This should allow the user to take in account of their current gpg software. On Ubuntu you usually have gpg and gpg2 together, which often confuse various programs to no end.

@balos1
Copy link
Owner Author

balos1 commented Nov 24, 2017

@DancingQuanta I agree. I plan on adding this feature in the coming weeks. If you have any suggestions or requests besides this, feel free to open up an issue. Thank you for your input!

@balos1 balos1 added enhancement and removed bug labels Nov 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants