Lounge Started Mar 1, 2026 12:31 AM

How to generate a custom v3 onion address

0 replies - 13 views - 0 thanks - 0 tippers - 1 watchers

Mar 1, 2026 12:31 AM #1
onion tor

If anyone was curious how I generated a custom v3 onion address for our forum I used https://github.com/cathugger/mkp224o

On debian it's quite easy to run, here's the commands for the lazy

apt install gcc libc6-dev libsodium-dev make autoconf libssl-dev -y
git clone https://github.com/cathugger/mkp224o
cd mkp224o
bash ./autogen.sh
./configure
make
./mkp224o -d something -s some

Replace "something" with the output directory and "some" with what charcters you want the onion address to start with. I'm also using the -s flag to print out stats.

How long it takes to generate an onion depends on your CPU. Every character increases the generation time exponentially and anything beyond 9 characters is probably impossible.

One you've generated one just setup Tor how you normally would

HiddenServiceDir /var/lib/tor/hidden_service
HiddenServicePort 80 127.0.0.1:80

Then over write /var/lib/tor/hidden_service/hs_ed25519_secret_key with the contents of the hs_ed25519_secret_key file in your something/onion directory.

Also delete /var/lib/tor/hidden_service/hs_ed25519_public_key and /var/lib/tor/hidden_service/hostname

And restart tor

Signature

The forum admin

0 thanks - 0 tippers - 1 watchers
Advertise here 468x60

Replies

Page 1 of 1 - 0 total

No replies yet. Be the first to reply.

Post A Reply

You must be logged in to reply. Login or register.