write_secret_file

Function write_secret_file 

Source
fn write_secret_file(path: impl AsRef<Path>, data: &[u8]) -> Result<()>
Expand description

Write a file containing secret data to the filesystem, restricting the file permissions so it’s only readable by the owner