hashids

Hashids generates short, unique, non-sequential ids from numbers.

http://hashids.org/

Version on this page:1.0.2.3@rev:2
LTS Haskell 22.14:1.1.1.0
Stackage Nightly 2024-03-28:1.1.1.0
Latest on Hackage:1.1.1.0

See all snapshots hashids appears in

MIT licensed by Johannes Hildén
Maintained by [email protected]
This version can be pinned in stack with:hashids-1.0.2.3@sha256:e03b6340fb9b7ac909370b28b3c7342a30115bfb5137424fe4974dc00ef99fd0,1487

Module documentation for 1.0.2.3

  • Web
    • Web.Hashids

This is a Haskell port of the Hashids library. It is typically used to encode numbers to a format suitable to appear in visible places like urls. It converts numbers like 347 into strings like yr8, or a list of numbers like [27, 986] into 3kTMd. You can also decode those ids back. This is useful in bundling several parameters into one.