Be careful: If you create secret.tar.gz first, then encrypt it, the original unencrypted secret.tar.gz might still be on your disk. Always shred or securely delete the plaintext version.
7-Zip uses strong AES-256 encryption and is highly compatible across Windows, Linux, and macOS. 7z a -p -mhe=on secure_archive.7z folder_name Use code with caution. Copied to clipboard -p : Prompts for a password. password protect tar.gz file