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-18 Thread Maxim Kammerer
On Tue, Sep 18, 2012 at 11:47 AM, grarpamp grarp...@gmail.com 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:

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-16 Thread Marek Lukaszuk
On Sat, Sep 15, 2012 at 11:19 AM, grarpamp grarp...@gmail.com 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:

[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]

Re: [tor-talk] onion id calculation

2012-09-15 Thread Robert Ransom
On 9/15/12, grarpamp grarp...@gmail.com 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

Re: [tor-talk] onion id calculation

2012-09-15 Thread Nick
On 9/15/12, Robert Ransom wrote: On 9/15/12, grarpamp grarp...@gmail.com 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