Decrypt multiple Encrypted files within a folder
Vlad "SATtva" Miller
sattva at pgpru.com
Thu Oct 30 08:54:06 CET 2008
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 513 bytes
Desc: OpenPGP digital signature
URL: </pipermail/attachments/20081030/1ecbffa2/attachment.pgp>
More information about the Gnupg-users
mailing list