LoginSignup
0
0

任意の .onion ドメインを生成する

Last updated at Posted at 2023-08-11

パッケージインストールが不要なコンテナでアドレス生成をしていきます。

56文字の Onion Service v3 アドレスです。
16文字の v2 はすでに使用できなくなっています。

シンプルに無限生成

大量のディレクトリが生成されるので作業用ディレクトリ内で実行していきます。

mkdir onion-vanityaddresses
cd onion-vanityaddresses

# `neko` から始まるアドレスを生成
docker run --rm -it -v $PWD:/keys ghcr.io/cathugger/mkp224o:master -d /keys neko

nekoから始まるアドレスが生成されました。

nekotgxcl5psscafomta2azqfkpu2jfoj65r7whd6l32ckbodfty55ad.onion
nekojgraqhh2amewokas3f524ypmrw6bxtujgll2wtmgdffbqpdczlyd.onion
nekojqierdu5tc2uhqptkvk7do6tymvoy2p7tadjvndkjj5xscndzgid.onion
...

ディレクトリ内に各ファイルが入っています。

.
└── nekotgxcl5psscafomta2azqfkpu2jfoj65r7whd6l32ckbodfty55ad.onion
    ├── hostname
    ├── hs_ed25519_public_key
    └── hs_ed25519_secret_key

個数を指定して生成

デフォルトでは無制限に生成し続けるため、-nオプションで生成数を指定することもできます。

# 3つだけ生成
docker run --rm -it -v $PWD:/keys ghcr.io/cathugger/mkp224o:master -d /keys -n 3 neko

生成時間の目安

ツール作成者によると 6 文字程度であれば数十分ほどで生成できるとのこと。

マシンが十分に強力であれば、6 文字のプレフィックスを入力するのに数十分もかからないはずです。
if your machine is powerful enough, 6 character prefix shouldn't take more than few tens of minutes
https://github.com/cathugger/mkp224o#faq-and-other-useful-info

私の環境では6文字では一時間に3~5個ほど、8文字では一晩~一日ほどかかりました。

1 台の Raspberry Pi 2B と 4 台の Raspberry Pi Zero を使用したときの概算時間
https://www.jamieweb.net/blog/onionv3-vanity-address/#other-programs

Vanity Characters : Approximate Generation Time
1  : <1 second
2  : <1 second
3  : 1 second
4  : 30 seconds
5  : 16 minutes
6  : 8.5 hours
7  : 11.5 days
8  : 1 year
9  : 32 years
10 : 1,024 years
11 : 32,768 years
12 : 1 million years
13 : 32 million years
14 : 1 billion years
15 : 32 billion years
16 : 1 trillion years
17 : 32 trillion years
18 : 1 quadrillion years
19 : 32 quadrillion years
20 : 1 quintillion years
21 : 32 quintillion years
22 : 1 sextillion years
23 : 32 sextillion years
24 : 1 septillion years
25 : 32 septillion years
26 : 1 octillion years
27 : 32 octillion years
28 : 1 nonillion years
29 : 32 nonillion years
30 : 1 decillion years
31 : 32 decillion years
32 : 1 undecillion years
33 : 32 undecillion years
34 : 1 duodecillion years
35 : 32 duodecillion years
36 : 1 tredecillion years
37 : 32 tredecillion years
38 : 1 quattuordecillion years
39 : 32 quattuordecillion years
40 : 1 quindecillion years
41 : 32 quindecillion years
42 : 1 sexdecillion years
43 : 32 sexdecillion years
44 : 1 septendecillion years
45 : 32 septendecillion years
46 : 1 octodecillion years
47 : 32 octodecillion years
48 : 1 novemdecillion years
49 : 32 novemdecillion years
50 : 1 vigintillion years
51 : 32 vigintillion years
52 : 10^66 years
53 : 10^69 years
54 : 10^72 years
55 : 10^75 years
56 : 10^78 years (1,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000)
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0