# davidaurelio/hashids-python

Implementation of hashids (http://hashids.org) in Python. Compatible with Python 2 and Python 3

Repository: https://github.com/davidaurelio/hashids-python
Canonical: https://ross.abutalabs.com/products/hashids-python
Language: Python
License: MIT
License Family: permissive
Last push: 2023-07-04T14:06:52+00:00

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

## Adoption (not part of the score)
Stars 1412, forks 104 (observed 2026-08-28T04:04:39.137350+00:00)

## What it is
A Python implementation of the hashids algorithm that generates short, URL-friendly, obfuscated hashes from integers. It lets you hide database IDs from users while remaining fully reversible with the correct salt.

## Use cases
- hide database ids in urls
- generate short youtube-like ids from integers
- obfuscate sequential primary keys
- encode multiple integers into one reversible string
- create salted reversible id hashes

## When to choose
- you need reversible, obfuscated integer ids rather than one-way hashing
- you want cross-language compatibility with other hashids implementations
- you need short, url-safe identifiers for public-facing apis

## When to avoid
- you need cryptographic security - hashids is obfuscation, not encryption
- you need one-way hashing like bcrypt or sha
- you need random unique ids like uuids

## Facets
- artifact type: library
- maturity: maintenance
- function: serialization, security, developer-tools
- domain: developer-tools, web-development, security, apis
- platform: python, cross-platform
- tags: hashids, id-obfuscation, integer-encoding, short-hashes, url-friendly-ids

## Member repositories
- davidaurelio/hashids-python (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:39.137350+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:38:19.836038+00:00, confidence not recorded.
  - readme: https://github.com/davidaurelio/hashids-python (fetched 2026-08-28T04:04:39.137350+00:00, sha aadd05021996)
- Data as of 2026-08-30T08:39:29.467469+00:00.
