Appearance
Base32 Class
Definition
Implementation of a Base32 encoder/decoder
- Namespace:
JASE.Crypto - Assembly:
JASE.Crypto.dll
Fields
| Name | Description |
|---|---|
Alphabet | RFC 4648 Base32 alphabet (uppercase). Lowercase input is accepted by Decode |
Methods
| Name | Description |
|---|---|
byte[] Decode(ReadOnlySpan<char> input) | Decodes a Base32 string into bytes. |
string Encode(ReadOnlySpan<byte> input) | Encodes the specified byte array into a Base32 string using the RFC 4648 alphabet (A–Z, 2–7) and standard padding rules. |
bool IsValid(ReadOnlySpan<char> input, bool allowLowercase = null) | Validates the input as being valid Base32 text (ASCII) and padding rules |
int Normalize(ReadOnlySpan<char> input, Span<char> buffer) | Normalizes Base32 text into a canonical RFC 4648 representation. |
string Normalize(ReadOnlySpan<char> input) | Normalizes Base32 text into a canonical RFC 4648 representation. |
bool TryDecode(ReadOnlySpan<char> input, out byte[] bytes) | Attempts to decode a Base32 (RFC 4648) string into bytes without throwing. |