Recursive encrypting

Anonymous Sender anonymous@remailer.metacolo.com
Thu Aug 7 11:31:01 2003


Bob Metelsky:
> Can someone tell me how I can recursively encrypt files and directories

If you are on a unix box, use 'find' to encrypt your files.

 $ find /some/path -type f -exec /path/to/my_script \{\} \;


where my_script contains:
#!/bin/sh
# if everything goes as planned, the original files get deleted.
gpg -e -r my_encryption_keyid "$1" && rm -f "$1"


For a wholesale encryption of directories use 'cfs'.