[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



On Fri, Aug 31, 2012 at 10:41 AM, shupert1 <shupert1@xxxxxxxxxxxxxxxx> 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
_______________________________________________
tor-talk mailing list
tor-talk@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-talk