Skip to content

Latest commit

 

History

History
16 lines (10 loc) · 714 Bytes

NUGET-README.md

File metadata and controls

16 lines (10 loc) · 714 Bytes

The official .NET port of Sqids

Sqids (pronounced "squids") is a small library that lets you generate YouTube-like IDs from numbers. It turns numbers like 127 into strings like yc3, which you can then decode back into the original numbers. Sqids is useful for when you want to hide numbers (like sequential numeric IDs) into random-looking strings to be used in URLs and elsewhere.

Basic Usage:

using Sqids;

var sqids = new SqidsEncoder<int>();

var id = sqids.Encode(1, 2, 3); // "86Rf07"
var numbers = sqids.Decode(id); // [1, 2, 3]

Note: For the full documentation and other examples, check out the GitHub repository.