scanpw 1.0.0

Read a password from standard input
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use scanln::scanln;
use scanpw::scanpw;

fn main() {
    println!(
        "This example has a formatted prompt and echos keystrokes with '*'s."
    );

    let username = scanln!("Username: ");

    let password = scanpw!("Password for {}: ", username);

    println!("\"{}\" was entered", password);
}