Expand description
sanitation is a tool for developing memory-safe programs while detecting and capturing possibly malicious bytes.
Re-exports§
Modules§
- errors
errorsmodule contains theErrorstruct which is used across thesanitationcrate to simplify error handling by transforming specific errors from known crates intoError.- sboolean
- SBoolean (portmanteau of “Sanitation Boolean”) is a struct
providing methods to accept exactly one
u8byte and produce aboolequivalent. As one might expect,SBooleanrepresents0u8asfalseand1u8astrue. But more importantly, all otheru8values are accepted astrueunder the condition of being flagged and stored as potentially malicious, unsafe or a possible covert communication channel. - sstring
- SString (portmanteau of “Sanitation String”) is a struct providing
methods to take streams of bytes and produce a UTF-8
String, storing invalid UTF-8 byte-sequences and associated metadata for later analysis. - traits
- the traits module contains the
SafeString.