Hi,
I am looking for some tutorial or examples on how to encrypt and decrypt files using gpg (public/private key).
I am writing the code in C++ on debian platform.
This is from the Gnu site, and you should be able to call these functions.
GnuPG Made Easy
GPGME (GnuPG Made Easy) is a C language library that allows to add support for cryptography to a program. It is designed to make access to public key crypto engines like GnuPG or GpgSM easier for applications. GPGME provides a high-level crypto API for encryption, decryption, signing, signature verification and key management
Libgcrypt
Libgcrypt is GNU's basic cryptographic library.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.