News for hackers. Stuff that matters.
Re:GnuPG is not a library by papaf on Thursday February 07, 2013 @01:49AM (#5180910)
Doesn't GPGME still wrap the executable and parse its output? If so, I would call it a wrapper rather than a library.

As an example GPG saves its keys in a file. What if you want to put them in a database? Does GPGME allow a developer to do this?

Re:GnuPG is not a library by dfc on Thursday February 07, 2013 @02:12AM (#5180967)
Originally I wrote:

"Does gpg allow you to export and import keys?"

Based on the comment below it seems my sarchasm was not evident. I should have written:

"Are you asking if gpg can import or export keys?"

Re:GnuPG is not a library by shared4you on Thursday February 07, 2013 @02:27AM (#5180998)
EDIT: Ah ok, sorry English is not my native language, so I didn't get the sarcasm at first :)

Export a public key: gpg --export -a "UserName" > public.key

Export a private key: gpg --export-secret-key -a "UserName" > private.key

Import a public key: gpg --import public.key

Import a private key: gpg --allow-secret-key-import --import private.key