Skip to main content

secret_bytes

Function secret_bytes 

Source
pub fn secret_bytes(module: &InfinityModule) -> Vec<Vec<u8>>
Expand description

Every secret literal in a module, as raw bytes.

Text redaction uses the lossy UTF-8 view (secret_texts) because it compares against UTF-8 text. A byte-level surface (an opaque extension payload) must compare against the real bytes: a secret that is not valid UTF-8 would otherwise be lossily converted and never match its own copy.