https://github.com/janet-lang/jhydro
Crypto for Janet
https://github.com/janet-lang/jhydro
Last synced: 8 months ago
JSON representation
Crypto for Janet
- Host: GitHub
- URL: https://github.com/janet-lang/jhydro
- Owner: janet-lang
- License: mit
- Created: 2019-10-04T04:31:09.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-07-14T12:45:59.000Z (over 2 years ago)
- Last Synced: 2025-04-03T23:51:11.653Z (9 months ago)
- Language: C
- Homepage: https://janet-lang.github.io/jhydro/
- Size: 102 KB
- Stars: 27
- Watchers: 5
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# jhydro
Lightweight cryptographic and random number generation utils for Janet. Based on [libhydrogen](https://github.com/jedisct1/libhydrogen/).
Bindings for most of the libhydrogen API are available so far, with the exception of the key sharing API.
```clojure
(use jhydro)
(print (random/u32))
(pp (random/buf 1024))
(def buf @"")
(for i 0 10
(random/buf buf 64))
```
## Documentation
Documentation can be built with [Mendoza](https://github.com/bakpakin/mendoza).
First, install the latest verion of mendoza, and then run `mdz && mdz serve`
from the jhydro repository directory. You can then navigate to
`http://localhost:8000` to see the documentation.
## Building
```
jpm build
```
To build the library.
## Testing
```
jpm test
```
## License
This module is licensed under the MIT/X11 License.