Crates.io | wireguard-keys |
lib.rs | wireguard-keys |
version | 0.1.1 |
source | src |
created_at | 2022-03-31 16:12:14.556163 |
updated_at | 2022-06-06 21:11:34.017805 |
description | Generate, parse and export WireGuard (x25519) keys. |
homepage | |
repository | https://gitlab.com/fractalnetworks/wireguard-keys |
max_upload_size | |
id | 559695 |
size | 21,967 |
This is a utility crate containing data structures relating to WireGuard. There are no builds for it, but the RustDoc documentation is published on every commit.
Resources:
To build this, you want to run make setup-git
because it will use your SSH keys instead of asking for git credentials (and possibly requiring 2-factor authentication).
By default, this crate only provides types for WireGuard keys (Pubkey, Privkey, Secret). These optional features can be enabled:
serde
: serialization and deserialization capabilities (enabled by default).hex
: convert to and from hex (enabled by default).base64
: convert to and from base64 (enabled by default).base32
: convert to and from base32.rocket
: ability to parse WireGuard keys from HTTP requests in Rocket.schema
: ability to generate JSON schemas from the types.