4

Is there a library to create OpenPGP keys, or to encrypt a file using OpenPGP?

apaderno
  • 28,547
  • 16
  • 75
  • 90

2 Answers2

3

You can look at GPGMe. See the manual entries on generating keys and encrypting a plain-text.

There are Objective-C bindings, but you could also just use it directly.

Matthew Flaschen
  • 278,309
  • 50
  • 514
  • 539
  • GPGMe is GPL3, I think this is not compatible with AppStore policy. – Marcin Sep 25 '13 at 12:49
  • 1
    @Marcin, the question said nothing about the Mac App Store. Distributing Mac apps directly is still possible. – Matthew Flaschen Sep 25 '13 at 21:57
  • 1
    @Marcin, and it seems to be under LGPLv2.1 not GPLv3. See http://www.gnupg.org/documentation/manuals/gpgme/ . It says, "The GNU Lesser General Public License says how you can copy and share `GnuPG Made Easy'." (GPGME) and links to http://www.gnupg.org/documentation/manuals/gpgme/Library-Copying.html#Library-Copying – Matthew Flaschen Sep 25 '13 at 22:10
  • sure, this is just notification that it may be problematic with AppStore. Isn't it that any GPL is disallowed ? I think so. – Marcin Sep 26 '13 at 10:19
2

There is another project: ObjectivePGP for iOS and OSX

Marcin
  • 3,694
  • 5
  • 32
  • 52