Building a Privacy-First URL Shortener on Blockchain
Описание и применение
Создана система сокращения 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 URL shortener that never sees the destination URL, eliminates tracking, and stores data on an immutable blockchain, enhancing privacy and resilience.
Рабочий процесс
- 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.
- Worker writes the ciphertext to the Cronos blockchain via a transaction.
- User accesses the short link, Worker fetches ciphertext from blockchain.
- Browser decrypts ciphertext locally and redirects to the original URL.
Доказательства
Encrypted URL stored on Cronos blockchain
Server never sees destination
- Дата записи: 2026-09-09T15:46:05.619Z