Building a Privacy-First URL Shortener on Blockchain
说明与用途
基于区块链的隐私优先 URL 缩短器,使用客户端加密并将加密后的 URL 存储在 Cronos 区块链上,服务器永不看到目标 URL,消除跟踪和数据泄露风险。
问题
Traditional URL shorteners log IPs, timestamps, user agents, track browsing patterns, and sell data, creating a privacy nightmare and a single point of failure if the database is hacked.
结果
Users can create and use short URLs without exposing destination URLs to the server, eliminating tracking and reducing risk of data breaches, while benefiting from blockchain’s immutability and censorship resistance.
工作流
- Generate a random IV and AES-GCM key in the browser.
- Encrypt the target URL with Web Crypto API using the key and IV.
- Store the encrypted payload on the Cronos blockchain via a Cloudflare Worker.
- When a short link is accessed, the worker retrieves the encrypted data from the blockchain.
- The browser decrypts the data locally with the same key and IV.
- Redirect the user to the decrypted URL without exposing it to the server.
证据
Encrypted URL stored on Cronos blockchain
Server never sees destination
- 记录日期: 2026-09-21T23:15:26.504Z