|
|
Easier encryption and decryption of files and folders
The article is bloated. Use pipelines, it's trivial.
Easier encryption and decryption of files and folders
oh, hmmm. it seems he deletes the folder too... but I would argue that this is not optimal (although one could add a simple && rm -r $* to my script). What one should do rather, if one wants to delete them at all, is overwrite them (n times with specific data if you're really paranoid) and then rm them. The wipe command in PGP does this, or you can write a simple shell/perl script or c program to do it. Heck, you can do it with find, a for loop, and dd.
Easier encryption and decryption of files and folders
or use rm -P
One more caveat...
Neither the script given nor mine preserve metadata. If you want to preserve ownership and stuff (doesn't matter for me because it's UNIX text files I own, but it could for you), add a p to the tar options (of course, you have to decrypt as root for this to make a difference anyway...). If you want to preserve resource forks and HFS+ metadata, you'll have to use hfspax or the like.
One more caveat...
I'd hardly go so far as to suggest that the necessity to turn many files into a single file (with Stuffit or what have you) means one cannot use PGP. In point of fact, stuffing or zipping a collection of files and then encrypting the resulting archive is quite easy to do, and very effective. Far more so, I dare say, than twiddling with dodgy UNIX shell scripts. After all, with the free Stuffit product and the free PGP product, the process is a simple matter of two drag-and-drop operations. A breeze, and absolutely foolproof.
I disagree...
Um. DropStuff isn't free (well, it effectively is, but you ARE supposed to pay for it).
I disagree...
And for what I'm doing, that shell function (mine is not a script) is pretty much fool-proof.
I mean no offense, but "pretty much fool-proof" is just like "a little bit pregnant." It's also faster That's hardly significant, even if true. We're talking about taking a two-second operation and turning it into a 1.75-second operation. I like UNIX, I'm comfortable with the shell. And furthermore, I work with UNIX and Linux boxes a lot, and it's nice to have my files in a format they can understand. That's fine, but that pretty much moves this particular item out of the realm of a Mac OS X hint and makes it a UNIX hint. Most of the people who use Mac OS X are Mac users, not UNIX users, and your suggestion would not be appropriate for them.
I disagree...
Not wanting to perpetuate an argument, but the hint is in the Unix section of the site. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.09 seconds |
|