Skip to main content

resolve_password

Function resolve_password 

Source
pub fn resolve_password(
    password_file: Option<&Path>,
) -> Result<Zeroizing<String>, CmdError>
Expand description

Resolve the keystore password: env var wins over file. Trims trailing \r/\n but rejects a file that is otherwise empty.