C# Class Qowaiv.Text.Base32

is a group of similar binary-to-text encoding schemes that represent binary data in an ASCII string format by translating it into a radix-32 representation.
Codes originates from see http://scottless.com/blog/archive/2014/02/15/base32-encoder-and-decoder-in-c.aspx.
Show file Open project: Corniel/Qowaiv

Public Methods

Method Description
GetBytes ( string s ) : byte[]

Gets the bytes for a given Base32 string.

ToString ( byte bytes ) : string

Represents a byte array as a string.

TryGetBytes ( string s, byte &bytes ) : bool

Tries to get the corresponding bytes of the Base32 string.

Method Details

GetBytes() public static method

Gets the bytes for a given Base32 string.
/// If the string is not a valid Base32 string. ///
public static GetBytes ( string s ) : byte[]
s string /// The Base32 string ///
return byte[]

ToString() public static method

Represents a byte array as a string.
public static ToString ( byte bytes ) : string
bytes byte
return string

TryGetBytes() public static method

Tries to get the corresponding bytes of the Base32 string.
public static TryGetBytes ( string s, byte &bytes ) : bool
s string /// The string to convert. ///
bytes byte /// The bytes represented by the Base32 string. ///
return bool