mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-30 23:53:32 +01:00
folding in nick's suggestion
svn:r326
This commit is contained in:
parent
9f5c2ff0c1
commit
cb8ebfcf29
@ -151,18 +151,14 @@
|
|||||||
information into the hostname will be too long for a typical hostname,
|
information into the hostname will be too long for a typical hostname,
|
||||||
we instead use a layer of indirection. We encode a hash of Bob's PK
|
we instead use a layer of indirection. We encode a hash of Bob's PK
|
||||||
(10 bytes is sufficient since we're not worrying about collisions),
|
(10 bytes is sufficient since we're not worrying about collisions),
|
||||||
and also the authentication token (empty for now). Thus at a bit more
|
and also the authentication token (empty for now). Location-hidden
|
||||||
than 6 bits encoded per character (assuming only alphanumeric and
|
services use the special top level domain called '.onion': thus
|
||||||
hyphen), we transform the hostname "moria.mit.edu" into the hostname
|
hostnames take the form x.y.onion where x is the hash of PK, and y
|
||||||
"moria.mit.edu.onion5gfmjsda-ckd5" (adding 13 characters plus the
|
is the authentication cookie. If no cookie is required, the hostname
|
||||||
separator).
|
can simply be of the form x.onion. Assuming only case insensitive
|
||||||
|
alphanumeric and hyphen, we get a bit more than 6 bits encoded
|
||||||
[I thought we were going to do something more like "56fmjsda-ckd5.onion",
|
per character, meaning the x part of the hostname will be about
|
||||||
leaving off moria.mit.edu. This would have the advantage of not confusing
|
13 characters.
|
||||||
users if the domain name part ('moria.mit.edu') doesn't match the key.
|
|
||||||
|
|
||||||
Also, having a separate onion 'virtual TLD' is kinda more in the spirit
|
|
||||||
of DNS as it stands. -NM]
|
|
||||||
|
|
||||||
Alice's onion proxy examines hostnames and recognizes when they're
|
Alice's onion proxy examines hostnames and recognizes when they're
|
||||||
destined for a hidden server. If so, it decodes the PK, looks it up in
|
destined for a hidden server. If so, it decodes the PK, looks it up in
|
||||||
|
Loading…
Reference in New Issue
Block a user