Tidied up crypto_hash