

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.

If you’re familiar with the command line, the syntax of the encrypted zip command is as follows:įor encrypting multiple files with a password, such as folder or an entire directory, the syntax would be as follows: How to Password Protect a Zip File from Mac OS X Command Line
