Search code examples
cpublic-key-encryptionpgp

PGP library for C


I am developing an client server communication application in C. I want to encrypt the messages between then using some public key encryption. I found PGP (pretty good privacy) is a good policy. So is there any library available for embedding PGP with my application. I need key generation, text message encryption (maximum 1024 byte length text), message decryption.

Thanks in advance


Solution

  • You should take a look at GPG (GNU alternative to PGP).

    There also GnuTLS or well known OpenSSL library.