Decrypting Files Automatically

Brian brian at nixthis.com
Thu Aug 31 17:16:45 CEST 2006


I am using something like this.

gpg --passphrase-fd 0 -o "New File" -d "File Name.gpg" <passphrase.txt

In a batch file you may need to add some or all of the following:
--batch
--yes
--trust-model always

BharatG wrote:

>Hi Johan,
>Thank you for the suggestion. I do not have any space in between passpharse
>and pipe sign and my passphrase does not contain any newline/return.
>Thank you.
>Bharat.
>
>Johan Wevers wrote:
>  
>
>>BharatG wrote:
>>
>>    
>>
>>>type passphrase | gpg --passphrase-fd 0 --decypt-file "File Name"
>>>in my case it looks like:
>>>type "C:\SampleProjects\GnuPGDotNet\GnuPG\passphrase.txt" | gpg
>>>--passphrase-fd 0 decrypt-files "C:\DocLib\EncryptedFile\Clock1.swf.gpg"
>>>      
>>>
>>Peculiarity with windows dealing with pipes. There should not be a space
>>between the passphrase and the pipe sign.
>>
>>BTW, I don't know if the file contains a newline/retrun either, otherwise
>>that might also cause problems.
>>
>>-- 
>>ir. J.C.A. Wevers         //  Physics and science fiction site:
>>johanw at vulcan.xs4all.nl   //  http://www.xs4all.nl/~johanw/index.html
>>PGP/GPG public keys at http://www.xs4all.nl/~johanw/pgpkeys.html
>>
>>_______________________________________________
>>Gnupg-users mailing list
>>Gnupg-users at gnupg.org
>>http://lists.gnupg.org/mailman/listinfo/gnupg-users
>>
>>
>>    
>>
>
>  
>



More information about the Gnupg-users mailing list