NOTE: If you're using passwords in shell scripts, see Daniel Jalkut's reply below about using OS X's built-in security
command instead of his AppleScript library.
One of my goals for the new year1 is to be more security minded in my use of technology. This is a broad statement …