Re: [tor-talk] onion id calculation

2012-09-18 Thread grarpamp
> That code comes from another thread that you missed: Less than a month ago too, that's pretty funny :) ___ tor-talk mailing list tor-talk@lists.torproject.org https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-talk

Re: [tor-talk] onion id calculation

2012-09-18 Thread Maxim Kammerer
On Tue, Sep 18, 2012 at 11:47 AM, grarpamp wrote: > But I never would > have guessed your hint that there was some > sort of common header being deleted from > the key itself... That code comes from another thread that you missed: https://lists.torproject.org/pipermail/tor-talk/2012-August/025409

Re: [tor-talk] onion id calculation

2012-09-18 Thread grarpamp
> look correct to me. Hope this helps Yes. Robert noted my former sleepy state totally messed the use of string functions which affected length and values. But I never would have guessed your hint that there was some sort of common header being deleted from the key itself... I have no idea what it

Re: [tor-talk] onion id calculation

2012-09-16 Thread Marek Lukaszuk
On Sat, Sep 15, 2012 at 11:19 AM, grarpamp wrote: > rend-spec... > "permanent-id" is the permanent identifier of the hidden service, > consisting of 80 bits. It can be calculated by computing the hash value > of the public hidden service key and truncating after the first 80 bits: > permanent-id

Re: [tor-talk] onion id calculation

2012-09-15 Thread Nick
On 9/15/12, Robert Ransom wrote: > On 9/15/12, grarpamp wrote: > > > u...p.onion > > > > -BEGIN RSA PRIVATE KEY- > > ... > > -END RSA PRIVATE KEY- > > > > openssl rsa -in private_key -pubout -outform DER | sha1 | cut -c 1-10 > > python -c "import base64, sys; print > > base64.b32e

Re: [tor-talk] onion id calculation

2012-09-15 Thread Robert Ransom
On 9/15/12, grarpamp wrote: > openssl rsa -in private_key -pubout -outform DER | sha1 | cut -c 1-10 > python -c "import base64, sys; print > base64.b32encode(sys.stdin.readline().rstrip('\n')).lower()" > gu4dsm3cmi3dkyzw > > What am I doing wrong besides being sleepy? You're using the first quar

[tor-talk] onion id calculation

2012-09-15 Thread grarpamp
rend-spec... "permanent-id" is the permanent identifier of the hidden service, consisting of 80 bits. It can be calculated by computing the hash value of the public hidden service key and truncating after the first 80 bits: permanent-id = H(public-key)[:10] https://trac.torproject.org/projects/to