pass/
pass.rs

1// Copyright 2025 Steven Dee.
2//
3// This project is made available under a BSD-compatible license. See the
4// LICENSE file in the project root for details.
5//
6// The readpassphrase source and header are copyright 2000-2002, 2007, 2010
7// Todd C. Miller.
8
9use readpassphrase_3::{Zeroize, getpass};
10
11fn main() {
12    let mut password = getpass(c"Password: ").expect("failed reading password");
13    println!("{password}");
14    password.zeroize();
15}