. You will be prompted to enter and verify a passphrase. This creates a new file ending in To decrypt: gpg -d filename.tar.gz.gpg Using OpenSSL
The -f - tells tar to output to stdout, which GPG then encrypts.
GPG is the most common method on Linux and macOS. It uses strong AES encryption by default. To encrypt: Use the command gpg -c filename.tar.gz
None of these compression algorithms have built-in encryption. To add a password, you need a second layer of tooling. Think of it like a cardboard box ( tar ) wrapped in plastic ( gzip ) – you can't put a lock on either. You need a lockbox ( encryption ) to put the whole package inside.
Regardless of the method you choose, follow these rules:
gpg --symmetric existing_file.tar.gz
. You will be prompted to enter and verify a passphrase. This creates a new file ending in To decrypt: gpg -d filename.tar.gz.gpg Using OpenSSL
The -f - tells tar to output to stdout, which GPG then encrypts.
GPG is the most common method on Linux and macOS. It uses strong AES encryption by default. To encrypt: Use the command gpg -c filename.tar.gz
None of these compression algorithms have built-in encryption. To add a password, you need a second layer of tooling. Think of it like a cardboard box ( tar ) wrapped in plastic ( gzip ) – you can't put a lock on either. You need a lockbox ( encryption ) to put the whole package inside.
Regardless of the method you choose, follow these rules:
gpg --symmetric existing_file.tar.gz