Expand description
Shared password handling utilities.
Functionsยง
- prompt_
for_ password - Prompt user for password
- prompt_
for_ password_ with_ confirmation - Prompt user for password with confirmation
- read_
password_ from_ file - Reads a password from a file for non-interactive use. A single trailing
newline (as left by most editors and
echo) is stripped; everything else is taken verbatim. - resolve_
encryption_ password - Password for encryption: read from
password_filewhen given (strength requirements still apply, but no confirmation is needed since there is no typo risk), otherwise prompt interactively with confirmation. - resolve_
password - Password for decryption or listing: read from
password_filewhen given, otherwise prompt interactively. - validate_
password_ format