Skip to content

1F47E/onion-gen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

onion-gen

Vanity v3 .onion address generator. Multi-threaded ed25519 keygen in Rust with prefix/regex matching. Outputs Tor-native key files ready to drop into a hidden service directory.

Install

git clone https://github.com/1F47E/onion-gen.git
cd onion-gen
cargo build --release

Usage

# Find address starting with "yp"
onion-gen yp

# Multiple prefixes, find 5 matches
onion-gen --count 5 yppr ypp yp

# Save Tor-native hs_ed25519_* key files
onion-gen --tor-keys yppr

# Regex mode
onion-gen --regex "^yp[a-z]r"

# Control worker threads (default: num_cpus - 1)
onion-gen --workers 8 yppr

Output

Each match saves to ./hostnames/<address>/:

hostnames/
└── ypprwxvh...faid/
    ├── hostname              # ypprwxvh...faid.onion
    ├── private_key           # 64-byte ed25519 key (seed + pubkey)
    ├── hs_ed25519_secret_key # Tor-native secret key (with --tor-keys)
    └── hs_ed25519_public_key # Tor-native public key (with --tor-keys)

Drop the hs_ed25519_* files + hostname into your Tor hidden service directory and restart Tor.

Performance

Machine Cores Workers Keys/sec
Apple M1 Pro 10 9 ~51K
Hetzner AX41 (AMD) 24 23 ~918K

Found yapper (6-char prefix, ~1B search space) in 14 minutes on 24-core Hetzner.

Base32 note

Onion addresses use base32: a-z + 2-7. No 0, 1, 8, 9.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors