r/cryptography • u/Realistic-Ad180 • 21h ago
I've been studying Tor's cryptographic protocols for years and recently published my work
My interest in Tor started during my bachelor's thesis. I was particularly interested in understanding the cryptographic mechanisms behind onion routing, rather than just how to use the network.
Over the years, I continued studying the protocol, including circuit establishment, the ntor and ntor-v3 handshakes, key derivation, layered encryption, and how these mechanisms interact with Tor's security model.
This eventually became Anatomia di Tor, a free, open-source technical book accompanied by 20 educational laboratories built around a private Tor network.
I want to be transparent about something: AI tools contributed substantially to drafting and expanding the material under my direction. I've reviewed the project and carried out technical testing, but it hasn't undergone independent cryptographic review. I'm not claiming to have developed new cryptographic primitives or made any novel security discoveries.
One of the challenges I encountered was explaining complex mechanisms without introducing misleading simplifications, especially regarding authenticated key exchange, per-hop encryption, and what individual relays can actually learn.
I'd be genuinely interested in hearing from people with experience in cryptographic protocol design: what misconceptions or subtle security assumptions do you think are most important to address when explaining Tor's cryptographic architecture?
I'm sharing the project because I believe technical knowledge should be freely accessible and open to criticism and improvement.
If anyone is interested in examining the material, everything is available here:
https://github.com/aleff-github/onion-routing-anatomy
I welcome technical corrections and criticism, particularly where an explanation might diverge from the actual protocol specifications.