Back to blog

Tor Project Strengthens Encryption Method and Raises Web Privacy Standard

Hello HaWkers, the Tor Project has just announced a significant update to its encryption infrastructure, further elevating the privacy standard for millions of users around the world. At a time when digital surveillance and data breaches are constant, these improvements arrive at a crucial moment.

Do you know how the encryption that protects your Tor browsing works? And why are these updates important for developers and technology professionals?

What is the Tor Project

For context, Tor (The Onion Router) is a decentralized network that enables anonymous internet browsing. Originally created by the U.S. Naval Research Laboratory, it is now maintained by the Tor Project, a non-profit organization.

How Onion Routing Works

The system uses multiple layers of encryption, hence the name "onion":

Connection Process:

  1. Route Selection: The Tor client selects three random nodes (relays)
  2. Layered Encryption: The message is encrypted three times, once for each node
  3. Routing: Each node removes one layer of encryption and passes to the next
  4. Exit Node: The last node (exit) connects to the final destination

Guaranteed Privacy:

  • Entry node: knows your IP, but not the destination
  • Middle node: doesn't know origin or destination
  • Exit node: knows destination, but not your origin

Analogy: Imagine sending a letter inside three envelopes, each addressed to a different intermediary. Each intermediary opens their envelope and forwards to the next, without knowing where it originally came from.

The New Encryption Updates

The Tor Project announced significant changes that further strengthen network security.

Updated Algorithms

Post-Quantum Cryptography:

The biggest news is the preparation for the quantum computing era:

  • Implementation of hybrid algorithms
  • Combination of classical and post-quantum cryptography
  • Protection against "harvest now, decrypt later" attacks

New Standards:

  • Complete migration to X25519 for key exchange
  • Experimental Kyber support for quantum resistance
  • ChaCha20-Poly1305 as standard for symmetric cipher

Protocol Improvements

Onion Services v3:

The .onion services now have enhanced protections:

  • 56-character addresses (vs 16 before)
  • Elliptic curve cryptography
  • Protection against service enumeration
  • Better resistance to correlation attacks

Performance:

  • Latency reduction of ~15%
  • Better congestion handling
  • Circuit establishment optimization

Version Comparison

Aspect Previous Tor Updated Tor
Key Exchange RSA/DH X25519 + Kyber (hybrid)
Symmetric Cipher AES-CTR ChaCha20-Poly1305
Onion Address 16 characters 56 characters
Quantum Resistance None Active preparation
Average latency ~500ms ~425ms

Why This Matters For Developers

Even if you don't use Tor directly, the project's security practices influence the entire industry.

Security Lessons

1. Defense in Depth

Tor exemplifies the principle of multiple layers of protection:

  • No single point of failure
  • Compromising one component doesn't compromise everything
  • Security mechanism redundancy

2. Encryption By Default

Tor's "secure by default" philosophy is a model for applications:

  • No option for unencrypted connection
  • Secure settings as default
  • User doesn't need to understand cryptography to be protected

3. Future Preparation

Adopting post-quantum cryptography shows long-term vision:

  • Quantum computers may break RSA/ECC
  • "Harvest now, decrypt later" is a real threat
  • Gradual migration is safer than emergency

Implementing Tor Principles in Your Applications

For developers who want to apply similar concepts:

Transport Security:

// Example of modern TLS configuration in Node.js
const tls = require('tls');
const fs = require('fs');

const options = {
  // Preference for modern elliptic curves
  ecdhCurve: 'X25519:P-256:P-384',

  // Prioritized secure ciphers
  ciphers: [
    'TLS_CHACHA20_POLY1305_SHA256',
    'TLS_AES_256_GCM_SHA384',
    'TLS_AES_128_GCM_SHA256'
  ].join(':'),

  // TLS 1.3 mandatory
  minVersion: 'TLSv1.3',

  // Certificates
  key: fs.readFileSync('private-key.pem'),
  cert: fs.readFileSync('certificate.pem'),

  // Perfect Forward Secrecy
  honorCipherOrder: true
};

const server = tls.createServer(options, (socket) => {
  console.log('Secure connection established');
  console.log('Cipher:', socket.getCipher());
  console.log('Protocol:', socket.getProtocol());
});

server.listen(443);

Secure Key Derivation:

const crypto = require('crypto');

// Key derivation using HKDF (as used in Tor)
function deriveKey(masterSecret, info, length = 32) {
  // HKDF using SHA-256
  const salt = crypto.randomBytes(32);

  // Extract
  const prk = crypto.createHmac('sha256', salt)
    .update(masterSecret)
    .digest();

  // Expand
  const infoBuffer = Buffer.from(info);
  const n = Math.ceil(length / 32);
  let output = Buffer.alloc(0);
  let t = Buffer.alloc(0);

  for (let i = 1; i <= n; i++) {
    const data = Buffer.concat([
      t,
      infoBuffer,
      Buffer.from([i])
    ]);

    t = crypto.createHmac('sha256', prk)
      .update(data)
      .digest();

    output = Buffer.concat([output, t]);
  }

  return output.slice(0, length);
}

// Usage
const masterKey = crypto.randomBytes(32);
const encryptionKey = deriveKey(masterKey, 'encryption', 32);
const macKey = deriveKey(masterKey, 'authentication', 32);

Digital Privacy in 2025

The broader context makes these updates even more relevant.

Growing Threats

State Surveillance:

  • Increasingly comprehensive data retention laws
  • Backdoors in communication services
  • Mass traffic monitoring

Corporate Threats:

  • Persistent cross-site tracking
  • Browser fingerprinting
  • Location data sales

Technical Threats:

  • Quantum computing on the horizon
  • Sophisticated side-channel attacks
  • Vulnerabilities in legacy protocols

Who Uses Tor

Contrary to stereotypes, most Tor users are ordinary people:

Legitimate Users:

  • Journalists protecting sources
  • Activists in authoritarian regimes
  • Companies protecting research
  • Privacy-conscious citizens
  • Security researchers

Numbers:

  • About 2-3 million daily users
  • Over 7,000 active relays
  • Constant ~2 Gbps traffic

Limitations and Considerations

It's important to understand that Tor is not a magic solution for all privacy problems.

What Tor Protects

Yes:

  • Your ISP doesn't know which sites you visit
  • Sites don't know your real IP
  • Traffic between you and the Tor network is encrypted
  • Traffic correlation is hindered

What Tor Does NOT Protect

No:

  • If you log in, the site knows who you are
  • Malware on your computer can leak data
  • Exit nodes can see non-HTTPS traffic
  • Usage patterns can identify you
  • If you mention your name, privacy is lost

Best Practices When Using Tor

For Maximum Security:

  • Use Tor Browser, don't configure manually
  • Keep JavaScript disabled when possible
  • Don't maximize the window (resolution fingerprinting)
  • Don't use Tor and normal browser simultaneously
  • Don't install plugins or extensions
  • Use HTTPS only

The Future of Web Privacy

Tor's updates are part of a larger movement in the industry.

Positive Trends

Ubiquitous Encryption:

  • HTTPS as standard (>95% of web traffic)
  • DNS over HTTPS growing
  • Encrypted Client Hello in development

Regulation:

  • LGPD in Brazil
  • GDPR in Europe
  • Expanding privacy laws

Persistent Challenges

Centralization:

  • Most traffic passes through few companies
  • Metadata still reveals a lot
  • Real anonymity is increasingly difficult

Usability:

  • Privacy tools are still complex
  • Trade-off between convenience and security
  • User education is slow

Conclusion

The Tor Project's encryption updates represent more than technical improvements - they're an investment in the future of digital privacy. In a world where personal data is a commodity and surveillance is omnipresent, projects like Tor are fundamental to maintaining balance.

For developers, the lessons are clear: security by design, strong encryption by default, and preparation for future threats. Even if you don't build anonymity systems, Tor's principles can improve the security of any application.

Privacy is not just a feature - it's a fundamental right that technology can help protect or compromise. The choice of how we build our systems matters.

If you're interested in security and privacy, also check out our article about Supply Chain Attack on NPM Packages to understand other threats relevant to developers.

Let's go! 🦅

Comments (0)

This article has no comments yet 😢. Be the first! 🚀🦅

Add comments