More on SSL and LDAP in Leopard DD-WRT replaces OpenWRT
Dec 06

KeychainI had $15 in expiring gift cards from when I bought my new TV, so I decided to pick up an inexpensive 2gig Flash drive online.

To increase my peace of mind, I decided to store everything important to me in an encrypted disk image on the device. I used the same method I use to create a FileVault image, and then just moved the image file over to the flash disk.

I’ve been really happy with the performance, and it’s great know that WHEN I lose this tiny thing, none of my private and very sensitive information will be accessible to whoever picks it up.

In addition, there’s really no additional barriers to using this encrypted disk image. I store the password to the disk image in my Keychain, and it’s also encrypted with the FileVault Master certificate as an added layer of protection against forgetting my password.

Sparsebundle Password

Finally, even though the following command creates a sparse bundle capable of storing 300 Gigs of data, the Finder will realize the image file lives on a 2 Gig flash drive, and will only display the free space available on the “parent” filesystem.

The command to create the Leopard-only disk image is:

umask 077
export NAME="secure"
hdiutil create -size 300g \
    -encryption -agentpass \
    -mode 0700 \
    -fs "HFS+J" \
    -type SPARSEBUNDLE \
    -layout SPUD \
    -volname "$NAME" \
    "$NAME".sparsebundle;

2 Responses to “Secure Portable Flash Drives with Mac OS X”

  1. Randall Murray Says:

    This is an excellent idea? I haven’t tried yet, but would tis work on Tiger or do you know what might need to be different? Sort of a beginner on the CL!

    Thanks!
    -Randy

  2. Jeff McCune Says:

    The general concept works fine on Tiger, though a sparse bundle only works with Leopard, so you’ll have to create a typical, single file DMG image.

Leave a Reply