Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'How about encryption?' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
How about encryption?
Authored by: ekc on Sep 28, '04 01:32:28PM

This script would be more powerful if it encrypted the files after compressing them. As it is, it only duplicates functionality that is readily available in the Finder already. (Incidentally, I would use --sequesterRsrc instead of --rsrc, even if it makes the script dependent on Panther.) The OS 9 Finder actually had an Encrypt command, though it only worked on individual files and not folders, if memory serves.

After ditto-ing the file/folder, you could run the zip archive through openssl to encrypt it. Then call srm on the original and zip files to clean things up.

The only snag I can foresee is password management. How do you get AppleScript to request a password without echoing it? How do you then send that password securely to openssl? (I understand the most obvious approach -- put it in the command line -- is prone to eavesdropping, though maybe this problem is overblown?) Could you put it in a keychain, maybe? (On first glance, I could not see a way of doing this, though you can look up keys that are in there already.)

-Ted



[ Reply to This | # ]