pub fn write_private_file(path: &Utf8Path, bytes: &[u8]) -> Result<()>Expand description
Write bytes to path with owner-only permissions on Unix
(0600). On Windows we fall back to a plain write because file
permissions don’t translate cleanly — the user’s AGE-SECRET-KEY
is still in their ~/.config/yui/ directory which isn’t shared
by default. Used by both secret_init and secret_unlock so
neither flow leaves the X25519 secret world-readable. PR #60
review by coderabbitai.