Elm port of the Hashids library.
Switch branches/tags
Clone or download
Latest commit 6869e26 Jun 6, 2018
Permalink
Failed to load latest commit information.
src update to elm 0.19 Jun 6, 2018
tests update to elm 0.19 Jun 6, 2018
.gitignore update to elm 0.19 Jun 6, 2018
LICENSE Initial commit Apr 5, 2016
README.md update to elm 0.19 Jun 6, 2018
elm.json update to elm 0.19 Jun 6, 2018

README.md

elm-hashids

Elm port of the Hashids library. http://hashids.org

Install:
elm install pdamoc/elm-hashids
Hello, World:
import Html exposing (..)
import Hashids exposing (..)

hashids = hashidsSimple "this is my salt"
ids = encodeList hashids [1, 2, 3]
numbers = decode hashids ids

main : Html
main = 
  div []
    [ text ids
    , br [] []
    , text <| Debug.toString numbers
    ]