need example of passing clear text to gpg from another app without using temp files

Dave (My-IOP) dave at
Mon Feb 11 22:30:17 CET 2008

I want to pass clear text from a text editor to gpg for encryption (on a
Linux system). Currently it is being done by writing the clear text to a
temp file and having gpg read that temp file and then write it back out as
an encrypted file. Obviously, it would be much better to avoid ever writing
the clear text to disk.

How can I pass the clear text to gpg via a pipe and avoid using the temp
file on disk?

I am a noob (to both Linux and gpg), so a very clear example is greatly

-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/attachments/20080211/921567a3/attachment.htm>

More information about the Gnupg-users mailing list