Moved hashing to new Crypto class