Building a Privacy-First URL Shortener on Blockchain
说明与用途
构建了一个隐私优先的 URL 缩短器,使用客户端加密并将加密后的 URL 存储在 Cronos 区块链上,避免了数据收集和单点故障。
问题
Traditional URL shorteners log user data, track browsing patterns, and sell data, creating privacy risks and a single point of failure.
结果
The system achieves privacy‑first URL shortening with immutable storage, no centralized database, and censorship resistance.
工作流
- Generate a random IV and AES‑GCM key in the browser.
- Encrypt the destination URL with Web Crypto API.
- Send the ciphertext and IV to a Cloudflare Worker endpoint.
- Store the ciphertext on the Cronos blockchain via the worker.
- When a short URL is visited, the worker fetches the ciphertext from the blockchain.
- The browser decrypts the ciphertext locally using the same key and IV.
- Redirect the user to the decrypted URL.
证据
Encrypted URL stored on Cronos blockchain
Server never sees destination
- 记录日期: 2026-09-22T04:15:53.476Z