0

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

rkosegi
  • 14,165
  • 5
  • 50
  • 83
theB
  • 2,048
  • 2
  • 20
  • 29
  • 1
    PGP is a high-level message encryption framework. The lower-level cryptographic primitives on which it builds are implemented for example by OpenSSL, which provides more idiomatic network communication solutions than PGP that use the same cryptographic ideas nonetheless. For instance, SSL itself may just be your answer. – Kerrek SB Jun 13 '12 at 07:59
  • 1
    yes it is. I started using openssl. But here I am facing many problem. I will come to stackoverflow always whenever I am having trouble. Here is one http://stackoverflow.com/questions/11046513/rsa-private-encrypt-always-fails. Please help me in that issue too. – theB Jun 15 '12 at 07:43

1 Answers1

7

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

There also GnuTLS or well known OpenSSL library.

rkosegi
  • 14,165
  • 5
  • 50
  • 83