I'm launching a course about Next.js + React.jsLearn more

Creating password protected gzip files from command line

2015-06-06 · 1 min read

In order to create a password protected gzip file from the command line we can use openssl (symetric encryption)

To encrypt

tar cz my_folder/ | openssl enc -aes-256-cbc -e > encrypted.tar.gz.enc

To decrypt and untar

openssl aes-256-cbc -d -in encrypted.tar.gz.enc | tar xz

My Tech Newsletter

Get emails from me about programming & web development. I usually send it once a month