Base32
Encode bytes with the RFC 4648 Base32 alphabet.
from oxcrypto.encoding.base32 import BASE32
BASE32.UPPER.encode(b"foobar") # b"MZXW6YTBOI======"
BASE32.LOWER_UNPADDED.decode(b"mzxw6ytboi") # b"foobar"UPPER and LOWER use = padding; the _UNPADDED variants reject it. Each
variant decodes only its own case.
| Standard | RFC 4648 section 6 (Proposed Standard) |
| Crate | base32ct 0.3.1 (RustCrypto formats), pre-1.0 release |
| Audit | No published audit |
| MSRV | 1.85, builds with the project MSRV 1.88 |
| Experimental | No |
| Test vectors | RFC 4648 section 10, base32ct tests |