![]() Opening the Password Protected Zipĭespite being created at the command line, you do not need to unzip the file from the terminal, it can be expanded from the Mac OS X Finder or within Windows using standard unzipping apps. Notice that with a folder of multiple files, you will want to use the -er flag, the addition of the r indicates that zip will recursively compress and password protect all files in the folder. Notice the password will not display, this is normal behavior for the Terminal. $ zip -er ~/Desktop/encrypted.zip ~/Documents/Confidential/Īdding: ~/Documents/Confidential/ (deflated 13%) Here is an example of what this will look like from the command line, in this case we are compressing and password protecting the entire ‘Confidential’ folder located within the users /Documents directory, and the password protected zip is being placed on the users desktop for easy access: Example: Zipping a Folder and Setting a Password This is particularly important for encrypting zips of multiple files under OS X Mavericks. If you plan on compressing multiple files within a folder, you will want to slightly modify the command with the -er flag like so: ![]() The file that was encrypted, “filetoprotect.txt”, is now inaccessible without entering that password. The resulting archive, in this case named “archivename.zip”, is now encrypted with the password provided.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |