Posts Tagged ‘DMG’

How-To Create An Encrypted DMG File From Command-Line in OSX

Tuesday, May 21st, 2013

You can create an secure encrypted DMG disk image from the command-line in Mac OS X using ‘hdiutil’, type the following instrcution in the Terminal application:

#hdiutil create -encryption AES-256 -fs HFS+ new.dmg -srcfolder /path/to/your/folder
  • Substitute ‘/path/to/your/folder’ with the actual path of the folder containing the files that you want to secure.
  • You can use ‘MS-DOS’ in place of ‘HFS+’ for the FileSystem type. Other formats are available.
  • You can change the encryption type to AES-128