# crypto/hash Hash data with a named algorithm (dispatches to the dedicated hash function). ## Syntax
[crypto/hash $data :algo]
## Parameters - `$data` — String (bytes) to hash - `:algo` — One of `:sha256`, `:sha512`, `:blake3`, `:md5` ## Examples
[crypto/hash "hello" :sha256]
[crypto/hash $payload :blake3]
## Returns Lowercase hex digest string, or `%Err{ message "..." }` if the algorithm is unknown. ## See Also `crypto/sha256`, `crypto/sha512`, `crypto/blake3`, `crypto/md5`