# yomorun/hashids-java

Hashids algorithm v1.0.0 implementation in Java

Repository: https://github.com/yomorun/hashids-java
Canonical: https://ross.abutalabs.com/products/hashids-java
Homepage: http://hashids.org
Language: Java
License: MIT
License Family: permissive
Last push: 2023-10-20T03:26:01+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": 4521, "days_push": 1048, "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 1027, forks 153 (observed 2026-08-28T04:03:16.918705+00:00)

## What it is
A small Java library implementing the Hashids algorithm (v1.0.0) to generate short, unique, decodable, URL-safe hashes from one or more non-negative integers. It is a port of the JavaScript hashids.js library, published to Maven Central as org.hashids.

## Use cases
- generate YouTube-like short IDs from database primary keys
- shorten URLs with unguessable identifiers
- encode multiple integers into a single decodable hash
- hide sequential numeric IDs in public URLs
- generate profanity-free URL-safe confirmation codes
- encode and decode IDs on the fly without storing them in the database

## When to choose
- you need reversible, decodable short IDs from non-negative integers in a Java or Android project
- you want URL-safe identifiers that avoid curse words
- you need to encode several numbers into one hash for clustered systems
- you want a tiny MIT-licensed library available on Maven Central

## When to avoid
- you need to protect sensitive data - hashids is not encryption and can be decoded
- you want to hide user counts or other statistics that IDs could reveal
- you are starting a new project and prefer the newer Sqids algorithm that replaced Hashids
- you need cryptographically secure tokens or authentication credentials

## Facets
- artifact type: library
- maturity: maintenance
- function: serialization, developer-tools
- domain: developer-tools, web-development
- platform: jvm
- tags: hashids, short-ids, url-safe-ids, encoding, decoding, obfuscation, algorithms, android

## Member repositories
- yomorun/hashids-java (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:16.918705+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-30T07:07:55.636761+00:00, confidence not recorded.
  - readme: https://github.com/yomorun/hashids-java (fetched 2026-08-28T04:03:16.918705+00:00, sha 7c65755cc772)
  - homepage: http://hashids.org (fetched 2026-08-29T13:08:02.488468+00:00, sha e3b2502c7adb)
  - site_page: https://sqids.org/faq (fetched 2026-08-29T13:08:02.497823+00:00, sha e604ee26ebd8)
- Data as of 2026-08-30T08:39:29.467469+00:00.
