Skip to content

test: E2E encryption tests for paste service#204

Merged
backnotprop merged 1 commit intomainfrom
test/e2e-encryption
Mar 2, 2026
Merged

test: E2E encryption tests for paste service#204
backnotprop merged 1 commit intomainfrom
test/e2e-encryption

Conversation

@backnotprop
Copy link
Owner

Summary

  • Adds packages/shared/crypto.test.ts with 9 tests covering the full encryption pipeline
  • Unit tests: encrypt/decrypt round-trip, IV uniqueness, wrong key rejection, tamper detection, large payloads
  • Integration tests: full compress → encrypt → POST → GET → decrypt → decompress against the live Cloudflare Worker, zero-knowledge verification, 404 for missing pastes

Test plan

  • bun test packages/shared/crypto.test.ts — 9/9 pass

🤖 Generated with Claude Code

Unit tests for encrypt/decrypt round-trip (key correctness, IV
uniqueness, tamper detection) and live integration tests that verify
the full compress → encrypt → POST → GET → decrypt → decompress
pipeline against the deployed Cloudflare Worker.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@backnotprop backnotprop merged commit 7004321 into main Mar 2, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant