readpassphrase-3 1.0.2

Simple wrapper around readpassphrase(3)
Documentation
1
2
3
4
5
6
7
use readpassphrase_3::{getpass, Zeroize};

fn main() {
    let mut password = getpass(c"Password: ").expect("failed reading password");
    println!("{password:?}");
    password.zeroize();
}