gittech. site

for different kinds of informations and explorations.

wireguard-vanity-key – find WireGuard keypair with a given prefix

Published at
3 days ago

wireguard-vanity-key

Inspired by wireguard-vanity-address "faster algorithm", this tool searches for a WireGuard Curve25519 keypair with a base64-encoded public key that has a specified prefix.

Example

Install the tool locally and run:

$ go install github.com/AlexanderYastrebov/wireguard-vanity-key@latest
$ wireguard-vanity-key -prefix=2025
private                                      public                                       attempts   duration   attempts/s
WHakaGFouuy2AxMmOdSTf2L2KWsI6a3s+gvAOKuKtH0= 2025sb38RUVI+GJg5Uk2RRPuJfhZyg4uSxfV2WDn1g8= 47423039   2s         19926032

$ # verify
$ echo WHakaGFouuy2AxMmOdSTf2L2KWsI6a3s+gvAOKuKtH0= | wg pubkey
2025sb38RUVI+GJg5Uk2RRPuJfhZyg4uSxfV2WDn1g8=

or run the tool from the source repository:

$ go run . -prefix=2025

or use Docker image:

$ docker pull ghcr.io/alexanderyastrebov/wireguard-vanity-key:latest
$ docker run  ghcr.io/alexanderyastrebov/wireguard-vanity-key:latest -prefix=2025

Performance

The tool checks ~18'000'000 keys per second on a test machine:

$ go test . -run=NONE -bench=BenchmarkFindPointParallel -benchmem -count=10
goos: linux
goarch: amd64
pkg: github.com/AlexanderYastrebov/wireguard-vanity-key
cpu: Intel(R) Core(TM) i5-8350U CPU @ 1.70GHz
BenchmarkFindPointParallel-8    19739348                54.33 ns/op            0 B/op          0 allocs/op
BenchmarkFindPointParallel-8    19185619                55.42 ns/op            0 B/op          0 allocs/op
BenchmarkFindPointParallel-8    19316592                56.08 ns/op            0 B/op          0 allocs/op
BenchmarkFindPointParallel-8    18855543                56.95 ns/op            0 B/op          0 allocs/op
BenchmarkFindPointParallel-8    18705961                56.46 ns/op            0 B/op          0 allocs/op
BenchmarkFindPointParallel-8    18718236                56.45 ns/op            0 B/op          0 allocs/op
BenchmarkFindPointParallel-8    18693268                56.78 ns/op            0 B/op          0 allocs/op
BenchmarkFindPointParallel-8    18495776                57.85 ns/op            0 B/op          0 allocs/op
BenchmarkFindPointParallel-8    18160232                58.81 ns/op            0 B/op          0 allocs/op
BenchmarkFindPointParallel-8    18100197                57.53 ns/op            0 B/op          0 allocs/op
PASS
ok      github.com/AlexanderYastrebov/wireguard-vanity-key      21.154s

Similar projects

Earn $100 Fast: AI + Notion Templates

Earn $100 Fast: AI + Notion Templates

Get the guide here

Do you want to make extra money quickly? This guide shows you how to create and sell Notion templates step by step. Perfect for beginners or anyone looking for an easy way to start earning online.

Why Download This Guide?

  • Start Making Money Fast: Follow a simple process to create templates people want and will buy.
  • Save Time with AI: Learn to use tools like ChatGPT to design and improve templates.
  • Join a Growing Market: More people are using Notion every day, and they need templates to save time and stay organized.

Includes Helpful Tools:

  • ChatGPT Prompts PDF: Ready-made prompts to spark ideas and create templates faster.
  • Checklist PDF: Stay on track as you work.

What’s Inside?

  • Clear Steps to Follow: Learn everything from idea to sale.
  • How to Find Popular Ideas: Research trends and needs.
  • Using AI to Create: Tips for improving templates with AI tools.
  • Making Templates User-Friendly: Simple tips for better design.
  • Selling Your Templates: Advice on sharing and selling on platforms like Gumroad or Etsy.
  • Fixing Common Problems: Solutions for issues like low sales or tricky designs.

Who Is This For?

  • Anyone who wants to make extra money online.
  • People who love using Notion and want to share their ideas.
  • Creators looking for a simple way to start selling digital products.

Get your copy now and start making money today!


πŸ’° Want to Earn 40% Commission?

Join our affiliate program and start making money by promoting well crafter prodicts! Earn 40% on every sale you refer.

πŸ”— Sign up as an affiliate here: Become an Affiliate