macOS disk image - create in terminal with password

macOS 12.1 here. In the man page for hdiutil there is this example for creating a disk image with a password.

Creating an encrypted single-partition image without user interaction:
       printf pp|hdiutil create -encryption -stdinpass -size 9m sp.dmg

This works. It creates a 9MB .dmg file with a password but I don't get to see what the password is. I know the "printf" is supposed to show something but I don't know what the "pp" that follows that does?



from Recent Questions - Stack Overflow https://ift.tt/3EEE199
https://ift.tt/eA8V8J

Comments

Popular posts from this blog

I get wrong characters when retreiving the message body of an email using TIdIMAP4.UIDRetrieveTextPeek2()

How to drop the all the 1's in a correlation matrix

Today Walkin 14th-Sept