Registry / utility / hashids-hashids

hashids-hashids

JSON →
library5.0.2phppackagistunverified

Generate short, unique, non-sequential ids (like YouTube and Bitly) from numbers

composer require hashids/hashids
INSTALL
IMPORT
SIG · HASHIDS-HASHIDS
H
hashids-hashids
utilityphpv5.0.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Hashids
use Hashids\Hashids;

Encode numbers into a short, unique hash.

use Hashids\Hashids; $hashids = new Hashids('my-salt', 10); $id = $hashids->encode(1, 2, 3); echo $id; // e.g., 'G6a8kL9pQr'
Debug
Known issues
gotchaHashids are not cryptographically secure; do not use for sensitive data.
fix
Use a proper encryption library for security.
affects: *
Upgrade
Version history
5.0.2latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
hashids-hashids — pip install hashids-hashids · libregistry