If you have used TOR you are all to familiar with lack of human memorable onion addresses.
Recently Facebook has arrived on TOR officially with a hidden service address of fcebookcorewwwi.onion.
So I started thinking; and thoughts went to into actions to create my own custom hidden service address.
Using a program by the name of Scallion I was able to create what are known as vanity GPG keys and .onion addresses (used for TOR’s hidden services).
How does Scallion work?
At a high level Scallion works as follows:
- Generate RSA key using OpenSSL on the CPU
- Send the key to the GPU
- Increase the key’s public exponent
- Hash the key
- If the hashed key is not a partial collision go to step 3
- If the key does not pass the sanity checks recommended by PKCS #1 v2.1 (checked on the CPU) go to step 3
- Brand new key with partial collision
The basic algorithm is described above. Speed / performance is the result of massive parallelization, both on the GPU and the CPU.
Downloaded Scallion (Windows or Linux)
GetHub Link: https://github.com/lachesis/scallion
Command syntax is simple: scallion -o keys.txt -k 1024 -d 0 prefix (where prefix, is your desired vanity name).
This will create your (yourcustom)(theremaningnine).onion address
Once you have completed the key generation which will take several hours or days depending on the system specs.
When completed you will have e keys.txt file containing the RSA data.
Copy this data from BEGIN RSA to END RSA to a new file ‘private_key’ this is what is used by TOR to generate your hostname and route traffic to your hidden service.
Cook huh? I thought so.
For now I am tinkering with: jermsmitue4jcuo4.onion on port 80 and 443 , where port 80 301 redirects you to this site and well the secure 443 connection is my ownCloud self hosted solution.