A zip file can also be password protected by putting an appropriate pass code in the hidden file. To do this, copy and paste the following code into Terminal, then hit enter. 1 2 3 > NFL The password protection will be placed on the target folder and any files that contain the pass code will have their names and sizes changed.