Added hash to crypto engine

Could not get password hashing to work.