inquire 0.5.3

inquire is a library for building interactive prompts on terminals
Documentation
use inquire::Password;

fn main() {
    let name = Password::new("RSA Encryption Key:")
        .without_confirmation()
        .prompt();

    match name {
        Ok(_) => println!("This doesn't look like a key."),
        Err(_) => println!("An error happened when asking for your key, try again later."),
    }
}