Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^4: using a pipe

by drock (Beadle)
on Dec 30, 2005 at 19:48 UTC ( #520053=note: print w/replies, xml ) Need Help??


in reply to Re^3: using a pipe
in thread using a pipe

ok thank you soo much, but I am getting this error upon a manual decryption it tell me this:
C:\Program Files\GNU\GnuPG>gpg --passphrase-fd=ohiohea1th_is --decrypt + --output decrypted.txt tstfil e.asc Reading passphrase from file descriptor 0 ... You need a passphrase to unlock the secret key for user: "derek smith" 2048-bit ELG-E key, ID 985DB557, created 2005-12-30 (main key ID 4A673 +EF3) gpg: encrypted with 2048-bit ELG-E key, ID 985DB557, created 2005-12-3 +0 "derek smith" gpg: public key decryption failed: bad passphrase gpg: decryption failed: secret key not available
####### and with
--passphrase-fd= open (PASS, "+<$pass") using . fileno(PASS) I get this error: Reading passphrase from file descriptor 3 ... You need a passphrase to unlock the secret key for user: "derek smith" 2048-bit ELG-E key, ID 985DB557, created 2005-12-30 (main key ID 4A673 +EF3) gpg: encrypted with 2048-bit ELG-E key, ID 985DB557, created 2005-12-3 +0 "derek smith" gpg: public key decryption failed: bad passphrase gpg: decryption failed: secret key not available Press any key to continue . . .
####### I know my passphrase is right b/c I executed:
C:\Program Files\GNU\GnuPG>echo ohiohea1th_is|gpg --passphrase-fd=0 -- +decrypt --output decrypted.txt tstfile.asc Reading passphrase from file descriptor 0 You need a passphrase to unlock the secret key for user: "derek smith" 2048-bit ELG-E key, ID 985DB557, created 2005-12-30 (main key ID 4A673 +EF3) gpg: encrypted with 2048-bit ELG-E key, ID 985DB557, created 2005-12-3 +0 "derek smith" C:\Program Files\GNU\GnuPG>dir Volume in drive C is IBM_PRELOAD Volume Serial Number is 2863-8FD9 Directory of C:\Program Files\GNU\GnuPG 12/30/2005 02:49 PM <DIR> . 12/30/2005 02:49 PM <DIR> .. 12/30/2005 02:49 PM 15 decrypted.txt
and it worked!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://520053]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2023-02-06 12:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer not to run the latest version of Perl because:







    Results (34 votes). Check out past polls.

    Notices?