Skip to main content

Crate getfrompass

Crate getfrompass 

Source
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_pass for first-time writes.
get_from_pass
Fetch a secret from Pass. Panics if the key doesn’t exist. Consider using try_get_from_pass instead.
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 true if stored, false if the key already exists. Use force_store_in_pass to overwrite an existing entry. Note: the existence check and write are not atomic.
try_get_from_pass
Fetch a secret from Pass. Returns None if the key doesn’t exist. Prefer this over get_from_pass.