# speps/go-hashids

Go (golang) implementation of http://www.hashids.org

Repository: https://github.com/speps/go-hashids
Canonical: https://ross.abutalabs.com/products/go-hashids
Language: Go
License: MIT
License Family: permissive
Topics: hashids, golang
Last push: 2022-06-24T11:49:40+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 5093, "days_push": 1531, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1376, forks 111 (observed 2026-08-28T04:04:33.332754+00:00)

## What it is
A Go implementation of the Hashids algorithm, which encodes integers into short, unique, obfuscated string hashes with a configurable salt and minimum length. It also ships a small CLI tool for generating hashids from the command line.

## Use cases
- obfuscate database ids in urls
- generate short unique ids from integers
- encode integer arrays into reversible hash strings
- hide sequential record numbers from users
- decode hashids back to original integers
- generate hashids from the command line

## When to choose
- you need reversible, salted obfuscation of integer ids in a Go project
- you want compatibility with the standard Hashids spec across languages
- you need short non-sequential identifiers for public-facing urls

## When to avoid
- you need cryptographically secure encryption rather than obfuscation
- you need non-integer identifiers like uuids
- you need a maintained solution with frequent updates

## Facets
- artifact type: library
- maturity: maintenance
- function: serialization, security, developer-tools
- domain: developer-tools, web-development
- platform: go, cli, cross-platform
- tags: hashids, id-obfuscation, short-ids, encoding, decoding, algorithms

## Member repositories
- speps/go-hashids (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:33.332754+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-30T04:40:32.249830+00:00, confidence not recorded.
  - readme: https://github.com/speps/go-hashids (fetched 2026-08-28T04:04:33.332754+00:00, sha 55da33439407)
- Data as of 2026-08-30T08:39:29.467469+00:00.
