pub fn write_secret_file(path: &Path, contents: &[u8]) -> Result<()>
Atomically write contents to path. Creates parent dirs as needed. On Unix the temp file is opened with mode 0o600.
contents
path