Created
August 4, 2021 16:19
-
-
Save jerrythomas/19907f98bc2bdf0840bc4068fea437ca to your computer and use it in GitHub Desktop.
Create and attach encrypted dmg
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
echo test1234 | hdiutil create -stdinpass -size 16m -encryption AES-128 encryptedimage.dmg | |
echo test1234 | hdiutil create -stdinpass -srcfolder testfiles -encryption AES-128 encryptedimage.dmg | |
echo -n test1234 | hdiutil attach -stdinpass encryptedimage.dmg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment