I am looking for advice regarding compressing and encrypting files on a Linux system. At the moment I'm using 7-Zip (the 7z
package) using the following parameters:
sudo 7z a -t7z -m0=lzma2 -mx=9 -mfb=64 -md=32m -ms=on -mhe=on -p"passw0rd" "file.7z" "folder/"
This will compress and encrypt a folder named folder
into a file called file.7z
. It will be password protected with the password passw0rd
. Is this sufficient? I want something that's secure when I make data backups. I understand it's only as secure as my password too, but are there better ways of doing this? I also want something that compresses well.
The command above will also hide file names in the archive unless the file has been unlocked using the specified password. It uses LZMA2 and an "ultra" level of compression.
If you have any suggestions, please provide full commands here so that everyone here can learn. Most tools have a lot of different parameters that must be set. Simply saying "use xyz..." leaves room for more questions if you do not provide real examples.
Thanks in advance!