vios_app 0.1.1

Small JSON vaults: Argon2id + AES-GCM, with optional AAD binding.
Documentation
1
2
3
4
5
6
7
8
9
10
11
use std::io::{self, Write};

/// Prompt the user and read a password from stdin.
pub fn must_get_password(prompt: &str) -> String {
    print!("{prompt}");
    io::stdout().flush().unwrap();

    let mut password = String::new();
    io::stdin().read_line(&mut password).unwrap();
    password.trim().to_owned()
}