Password Protect Tar.gz File -
tar -czvf - : Creates the compressed archive and sends it to "stdout" (the pipe).
To extract the file:
To decrypt the file:
7z a -pthepassword -mhe=on -t7z secure.7z /path/to/folder password protect tar.gz file
#!/bin/bash # Usage: ./secure-tar.sh <directory> <output_name> tar -czvf - : Creates the compressed archive
If you want, I can: