package hashids

  1. Overview
  2. Docs
[hashids](http://hashids.org/): generate short, unique, non-sequential ids from numbers, that you can also decode

Install

Dune Dependency

Authors

Maintainers

Sources

1.0.0.tar.gz
sha256=734e3e8103ea79df5233578e4f0969ecea5d81aa4de7ba83e6b1b73d14dcaac5
md5=73987f5924ff28825747e0744895f9e7

doc/hashids/Hashids/index.html

Module Hashids

type t
val make : ?salt:string -> ?min_length:int -> ?alphabet:string -> unit -> t

``salt``: an arbitrary string used to randomize the encoding.

``min_length``: an integer specifying the minimal length of encoded values. Useful to hide their order of magnitude.

``alphabet``: the set of characters used to encode.

val encode : t -> int list -> string
val decode : t -> string -> int list
module Tests : sig ... end
OCaml

Innovation. Community. Security.