#!/bin/sh
# massdecrypt <crypt key>
# Shell script by Daark.  The creators of PGP had nothing to do with
# this script.
# This is a script to go through your CURRENT DIRECTORY and decrypt them
# all after a sticky situation is over.

# YOU MUST HAVE YOUR ENVIRONMENTAL VARIABLE SET:
# setenv PGPPASSFD 0

case "$1" in
"") echo "Usage: massdecrypt <crypt key>" 1>&2 ;exit 0
esac

find . -type f -maxdepth 1 -print > pgptmpfileslist

for filename in `cat pgptmpfileslist` 
do
  echo $1 | pgp $filename  
done

wipe -d pgptmpfileslist
wipe -d pgptmpfileslist.pgp