4
I want to create an AES256 encrypted zip of a folder. I am on Mac and I want to create the zip file and store it in an external drive. I want to AES256 encrypt the file in case I lose the external drive, no one can read it.
I am using the command
7za a -tzip '-pPASSWORD' -mem=AES256 personal_data.zip /Users/myuser/personal_data
The directory /Users/myuser/personal_data
has subfolders and files inside it.
When I extract, the directory structure is non retained and it extracts all the content, at the root of place where I extract.
I use below command to extract.
7za e personal_data.zip
I have two questions:
- How can I maintain the directory structure when it extracts?
- Is this the most secure way to store a Zip file with sensitive content on the personal system?
Thank you
Thank you
x
worked. I am planning to create an encrypted zip file and store it in external hard-drive. Do you still think, 7za way of saving file won't be safe? I get your point of.history
. I will read about other options you suggested. Thank you. – user2230605 – 2018-06-17T07:03:34.567Depends on your threat model. It could be "safe enough", should easily stop nosy friends & family, probably businesses, but
gpg
has stumped the biggest governments. The biggest threat IMO with storing an archive that has to be extracted to view is managing the unencrypted data, undeleting files from a drive is easy, and flash drives might quietly swap sectors making real overwriting impossible to verify (and overwriting/shreding doesn't always work on a hard drive either) – Xen2050 – 2018-06-17T07:11:54.567I'd encrypt the entire external drive with LUKS or VeraCrypt (or even a combination for the paranoid, LUKS can be stacked [encrypt a LUKS device with LUKS again] and I think they can stack together too). Then the entire drive (or just a few partitions) is covered in case of loss/theft, and no unencrypted or undelete-able files are lying around either. – Xen2050 – 2018-06-17T07:27:05.080