Example workflow:
gpg --decrypt myfolder.tar.gz.gpg | tar xzvf - password protect tar.gz file
tar -czvf - folder_name | gpg --symmetric --cipher-algo AES256 -o archive.tar.gz.gpg Use code with caution. Copied to clipboard Example workflow: gpg --decrypt myfolder
: Never use flags like -pass pass:password123 . This leaves your password visible in your shell history ( ~/.bash_history ). Always let the tool prompt you manually. password protect tar.gz file