Encryption ZIP – Create Encrypted (Password Protected) ZIP File

encryptionzip

How do I create an encrypted (password protected) zip file?

Best Answer

This will prompt for a password:

zip --encrypt file.zip files

This is more insecure, as the password is entered/shown as plain text:

zip --password (password) file.zip files

Warning, the standard zip encryption is very weak and is easily cracked.
Note, Use -r to zip directory and subdirectory recursively.