Module
pooka/hash
src/pooka/hash.pookaGive a byte parcel a short, reproducible fingerprint.
Expose SHA-256 through Erlang crypto. The digest is a bit array of thirty-two bytes, not a hexadecimal string and not a password-storage scheme.
import pooka/bit_array
import pooka/hash
assert bit_array.byte_size(hash.sha256(bit_array.from_string("hello"))) == 32
API reference
sha256(data: BitArray) -> BitArray
INFERRED
fn(BitArray) -> BitArrayCompute a 256-bit SHA-256 digest. The result contains raw digest bytes.
import pooka/bit_array
import pooka/hash
assert bit_array.byte_size(hash.sha256(bit_array.from_string("hello"))) == 32