Password Protect Tar.gz File -

7z x -p encrypted.tar.gz

Attempting to "protect" a tar.gz file by simply renaming it or hoping that compression obfuscates the data provides . Compression is about size, not secrecy. password protect tar.gz file

Users who already use GPG for email or file signing, or who need public-key cryptography. 7z x -p encrypted

A better approach: create a .7z archive directly from source (which supports internal encryption): password protect tar.gz file