Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to give a password to a zip file on Mac OS X

How can I give a password to a zip file on Mac OS X without downloading any additional program?

like image 213
halimozturk Avatar asked Nov 14 '17 17:11

halimozturk


People also ask

Can you add a password to a zipped file?

If you put the files you'd like to protect in a zip file, you can then apply a password. In Windows Explorer, highlight and right-click on the files you would like to put into a zipped file. Select Send to, then Zip folder (compressed). Double-click the zipped file, then select File and Add Password.


2 Answers

I found the solution.

Go to Terminal and type

zip -er (zipfile's name).zip (File path)

Enter password: (your password)

Verify password: (type it again)

press enter. That's it. It will be saved to your main folder. You have a passworded zip file now.

like image 99
halimozturk Avatar answered Sep 21 '22 15:09

halimozturk


Add password for an existing zip file:

zipcloak file.zip 

Limitations listed in man zipcloak for v3.0:

  • zipcloak uses original zip encryption which is considered weak.
  • Large files (> 2 GB) and large archives not yet supported.
like image 37
user924 Avatar answered Sep 21 '22 15:09

user924