brew install p7zip
AES256
7z a \ -t7z -m0=lzma2 -mx=9 -mfb=64 \ -md=32m -ms=on -mhe=on -p'eat_my_shorts' \ archive.7z dir1 7z a \ -t7z -m0=lzma2 -mx=9 -mfb=64 \ -md=32m -ms=on -mhe=on -p \ archive.7z dir1
7z -x
7-Zip command to create and extract a password-protected ZIP file on Windows?
On Mac/Linux to zip/unzip password protected zip files, I use:
Zip:
zip -P password -r encrypted.zip folderIWantToZip
Unzip:
unzip -P password encrypted.zip
What are the equivalent command on W...
https://stackoverflow.com/questions/28160254/7-zip-command-to-create-and-extract-a-password-protected-zip-file-on-windows
How can I install 7zip so I can run it from Terminal on OS X
I would like to be able to run 7zip from the command line on Mac. Does anyone have instructions on how to set this up?
https://superuser.com/questions/548349/how-can-i-install-7zip-so-i-can-run-it-from-terminal-on-os-x

Seonglae Cho