Skip to main content
Share Your Experience: Take the 2024 Developer Survey
3 votes

Put Ed25519 keys in usable file format for Tor

To interpret the hs_ed25519_secret_key and hs_ed_25519_public_key files you can read/write the files in binary format. The first 32 bytes of these files are b"== ed25519v1-secret: type0 ==\x00\...
genuineDeveloperBrain's user avatar
2 votes
Accepted

Can't start relay - certificate error

Several issues were present: 1) Firewall was too restrictive preventing connections to a necessary port (53, for local dns resolving) 2) Torrc misconfiguration. Not entirely sure which option. 3) ...
unixandria's user avatar
1 vote

Private key in bash history a security issue?

Bash doesn't write the history to disk until it exits (or until you call something like history -w), so you can run history -c in bash to clear the current in-process history after you've run the echo ...
Steve's user avatar
  • 3,142
1 vote

Put Ed25519 keys in usable file format for Tor

The data you've displayed on a screenshot is a binary displayed as a char stream, you need to put it in the right format. I have a good example on Go - here is the code, I'm sure you'll spot the ...
Alexey Vesnin's user avatar
  • 6,225
1 vote

What's the difference between 'secret_id_key' and 'ed25519_master_id_key'?

secret_id_key is an RSA key and ed25519_master_id_key is a Ed25519 key used for Hidden Services v3. Here is what the spec says about it: https://gitweb.torproject.org/torspec.git/tree/rend-spec-v3.txt#...
NeverMine17's user avatar
1 vote

Is it possible to find encryption key in Tor Browser?

If you're doing something like a presentation, paper, book, etc, it's best to 1. Ask the developers and contributors directly https://www.torproject.org/contact/ and 2. Read the documentation for ...
elmerjfudd's user avatar
  • 2,274
1 vote

make a TOR url act like Alias in DNS

onion names are not based on DNS and don't work like them, but there are things that you can do. Here is how I would do it. Just FYI, my example is based on Linux. My website is simple. It is a ...
elmerjfudd's user avatar
  • 2,274
1 vote
Accepted

Error: Couldn't rotate onion key

After looking into this again after leaving it for a long time, I quickly found the solution. It turned out that the files in the /var/lib/tor/keys folder were not owned nor writable for the debian-...
bitsadmin's user avatar
1 vote
Accepted

tor adds its own private_key for hidden_service, hijacking my custom .onion

As far as I remember shallot is used to generate custom keys and service names for version 2 of hidden services and you are requesting: HiddenServiceVersion 3 Remove the above mentioned line and it ...
Tomek's user avatar
  • 421
1 vote

Tor public key Provided object is too large

This is probably caused by key spam - a few days ago this key took up about 30 MB and took about 10 minutes to delete. Suggested mitigation.
l0b0's user avatar
  • 210
1 vote

How to avoid your onion host privatekey to be stolen?

To my knowledge, there is currently no way to avoid that your key, at least for a short time, is on your server in cleartext. However, the next generation onion services (V3) will allow you to do ...
Peter Gerber's user avatar
  • 1,342
1 vote

Is there a mechanism for testing that addresses and private keys match?

For any (sane) code, when you generate an RSA key you generate the private key then the public key is derived from it. The onion address is the base32 encoded first 10 bytes of the sha1 sum of the ...
cacahuatl's user avatar
  • 11k
1 vote
Accepted

How does an OR create keys?

It uses external libraries. Specifically OpenSSL, curve25519-donna, and ed25519 (either donna or ref10). The code for key generation can be found in: curve25519 - gitweb.torproject.org/tor.git/tree/...
user13586's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible