MarcoMC Tech, Cuisine, Traveling…my hobbies, my life

May 21, 2013

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

Filed under: Apple & Mac,How-To,IT — Tags: , , , , , — marcomc @ 11:07

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

Powered by WordPress