NesHashedSecretUnixHigh-level utilities to manipulate hashed values safely, eg. tokens or passwords.
include module type of Nes.HashedSecretHigh-level utilities to manipulate hashed secrets safely. This can be used for passwords and tokens, for instance.
type t = NesHashedSecret.tAbstract type of a hashed secret.
val pp :
Ppx_deriving_runtime.Format.formatter ->
t ->
Ppx_deriving_runtime.unitval show : t -> Ppx_deriving_runtime.stringval to_yojson : t -> Yojson.Safe.tval of_yojson : Yojson.Safe.t -> t Ppx_deriving_yojson_runtime.error_orval make : clear:string -> tMake a password from a clear text. This function will generate a salt randomly, and, as such, is not deterministic.
val is : clear:string -> t -> boolCompare a clear text and a hashed password.