Ubuntu terminal showing a Shallot vanity onion-address search and the generated RSA private key output.

Shallot finding an old-style vanity .onion address in Ubuntu. The private key shown here was only an example and must never be reused!

Iโ€™ve been playing around with Shallot 0.0.3-alpha to generate a vanity onion address for McRetro. My old address was http://mcretro35qepy5cy.onion, and I thought Iโ€™d see what else I could come up with. Time for a little tinkering!

For this experiment Iโ€™m using Ubuntu 16.04 (64-bit). Shallot needs the OpenSSL development headers to build, something I discovered after running into the rather cheerful error โ€œfatal error: openssl/bn.h: No such file or directoryโ€. Right. That explains a few things.

First, update the package lists:

sudo apt-get update

Then install the missing development headers:

sudo apt-get install libssl-dev

With those out of the way, build Shallot:

./configure && make

Now for the fun part. Running ./shallot cat searches for an onion address containing cat, while ./shallot ^cat looks for one beginning with cat. The caret is doing its usual job of anchoring the match to the beginning of the string. Simple enough!

Thereโ€™s one important catch, though. Shallot generates a private key along with the address, and that key is what identifies the onion service. The screenshot above includes an example key, but because Iโ€™ve published it here, that particular key should never be used for a real service. Keep the private keys for your actual onion services private!

Update (2026): This was written for the old 16-character version 2 onion address format. Tor removed support for v2 onion services in 2021, so Shallot is no longer suitable for setting up a modern onion service. Version 3 onion addresses are 56 characters long and require v3-compatible tooling. The commands above are preserved as historical documentation, not instructions for creating a current onion service.

For a modern onion service, refer to the current Tor documentation and tools instead.

Sources