carpentry-org / hydrogen.carp

A simple wrapper around libhydrogen for Carp
https://veitheller.de/hydrogen/
MIT License
1 stars 0 forks source link

hydrogen

A simple wrapper around libhydrogen for Carp.

(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))))

Installation

(load "git@github.com:carpentry-org/hydrogen.carp.git@0.0.3")

Usage

If you want to see how to use the library, you can look at the examples/ directory or look at the docs website.

Please note that the key exchange API has not been tested exhaustively and could very well be broken. As of now I’d recommend against using it.


Have fun!