Decrypt multiple Encrypted files within a folder

Duwaine Robinson duwainer at srlcd.com
Thu Oct 30 15:47:44 CET 2008


 
Seems easy enough. Happens that I am trying to get this done on windows


-----Original Message-----
From: Vlad "SATtva" Miller [mailto:sattva at pgpru.com] 
Sent: Thursday, October 30, 2008 2:54 AM
To: Duwaine Robinson
Cc: gnupg-users at gnupg.org
Subject: Re: Decrypt multiple Encrypted files within a folder

Duwaine Robinson (29.10.2008 19:11):
> Hi All,
> 
> I would like to be able to create a batch file or a script that allows

> me to decrypt multiple encrypted files within a given folder. Has 
> anyone done this before? Any help would be greatly appreciated.

On Linux that's easy.

To encrypt:
$ find <your_path> -type f -execdir gpg -r <keyID> -e {} \;

To decrypt:
$ find <your_path> -type f -iname '*.gpg' -execdir gpg {} \; (Please
note, that you'll be prompted for the passphrase for every file, unless
you use gpg-agent with passphrase caching or provide passphrase on the
command line.)

> Thank you
> -Duwaine Robinson

--
SATtva | security & privacy consulting
www.vladmiller.info | www.pgpru.com





More information about the Gnupg-users mailing list