Skip to Content

Terminal Tip: Interactive Command-line File Encryption

In OS X, you can always toss a file onto the command line instead of laboriously typing out a complete path name because Terminal supports drag and drop. Over at Murphymac, Murphy has posted a video showing you how to create a shell script using DES3 encryption to protect your files. It takes advantage of this drag and drop support so you can basically run the script and drop the file you want to encrypt. Even if you're not all that interested in encrypting your files, this videocast shows how to think about creating shell scripts with a particularly interactive OS X flare flair.



In OS X, you can always toss a file onto the command line instead of laboriously typing out a complete path name because Terminal supports...
 

Add a Comment

*0 / 3000 Character Maximum

11 Comments

Filter by:
ossiejnr

Because of this - I took it upon myself to create a dashboard widget to perform this very task - you can check it out at http://www.millshalligan.co.uk/software/fileencryption/index.shtml

May 28 2007 at 9:01 AM Report abuse rate up rate down Reply
Jeem

An "interactive OS X flare" would probably set your keyboard on fire. Or maybe you just have a flair for amusing use of English.

May 23 2007 at 1:49 PM Report abuse rate up rate down Reply
stoptime

I love terminal tips too. But for stuff like this, I use Yojimbo and it's built-in encryption. Then, Yojimbo syncs w/ .Mac so I can pull it down on my laptop. Very handy.

May 23 2007 at 9:07 AM Report abuse rate up rate down Reply
Chan

Please _don't_ mellow out on the terminal posts, they are a great source of information for people new to mac/unix. If some peeps don't want to read them, it only takes a miniscule amount of energy for them to flick their eyes to the next article and get on with their lives!

May 22 2007 at 8:24 PM Report abuse rate up rate down Reply
Donald Burr

Actually, encrypted disk images are BAD, VERY BAD. To successfully decrypt something, every single encrypted bit of the disk image must be there and intact. If so much as a single-bit error were to occur anywhere within the encrypted disk image file, that would render the ENTIRE disk image undecryptable and worthless. Whereas, if you encrypt individual files, the worst that can happen is just one *file* is worthless (and if you make backups like you should, that wouldn't be so much of a problem).

May 22 2007 at 7:05 PM Report abuse rate up rate down Reply
ThunkDifferent.com

Great video, thanks!

May 22 2007 at 7:02 PM Report abuse rate up rate down Reply
Joe RIckerby

That was great- more from the point of view of learning about shell scripts than anything else. A password-protected disk image is an easy encryption alternative for anyone a bit scared of the terminal...

I bet someone could make a snappy little drap-and-drop applescript for this process

May 22 2007 at 6:58 PM Report abuse rate up rate down Reply
BillJJones

I always have a tiny little Terminal window on my desktop - just for stuff like this.

May 22 2007 at 6:11 PM Report abuse rate up rate down Reply
Peter

This is great. Thanks so much!

May 22 2007 at 6:03 PM Report abuse rate up rate down Reply
Danny

That was actually pretty informative. The easily accessible terminal is one of the great features of OSX.

May 22 2007 at 5:24 PM Report abuse rate up rate down Reply
Buy an ad here

Hot Apps on TUAW

Tweets

© 2012 AOL Inc. All Rights Reserved.