Build encrypted storage with a device inventory, because in regulated work "who can decrypt this" is the question that gets asked. Stack: your choice, Postgres, object storage, Docker Compose, a domain with TLS. Client-side encryption with the Web Crypto API and a command-line client; the server holds ciphertext only. Key model: a random master key wrapped per **device**. Enrolling a device generates a device keypair, and the master key is wrapped to it. A device is named, dated, and listed. The device inventory is the build: - Every enrolled device: name, platform, enrolment date, last seen, and which files it has decrypted, from an append-only access log. - **Revoke a device**: unwrap the master key for every remaining device, generate a *new* master key, re-wrap it to the survivors, and re-encrypt only the file keys — not the file contents. Test that the revoked device can decrypt nothing added afterwards, and that everything else still opens. - Be honest about the limit, in the interface and the README: revocation cannot un-see what the device already downloaded. Say so where a user will read it, rather than implying it is a remote wipe. A local-wipe command the client honours on next contact, recorded in the log as requested, acknowledged or never acknowledged — the third state being the one that matters and the one most tools quietly hide. Sharing: per-recipient links with the file key wrapped to a passphrase they receive out of band, expiry, download limits, and revocation. Audit: append-only log with a hash chain, exportable as a signed report for a date range. Write tests for revocation rotating the master key without re-uploading file contents, for the hash chain detecting tampering, and for the wipe log distinguishing acknowledged from unacknowledged. Do not claim compliance with anything. State what the system does and let the reader map it.