package hashids

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
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.