There are two ways to write error-free programs; only the third one works. (Alan Perlis)
This is the answer to Mac OS X Encryption Problem
When he created the encrypted .dmg, he used the command line
method, but specifically he used the method I showed
where the passphrase is passed with "echo":
echo "your passphrase" | hdiutil create -encryption -stdinpass -srcfolder secrets foo.dmg
That actually embeds a newline into the passphrase. Wnen you
type into the GUI dialog box, your "Enter" is stripped. The way to
decrypt that is to provide the passphrase in the same way:
echo "your passphrase" | hdiutil attach -stdinpass foo.dmg
This was indeed his problem, and he was able to open his
(You could use "echo -n" to avoid the problem)
Got something to add? Send me email.
More Articles by Anthony Lawrence
Find me on Google+
© 2011-04-30 Anthony Lawrence
Have you tried Searching this site?
This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more.