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
/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?