Created
June 22, 2023 16:34
-
-
Save 0x-2a/6169c0b3f7925fb923775d2cfa7443fb to your computer and use it in GitHub Desktop.
How to use p7zip for password-protected store only
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install homebrew if you don't have it, see https://brew.sh/ | |
# | |
# Then use brew to install p7zip | |
brew install p7zip | |
# Zip with no compression, just a password. | |
7z a -p'myPassword!!' -tzip -mem=AES256 -mm=Copy -mx=0 -mmt=8 ~/Desktop/myStuff.zip ~/Desktop/myFolder | |
# if you want to test, delete ~/Desktop/myFolder | |
# Unzip with a password. | |
7z x ~/Desktop/myStuff.zip -p'myPassword!!' | |
open myFolder |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment