package crypt

  1. Overview
  2. Docs
A tiny binding for the Unix crypt function

Install

dune-project
 Dependency

Authors

Maintainers

Sources

2.1.tar.gz
md5=b286d5505f1acd863823015d19e1bfcb
sha512=5bf66e8c92cf83c488ee80879eee04588185c078f36c1027fa7e0310e3c3ca61b1b9ca7ea60b4660c8e385d23f862f5c29825456bb4a33f8dd6faa9075007698

doc/crypt/Crypt/index.html

Module CryptSource

A tiny binding for the Unix crypt function.

Sourcetype key_derivation =
  1. | Md5
  2. | Sha256
  3. | Sha512
    (*

    The glibc2's additional encryption algorithms.

    *)
Sourceval crypt : ?derivation:key_derivation -> ?salt:string -> string -> string

crypt ?derivation ~salt key is the password encryption function. It is based on the Data Encryption Standard algorithm with variations intended (among other things) to discourage use of hardware implementations of a key search.

  • parameter salt

    Salt is a two-character string chosen from the set a-zA-Z0-9./.

  • parameter key

    Key is a user's typed password.

  • returns

    Encrypted password.

Salt

Sourcemodule Salt : sig ... end

Low level native bindings

Sourcemodule Ffi : sig ... end