reVault for Rust
reVault is an encrypted archive and local-vault library for files, credentials,
keys, and typed records. This source-native crate re-exports the complete
revault_lockbox_api and revault_vault_api; it does not use the C ABI. See the
reVault documentation.
[]
= "0.2.0"
The complete method-example index is in ../API_EXAMPLES.md.
use ;
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::
Secret types zero their owned storage. Avoid exposing secret values through debug output, ordinary strings, or unnecessarily long-lived byte buffers.