Skip to main content

from_bytes

Function from_bytes 

Source
pub fn from_bytes(data: &[u8]) -> String
Expand description

Derive a three-word codename from raw bytes.

Hashes the input with SHA-256 and uses different portions of the digest to index into each word list. Deterministic: same input → same codename.