Base16
Encode bytes as lower or upper hex.
from oxcrypto.encoding.base16 import BASE16
encoded = BASE16.LOWER.encode(b"\xab\xcd") # b"abcd"
BASE16.MIXED.decode(b"aBcD") # b"\xab\xcd"LOWER and UPPER accept only their own case when decoding. MIXED decodes
either case and cannot encode.
| Standard | RFC 4648 section 8 (Proposed Standard) |
| Crate | base16ct 1.0.0 (RustCrypto formats), stable |
| Audit | No published audit |
| MSRV | 1.85, builds with the project MSRV 1.88 |
| Experimental | No |
| Test vectors | RFC 4648 section 10, base16ct tests |