Your Android phone and your Windows PC, working as one. Local-first, end-to-end encrypted, no account.
Tests: check history encryption only where the platform encrypts
Bee4e2043905f20
diff --git a/core/nectarlink-core/tests/scale_tests.rs b/core/nectarlink-core/tests/scale_tests.rsindex 0be45de..e564ce4 100644--- a/core/nectarlink-core/tests/scale_tests.rs+++ b/core/nectarlink-core/tests/scale_tests.rs@@ -350,13 +350,17 @@ fn scale_50_large_clips_encrypted_history() {}let write_elapsed = write_start.elapsed();- // Verify encrypted file on disk does not leak plaintext.+ // Verify the file on disk does not leak plaintext. Encryption comes from+ // the platform's protector (DPAPI on Windows); elsewhere the default+ // protector stores as is (id 0), so there is nothing to check.let enc_bytes =std::fs::read(dir.path().join("clipboard_history.enc")).expect("encrypted history exists");- assert!(- !enc_bytes.windows(b"clip-payload-0025".len()).any(|w| w == b"clip-payload-0025"),- "clipboard_history.enc must be encrypted at rest"- );+ if protector.id() != 0 {+ assert!(+ !enc_bytes.windows(b"clip-payload-0025".len()).any(|w| w == b"clip-payload-0025"),+ "clipboard_history.enc must be encrypted at rest"+ );+ }// Measure cold open + AES-256-GCM decryption + listing + substring search across all 50 x 64 KiB clips.let read_start = Instant::now();