• Catalog
  • Blog
  • Tor Relay
  • Jabber
  • Secret Notes
  • Temp Mail
  • Get Tor Browser
  • Guides
    Tor onion service v3 versus v2 address formats and cryptographic comparison

    Every .onion address you've ever seen on this site, in a forum thread, or pasted into a market listing is almost certainly 56 characters long. That length is the visible fingerprint of onion service version 3, and it is the single most consequential protocol upgrade the Tor network has ever shipped. Version 2 served the hidden-service ecosystem for more than a decade before being formally deprecated, and the transition from v2 to v3 changed everything from address format and key cryptography to how much information relays can learn about a service simply by hosting its descriptor. This guide covers the technical differences between onion services v3 and v2, the security improvements that motivated the rewrite, the deprecation timeline, and what the migration actually meant for darknet markets, forums, and anyone who relies on .onion infrastructure.

    Address format: 16 characters versus 56

    The most obvious difference is the address itself. A v2 onion address is 16 lowercase letters and digits derived from the service's public key material, followed by .onion, for example, silkroad6r37y2o3.onion. A v3 onion address is 56 characters: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.onion (the classic example used by Tor documentation is duckduckgogg42xjoc72x3sjasowoarfbgcmvfimaftt6twagswzczad.onion).

    That extra length is not arbitrary padding. Under v2, the address was an 80-bit truncated SHA-1 hash of an RSA-1024 public key. Because SHA-1 was already considered broken as a collision-resistant hash, this construction was theoretically attackable: an adversary who could engineer a SHA-1 collision might be able to craft a second key whose hash matched a victim's v2 address, enabling impersonation. Tor patched v2 with a blinded-key derivation to make collisions far more expensive, but the fundamental weakness remained.

    Under v3, the address is the service's ed25519 public key itself, encoded in base32, prefixed with a version byte, and suffixed with a checksum. Sixty-eight bytes of key material produce the 56-character name. The implications are significant: there is no hashing step to attack, the address cannot be impersonated without the private key, and the address is cryptographically bound to the keypair that authenticates the service. Anyone who understands the difference between a hash of a key and a key will immediately see why v3's scheme is structurally sound where v2's was merely patched.

    Cryptographic changes under the hood

    The v2 protocol dated from 2004-2006 and drew on primitives that were standard at the time: RSA-1024 for service keys, Diffie-Hellman for introduction handshakes, AES-128 for stream encryption, SHA-1 for hashing, and SHA-1 for key derivation. The rend-spec v3 rewrite, which arrived through proposal 224, replaced the entire stack. The modern construction uses SHA3-256 for hashing, ed25519 for service identity, Curve25519 for the introduction-point key exchange, AES256-CTR for stream ciphers, and SHAKE-256 for key derivation.

    Each swap carries weight. ed25519 is faster, smaller-keyed, and far harder to implement incorrectly than RSA-1024. Curve25519 replaces discrete-log DH with ECDH on the same curve family that ed25519 uses, which removes a class of small-subgroup and parameter-negotiation attacks that plagued early DH. AES256-CTR replaces AES-128, and the move from SHA-1 to SHA3-256/SHAKE-256 puts the protocol on a modern, NIST-standardized sponge construction.

    There is one more subtle change: v3 added offline keys and blinded signature schemes. The service can rotate its introduction and descriptor keys independently of its long-term identity key, and signatures on descriptors can be blinded so that a relay cannot simply copy the signing key. The result is a protocol where a compromised short-lived key does not automatically compromise the service's identity, a property v2 never had.

    What actually got more secure

    Cryptography was the headline, but the bigger privacy win was in the directory layer. Onion services don't publish where they live; they publish descriptors, essentially routing instructions, to a distributed hash table maintained by relays flagged as HSDir. Under v2, those descriptors were uploaded in plaintext. Any relay holding the HSDir flag could read the descriptor and, by probing, learn which onion addresses were active and when. Because descriptor placement was predictable, an adversary who controlled enough relays could map the network and target specific services.

    V3 closes this leak in two ways. First, because the address is the ed25519 public key, the descriptor can be encrypted end-to-end with keys derived from that address, only someone who already knows the address (and can fetch the descriptor for it) can decrypt the contents. Second, descriptor upload points are computed from a time-dependent key derivation using the service's key material, making the HSDir placement set change frequently and unpredictably. The Tor project explicitly described this as reducing the attack surface for targeted attacks and shrinking what malicious HSDir relays can observe.

    V3 also introduced optional client authorization, so-called "authorized clients" via x25519 keys, far stronger than v2's HMAC-based onion authentication, which had known weaknesses. For services that needed private access control, v3 made it cryptographically real rather than cosmetic.

    One honest caveat: v3 did not eliminate deanonymization risk. Traffic analysis, guard/exit correlation, and application-layer mistakes remain, which is why resources like our hidden-service deanonymization attacks guide and the deeper onion-service DDoS mechanics piece are still relevant after the migration. Protocol upgrades fix protocol weaknesses; they do not fix operational ones. The broader context is covered in our technical guide to how onion services and addresses work.

    The v2 deprecation timeline

    The migration was deliberately slow because the user base was enormous. Tor 0.3.2.9, released January 9, 2018, was the first version supporting onion service v3, and v3 was immediately the default for new services. But v2 kept running because the ecosystem needed time.

    The Tor Project published its formal deprecation timeline in July 2020, giving the network roughly sixteen months to finish migrating. The milestones ran roughly as follows:

    • July 2020: deprecation announced; warning periods begin, with tor printing v2 deprecation warnings in logs.
    • September 2020: tor 0.4.4.x shipped with v2 support on the way out; client-side connection attempts to v2 begin to be throttled or logged as deprecated.
    • Early 2021: the network stopped accepting new v2 introductions on most of the relay population; legacy v2 rendezvous points were gradually removed.
    • September 2021: v2 onion services were fully removed from the Tor codebase. The HiddenServiceVersion 2 option was gone, and the protocol simply ceased to exist in supported clients.

    By the time the final switch flipped, the overwhelming majority of active services had already moved, the Tor Project's own usage measurements showed v3 dominating well before the hard cutoff. The reason the timeline stretched over a year rather than months is that operators had to regenerate addresses, update every mirror and link, notify users, and reconfigure infrastructure. Rushing that would have stranded exactly the users v3 was designed to protect.

    What the migration meant for markets, forums, and infrastructure

    Darknet markets felt the migration as an operational shock. A market's .onion address is its brand, buyers bookmark it, forums pin it, directories index it, and exit-scam alerts propagate it. Moving from a 16-character v2 address to a 56-character v3 address meant every market had to announce a new address, prove continuity (usually via PGP-signed statements), and hope users didn't land on an imposter address during the transition. Some markets ran both versions in parallel during 2019-2020 precisely because of this; others bit the bullet and announced single-address migrations with signed proofs.

    For forums like Dread, the migration was less about the address and more about trust: a forum's v2 address had accumulated years of reputation, and its v3 successor started from zero. Communities had to re-verify keys, re-publish rules, and convince members the new address was genuine rather than a phishing clone. The phishing risk was real, a 56-character address is far harder to recognize and verify by eye than a 16-character one, which made signed key announcements and PGP verification workflows more important, not less.

    Infrastructure providers, hosting panels, onion-service monitors, directory crawlers, had to update their entire tooling. A crawler that understood only v2 silently went blind; a monitoring service that flagged v2 services as "down" created false alarms across the ecosystem. This is the same class of operational fragility covered in our market infrastructure hardening guide.

    Current status: v3 is the only game in town

    Today, v2 is dead code. Modern Tor Browser refuses v2 addresses outright, a 16-character .onion simply does not resolve. Every onion service on the network is v3, and the 56-character address is the only format that exists. The transition is so complete that many users under 25 have never seen a v2 address.

    What this means practically:

    • Address hygiene matters more. Because v3 addresses are unforgeable, the security boundary moved to the human layer: verifying that the 56-character string you bookmarked is the real one. Phishing via lookalike .onion addresses remains one of the most common scams on the network.
    • Key management is service-side. Operators should keep their ed25519 identity key offline or in hardware, rotate introduction keys regularly, and never reuse a v3 address across unrelated services, the address is the identity, so address reuse is identity reuse.
    • Client authorization is worth enabling. For any service that doesn't need to be public, v3's x25519-based authorized-clients feature is the strongest access control the protocol offers.
    • Legacy guides are stale. Any tutorial, directory entry, or forum post still referencing 16-character .onion addresses predates 2021 and should be treated with suspicion, both for accuracy and for phishing risk.

    For anyone still running infrastructure, the practical guidance is simple: upgrade Tor to a current release, confirm HiddenServiceVersion 3 in your torrc (or omit the directive entirely, v3 is the default), back up your onion key carefully, and treat your .onion address with the same secrecy discipline as a private key, because cryptographically it is one. Broader operational privacy is covered in the darknet OPSEC guide, and if you're evaluating the network itself, the Tor vs VPN overview and Tor Browser access guide are the right starting points.

    Bottom line

    Onion service v3 vs v2 is not a cosmetic upgrade, it is a replacement of the protocol's cryptographic foundation, its directory privacy model, and its address format, followed by the complete removal of the old protocol from the network. The 56-character .onion address you see today encodes an ed25519 public key that cannot be hashed, collided, or impersonated the way v2's SHA-1-derived names theoretically could. The migration cost the ecosystem a year of address churn, market relaunches, and forum re-verification, but it left the hidden-service layer on modern primitives and closed a real plaintext-descriptor leak. For readers, the takeaway is verification discipline; for operators, it is key hygiene. Everything else is history.

    Disclaimer: This article is educational and describes publicly documented Tor protocol history and design. It does not encourage illegal activity, does not provide operational guidance for wrongdoing, and is not affiliated with the Tor Project. Onion services have legitimate privacy uses, journalism, activism, whistleblowing, and the same tools can be misused; readers are responsible for complying with applicable law.

    Author OnionInfoDesk
    How Onion Services and Onion Addresses Work: Technical Guide
    Tor Hidden Service Vulnerabilities: Deanonymization Attacks Guide
    Darknet OPSEC Guide: Operational Security Best Practices for Anonymity
    Darknet Market Technical Infrastructure: Server Hardening, DDoS and Database OPSEC

    Comments 0

    Add comment