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


Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users

Reply via email to