Password Protect Tar.gz File -
tar -czvf - folder_name | gpg -c -o secure_archive.tar.gz.gpg Use code with caution.
If you aren't a fan of the command line, there are other ways to protect your treasures: password protect tar.gz file
Protecting Sensitive Data: Implementing Encryption for formats do not have native, built-in support for password protection. To secure a tar -czvf - folder_name | gpg -c -o secure_archive
Example workflow:
High security (AES-256 by default); no temporary unencrypted files. Cons: Requires the recipient to have GPG installed. To Decrypt and Extract: gpg -d file.tar.gz.gpg | tar -xzf - Use code with caution. Copied to clipboard 2. The Simple Method: Using OpenSSL password protect tar.gz file