Building a Privacy-First URL Shortener on Blockchain
说明与用途
构建了一个隐私优先的 URL 缩短器,使用客户端加密并将加密后的链接存储在 Cronos 区块链上,浏览器本地解密,避免服务器端数据收集。
问题
Traditional URL shorteners log user data, track browsing patterns, and can be hacked, exposing sensitive information.
结果
Cryptly provides a URL shortener that never exposes destination URLs to servers, offers censorship resistance, and eliminates a single point of failure.
工作流
- 1. User enters a URL in the Cryptly web interface.
- 2. The browser generates a random IV and derives an 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 transaction.
- 5. The short link (blockchain transaction hash) is returned to the user.
- 6. When the short link is visited, the browser fetches the ciphertext from the blockchain.
- 7. The browser decrypts the ciphertext locally using the same key and IV, revealing the original URL.
- 8. The browser navigates to the decrypted URL without exposing it to any server.
证据
Encrypted URL stored on Cronos blockchain
Server never sees destination
- 记录日期: 2026-09-06T01:22:55.436Z