I had a question. Im trying to backup and encrypt files, but using the more recent aes256 or aes512 encryption.
1) I heard 7z defaults to aes128, I want to use the best one (aes256... i think?), how do i do it?
Here is my command:
cd /mnt/MyBackupHardDrive ;
7z a MyFullComputerBackup-AES256.7z -t7z -m0=lzma2:d1024m -mx=9 -aoa -mfb=64 -md=32m -ms=on /home/MyHomeDirectory
2) Does this automatically encrypt the filenames too?
Thanks for any help you can offer!
It is possible to get AES 256 encryption with 7z and make the archive and filenames only visible with the use of a passphrase. I note that the vital 'passphrase' option is missing from your own command line.
An example, for which I have borrowed liberally from the man pages:
A slightly more secure method is to actually leave the
-p
field blank, then 7z will prompt you to type a password before actually creating the archive.Explanation:
Here is an explanation for those not well versed in the 7z command line:
Testing the archive:
The subsequent archive can be tested with the command
7z l -slt archive.7z
which I demonstrate below:Note the call for a password as well as the notation that gives the encryption as 7zAES:19 aka AES-256 (I have arrowed these points for the sake of clarity).
Caveats:
Note that in the man pages there is a specific warning against using 7z for archival purposes under Linux:
Note as well some limitations and work arounds given in the man pages in regards to the backing up of directories under Linux....