Gnupg Decryption Question

Werner Koch wk at gnupg.org
Fri Jul 24 13:23:51 CEST 2015


On Thu, 23 Jul 2015 19:11, sbutler at fchn.com said:
> This is a snippet of the script I use to decrypt any file coming to me that has my private key (or my companies private key)
>
>   $DFLT gpg_pass2 \
>   | gpg --homedir $homedir --quiet --passphrase-fd 0 --no-tty --skip-verify \
>         --no-permission-warning --no-mdc-warning --batch  \
>         --output "$oname" --decrypt "$x" > /dev/null 2>&1

If you receive arbitrary data you may want to add

  --max-output SUITABLELARGENUMBEROFBYTES

to avoid a DoS using special crafted compression data.


Shalom-Salam,

   Werner

-- 
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.




More information about the Gnupg-users mailing list