Added support for encryption

Note that to run this file, the non-standard "rsa" module MUST BE INSTALLED! To install it, follow the instructions here: https://pypi.python.org/pypi/rsa