reVault for Rust
reVault is an encrypted Lockbox archive and persistent Vault for files,
credentials, keys, and typed records. This source-native crate re-exports the
reviewed Lockbox, Vault, and AgentSession facade over the native core; it
does not use the C ABI and never discovers a shared library through an
environment variable. See the
reVault manual.
[]
= "0.3.12"
The complete method-example index and source-native conformance example are maintained in the source repository.
use ;
use ;
let _runtime = load;
let key = ; // load a real content key securely
let mut box_ = create?;
box_.add_file?;
box_.set_variable?;
let token = try_from_slice?;
box_.set_secret_variable?;
box_.commit?;
# Ok::
Vault is the persistent encrypted store; a directory is only its storage
detail. ProfileSigningKeyPair and ProfileSigningPublicKey name profile
identity keys. A key has the owner role only after it is assigned to a
Lockbox. The optional session-agent operations remain under
revault_api::vault and are explicit; ordinary Lockbox operations do not
contact an agent.
Secret types zero their owned storage. Avoid exposing secret values through debug output, ordinary strings, or unnecessarily long-lived byte buffers.