KodeKabuki

Welcome, my name is Harish Mallipeddi. I work for Amazon Web Services (AWS). This blog is mostly a dump of interesting articles that I come across on the web. Topics span across multiple areas including algorithms/datastructures, NoSQL stores, database internals, web-scale challenges, and functional languages.

June 10, 2011 at 9:23am

Home

Recipe: encrypt/decrypt clipboard contents on OS X

I’ve started using the following whenever I need to store sensitive stuff in Evernote/Dropbox/GMail/etc.


encrypt_aes128() {
    pbpaste | openssl enc -e -aes128 -base64 -pass "pass:$1" | pbcopy
}
decrypt_aes128() {
    pbpaste | openssl enc -d -aes128 -base64 -pass "pass:$1" | pbcopy
}