[Howto]Password protect zip files in Mac OS X

Channel:
Subscribers:
1,900
Published on ● Video Link: https://www.youtube.com/watch?v=5u4wyYSsZrY



Duration: 1:16
31,835 views
0


Today I am going to teach you how to password protect zip files on Mac os x without installing any extra softwares/apps or add-ons

First we need to know the command line, then launch "Terminal"

type in the command lines as following:

zip -ej ~/path/encrypted.zip ~/path/folder/filename

"e" stand for encryption
"j" stand for junk - get rid of the path when you zip your file

"~/path/encrypted.zip" is where the password protected file you want to located. example, you wanted to put the zip file on desktop and named it 1.zip then the command line should be " ~/Desktop/1.zip

"~/path/folder/filename" is which file at where you wanted to zip, for example, you wanted to zip a file named 1.txt on Documents path/ and contained inside the folder "video", then command should be "~/Documents/video/1.txt

======================================

For encrypting multiple files with a password, such as folder or an entire directory, the syntax would be as follows:
zip -er [archive] [folder]

If you plan on compressing multiple files within a folder, you will want to slightly modify the command with the -er flag like so:

zip -er archive.zip /path/to/directory/

==============================================
Example:

zip -ej ~/Desktop/encrypted.zip ~/Documents/folder/filename
Enter password:
Verify password:

(Please remember the password)