Instructions on how to Zip and Encrypt a file or folder: Difference between revisions

From ADA Public Wiki
Jump to navigation Jump to search
(Undo revision 295 by Dahaddican (talk))
(Undo revision 298 by Dahaddican (talk))
Line 14: Line 14:
  3. Open the 'Terminal' App from within the 'Utilities' Folder.
  3. Open the 'Terminal' App from within the 'Utilities' Folder.
[[File:Terminal App default text string.png|250px|right]]
[[File:Terminal App default text string.png|250px|right]]
When the Terminal App opens, you will see a default string of text like this: Mac-Pro:~ name$. This is your Mac's name, directory location and your account username. It will be there before every command that you enter.
When the Terminal App opens, you will see a default string of text like this: Mac-Pro:~ name$ (see image opposite). This is your Mac's name, directory location and your account username. It will be there before every command that you enter.
 
In this example, I have a file on my desktop that I want to put in a password protected .zip file.
 
4. Type in the Terminal field the following text zip -ej
 
The command "zip -ej " (including a space after the word zip and after the letter j) will tell the Terminal that you want to create a zip archive (zip) with encryption (e) and no file paths (j).
 
Now you need to tell Terminal where to save the zip file and what name to give it. It is easiest to use your desktop.
 
5. Type in the Terminal field the following text ~/Desktop/File_Name.zip where any spaces in your file name should be replaced with an underscore





Revision as of 03:59, 19 September 2019

The guidance below will provide you with the details to zip and encrypt your files with a password prior to uploading them to the 'Shell Dataset'.

Mac OS Users

The 7-Zip Software is not available for Apple Mac OS users. You should therefore use the Apple Compression and Password Protection tools to create a password protected .zip archive file prior to upload. The archived file can then be accessed by other users with free software such as TheUnarchiver.

File Compression and Password Protection Guidance Notes using Mac OS

For Mac OS users, it is recommended that the standard Apple software be used to compress and password encrypt your files. The following steps can be followed to do this.

1. Click Command + Shift + A to open the 'Applications' Folder or navigate to this folder through the 'Finder'.
2. Open the 'Utilities' Folder within the 'Applications' Folder.
3. Open the 'Terminal' App from within the 'Utilities' Folder.

When the Terminal App opens, you will see a default string of text like this: Mac-Pro:~ name$ (see image opposite). This is your Mac's name, directory location and your account username. It will be there before every command that you enter.

In this example, I have a file on my desktop that I want to put in a password protected .zip file.

4. Type in the Terminal field the following text zip -ej

The command "zip -ej " (including a space after the word zip and after the letter j) will tell the Terminal that you want to create a zip archive (zip) with encryption (e) and no file paths (j).

Now you need to tell Terminal where to save the zip file and what name to give it. It is easiest to use your desktop.

5. Type in the Terminal field the following text ~/Desktop/File_Name.zip where any spaces in your file name should be replaced with an underscore


The Compression and Encryption will help to ensure that your data remains protected during the file upload process. It also ensures that the files formatting is retained and prevents Dataverse from adding functionality that the ADA do not utilise at the current time.

Non Mac OS Users

For non Mac OS users, it is recommended by the ADA that all data files and certain supporting documents be encrypted using the 7-Zip open source software. This software is used by the ADA Staff and is free. This ensures that the files and folders are protected from unauthorised disclosure during the Dataverse upload process. The software creates a container called ‘archive’ that holds the files requiring protection. That archive container can then be encrypted and password protected. Copies of the software can be obtained via the links at https://www.7-zip.org/.

File Zipping and Encryption Guidance Notes using 7-Zip

1. Right click on the file to be encrypted and select “7-Zip” and then the “Add to archive…” option. 
2. In the Add to Archive window, change the name of the archive that you wish to create if the name differs from the file name selected. 
3. Change the Archive format to “Zip”.  
4. Change the Encryption Method to “AES-256”. There is a trade-off to be had between selecting AES-256 and ZipCrypto. AES-256 has been proven to be much more secure than ZipCrypto, but if you select AES-256 then the recipient of the zip file may also then have to install 7-Zip or another suitable program to read the file contents. The selection of ZipCrypto may allow users to open the zip file in Windows without a zip program, but it lacks in adequate protection when compared to AES-256. Since the ADA use 7-Zip, and the software is open source, it is the recommended encryption service for the Self-Deposit process. 
5. At this point, you will be prompted to enter a Password. Use a strong password with at least 8 characters containing both upper and lower case letters, and a minimum of one number. Then select “OK” to create the encrypted archive file. This file will be located in the same folder or area as the original file. It is the addition of the password in this process that prevents Dataverse from undoing the zip, maintaining the original formatting and preventing the creation of the 'Explorer' function. If you do not enter a password, you will need to repeat the above process to double-zip the file (or folder).

Once the files and/or folders have been ingested to Dataverse, the ADA recommends that users do not upload or email passwords with the zip files and folders as these could be intercepted in transit. It is best to call the recipient and relay the password over the phone. The ADA is planning on implementing a facility that will allow you to communicate passwords via SMS messaging. Additional guidance on this can be obtained through the section Transmission of Passwords via SMS when it become available.

Where the Data Owner wishes not to use the 7-Zip product they should contact ADA Staff to discuss the implications of using an alternative software package prior to uploading their files and folders.