obsync101 downloadsEncrypt vault data with Post Quantum and sync/restore to/from WebDAV. Encrypts both file content and filenames.
⚠️ v2.0.0 BREAKING CHANGE — Not backward compatible
v2.0.0 switches encryption from RSA 4096 (OpenPGP) to ML-KEM-768 (NIST FIPS 203 post-quantum).
Old keys, passphrase, and all previously encrypted remote data are INVALIDATED. After upgrading you must:
- Generate a new key pair in settings (no passphrase required)
- Delete old encrypted data on your WebDAV server (or start with an empty directory)
Key format changed from OpenPGP armor to base64. Settings field
privateKeyrenamed tosecretKey.
File content + filenames — both encrypted. The server sees only random garbage. ML-KEM-768 (FIPS 203) post-quantum key encapsulation + AES-256-GCM, end-to-end encrypted sync to any WebDAV.
This plugin uses ML-KEM-768 (formerly Kyber-768), the NIST FIPS 203 standard for post-quantum key encapsulation — the official replacement for RSA and ECC:
@noble/post-quantum (~72 KB), no WASM, no native dependenciesYour file → AES-256-GCM encrypt(random key) → ciphertext
↑
ML-KEM-768.encapsulate(public key)
↑
Server's view: [OBSYNC-K | 1088B CT | 12B IV | AES-GCM ciphertext]
Your secret key never leaves the device — only the public key is needed to encrypt. The server stores 1108 bytes of overhead per file (ML-KEM ciphertext + AES-IV), seeing only random binary.
Most sync solutions (Obsidian Sync, iCloud, Dropbox, etc.) rely on cloud-side trust — the provider can read your data. WebDAV PQC Sync uses end-to-end encryption. All encryption happens locally; only ciphertext is sent to WebDAV:
Result: The WebDAV provider, network intermediaries, and anyone with server access see only encrypted binary blobs with random filenames. Zero content, zero titles, zero structure.
.conflicted.YYYY-MM-DD.md)| Action | Description |
|---|---|
| Generate Key Pair | One-click ML-KEM-768 post-quantum key generation (no passphrase needed) |
| Sync to WebDAV | Push local changes (encrypted) to WebDAV, pull remote changes |
| Restore from WebDAV | On a new device, download and decrypt everything from WebDAV to rebuild your vault |
| Auto Sync | Automatically sync on file save (3-second debounce) |
| Manual Sync | Ribbon button + command palette |
| Layer | v1.x (old) | v2.0+ (current) |
|---|---|---|
| Key encapsulation | RSA 4096 (OpenPGP) | ML-KEM-768 (NIST FIPS 203) — quantum-resistant |
| Bulk encryption | AES-256-GCM | AES-256-GCM (unchanged) |
| Filename encryption | AES-256-GCM (key from PGP fingerprint) | AES-256-GCM (key from SHA-256 of Kyber public key) |
| Key derivation | PBKDF2 100k iterations | PBKDF2 100k iterations (unchanged) |
| Key format | OpenPGP armored (ASCII) | Base64-encoded raw bytes |
| Passphrase | Required (encrypted private key) | Removed (keys are raw, no encryption at rest) |
| Encryption overhead | 536 bytes per file | 1108 bytes per file (+572 bytes) |
| Private key → Public key | Derivable from private key | Must store both (Kyber cannot derive public from secret) |
| Quantum resistant | ❌ No (RSA broken by Shor's algorithm) | ✅ Yes |
| Bundle size | ~600 KB (OpenPGP.js) | ~72 KB (@noble/post-quantum) |
Works with any standard WebDAV service:
Supports self-signed certificates (enable in settings).
🌐 Cloudflare Proxy Compatible — Uploads and downloads use chunked transfer with automatic 100MB file splitting. This avoids Cloudflare's 100MB upload limit and works reliably behind Cloudflare proxies, CDNs, and other reverse proxies that restrict request sizes. Both upload and download are fully chunked.
Files over 90MB (configurable in Advanced settings) are automatically split into chunks for both upload and download:
Range requests — chunks are fetched in parallel (10MB per chunk) with per-chunk timeout (60s) and automatic retry (3 attempts)Uploading notes.md (3/12 · file 5/18)Migrating to a new device: Export the config (including keys) from the old device, import it on the new one, then use Restore from WebDAV.
Defaults to .obsidian/plugins/ and .trash/. Add more comma-separated path prefixes as needed.
Obsync Webdav PQC Sync gives you the convenience of WebDAV and self-hosted storage with the privacy of end-to-end post-quantum encryption. Your notes. Your eyes only.