Fixed Encryption

Thank you to Joe Z!