C# Class WebApplications.Utilities.Cryptography.Base32EncoderDecoder

Mostrar archivo Open project: webappsuk/CoreLibraries Class Usage Examples

Public Methods

Method Description
Base32Decode ( [ base32String, [ digits = null, [ comparer = null ) : byte[]

Tries to convert base32 string to a byte array.

Base32DecodeGuid ( [ base32String, [ digits = null, [ comparer = null ) : System.Guid

Tries to convert base32 string to a GUID.

Base32DecodeString ( [ base32String, [ digits = null, [ comparer = null ) : string

Tries to convert base32 string to a string.

TryBase32Decode ( [ base32String, [ buffer, int offset, int length = -1, [ digits = null, [ comparer = null ) : bool

Tries to convert base32 string to array of bytes.

TryBase32Decode ( [ base32String, byte &outputBytes, [ digits = null, [ comparer = null ) : bool

Tries to convert base32 string to array of bytes.

TryBase32DecodeGuid ( [ base32String, System.Guid &output, [ digits = null, [ comparer = null ) : bool

Tries to convert base32 string to a GUID.

TryBase32DecodeString ( [ base32String, string &output, [ digits = null, [ comparer = null ) : bool

Tries to convert base32 string to string.

Private Methods

Method Description
Base32Encode ( [ input, [ digits = null ) : string
Base32Encode ( this guid, [ digits = null ) : string

Method Details

Base32Decode() public static method

Tries to convert base32 string to a byte array.
public static Base32Decode ( [ base32String, [ digits = null, [ comparer = null ) : byte[]
base32String [ Base32 string to convert.
digits [ The digits.
comparer [ The character comparer (defaults to ).
return byte[]

Base32DecodeGuid() public static method

Tries to convert base32 string to a GUID.
public static Base32DecodeGuid ( [ base32String, [ digits = null, [ comparer = null ) : System.Guid
base32String [ Base32 string to convert.
digits [ The digits.
comparer [ The character comparer (defaults to ).
return System.Guid

Base32DecodeString() public static method

Tries to convert base32 string to a string.
public static Base32DecodeString ( [ base32String, [ digits = null, [ comparer = null ) : string
base32String [ Base32 string to convert.
digits [ The digits.
comparer [ The character comparer (defaults to ).
return string

TryBase32Decode() public static method

Tries to convert base32 string to array of bytes.
public static TryBase32Decode ( [ base32String, [ buffer, int offset, int length = -1, [ digits = null, [ comparer = null ) : bool
base32String [ Base32 string to convert.
buffer [ The buffer to fill.
offset int The offset in the buffer.
length int The length (if set will ensure that length bytes are filled).
digits [ The digits.
comparer [ The character comparer (defaults to ).
return bool

TryBase32Decode() public static method

Tries to convert base32 string to array of bytes.
public static TryBase32Decode ( [ base32String, byte &outputBytes, [ digits = null, [ comparer = null ) : bool
base32String [ Base32 string to convert.
outputBytes byte The output bytes.
digits [ The digits.
comparer [ The character comparer (defaults to ).
return bool

TryBase32DecodeGuid() public static method

Tries to convert base32 string to a GUID.
public static TryBase32DecodeGuid ( [ base32String, System.Guid &output, [ digits = null, [ comparer = null ) : bool
base32String [ Base32 string to convert.
output System.Guid The output.
digits [ The digits.
comparer [ The character comparer (defaults to ).
return bool

TryBase32DecodeString() public static method

Tries to convert base32 string to string.
public static TryBase32DecodeString ( [ base32String, string &output, [ digits = null, [ comparer = null ) : bool
base32String [ Base32 string to convert.
output string The output.
digits [ The digits.
comparer [ The character comparer (defaults to ).
return bool