A CLI tool and Rust library to generate authentication for devices in a Ditto mesh.
To generate a key for shared key authentication install the tool and run:
ditto-authtool generate-shared-key
Head to the Releases page and download the binary for your platform.
Mac users may need to remove the quarantine flag:
xattr -r -d com.apple.quarantine ./ditto-authtool
Ensure you have a stable Rust toolchain installed with rustup. Clone this repository and open a terminal inside it. Run:
cargo install --path .
The ditto-authtool binary will be built and placed in your PATH (generally ~/.cargo/bin).
The ditto-authtool crate can also be embedded in your own Rust software to automate your authentication workflows.
Generate docs with cargo doc --open.