Directory Encryption?

Timm Wimmers timm at ticore.de
Mon Aug 23 16:04:59 UTC 2010


Am 23.08.2010 16:36, schrieb Chris Maness:
> What is a good tool to encrypt a directory?  I need an application
> that is also readily available for Apple OSX, and that does not get
> mangled when transferring via rsync.

How about "openssl'?

Encrypt a TARed directory:

$ tar cjf - /path/to/source/folder | \
openssl enc -e -bf -out OUTFILE.tgz.enc -pass pass:MYSILLYPASS


Decrypt:

$ openssl enc -d -bf           \
     -in OUTFILE.tgz.enc       \
     -out OUTFILE.tgz          \
     -pass pass:MYSILLYPASS

There are also ways to encrypt with keys, see manpage.

-- 
Timm


More information about the freebsd-questions mailing list