[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [tor-talk] onion id calculation
On 9/15/12, grarpamp <grarpamp@xxxxxxxxx> 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 quarter of the base16 encoding of the SHA-1
hash, instead of the first half of the SHA-1 hash itself.
Robert Ransom
_______________________________________________
tor-talk mailing list
tor-talk@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-talk