Removed overly clever logic, opting for a more explicit approach to perform encryption/decryption. Removed old documentation.