WireGuard-vanity-keygen: WireGuard vanity key generator
Published on: 2025-07-02 19:16:13
WireGuard vanity keygen
A command-line vanity (public) key generator for WireGuard. By default, it only matches the prefix of generated public keys, and not whether the search matches anywhere in the public key. The concept is based on wireguard-vanity-address, however I wanted something a little more streamlined.
Features
Generates compliant curve25519 private and public keys
Configurable multi-core processing (defaults to all cores)
Optional case sensitive searching
Optional regex searching
Search multiple prefixes at once
Exit after results limit reached (defaults to 1)
Displays probability and estimated runtime based on quick benchmark
Usage options
Usage: wireguard-vanity-keygen [OPTIONS] [...] Options: -c, --case-sensitive case sensitive match (default false) -t, --threads int threads (defaults to all available cores minus 1) -l, --limit int limit results to n (exists after) (default 1)
Example
$ wireguard-vanity-keygen -l 3 test pc1/ "^pc7[+/]" Calc
... Read full article.