MikValSor.Base32 1.0.2

Base32 Encoder, Decoder and ValueType. Implemented according to RFC4648.

There is a newer version of this package available.
See the version list below for details.
Install-Package MikValSor.Base32 -Version 1.0.2
dotnet add package MikValSor.Base32 --version 1.0.2
<PackageReference Include="MikValSor.Base32" Version="1.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MikValSor.Base32 --version 1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

MikValSor.Base32

Libaray for Base32 Encoder, Decoder and ValueType. Implemented according to RFC4648.

Encoding Example:

static void EncodeExample()
{
	var bytearray = new byte[] { 0, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11 };
	var base32string = MikValSor.Encoding.Base32Encoder.Encode(bytearray);

	System.Console.WriteLine($"base32string: {base32string}");
}
/**
	Output:
	base32string: AAAQEBAFAYDQQCIKBM
**/

Decoding Example:

static void DecodeExample()
{
	var base32string = "AAAQEBAFAYDQQCIKBM======";
	var bytearray = MikValSor.Encoding.Base32Decoder.Decode(base32string);

	for (var i = 0; i < bytearray.Length; i++)
	{
		System.Console.WriteLine($"bytearray[{i}]: {bytearray[i]}");
	}
}
/**
	Output:
	bytearray[0]: 0
	bytearray[1]: 1
	bytearray[2]: 2
	bytearray[3]: 4
	bytearray[4]: 5
	bytearray[5]: 6
	bytearray[6]: 7
	bytearray[7]: 8
	bytearray[8]: 9
	bytearray[9]: 10
	bytearray[10]: 11
**/

MikValSor.Base32

Libaray for Base32 Encoder, Decoder and ValueType. Implemented according to RFC4648.

Encoding Example:

static void EncodeExample()
{
	var bytearray = new byte[] { 0, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11 };
	var base32string = MikValSor.Encoding.Base32Encoder.Encode(bytearray);

	System.Console.WriteLine($"base32string: {base32string}");
}
/**
	Output:
	base32string: AAAQEBAFAYDQQCIKBM
**/

Decoding Example:

static void DecodeExample()
{
	var base32string = "AAAQEBAFAYDQQCIKBM======";
	var bytearray = MikValSor.Encoding.Base32Decoder.Decode(base32string);

	for (var i = 0; i < bytearray.Length; i++)
	{
		System.Console.WriteLine($"bytearray[{i}]: {bytearray[i]}");
	}
}
/**
	Output:
	bytearray[0]: 0
	bytearray[1]: 1
	bytearray[2]: 2
	bytearray[3]: 4
	bytearray[4]: 5
	bytearray[5]: 6
	bytearray[6]: 7
	bytearray[7]: 8
	bytearray[8]: 9
	bytearray[9]: 10
	bytearray[10]: 11
**/

Release Notes

1.0.2 - Fixed encoding bug and optimizations.
1.0.1 - Added in class documentation.
1.0.0 - Initial release.

Version History

Version Downloads Last updated
1.0.6 233 5/8/2018
1.0.5 176 5/3/2018
1.0.4 207 4/30/2018
1.0.3 165 4/23/2018
1.0.2 167 4/23/2018
1.0.1 279 4/20/2018
1.0.0 281 4/20/2018