Terminal Password Prompt
Easily get a password from the terminal.
This crate provides a cross-platform way to disable terminal echo.
Tested on Linux, macOS, and Windows. BSD will also probably work but hasn't been tested.
The windows portion uses the new official windows crate instead of the older winapi crate.
This is similar to python's getpass functionality.
Example
use read_password;
Write;
print!;
stdout.flush?;
let pass = read_password?;
println!;
println!;
See examples/pass.rs for a complete example.