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.
结果
Cryptly provides a privacy‑first URL shortener where no server logs user data, the data is stored immutably on a blockchain, and decryption occurs entirely in the browser, eliminating tracking and single points 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 IV.
- 4. The encrypted payload is sent to a Cloudflare Worker.
- 5. The Worker writes the encrypted data to the Cronos blockchain via a smart contract.
- 6. The Worker returns a short code to the user.
- 7. When the short code is visited, the Worker fetches the encrypted payload from the blockchain.
- 8. The browser decrypts the payload locally and redirects to the original URL.
证据
Encrypted URL stored on Cronos blockchain
Server never sees destination
- 记录日期: 2026-09-22T17:30:36.435Z