rustdesk/vendor/rpassword-2.1.0/examples/read-password-tty.rs

8 lines
175 B
Rust

//! This example demonstrates how to read a password from the tty.
extern crate rpassword;
fn main() {
rpassword::read_password_from_tty(Some("Password: ")).unwrap();
}