Skip to main content

prompt_new_password

Function prompt_new_password 

Source
pub fn prompt_new_password() -> Result<Zeroizing<String>>
Expand description

Prompt for a new password with confirmation (used during init).

Also respects ENVVAULT_PASSWORD for scripted/CI usage. Enforces a minimum password length.

Returns Zeroizing<String> so the password is wiped from memory on drop.