From: Dominik Werder Date: 2005-01-29T19:55:51+09:00 Subject: Re: Gnupg and ruby I think I found my problem.. I assumed that gpg expects the data on the command-fd but that seems to be wrong. If I use stdin of the gpg process to write my plaintext it works and I get these error codes I was looking for, here's my code: At the moment it encrypts to the default receiver specified in my gpg options file, therefore no -r switch for the gpg command.. require 'open3' msg=<e puts 'Encryption timeout' end puts success ? 'Decryption OK' : 'Decryption failed'