C# Класс WebApplications.Utilities.Cryptography.Base32EncoderDecoder

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
Base32Encode ( [ input, [ digits = null ) : string
Base32Encode ( this guid, [ digits = null ) : string

Описание методов

Base32Decode() публичный статический Метод

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 ).
Результат byte[]

Base32DecodeGuid() публичный статический Метод

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 ).
Результат System.Guid

Base32DecodeString() публичный статический Метод

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 ).
Результат string

TryBase32Decode() публичный статический Метод

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 ).
Результат bool

TryBase32Decode() публичный статический Метод

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 ).
Результат bool

TryBase32DecodeGuid() публичный статический Метод

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 ).
Результат bool

TryBase32DecodeString() публичный статический Метод

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 ).
Результат bool