A pure python implementation of the cryptographic functions in the Cube 2 engine.