APLawrence.com -  Resources for Unix and Linux Systems, Bloggers and the self-employed

Answer to Mac Encryption Problem


© July 2006 Anthony Lawrence

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


Inexpensive and informative Apple related e-books:

Take Control of OS X Server

Take Control of Automating Your Mac

Take Control of Pages

Sierra: A Take Control Crash Course

Take Control of iCloud, Fifth Edition




More Articles by © Anthony Lawrence




Printer Friendly Version

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.

Contact us


Printer Friendly Version





The idea of "work, then get paid" has been deeply ingrained in our culture by employers who want to limit their risk. Well, I like to limit my risks also. I like to get paid before I do work. (Tony Lawrence)




Linux posts

Troubleshooting posts


This post tagged:

Cryptography

Detective

Security



Unix/Linux Consultants

Skills Tests

Unix/Linux Book Reviews

My Unix/Linux Troubleshooting Book

This site runs on Linode





SCO Unix Sales, Support, & Service

Phone:  707-SCO-UNIX (707-726-8649Toll Free: 833-SCO-UNIX (833-726-8649)
www.SCOsales.com