encrypt: tar cfz - test | openssl enc -aes-256-cbc -e -a -k test -salt > test.tar.gz
decrypt: openssl enc -d -aes-256-cbc -a -k test -in test.tar.gz | tar zxf -
decrypt to folder openssl enc -d -aes-256-cbc -a -k test -in test.tar.gz | tar zxf - -C test2
decrypt to folder and remove the specified number of leading path openssl enc -d -aes-256-cbc -a -k test -in test.tar.gz | tar vzxf - -C test2 --strip-components 1
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.