Create password protected archives from the terminal
1 min read

Create password protected archives from the terminal

A very simple command to create a zip file that is password protected.

You can easily protect archives created in the terminal in macOS. If you want to create a zip file of the folder archiveMe you can run the command

zip -er Archive.zip archiveMe

where the option e tells the command to encrypt the zip file, and r tells the command to recurse into directories.

The command will wait for you to input the password (twice) before creating the archive.

Wanna stay up-to-date with Flutter and Dart?

Subscribe to get a weekly email with the best articles about Flutter and Dart.

    We won't send you spam. Unsubscribe at any time.