Rustastic Password
This Rust package allows you to safely read passwords from standard input in a console application.
You can build the documentation with cargo doc
or view it online.
The source code is released under the MIT license.
I'd appreciate feedback if you use this library :-)
Usage
Add rpassword
as a dependency in Cargo.toml:
[]
= "0.2"
Import the rpassword
crate and use the read_password()
function:
extern crate rpassword;
use read_password;