Module utils

Module utils 

Source
Expand description

Utility functions (path handling, compliance checks).

Functionsยง

check_keyname_compliance
Check that key file names result in the same base name and have correct extensions.
check_password_strength
Check password strength using zxcvbn (native) or password-strength (WASM).
log_untrusted_buf
Logs an untrusted buffer, escaping it as hex if it contains control characters.
read_password
Read a password from the keyring or stdin.