Expand description
Small, strict hex and base64 codecs (the kernel carries no hex/base64 crates, and these inputs are all short, bounded key material).
Functionsยง
- base64_
decode - Decode base64 in either the standard or the URL-safe alphabet, with or
without
=padding. Whitespace is refused. Non-canonical trailing bits are refused so an encoding cannot be malleated. - hex_
decode_ exact - Decode lower-case hex of exactly
Nbytes. Upper-case is refused so each value has one spelling. - hex_
encode - Lower-case hex encoding.
- is_
lower_ hex - True when
sis exactlylenlower-case hex characters.