This is the standard approach on Linux and Unix systems. It uses symmetric encryption to add a passphrase to your archive. tar -czf - folder_name | gpg -c -o archive.tar.gz.gpg Use code with caution. Copied to clipboard -c: Uses symmetric encryption (prompts for a password). -o: Specifies the output filename. To decrypt and extract: gpg -d archive.tar.gz.gpg | tar -xzf - Use code with caution. Copied to clipboard You will be prompted for the password before extraction. Method 2: Using OpenSSL
How to Encrypt Files and Folders on Linux - Interserver Tips
This is the standard approach on Linux and Unix systems. It uses symmetric encryption to add a passphrase to your archive. tar -czf - folder_name | gpg -c -o archive.tar.gz.gpg Use code with caution. Copied to clipboard -c: Uses symmetric encryption (prompts for a password). -o: Specifies the output filename. To decrypt and extract: gpg -d archive.tar.gz.gpg | tar -xzf - Use code with caution. Copied to clipboard You will be prompted for the password before extraction. Method 2: Using OpenSSL
How to Encrypt Files and Folders on Linux - Interserver Tips