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
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?