-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgendocs.carp
More file actions
37 lines (31 loc) · 999 Bytes
/
gendocs.carp
File metadata and controls
37 lines (31 loc) · 999 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
(load "hydrogen.carp")
(Project.config "title" "Hydrogen")
(Project.config "docs-directory" "./docs/")
(Project.config "docs-logo" "")
(Project.config "docs-url" "https://github.com/carpentry-org/hydrogen")
(Project.config "docs-styling" "../style.css")
(Project.config "docs-prelude" "The hydrogen package is a collection of modules
that wrap the [hydrogen](https://github.com/jedisct1/libhydrogen) cryptography
library.
While the documentation aims to be somewhat comprehensive, looking at the
[documentation of hydrogen](https://github.com/jedisct1/libhydrogen/wiki) is
encouraged for additional context.
```
(load \"git@github.com:carpentry-org/hydrogen.carp.git@0.0.3\")
(def context (Hydro.context \"Examples\"))
(def msg (Hydro.buf \"Arbitrary data to hash\"))
(defn main []
(let [key (HydroHash.keygen)]
(println* &(HydroHash.gen &msg context &key))))
```
")
(save-docs
Hydro
HydroRandom
HydroHash
HydroKDF
HydroSecretBox
HydroSign
HydroPWHash
HydroKX)
(quit)