package passe

  1. Overview
  2. Docs

Module PasseSource

Sourcetype hash

A hashed password. This represent a password that has been put through a hashing function.

Sourceval hash_to_string : hash -> string

hash_to_string h converts the hash h to its string representation

Sourceval hash_of_string : string -> hash

hash_of_string s convert the string to its hash representation, this function must only be used when you know your string is the result of previous operation, eg when you get the string from database.

Sourcemodule Bcrypt : sig ... end
Sourcemodule Argon2 : sig ... end