Tar and encrypt: tar cz <dir>/ | openssl enc -aes-256-cbc -pbkdf2 -iter 10000 -e > out.tar.gz.enc
tar cz <dir>/ | openssl enc -aes-256-cbc -pbkdf2 -iter 10000 -e > out.tar.gz.enc
Decrypt:openssl enc -aes-256-cbc -d -in out.tar.gz.enc | tar xz
openssl enc -aes-256-cbc -d -in out.tar.gz.enc | tar xz