Argon2Ocaml bindings to Argon2.
module ErrorCodes : sig ... endmodule type HashFunctions = sig ... endmodule I : HashFunctionsBindings to Argon2i.
module D : HashFunctionsBindings to Argon2d.
module ID : HashFunctionsBindings to Argon2id.
val show_kind : [ `Upper | `Lower ] -> kind -> stringval hash :
t_cost:int ->
m_cost:int ->
parallelism:int ->
pwd:string ->
salt:string ->
kind:kind ->
hash_len:int ->
encoded_len:int ->
version:version ->
(hash * encoded, ErrorCodes.t) Result.resultGeneric function underlying the above ones.
val verify :
encoded:encoded ->
pwd:string ->
kind:kind ->
(bool, ErrorCodes.t) Result.resultVerifies a password against an encoded string.
val encoded_len :
t_cost:int ->
m_cost:int ->
parallelism:int ->
salt_len:int ->
hash_len:int ->
kind:kind ->
intReturns the encoded hash length for the given input parameters.