hash
Convenience function. Compute a hash value for the given value.
Like
hashWithSalt, but no salt is used. The default
implementation uses
hashWithSalt with some default salt.
Instances might want to implement this method to provide a more
efficient implementation than the default implementation.
Hash a strict bytestring into a digest.
Hash a strict bytestring into a digest.
hash a strict bytestring into a digest bytestring
hash a strict bytestring into a digest bytestring
Hash a lazy ByteString, creating a digest
Hash a lazy ByteString, creating a digest
hash a strict bytestring into a digest bytestring (32 bytes)
Mostly meant for internal usage
hash a strict bytestring into a digest bytestring (20 bytes)
hash a strict bytestring into a digest bytestring (16 bytes)
Computes a cryptographically collision-resistant hash making hash
m == hash m' ==> m == m' highly likely even when under attack.
hash a strict bytestring into a digest bytestring (48 bytes)
hash a strict bytestring into a digest bytestring (64 bytes)
hash a strict bytestring into a digest bytestring (t bits)
Helper to hash a single (strict)
ByteString in one step.
Example:
untag (hash (fromString "abc") :: Tagged SHA256 B.ByteString)