Slashdot Mirror


Encrypting File System Options for Mac OS X?

fieldmouse asks: "I recently had a laptop running Mac OS X stolen. Despite the fact that I got it back, that incident has me looking for an encrypting file system for Mac OS X; preferably one that would create a psuedo drive that I could unlock once when I log on. Anybody have any suggestions?" About 2 years ago, Ask Slashdot did the Linux version of this question. Has this gap been filled in Apple's latest OS offering?

54 comments

  1. Disk Image? by Drizzt+Do'Urden · · Score: 5, Informative

    Create an encrypted disk image with Disk Copy, make it writable, and drop your sensitive data in it ;)

  2. how about a disk image? by Niksie3 · · Score: 0, Insightful

    Hi,

    Have you concidered making an Apple Disk Image (.img file), it can use some form of 40bit encryption..

    --
    Sig you!
  3. Use Disk Copy and stay neat by Paul+Burney · · Score: 5, Informative

    The application/system items on the drive don't need to be encrypted of course so just create a new disk image in disk copy, choosing the 128-bit AES encryption option. You will be prompted for a password to use. (Don't save it to the keychain, duh.) You will have to enter your password twice when you open the image.

    Now be very careful with your documents/items and always save them to the encrypted disk image.

    The other benefit is that keeping all your important things on that image allows for easy backups.

    --
    <?php while ($self != "asleep") { $sheep_count++; } ?>
    1. Re:Use Disk Copy and stay neat by klui · · Score: 1

      Do these AES images work with OS 9's Disk Copy? My only hesitation since I still have PGPDisk (the free version) which works between Mac OS 9 and Windows.

    2. Re:Use Disk Copy and stay neat by Parsec · · Score: 3, Informative

      They will be mutually incompatible. You can't use PGPDisk with Classic in X (fails to mount) and you can't use AES images in MOS9.

      To convert, you'll have to copy your data out into unencrypted space via PGPDisk in MOS9, boot into X to copy your data into an AES image, and do a good wipe of your unencrypted data. The AES image can also be stored and mounted from a server, while PGPDisk didn't like that.

    3. Re:Use Disk Copy and stay neat by Anonymous Coward · · Score: 0

      Anyone know if there is a shell interface to mount/decrypt the encrypted volume?

    4. Re:Use Disk Copy and stay neat by nickovs · · Score: 2, Interesting

      Disk images in OS X can be mounted with the hdiutil command. I've never tried mounting an encrypted disk but given the way that Apple implement their crypto using CDSA I expect that it will simply offer up the usual dialogue boxes and let you type in the key (since the prompts for passphrases to CDSA are generated by the kernel code).

      --
      If intelligent life is too complex to evolve on its own, who designed God?
    5. Re:Use Disk Copy and stay neat by nickovs · · Score: 3, Informative

      Just to confirm, if you type hdiutil mount imagefile.dmg on an encrypted image you get a prompt to enter the passphrase and it then mounts successfully. I can not see a simple way to provide the passphrase from a program but you might be able to do it with some careful AppleScript. Of course this would totally negate any security if you kept the passphrase in the script.

      --
      If intelligent life is too complex to evolve on its own, who designed God?
    6. Re:Use Disk Copy and stay neat by EccentricAnomaly · · Score: 1

      And you can mount encrypted and unencrypted disk images remotely via a url... cool dat

      --
      There are 10 types of people in this world, those who can count in binary and those who can't.
    7. Re:Use Disk Copy and stay neat by bleyddyn · · Score: 1
      if you type hdiutil mount imagefile.dmg on an encrypted image you get a prompt to enter the passphrase
      I wish I knew what I was doing wrong, but I've never been able to get that to work. I always get errors like the following:

      /usr/bin/hdid: "Misc.dmg" does not appear to be a disk image: No such file or directory

      hdiutil: mount: mount failed (57344).
      hdiutil: mount failed - unknown error (57344)

      But I've mounted the disk images numerous times from the finder.

  4. A Simple Solution by PastorOfMuppets · · Score: 4, Informative

    Use Disk Copy (located in the Utilities folder) to ccreate an encrypted disk image and add that image to you "Login Items" in the Login Prefrence Pane.

    --
    If you don't have anything nice to say, shut up you stupid prick.
  5. Or the old fashioned way by xinu · · Score: 1, Informative

    Not that I've tried this or even really given it much thought about it. But the command line "crypt" in your .login and .logout could always crypt and decrypt your home dir. Just a thought.

    1. Re:Or the old fashioned way by Anonymous Coward · · Score: 0

      Err, you're not supposed to use the +1 bonus on short little comments. It's not for one liners like you just pulled.

      The moderator was totally in order, and totally correct as moderating it down as overrated. Far, far too many people (such as yourself) abuse the +1 bonus. I'm happy there are moderators around like that who can understand that, and punish it.

      Posted anonymous to protect the enlightened.

    2. Re:Or the old fashioned way by Anonymous Coward · · Score: 1, Interesting

      Besides, he is stupid. crypt has very weak encryption.

    3. Re:Or the old fashioned way by Anonymous Coward · · Score: 0

      and crypt isn't on the system by default. Where does it live?

    4. Re:Or the old fashioned way by mkldev · · Score: 1

      The concept is sound. The utility isn't. Mac OS X ships with OpenSSL installed, which is capable of encrypting/decrypting with a wide variety of encryption schemes.

      The real problem with this is that it's far too easy to recover the original unencrypted material if you just delete it. You also need to do a multi-pass wipe. I don't know of any tools to do this (apart from Wipe in Classic), but you could write one pretty easily.

      There's also the issue of multiple concurrent login sessions, but since I assume you meant login via the GUI login pane, that's not so much of an issue (except when you try to ssh into the machine).

      --
      120 character sigs suck. Make it 250.
    5. Re:Or the old fashioned way by Anonymous Coward · · Score: 0

      Feh, you're just pissed you blew your opportunity. Bessides, people that mod things as overrated are generally doing it because it escapes meta-mod.

      posting anon because I can

    6. Re:Or the old fashioned way by Anonymous Coward · · Score: 0

      The real problem with this is that it's far too easy to recover the original unencrypted material if you just delete it. You also need to do a multi-pass wipe. I don't know of any tools to do this (apart from Wipe in Classic), but you could write one pretty easily.

      That's my concern as well. I was considering using normal disk images and encrypting them with gpg, but it order to use the encrypted disk I'd have to save an unencrypted copy to my harddrive, which would sort of defeat the purpose. Perhaps it's possible to unencrypt the image file to a ram disk, and mount it from there?

      Anyway, for now I'm just using Disk Copy's builtin AES 128-bit encyption. Does anyone know how good Disk Copy is about keeping unencrypted data in memory only? I'd hate to think theres a scratch file somewhere with unencrypted versions of all my data...

      Fwiw, some of what I keep on an encrypted disk is my gpg and ssh keys. I wipe out the disk image file whenever I'm taking my ibook somewhere not-secure where there is a chance of it being seized or stolen, and restore later from a super-31337 mini cdr I have. (which has another level of encryption on it).

      Paranoia is fun, but but also healthy especially in these days when government seizure isn't that far-fetched.

  6. well by caveat · · Score: 1

    if there's a Linux solution, there's at least a relatively easy to create OS X solution, at least. (or does X fully support only HFS+ disks?)

    --

    Facts do not cease to exist because they are ignored. - Aldous Huxley
    1. Re:well by Erik+K.+Veland · · Score: 1

      Well, if you run a server and no carbon applications you are fine with UFS. HFS+ is still the way to go for 99% of all users though.

      --
      "I tend to think of OS X as Linux with QA and Taste", James Gosling, creator of Java
    2. Re:well by mkldev · · Score: 1

      Carbon apps (at least well-written Carbon apps) work fine with UFS. I assume you meant Classic apps, which of course, can't see anything but HFS/HFS+ and certain remotely mounted volumes, and can't launch except from HFS+.

      --
      120 character sigs suck. Make it 250.
  7. Disk Image by mlknowle · · Score: 4, Insightful

    I made a 200mb disc image using Apple's (built in) Disk Copy app, and enabled the encryption options. I keep sensitive docs and client notes on it; whenever I need it, I open the disk image, type my passphrase and the disk pops up like any other removable media.

    When I'm finished, I just eject it. How secure is this? I'm not sure what function Disk Copy uses for encryption, but it is enough that if my laptop were stolen, I'd worry about the computer, not the data.

    1. Re:Disk Image by Anonymous Coward · · Score: 0

      http://csrc.nist.gov/encryption/aes/aesfact.html

  8. Crypt by xinu · · Score: 5, Informative
    I'm going to post this again, but with a link this time.

    Look at Crypt using Blowfish and all that jazz.

    Running Solaris as an Admin I have crypt encrypt some docs upon .login and upon .logout for some documents. Never tried it for OSX but I don't see how it should be any different other then it's going to pop up a GUI asking for your passwd.

    Following the UNIX and Perl mantra, there is always another way of doing something...

    1. Re:Crypt by c13v3rm0nk3y · · Score: 1

      I hate to be a "meto", but I second this. Very cool app for encrypting discrete files on your Mac. It has the option of scrubbing the original file after encryption.

      --
      -- clvrmnky
    2. Re:Crypt by llamalicious · · Score: 1

      for the acronym impaired:
      that's TIMTOWDI:
      There is more than one way to do it.

      From the 2nd edition Camel book.

  9. DropAES encrypt as you go by kraksmoka · · Score: 1

    http://homepage.mac.com/hteric/FileSharing1.html Also has compression in utility. Uses built in SSL to create blowfish or triple des encrypted files. Not so elegant as the image, but more shareable.

    --
    "You never want a serious crisis to go to waste." - Rahm Emanuel
    1. Re:DropAES encrypt as you go by Anonymous Coward · · Score: 0

      The author of DropAES has dropped the development of DropAES and moved code to DropTBZ. It is a freeware and also has AES encryption if properly configured

  10. Disc Image by djupedal · · Score: 1, Insightful

    ...allows encryption

  11. CFS by Anonymous Coward · · Score: 4, Interesting

    Use Matt Blaze's CFS. It supports encrypted (3DES) volumes, with timeout support among others. It's NFS loopback mount, so it will work on pretty much any UNIX -- including MacOS X and *BSD. NetBSD has TCFS which is AFAIK more tightly integrated (at VFS level).
    Get CFS here: http://www.crypto.com/software/

  12. Disk Copy by gabe · · Score: 1

    Here's another vote for Disk Copy.app. Very simple and easy to use. If you need to encrypt only a few files, try Puzzle Palace.

    --
    Gabriel Ricard
  13. also Open Firmware Password utility by bhamm · · Score: 1

    i don't personally encrypt my drive, although after reading the other replies, I may tinker with that a bit.. what i've been doing with my powerbook g4 is using Open Firmware Password which prevents booting from anything except a single designated 10.x partition. If you try to boot from another partition, CD, or external drive, you're presented with a very plain password screen with no instructions. I then have the screen saver set to require my password to get back to the finder. it's not obviously quite as secure as encrypting an entire volume, but is fairly secure..

    1. Re:also Open Firmware Password utility by usr122122121 · · Score: 5, Insightful
      If you try to boot from another partition, CD, or external drive, you're presented with a very plain password screen with no instructions. I then have the screen saver set to require my password to get back to the finder. it's not obviously quite as secure as encrypting an entire volume, but is fairly secure.
      The open firmware password method is a very useful if you are limiting physical access to the computer... however, if the computer was stolen, you don't have that sort of control.

      The thief could very easily remove the hard drive from the computer and place it into another one to circumvent Open Firmware Passwording. Thus, in addition to Open Firmware Passwording you must also have some sort of encryption to safeguard the files on the disk.

      --

      -braxton
    2. Re:also Open Firmware Password utility by Anonymous Coward · · Score: 0

      probably it's also easy (and fast) to boot the powerbook in firewire disk mode, so you don't even have to build the disk into another mac...

  14. Set a password on Open Firmware too by Anonymous Coward · · Score: 0

    This doesn't encrypt your data - but does stop anyone booting from an external drive or CD, or booting into Single User mode.

    So a thief would have to remove your laptop drive and try to mount it in another Mac to get anywhere near your data.

    HTH!

    Nick

  15. PGPdisk by Anonymous Coward · · Score: 0

    Well, I like the DiskCopy solution under OS X, but my preference under 9 etc was PGPdisk. Of course who knows what is happening there (as has been discussed on /. recently). I do like it under 9 though.

  16. Advance Encryption Standard (AES) by stux · · Score: 3, Informative

    http://csrc.nist.gov/encryption/aes/aesfact.html

    (or you could just mod up the previous guy ;))

    Including the all important "What is the Advanced Encryption Standard (AES)?"

    --

    ---
    Live Long & Prosper \\//_
    CYA STUX =`B^) 'da Captain,
    Jedi & Last *-fytr
  17. a better solution by Anonymous Coward · · Score: 0

    use the PPC version of Windows 2000. You can just right-click (option-click for you one-button mousers :) to encrypt a file. Works on directories, too!

    1. Re:a better solution by Anonymous Coward · · Score: 0

      Is that even available to the public, and capable of running on a Mac? I'm pretty sure NT4 PowerPC would not run on Macs.

  18. Disk Copy with second keychain by ekc · · Score: 5, Informative

    As others have mentioned, Disk Copy is definitely the way to go for creating a password-encrypted volume in Mac OS X. You can make the disk images as large as you want, they are functionally pretty much indistinguishable from normal volumes, and there's no reformatting involved.

    I just wanted to add one point about storing your passwords that makes life even simpler. Try using Keychain Access to create a second keychain you call "secure" or something to that effect. Make this temporarily the default keychain so that when you create your disk images, you can store the passwords to this new keychain. Configure the keychain so that it will relock itself after a short period of time (say 15 minutes), then set the default back to your regular keychain.

    That way, you need only enter the password once to have access to every encrypted disk image, and in my experience, by the time you're done and you unmount the volumes, everything will be locked again!

    1. Re:Disk Copy with second keychain by Anonymous Coward · · Score: 0

      Does anyone know how the encryption of the keychain compares to AES?

      I like the idea of the second keychain, but wouldn't want to sacrifice any security if the keychain can be cracked easier than AES.

  19. Recovering Stolen Goods by mumkin · · Score: 2

    Nice to hear that fieldmouse's laptop was returned, but it begs the question: how did you get it back? Since you were successful in this, I'm interested in whatever actions you took beforehand/afterward which facilitated recovery. Or was it just dumb luck? Tips to help the rest of us prevent/deal with a theft?

    1. Re:Recovering Stolen Goods by Anonymous Coward · · Score: 0

      Years ago I had a desktop machine (6100) stolen, and got it back.

      Here in Australia, Apple keeps a register of stolen serial numbers. I just rang them up and reported the number.

      Then about 3 months later, it was taken to an Apple reseller for service, and they checked the serial number and found it reported as stolen. The cops were there when the guy came back to pick up the computer.

      At the time several people asked about this. Apparantly Apple US had no such database.

  20. Show me the code by bckspc · · Score: 2

    For keeping your passwords safe from the average laptop thief, Disk Copy is probably fine. But for protecting your sensitive info from The Man, I'd be just a little wary of proprietary packages. Has anyone seen the source code for Disk Copy? Are you absolutely sure that there are no backdoors for law enforcement? Apple would stand up to the Feds in defense of their loyal customers, right?

    Depending on the level of security you're after, I recommend open source software that's been audited by lots of paranoid geeks.

    --
    Design + Activism

  21. Experience with the disk image solution by Aram+Fingal · · Score: 1

    I have been using encrypted disk images in Mac OS X for well over a year now and it works very well.

    I was worried, at first, that disk images could become corrupted if something went wrong and make the entire contents unreadable. They are actually quite robust. You can even open a terminal and kill the process called hdid which will force unmount the image in the middle of a copy operation, and your data is still safe.

    You can open an image from an AppleTalk server and use that to encrypt your network traffic. It works, I've checked it with a packet sniffer.

    Part of the reason images are so good for backups is that they preserve the relative pointing of aliases. If you just do a finder drag-and-drop copy with a folder, any copied aliases from that folder will point to the item in the original and not the copy.

    The encryption process can make use of both AltiVec (Velocity Engine) and multiple processors. With a G4, you hardly notice the processor time needed to perform the encryption/decryption.