MikValSor.Base64 1.0.1

.NET Standard 2.0 .NET Framework 4.5
There is a newer version of this package available.
See the version list below for details.
dotnet add package MikValSor.Base64 --version 1.0.1
NuGet\Install-Package MikValSor.Base64 -Version 1.0.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MikValSor.Base64" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MikValSor.Base64 --version 1.0.1
#r "nuget: MikValSor.Base64, 1.0.1"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install MikValSor.Base64 as a Cake Addin
#addin nuget:?package=MikValSor.Base64&version=1.0.1

// Install MikValSor.Base64 as a Cake Tool
#tool nuget:?package=MikValSor.Base64&version=1.0.1

.NET Standard Library for Base64 value type in a style equivalent to MikValSor.Base32

Value Type Encode Example:

void ValueTypeEncodeExample()
	var bytearray = new byte[] { 0, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11 };
	MikValSor.Encoding.Base64 base64 = new MikValSor.Encoding.Base64(bytearray);
	System.Console.WriteLine($"base64: {base64}");
	base64: AAECBAUGBwgJCgs=

Value Type Parse Example:

void ValueTypeParseExample()
	var base64string = "AAECBAUGBwgJCgs=";
	MikValSor.Encoding.Base64 base64 = MikValSor.Encoding.Base64.Parse(base64string);
	var bytearray = base64.ToByteArray();

	for (var i = 0; i < bytearray.Length; i++)
		System.Console.WriteLine($"bytearray[{i}]: {bytearray[i]}");
	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
Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net45 net451 net452 net46 net461 net462 net463 net47 net471 net472 net48
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on MikValSor.Base64:

Package Downloads

.NET library for hashing in immutable value based style.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.2 4,268 5/8/2018
1.0.1 716 5/3/2018
1.0.0 820 5/1/2018

1.0.1 - Made Base64 value type immutable and serializable.
1.0.0 - Initial release.