# sqids/sqids-dotnet

Official .NET port of Sqids. Generate short unique IDs from numbers.

Repository: https://github.com/sqids/sqids-dotnet
Canonical: https://ross.abutalabs.com/products/sqids-dotnet
Homepage: https://sqids.org/dotnet
Language: C#
License: MIT
License Family: permissive
Topics: dot-net, dotnet, id-generator, sqids, csharp, hashids, short-id, short-url, unique-id, unique-id-generator, id, uid
Last push: 2026-02-27T20:25:58+00:00

## Health v2 (maintenance only)
Score: 69/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 69, release rhythm 60, longevity 83
- inputs: {"age_days": 1166, "days_push": 187, "days_rel": 187, "gap_med": 76, "n_releases_24m": 2}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1158, forks 34 (observed 2026-08-28T04:03:48.405950+00:00)

## What it is
Sqids .NET is the official .NET port of Sqids, a small library that generates short, URL-safe, unique-looking IDs from non-negative integers and decodes them back. It supports encoding multiple numbers into one ID, custom shuffled alphabets, minimum-length padding, and a profanity blocklist.

## Use cases
- generate short unique ids from numbers in c#
- obfuscate sequential database primary keys in urls
- encode multiple numbers into one short id
- make youtube-like video ids in .net
- generate profanity-free url-safe identifiers
- create short confirmation codes for emails

## When to choose
- you need reversible, collision-free short IDs from integers in a .NET app
- you want to hide sequential numeric IDs in URLs without encryption
- you need profanity-free, URL-safe identifiers
- you need to encode several numbers into a single compact ID

## When to avoid
- you need encryption or protection of sensitive data — IDs are trivially decodable
- you need globally unique IDs for arbitrary data (use UUIDs instead)
- exposing user counts via decodable user IDs is a concern

## Facets
- artifact type: library
- maturity: active
- function: serialization
- domain: developer-tools, web-development, databases
- platform: dotnet, cross-platform
- tags: short-id, id-generation, obfuscation, url-safe, hashids-successor, csharp

## Member repositories
- sqids/sqids-dotnet (main) score 69

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:48.405950+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:31:59.041637+00:00, confidence not recorded.
  - readme: https://github.com/sqids/sqids-dotnet (fetched 2026-08-28T04:03:48.405950+00:00, sha 620e1f2cd739)
  - homepage: https://sqids.org/dotnet (fetched 2026-08-29T12:36:47.788140+00:00, sha 50b052dd8112)
  - site_page: https://sqids.org/faq (fetched 2026-08-29T12:36:47.790854+00:00, sha e604ee26ebd8)
- Data as of 2026-08-30T08:39:29.467469+00:00.
