usecrate::output::hook;userpassword::read_password;usestd::io::{self, Write};/// Prompts for a secure password (no echo)
pubfnprompt_password(prompt:&str)-> String{print!("{prompt}: ");ifletErr(e)=io::stdout().flush(){hook::warn(&format!("flush failed: {e}"));}matchread_password(){Ok(password)=> password,Err(e)=>{hook::error(&format!("failed to read password: {e}"));String::new()}}}