Expand description
A thin wrapper around the Pass password manager. Lets Rust programs read and write Pass entries without storing secrets in plain text.
Functions§
- force_
store_ in_ pass - Store a value in Pass, overwriting any existing entry.
Prefer
store_in_passfor first-time writes. - get_
from_ pass - Fetch a secret from Pass. Panics if the key doesn’t exist.
Consider using
try_get_from_passinstead. - insert_
to_ pass - Saves a randomly generated password for a given key
- remove_
from_ pass - Remove key-value pair from Pass.
- store_
in_ pass - Store a value in Pass. Returns
trueif stored,falseif the key already exists. Useforce_store_in_passto overwrite an existing entry. Note: the existence check and write are not atomic. - try_
get_ from_ pass - Fetch a secret from Pass. Returns
Noneif the key doesn’t exist. Prefer this overget_from_pass.