DEV Community

Karim Fahmy
Karim Fahmy

Posted on

ShortId Factory

ShortIdFactory

A library that generates unique random identifiers by set characters length. Identifiers generated can be used as primary keys for databases and unique identifiers.

Install ShortIdFactory with Nuget

dotnet add package ShortIdFactory

Usage
var shortId = new ShortIdFactory(characterCount: 11).Generate();
// _6ulErifjS0

Source code

enjoy

Top comments (0)