Kapish Bansal Résumé
← All work

06 / 06Cryptography · Smart contracts

Refusable Digital Objects: share an encrypted file, then take it back.

Role
Full stack + contracts
Year
2026
Status
Live demo
AES-256GCM, client-side
1 txto revoke access
0external crypto libraries

The problem

Encrypting a file is easy. Delivering the key safely, and taking access back later, is not.

What it is

Encrypt a file in the browser, pin it to IPFS, and keep control after sending it: revoke access with one transaction, charge per view, or block copy and download. Keys come from the wallet, so nobody ever pastes a password.

RDO site explaining key vaulting, auto-decryption and real-world confidentiality use cases.
RDO site explaining key vaulting, auto-decryption and real-world confidentiality use cases.

How it flows

  1. 01File in browser
  2. 02AES-256-GCM
  3. 03IPFS (Pinata)
  4. 04Contract check
  5. 05Wallet unlocks

What I built

01

Invisible PKI

A hidden key pair is derived per wallet; files are encrypted to the recipient's public key, and their wallet unlocks it.

02

Refusable access

The UI must ask the contract before decrypting, so a single revoke locks the file for good.

03

Pay-per-view

Set a price in Sepolia ETH; the contract releases access only after payment.

04

No server trust

AES-256-GCM in the browser, ciphertext on IPFS. The server never sees plaintext or keys.

Stack

  • Solidity
  • Web Crypto (AES-GCM, RSA-OAEP)
  • IPFS / Pinata
  • ethers v6
  • Three.js
  • Vanilla JS

Limits

Experimental beta on Sepolia. A screen can still be photographed; RDO raises the cost of leaking, it can't remove it.

Next project

HydraWatch Finds and locates water-pipe leaks from pressure data, in real time.

← Do Not Resurrect All work