[tor-talk] HiddenServices: calculating .onion address with private key?

Maxim Kammerer mk at dee.su
Fri Aug 31 08:37:40 UTC 2012


On Fri, Aug 31, 2012 at 10:41 AM, shupert1 <shupert1 at privatdemail.net> wrote:
> I found a short info (somewhere on Tor's GitHub account) about
> "calculating" .onion address when I have private key but I was not able
> to implement a short code example with perl/php/bash.

See [1]:

openssl pkey -in /var/lib/tor/hidden_service/private_key -pubout
-outform der | tail -c +23 | sha1sum | head -c 20
(and convert to Base32)

[1] https://github.com/mkdesu/cables/blob/master/bin/gen-tor-hostname

-- 
Maxim Kammerer
Liberté Linux: http://dee.su/liberte


More information about the tor-talk mailing list