Encryption on disk
The whole vault database is encrypted with SQLCipher and a 256-bit key, including its write-ahead log, and no plaintext temporary files are written. On top of that, each patient's details and every version of every record are sealed again with that patient's own keys, using XChaCha20-Poly1305.