Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

Building a Privacy-First URL Shortener on Blockchain

说明与用途

构建了一个隐私优先的 URL 缩短器,使用客户端加密并将加密后的 URL 存储在区块链上,服务器无法看到目标地址,消除了跟踪和数据泄露风险。

问题

Traditional URL shorteners log user data, track browsing patterns, and sell data, creating privacy risks and a single point of failure.

结果

A fully functional privacy‑first URL shortener that stores only encrypted URLs on a blockchain, eliminating server‑side tracking and providing censorship resistance.

工作流

  • Generate a random IV and AES‑GCM key in the browser.
  • Encrypt the destination URL with Web Crypto API.
  • Send the ciphertext to a Cloudflare Worker endpoint.
  • Worker writes the ciphertext to the Cronos blockchain as immutable data.
  • User receives a short URL pointing to the worker.
  • When the short URL is visited, the worker fetches the ciphertext from the blockchain.
  • Browser decrypts the ciphertext locally and redirects to the original URL.
  • No server logs the destination or user data.
  • The system remains censorship‑resistant and has no central database to hack.

证据

Encrypted URL stored on Cronos blockchain

来源

Server never sees destination

来源

  • 记录日期: 2026-09-09T05:45:23.236Z