I'm making an application that needs encrypt/decrypt GPG messages but it needs generate its own keys (public/private).
I'm using ObjectivePGP and it works great, but it doesn't generate the keys by itself (or I don't know how to do it), so I need to generate it via command line with gpg or some online tools.
My question is: Is there some way to create these keys inside my app? Maybe some framework with appstore friendly license.
Notes:
I've tried with UNNetPGP
, but it doesn't work when I try to encrypt messages with public keys generated by other applications or decrypt messages encrypted by these applications. I have even tried just use UNNetPGP
just to generate the keys and import them to ObjectivePGP
, but I receive messages like "Decrypt key doesn't exist" or similar (this doesn't happen when I use another keys).