Building a Privacy-First URL Shortener on Blockchain
说明与用途
一个隐私优先的 URL 缩短器,客户端加密 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 encrypts URLs client‑side, stores them immutably on a blockchain, and never exposes destination URLs to the server.
工作流
- Generate a random IV and AES-GCM key in the browser.
- Encrypt the destination URL client‑side using Web Crypto API.
- Send the ciphertext to a Cloudflare Worker endpoint.
- Store the ciphertext on the Cronos blockchain via the worker.
- When a user visits the short link, the worker fetches the ciphertext from the blockchain.
- The browser decrypts the ciphertext locally and redirects to the original URL.
- No server logs or analytics are collected.
- The system remains censorship‑resistant and tamper‑proof.
证据
Encrypted URL stored on Cronos blockchain
- 记录日期: 2026-09-19T23:30:35.898Z