Summary
Base32Url is a standard base 32 encoder/decoder except that padding turned
off and it is not case sensitive (by default).
If you turn padding and case sensitivity on it becomes a standard base32
encoder/decoder giving you 8 character chunks right padded with equals symbols.
If you leave padding off and use Base32Url.ZBase32Alphabet you
get a z-base-32 compatible encoder/decoder.
Note that the crockford base32 encoding doesn't support the crockford checksum
mechanism.
See http://tools.ietf.org/html/rfc4648
For more information see http://en.wikipedia.org/wiki/Base32
- Assembly
- Rocket
.Surgery .Extensions .dll - Namespace
- Rocket
.Surgery .Encoding - Base Types
-
- Object
graph BT
Type-->Base0["Object"]
Type["Base32Url"]
class Type type-node
Syntax
public class Base32Url
Attributes
| Type | Description |
|---|---|
| Nullable |
|
| NullableAttribute | |
| PublicAPIAttribute |
Constructors
| Name | Summary |
|---|---|
| Base32Url |
Create case insensitive encoder/decoder using the standard base32 alphabet without padding. White space is not permitted when decoding (not ignored). |
| Base32Url |
Create the encoder/decoder specifying all options manually. |
| Base32Url |
Create the encoder/decoder specifying all options manually. |
| Base32Url |
Create encoder/decoder using the standard base32 alphabet. |
| Base32Url |
Create encoder/decoder using the standard base32 alphabet. White space is not permitted when decoding (not ignored). |
| Base32Url |
Create case insensitive encoder/decoder using the standard base32 alphabet. White space is not permitted when decoding (not ignored). |
| Base32Url |
Create case insensitive encoder/decoder with alternative alphabet and no padding. White space is not permitted when decoding (not ignored). |
Fields
| Name | Constant Value | Summary |
|---|---|---|
| Base32 |
Base32CrockfordHumanFriendlyAlphabet
static
|
|
| Base32 |
ybndrfg8NjkmGpq2HtPRYSszT3J5h769 |
Base32LowProfanityAlphabet
static
|
| Base32 |
ABCDEFGHIJKLMNOPQRSTUVWXYZ234567 |
Base32StandardAlphabet
static
|
| Ignore |
IgnoreWhiteSpaceWhenDecoding
|
|
| IsCaseSensitive |
IsCaseSensitive
|
|
| PaddingChar |
PaddingChar
|
|
| StandardPaddingChar | = |
StandardPaddingChar
static
|
| UsePadding |
UsePadding
|
|
| ZBase32Alphabet | ybndrfg8ejkmcpqxot1uwisza345h769 |
ZBase32Alphabet
static
|
Methods
| Name | Value | Summary |
|---|---|---|
| Decode |
byte[] |
Decodes a base32 string back to the original binary based on the constructor parameters.
|
| Encode |
string |
Converts a byte[] to a base32 string with the parameters provided in the constructor.
|
| FromBase32String |
byte[] |
Decode a base32 string to a byte[] using the default options
(case insensitive without padding using the standard base32 alphabet from rfc4648).
White space is not permitted (not ignored).
Use alternative constructors for more options.
static
|
| ToBase32String |
string |
Encode a base32 string from a byte[] using the default options
(case insensitive without padding using the standard base32 alphabet from rfc4648).
Use alternative constructors for more options.
static
|
Extension Methods
| Name | Value | Summary |
|---|---|---|
| SetBackingValue |
T |
Sets the backing value.
From ValueExtensions
|
| With |
TBuilder |
Adds the specified dictionary to the provided dictionary.
|
