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/tor/wiki/doc/HiddenServiceNames To run a hidden service, Tor generates an RSA-1024 keypair. The .onion name is computed as follows: first the SHA1 hash of the DER-encoded ASN.1 public key is calculated. Afterwards the first half of the hash is encoded to Base32 and the suffix ".onion" is added. uokvcerylytn3y3p.onion -----BEGIN RSA PRIVATE KEY----- MIICXAIBAAKBgQDYbHtavI7ltBhWRTdpsFOYkPCKlmwOXlk0Bxw2B6diWvBvDtbI zNdIqN4HEs7Fgr32dsRjsigaQEeGRER6xgHgZ6WmupizyjBRFDt2GuNfw9neYq4v HoP9HCV/QE1tBTwo5WNm9IETpF3qRoJJlGR4x/SUN7IuFwutjnehP6s7YwIDAQAB AoGACc7QwEnvR+WjfLViT33YK//VhtJOT1BjRoJT+vbZ1RE9+Cp5/VubHgXZGgT2 LelA5px3RfVa7+Wd2C3b1JyIlSd/iWFL7XlrjDbof98bD0GtpeDcnXk/izlxZDpW mKp+abr8ZQiwanlRg3BXZxLb9XeTvFLGl7HfJMbxWqUxCEECQQD4oRLDERcf9xCu FrHEor7FuLsfWc121oBIpiEGciZy2fan7kEif9Dt/Avdh7mcdoCj3kZnLJbhUWiy 6oTcrhDRAkEA3tb9vi7v0DvecR11lqVyNhQTA6zJ9ot8ZXWR92pF9e6s3JA2GqD3 ZpEJ3XE3rpMXYjdpWlr4OcrvWC2kWxY18wJAUqVwUClpL3X4NHZUx1F16tG6WfSH CP7Ki9u1VKgzQbBUfoQDYM1uDP3gj9YjC/CUWGR1sKwwx1tBW1/7pEO0UQJAQkik 9Xs0rjYAtpjSr1rLHDbgaQlukb1v5SYRowyjfsHd/UWQMl+K96FQ0+OncnAiVn6x AcVpbJdmlk4NQ2LZ7QJBAIXnNVHHro3q0jhGt5kG1oiSj7k+zOVyeKFWdy73uPUF gDiBbJNxnEgdAumE29vdvmSDSKanDw3yus6wyF0YVs0= -----END RSA PRIVATE KEY----- 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? Here also, using half(20 chars) of the hash would yield a 32 char onion id. _______________________________________________ tor-talk mailing list [email protected] https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-talk
