Warning: Reason support is experimental. We are looking for beta-tester and contributors.

Module Crypt

module Crypt : sig..end

crypt_passwd passwd encrypts passwd using the crypt(3) function. The salt is automatically randomly chosen


val crypt_passwd : string -> string Lwt.t

crypt_passwd passwd encrypts passwd using the crypt(3) function. The salt is automatically randomly chosen

val check_passwd : passwd:string -> hash:string -> bool Lwt.t

check_passwd passwd hash checks whether hash is correct for passwd