[tor-talk] Let's make Onion Addresses Meaningful To Humans

Andreas Krey a.krey at gmx.de
Fri Feb 24 12:53:53 UTC 2012


On Fri, 24 Feb 2012 05:36:14 +0000, Ahmed Hassan wrote:
...
> 
> cat-rat-hat.onion.

More like granoblastic-Congoese-counterirritate-solifluctional-Adeona or
shameproof-paralogize-concutient-hypersophisticated-Actinomyxidiida. :-)

...
> Users will not have an option to explicitly choose onion domain name,
> but they will have an option to generate a lot of keys, and choose
> something they like.

Or rather, something they don't totally dislike, depending on the word set.

Restricting the word set to short words makes the result shorter, too:

  goric-edema-Alces-rune-pan-coost
  feign-crig-plane-tret-balli-chela

The main advantage would be that they are simpler to type and check.

--- onion.rb ---
arr=[]
File.open("/usr/share/dict/words") do |f|
  f.each_line do |l|
    arr<<=l.strip
  end
end
ARGV.each do |a|
  a=a.sub(/\.onion$/,'') # Just in case
  id=a.to_i(36)
  s=""
  while id >= arr.length
    x=id%arr.length
    id/=arr.length
    s="-"+arr[x]+s
  end
  s=arr[id]+s
  puts "#{a}: #{s}"
end
--- end ---

Obviously you need to use a word set that only contains lowercase letters
which I didn't. :-) Excluding offensive words would also be a plus.

Which node interprets the .onion names to hashes, anyway?

Andreas

-- 
"Totally trivial. Famous last words."
From: Linus Torvalds <torvalds@*.org>
Date: Fri, 22 Jan 2010 07:29:21 -0800


More information about the tor-talk mailing list