Pure-Kotlin SHA-1 / SHA-256 (no java.*, wasmJs-safe). Content-fingerprint / cache-key hashing — not a security primitive: no HMAC, no constant-time comparison, no salting.
SHA-1 digest of bytes (20 bytes).
Lowercase hex of the SHA-1 digest of text (UTF-8).
SHA-256 digest of bytes (32 bytes). See sha1 for why MagicNumber is suppressed here.
Lowercase hex of the SHA-256 digest of text (UTF-8).