Paul Grever's encrypt/decrypt

Here is gist url - https://gist.github.com/paulgrever/8c3b977e6470e1ffc46e