Appearance
Base36 Class
Definition
Provides Base-36 encoding and decoding utilities using the characters 0-9 and a-z.
- Namespace:
JASE.Crypto - Assembly:
JASE.Crypto.dll
Methods
| Name | Description |
|---|---|
ulong Decode(string input) | Decodes a Base-36 string into an unsigned integer value. |
string Encode(ulong value) | Encodes the specified unsigned integer value into a Base-36 string. |
bool TryDecode(ReadOnlySpan<char> input, out ulong value) | Attempts to decode a Base-36 string into an unsigned integer value. |
Remarks
Base-36 is useful for representing numeric identifiers in a compact, URL-safe form. This implementation uses lowercase output and accepts either lowercase or uppercase input.
The maximum encoded length of a 64-bit unsigned integer is 13 characters.