rucksack 0.9.0

A terminal-based secrets manager, generator, and importer/exporter (Firefox, Chrome) backed with a concurrent hashmap
Documentation
1
2
3
4
5
6
7
8
use anyhow::{anyhow, Result};
use secrecy::SecretString;

pub fn secret(prompt: &str) -> Result<SecretString> {
    rpassword::prompt_password(prompt)
        .map(SecretString::new)
        .map_err(|e| anyhow!("password prompt failed: {}", e.to_string()))
}