Answer to Mac Encryption Problem

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 encrypted folder.

(You could use "echo -n" to avoid the problem)


Got something to add? Send me email.





(OLDER) <- More Stuff -> (NEWER)    (NEWEST)   

Printer Friendly Version

-> -> Answer to Mac OS X Encryption Problem



Increase ad revenue 50-250% with Ezoic


More Articles by

Find me on Google+

© Anthony Lawrence



Kerio Connect Mailserver

Kerio Samepage

Kerio Control Firewall

Have you tried Searching this site?

Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates

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.

Contact us