Skip to main content

key_file_path

Function key_file_path 

Source
pub fn key_file_path(vault_path: &str) -> Result<PathBuf, String>
Expand description

Compute the key file path for a vault: ~/.config/murk/keys/<hash>.

The hash is a truncated SHA-256 of the lexical absolute vault path (cwd-joined if relative, but symlinks are NOT resolved). Using the literal path is important for security: a symlink .murk pointing at another project’s vault must not resolve to that project’s key file.