package crypt
All checked builds passInstall
dune-project
Dependency
Authors
Maintainers
Sources
md5=b286d5505f1acd863823015d19e1bfcb
sha512=5bf66e8c92cf83c488ee80879eee04588185c078f36c1027fa7e0310e3c3ca61b1b9ca7ea60b4660c8e385d23f862f5c29825456bb4a33f8dd6faa9075007698
Description
A tiny binding for the Unix crypt function
README
crypt
A tiny binding for the Unix crypt function provides a high-level interface.
Installation
You can install the latest released version of the library using the OPAM package manager.
$ opam install cryptAlternatively, you can pin the development (upstream) version.
$ opam pin crypt.dev https://github.com/vbmithr/ocaml-crypt.gitQuick Start
The Crypt module contains only one function, crypt, with several parameters.
# #require "crypt";;
# Crypt.crypt ~salt:"GUBv0xjJ" "hello";;
- : string = "GUpsIDCLVu8AY"
# Crypt.crypt ~derivation:Md5 ~salt:"GUBv0xjJ" "hello";;
- : string = "$1$GUBv0xjJ$rQSvX8r6cT7H/NItzzVNQ/"If you don't provide any salt, a new salt will be generated every time the function is called.
# Crypt.crypt "hello";;
- : string = "QwD.wi5nLT/0s"
# Crypt.crypt "hello";;
- : string = "MYM.5hv5Lk2Mg"For a deterministic generation, you should use one salt that you can generate using the Crypt.Salt module or another external module.
# let salt = Crypt.Salt.gen_base64 9;;
val salt : string = "dHiPl3q99"
# Crypt.crypt ~salt "hello";;
- : string = "dHDdeFGUWcGyQ"References
License
The project is licensed under the ISC License, which allows for all permissions. Just use it and enjoy yourself without fear.
Dependencies (3)
- ocaml
- dune-configurator
-
dune
>= "3.6"
Dev Dependencies (1)
-
odoc
with-doc
Optional Dependencies
None
Used by
None
Conflicts
None
Build status
Results of building crypt with each compiler on check.ci.ocaml.org, run of against opam-repository 8a77e58. All results for this package.
Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.
| Version | OCaml 4.11 | OCaml 4.14 | OCaml 5.2 | OCaml 5.4 | OCaml 5.5 |
|---|---|---|---|---|---|
| 2.1 (this version) | good | good | good | good | good |
- good Package successfully built
- partial One of the dependencies failed to build
- bad Package failed to build
- n/a Package is not available in this environment
- internal Internal failure