Base32Url Class

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
NullableContextAttribute
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(bool, bool, bool, Base32Url.CharMap[]) Create the encoder/decoder specifying all options manually.
Base32Url(bool, bool, bool, string) Create the encoder/decoder specifying all options manually.
Base32Url(bool, bool, bool) Create encoder/decoder using the standard base32 alphabet.
Base32Url(bool, bool) Create encoder/decoder using the standard base32 alphabet. White space is not permitted when decoding (not ignored).
Base32Url(bool) Create case insensitive encoder/decoder using the standard base32 alphabet. White space is not permitted when decoding (not ignored).
Base32Url(string) 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
Base32CrockfordHumanFriendlyAlphabet
Base32CrockfordHumanFriendlyAlphabet
static
Base32LowProfanityAlphabet ybndrfg8NjkmGpq2HtPRYSszT3J5h769
Base32LowProfanityAlphabet
static
Base32StandardAlphabet ABCDEFGHIJKLMNOPQRSTUVWXYZ234567
Base32StandardAlphabet
static
IgnoreWhiteSpaceWhenDecoding
IgnoreWhiteSpaceWhenDecoding
IsCaseSensitive
IsCaseSensitive
PaddingChar
PaddingChar
StandardPaddingChar =
StandardPaddingChar
static
UsePadding
UsePadding
ZBase32Alphabet ybndrfg8ejkmcpqxot1uwisza345h769
ZBase32Alphabet
static

Methods

Name Value Summary
Decode(string) byte[]
Decodes a base32 string back to the original binary based on the constructor parameters.
Encode(byte[]) string
Converts a byte[] to a base32 string with the parameters provided in the constructor.
FromBase32String(string) 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(byte[]) 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