Czlovek.Encoders 2.1.0-beta.75

This is a prerelease version of Czlovek.Encoders.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Czlovek.Encoders --version 2.1.0-beta.75
                    
NuGet\Install-Package Czlovek.Encoders -Version 2.1.0-beta.75
                    
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="Czlovek.Encoders" Version="2.1.0-beta.75" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Czlovek.Encoders" Version="2.1.0-beta.75" />
                    
Directory.Packages.props
<PackageReference Include="Czlovek.Encoders" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Czlovek.Encoders --version 2.1.0-beta.75
                    
#r "nuget: Czlovek.Encoders, 2.1.0-beta.75"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Czlovek.Encoders@2.1.0-beta.75
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Czlovek.Encoders&version=2.1.0-beta.75&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Czlovek.Encoders&version=2.1.0-beta.75&prerelease
                    
Install as a Cake Tool

Base64 Encoding/Decoding Extensions

This C# class provides extensions to convert strings and byte arrays to and from Base64 encoding. Base64 encoding is a way to represent binary data in an ASCII string format, making it easier to transmit over text-based protocols such as HTTP.

Usage

Converting a string to Base64 encoded ASCII string
string input = "Hello, world!";
string base64AsciiString = input.ConvertToBase64AsciiString();
// base64AsciiString = "SGVsbG8sIHdvcmxkIQ=="
Converting a string to Base64 encoded UTF-8 string
string input = "こんにちは、世界!";
string base64Utf8String = input.ConvertToBase64Utf8String();
// base64Utf8String = "44GC44GE44GG44Gv44Gr44Gh44Gv44CB5LiW55WMhIS"
Converting a byte array to Base64 encoded string
byte[] input = new byte[] { 0x12, 0x34, 0x56, 0x78 };
string base64String = input.ConvertToBase64String();
// base64String = "EjRWdg=="
Converting a Base64 encoded ASCII string to string
string base64AsciiString = "SGVsbG8sIHdvcmxkIQ==";
string output = base64AsciiString.ConvertBase64ToAsciiString();
// output = "Hello, world!"
Converting a Base64 encoded UTF-8 string to string
string base64Utf8String = "44GC44GE44GG44Gv44Gr44Gh44Gv44CB5LiW55WMhIS";
string output = base64Utf8String.ConvertBase64ToUtf8String();
// output = "こんにちは、世界!"
Converting a Base64 encoded string to byte array
string base64String = "EjRWdg==";
byte[] output = base64String.ConvertBase64ToBytes();
// output = new byte[] { 0x12, 0x34, 0x56, 0x78 }
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Czlovek.Encoders:

Package Downloads
Czlovek.Security

A collection of methods for generating, hashing, and encrypting data.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.1.0-beta.84 48 5/7/2026
2.1.0-beta.83 52 5/7/2026
2.1.0-beta.82 95 3/20/2026
2.1.0-beta.81 68 2/21/2026
2.1.0-beta.80 70 2/21/2026
2.1.0-beta.79 79 2/13/2026
2.1.0-beta.78 81 2/11/2026
2.1.0-beta.77 71 2/11/2026
2.1.0-beta.76 65 2/10/2026
2.1.0-beta.75 74 2/10/2026
2.1.0-beta.74 74 1/28/2026
2.1.0-beta.73 203 11/6/2025
2.1.0-beta.72 169 11/6/2025
2.1.0-beta.71 197 11/4/2025
2.1.0-beta.70 191 11/4/2025
2.1.0-beta.69 175 11/4/2025
2.1.0-beta.68 176 11/4/2025
2.1.0-beta.67 198 11/2/2025
2.1.0-beta.66 180 11/2/2025
1.0.10 766 4/11/2023
Loading failed