First look: Full System Encryption in Mac OS X 10.7 “Lion”

One of the most valuable changes in Mac OS X 10.7 “Lion” is a complete overhaul of FileVault, Apple’s disk encryption system for protecting private data such as stored pictures, emails, documents and home movies.

In Mac OS X 10.4 and 10.5, FileVault could only be used to encrypt the “home folder” for each user, and it was widely criticized for a number of implementation flaws and security issues.

With 10.7 “Lion”, Apple intends to solve some of these flaws and significantly enhance security and privacy by turning FileVault into a disk level encryption system, not only for the main filesystem, but also for any external drive a user wants to protect with encryption.

While Apple is not the first to implement full system encryption, anyone running 10.7 will be able to use it, compared to Windows where an Ultimate or Enterprise edition of the operating system is needed to enable Microsoft’s system encryption feature called BitLocker (Truecrypt is a free alternative).

Linux has also had full disk encryption for a long time, however enabling it requires the operating system to be installed in a specific way, and encrypting the system afterward is difficult if not impossible using common and easy to use tools.

Apple’s implementation, like Truecrypt and BitLocker before it, allows the user to turn system encryption on and off at any time, only a quick reboot is required to start the encryption or decryption process, which happens in the background while your machine is being used.

Setting it up is very simple, all you need is a working installation of Mac OS X 10.7 “Lion” and a few minutes to click through the assistant.

The old FileVault preference area in System Preferences > Security has been replaced by a new Disk Encryption screen, offering just one button which allows you to turn on or off system encryption.

Apple’s system encryption implementation uses your existing user password to unlock the system during boot, which means you don’t have to set and remember a 2nd system password. However, forgetting your user password could prevent you from gaining access to your files, so Apple built in a “recovery key” that can be used to unlock the system.

Clicking the arrow next to “Show Recovery Key” will allow you to write the key down or copy it somewhere, but if you’re afraid you’ll lose that too, Apple has you covered.

While the idea of giving Apple a key to unlock your system could make some users uneasy, for the average user it’s a great feature to have. If you ever lose access to your encrypted Mac, you should be able to contact Apple and have them send you the recovery key after answering a few security questions.

That’s basically all there is to it, just a few simple screens and a restart button.

The next restart of the system presents you with a login screen. It looks a lot like the standard login screen, however until you enter a password, the OS itself hasn’t actually booted yet, and your disk is still locked (which is why I had to take that picture with my iPhone; screenshots at that stage of the boot process aren’t possible).

One nice detail that Apple got right is that once you enter your password at the boot unlock screen, you don’t have to enter it again to login.

After the system boots, it starts encrypting the disk in the background. This does cause things to be a bit slow (ok a lot slow) for a while, but once it finishes, the system will speed up a bit. Right now in the developer preview, performance isn’t perfect (especially disk writes), but expect that to improve by the time Lion is ready for release.

Encrypted external drives are even easier to setup, however you can’t encrypt a drive that already has files on it right now.

To create a new encrypted HFS disk, just open Disk Utility and you’ll see a new option when you visit the Erase screen for a hard drive.

You’re asked to enter a password, which unlike the system encryption password, is not tied to your user account, so you can take this drive and use it on another Mac so long as you remember the password.

The next time you connect the drive, this is what you’ll see: a simple password dialog box, entering the correct password allows the external drive to mount. Simple eh?

Hopefully Apple refines this new FileVault system even more, especially in the performance area, but I can say for myself I’m quite pleased with it so far.

Let us know what you think in the comments or on Twitter!

This article first appeared on XercesTech


Share this post: Share this article on Facebook Share this Article on Twitter Add this Article to Stumbleupon Add this Article to Del.icio.us Add this Article to Digg Add this Article to Reddit Add this Article to Newsvine
This entry was posted in Apple Software and tagged , , , , . Bookmark the permalink. Trackbacks are closed, but you can post a comment.
  • http://twitter.com/electrotech555 Aus Aus

    Cool

  • http://twitter.com/electrotech555 Aus Aus

    Wow, Mac OS has come a long way. I remember using my old G4 a month ago with file vault. A real advanced os!

  • wdwgolfer

    Is this all compatible with Time Machine, unlike FileVault? Including an encrypted external HD so that one can have encrypted backups? Thanks for the review, really looking forward to this feature!

  • Anonymous

    This sounds good… but does it fix the issue where Time Machine and FileVault cannot in any practical sense be used on the same computer?

  • Hisham

    Thank you fro this great post Steve.
    If the password is tied to the user account, what will happen if there are multiple user accounts?
    Another question do you know what algorithm is used for encryption?
    Thanx

  • Anonymous

    Oh, one other question: will an encrypted external disk be useable on a machine running 10.6 or 5?

  • http://xercestech.com Stephen Oliver

    10.5 is doubtful, but it’s possible Apple will release a 10.6.7 or 10.6.8 that adds support for reading encrypted drives

  • http://xercestech.com Stephen Oliver

    The alg. is XTS-AES-128 with 256-bit keys

    While you can’t see in the screenshots, if there are multiple user accounts on the machine you’ll be prompted to allow or deny each of them the ability to unlock the drive during boot. Once Lion ships this will probably also be a setting in the User account section of System Preferences

  • http://xercestech.com Stephen Oliver

    In a word, yes. Time Machine will see no difference between your user files and the rest of the system, so it can backup any of them at any time without having to log out.

  • http://xercestech.com Stephen Oliver

    Yep, it should all just work correctly 🙂