Skip to content
A 6-bit string encoding library for .NET-Standard. πŸ“
C#
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
MiniStringLib
Tests
.gitignore
MiniString.sln
license.txt
readme.md

readme.md

MiniString

A 6-bit string encoding library for .NET-Standard.

Supports serializing A-Z, a-z, 0-9 and _ with just 6 bits each. All other characters are serialized with 24 bits. This makes MiniString ideal for saving machine generated strings such as IDs.

Compile

$ dotnet build

Usage

byte[] MiniString.Encode(string text)
string MiniString.Decode(byte[] bytes)
MiniString.Encode("Hello_World");
// [82, 10, 195, 243, 31, 206, 54, 140, 2]
// 11 characters have been serialized to 8 bytes!
You can’t perform that action at this time.