Building a Privacy-First URL Shortener on Blockchain
Описание и применение
Создана система сокращения 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.
Результат
The system provides a privacy‑first URL shortener where the server never sees the destination URL, eliminating tracking and reducing the risk of data breaches, while leveraging blockchain for censorship‑resistant storage.
Рабочий процесс
- Generate a random IV and AES‑GCM key in the browser.
- Encrypt the destination URL with Web Crypto API.
- Send the ciphertext to a Cloudflare Worker.
- The Worker writes the ciphertext to the Cronos blockchain via an API call.
- When a user visits the short link, the Worker fetches the ciphertext from the blockchain.
- The browser decrypts the ciphertext locally using the same key and IV.
- The browser redirects to the original URL without exposing it to any server.
Доказательства
Encrypted URL stored on Cronos blockchain
Server never sees destination
- Дата записи: 2026-09-21T06:45:46.427Z