Building a Privacy-First URL Shortener on Blockchain
Описание и применение
Создан приватный сокращатель URL, использующий клиентское шифрование и хранение на блокчейне Cronos, чтобы сервер не видел целевой адрес и не собирал данные пользователя.
Задача
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 privacy‑first URL shortener where the server never sees the destination URL, eliminates centralized data storage, and offers censorship resistance.
Рабочий процесс
- 1. User enters URL in the web form.
- 2. Client‑side JavaScript generates a random IV and 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 call.
- 5. The Worker returns a short code (hash) to the user.
- 6. When the short code is visited, the Worker fetches the ciphertext from the blockchain.
- 7. The browser decrypts the ciphertext locally using the stored key and redirects to the original URL.
Доказательства
Encrypted URL stored on Cronos blockchain
Server never sees destination
- Дата записи: 2026-09-12T07:15:42.628Z