pub struct FileKeyProvider { /* private fields */ }Expand description
Stores the key as a 32-byte file with permissions 0600 (Unix).
Generates a new random key on first use and persists it.
§Security note
The key lives in the same blast radius as $HOME. This protects against
other local users, not against a full session compromise. See plan §5.
Trait Implementations§
Source§impl From<PathBuf> for FileKeyProvider
impl From<PathBuf> for FileKeyProvider
Auto Trait Implementations§
impl Freeze for FileKeyProvider
impl RefUnwindSafe for FileKeyProvider
impl Send for FileKeyProvider
impl Sync for FileKeyProvider
impl Unpin for FileKeyProvider
impl UnsafeUnpin for FileKeyProvider
impl UnwindSafe for FileKeyProvider
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more