Expand description
Multi-file encrypted vaults. Multi-file encrypted vaults.
§Layout
vault/
|-- vault.config encrypted master key + KDF parameters (v2 JSON)
+-- d/
|-- .manifest.enc encrypted index of every entry
+-- <hash>/<hash>.enc per-entry ciphertext blobs§Example
use krypton::Vault;
use std::path::Path;
let mut vault = Vault::new("myvault".into());
vault.init("correct horse battery staple").unwrap();
vault.add(Path::new("secret.pdf"), None).unwrap();
let entries = vault.list().unwrap();
vault.extract("secret.pdf", Path::new("./out")).unwrap();
vault.change_password("correct horse battery staple", "new password").unwrap();
vault.lock();Structs§
- Entry
Info - One entry as returned by
Vault::list. - Integrity
Report - Result of a full-integrity check.
- Vault
- A handle to an on-disk encrypted vault.