Completed Crypto class to pass all tests