pass/pass.rs
1// Copyright 2025 Steven Dee.
2//
3// This project is dual licensed under the MIT and Apache 2.0 licenses. See
4// the 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::{RppFlags, readpassphrase};
10
11fn main() {
12 let password =
13 readpassphrase(c"Password: ", RppFlags::default()).expect("failed reading password");
14 println!("{password}");
15}