Skip to main content

sha256_hex

Function sha256_hex 

Source
pub fn sha256_hex(bytes: &[u8]) -> String
Expand description

Hex-encode the SHA-256 digest of bytes. Pure, synchronous, no allocation beyond the 64-char output String. Mirrors the TS sha256Hex byte semantics: the caller is responsible for encoding a string input to UTF-8 bytes before calling (the napi boundary does this).