#wireguard #key #wireguard-keys

wireguard-keys

Generate, parse and export WireGuard (x25519) keys

2 releases

0.1.1 Jun 6, 2022
0.1.0 Mar 31, 2022

#1341 in Cryptography

Download history 76/week @ 2024-12-11 37/week @ 2024-12-18 7/week @ 2024-12-25 53/week @ 2025-01-01 50/week @ 2025-01-08 74/week @ 2025-01-15 38/week @ 2025-01-22 48/week @ 2025-01-29 49/week @ 2025-02-05 62/week @ 2025-02-12 40/week @ 2025-02-19 67/week @ 2025-02-26 37/week @ 2025-03-05 62/week @ 2025-03-12 42/week @ 2025-03-19 69/week @ 2025-03-26

215 downloads per month
Used in 2 crates

AGPL-3.0-only

21KB
436 lines

WireGuard Keys

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

Features

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.

Dependencies

~2–37MB
~517K SLoC