Create a custom wireguard key, where its public key starts with a specific string.
Requires the wg
command-line tool. You can usually find it in a package named
wireguard-tools
.
For example, on Debian/Ubuntu:
sudo apt install wireguard-tools
git clone https://github.com/hugojosefson/wg-bruteforce-custom-key
cd wg-bruteforce-custom-key
./src/cli.ts <public_key_prefix>
...where <public_key_prefix>
is any string (using base64 alphabet only) for
your wireguard public key to start with.
Example:
./src/cli.ts "mylaptop"