C# Class SecurityDriven.Inferno.Extensions.Base32Extensions

显示文件 Open project: sdrapkin/SecurityDriven.Inferno

Public Methods

Method Description
FromBase32 ( this str32, Base32Config config = null ) : byte[]

Converts a Base32-encoded string into equivalent byte array. Does not validate Base32 encoding correctness.

ToBase32 ( this binary, Base32Config config = null ) : string

Converts a byte array into equivalent Base32-encoded string.

Binary array length must be a multiple of 5.

ToBase32 ( this binarySegment, Base32Config config = null ) : string

Converts a byte array segment into equivalent Base32-encoded string.

Binary segment length must be a multiple of 5.

Method Details

FromBase32() public static method

Converts a Base32-encoded string into equivalent byte array. Does not validate Base32 encoding correctness.
public static FromBase32 ( this str32, Base32Config config = null ) : byte[]
str32 this
config Base32Config
return byte[]

ToBase32() public static method

Converts a byte array into equivalent Base32-encoded string.
Binary array length must be a multiple of 5.
public static ToBase32 ( this binary, Base32Config config = null ) : string
binary this
config Base32Config
return string

ToBase32() public static method

Converts a byte array segment into equivalent Base32-encoded string.
Binary segment length must be a multiple of 5.
public static ToBase32 ( this binarySegment, Base32Config config = null ) : string
binarySegment this
config Base32Config
return string