May 29, 2008

Changing passwords on OS X disk images (dmg/sparseimage)

I couldn’t find this one in google too easily so hopefully this’ll help people out in the future. If you’ve created an encrypted disk images with Apple’s Disk Utility and need to change the password you can do it with:

hdiutil chpass /path/to/image/file
It’ll prompt you for the old password, then the new password twice.