Encrypt:
tar cz folder_to_encrypt | openssl enc -aes-256-cbc -e > out.tar.gz.enc
Decrypt:
openssl enc -aes-256-cbc -d -in out.tar.gz.enc | tar xz
Reference: https://superuser.com/questions/162624/how-to-password-protect-gzip-files-on-the-command-line
No comments:
Post a Comment