Skip to main content

put

Function put 

Source
pub(super) fn put(dir: &Path, key: &str, secret: &str) -> Result<(), String>
Expand description

Write via a fresh 0600 temp file and a rename, so a reader never sees a partial secret and a crash never leaves one behind.