A hybrid encryption system combining password-based encryption with time-lock cryptography using drand randomness beacons.
Figure: Overview of the hybrid encryption flow — local password-derived key + drand time-lock beacon for timed decryption. Replace the path with your image file as needed.
pnpm installCopy the example file:
cp .env.example .envGenerate the required drand network variables by visiting the drand networks page and selecting a network.
# .env
DRAND_CHAIN_URL=
DRAND_CHAIN_HASH=
DRAND_PUBLIC_KEY=Build and run:
pnpm run devOr separately:
pnpm run build
pnpm startEncrypts data with both a password and a time-lock. The encrypted data can only be decrypted after:
- Providing the correct password
- The time-lock period has elapsed (verified via drand beacon)
