Decryption streaming

David Shaw dshaw at jabberwocky.com
Tue May 12 16:20:05 CEST 2009


On May 8, 2009, at 5:30 PM, Coffman, Beth C wrote:

> What is a good way to write a C++ app to decrypt multiple large PGP- 
> encrypted files simultaneously into memory?  I cannot have the  
> plaintext output in a file on disk at any time.  Preferably, one  
> block of data from the file will be decrypted at a time.  Therefore,  
> the entire file or files will not need to reside in memory.

GPG (the program) can decrypt as a stream.  You can either write a  
program that wraps around it, or use the GPGME library to do the work  
for you.

David




More information about the Gnupg-users mailing list