Building a Privacy-First URL Shortener on Blockchain
说明与用途
构建了一个隐私优先的 URL 缩短器,客户端加密链接,存储在 Cronos 区块链上,浏览器本地解密,消除了服务器端跟踪和单点故障。
问题
Traditional URL shorteners log IPs, timestamps, user agents, track browsing patterns, and sell data, creating a privacy nightmare and a single point of failure.
结果
The system delivers a URL shortener that never sees destination URLs, removes tracking, and stores data on a tamper‑proof blockchain, providing privacy and censorship resistance.
工作流
- 1. User enters a URL in the web interface.
- 2. Client‑side JavaScript generates a random IV and AES‑GCM key.
- 3. The URL is encrypted with Web Crypto API and the IV.
- 4. The encrypted payload is sent to a Cloudflare Worker.
- 5. The Worker writes the encrypted data to the Cronos blockchain via a transaction.
- 6. The Worker returns a short code derived from the transaction hash.
- 7. User shares the short link (e.g., https://cryptly.workers.dev/abc123).
- 8. When the link is visited, the Worker fetches the encrypted payload from the blockchain.
- 9. The browser decrypts the payload locally using the same key and IV.
- 10. The browser redirects to the original destination URL without exposing it to any server.
证据
Encrypted URL stored on Cronos blockchain
Server never sees destination
- 记录日期: 2026-09-07T10:47:22.105Z