1

I'm writing a C application and I wanna know if there is a way to view .gpg file content (then the encrypted content). The .gpg file in question concerns a simple .txt file that I encrypted. I know a bit GPGME, it's possible with its function? Or other ways...

EDIT: I thought one thing: if my application use "--armor" option, I've a .gpg file in ASCII mode and not binary...so the .gpg file can be read simply, true? The easiest way...

Marc Mutz - mmutz
  • 24,485
  • 12
  • 80
  • 90
ubuntiano
  • 89
  • 1
  • 1
  • 6

2 Answers2

1

libgcrypt

This is a general purpose cryptographic library based on the code from GnuPG. It provides functions for all cryptograhic building blocks: symmetric ciphers (AES, DES, Blowfish, CAST5, Twofish, Arcfour), hash algorithms (MD4, MD5, RIPE-MD160, SHA-1, TIGER-192), MACs (HMAC for all hash algorithms), public key algorithms (RSA, ElGamal, DSA), large integer functions, random numbers and a lot of supporting functions.

moinudin
  • 134,091
  • 45
  • 190
  • 216
1

You can use GnuPG Made Easy library, here is a mini howto on using it.

ismail
  • 46,010
  • 9
  • 86
  • 95