Skip to content

foxhound-systems/hashids-st

Repository files navigation

Hashids

This is a direct translation of vinkla/hashids. It is implemented using the ST monad in order to make it as similar as possible to the php implementation. The test suite from vinkla/hashids has been translated to hspec to ensure complete compatability.

Usage

doEncoding =
  let Right ctx = mkHashidsContext "this is my salt" 8 defaultAlphabet
  encode ctx [1]

About

Reimplementation of Hashids using the ST monad

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published