Linux – Encrypt files

You want to create encrypted compressed file?

Nothing simpler !

*** The idea of a lot of application inside Linux is “one task – one application”. ***

Making encrypted archive file:

tar cz folder_to_encrypt | openssl enc -aes-256-cbc -e > out.tar.gz.enc

Extract encrypted file:

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


Thanks to using this method we have two value “password” and encrypt method, which we can change thanks to openssl library.

Leave a Reply

Your email address will not be published. Required fields are marked *