Building a Privacy-First URL Shortener on Blockchain
说明与用途
使用客户端加密和 Cronos 区块链存储的隐私优先 URL 缩短器,服务器永远看不到目标 URL,消除集中式数据收集。
问题
Traditional URL shorteners log user data, track browsing patterns, and sell data, creating privacy risks and a single point of failure.
结果
The system provides a privacy‑first URL shortener where the server never sees the destination URL, eliminates centralized data storage, and offers censorship resistance.
工作流
- 1. User enters URL in the web form.
- 2. Client‑side JavaScript generates a random IV and AES‑GCM key.
- 3. The URL is encrypted with Web Crypto API and the ciphertext is sent to a Cloudflare Worker.
- 4. The Worker writes the ciphertext to the Cronos blockchain via a smart‑contract call.
- 5. The Worker returns a short code (hash) to the user.
- 6. When the short code is visited, the Worker fetches the ciphertext from the blockchain.
- 7. The browser decrypts the ciphertext locally using the stored key and redirects to the original URL.
证据
Encrypted URL stored on Cronos blockchain
Server never sees destination
- 记录日期: 2026-09-12T07:15:42.628Z