passlane 2.5.0

A password manager and authenticator for the command line
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::actions::{copy_to_clipboard, Action};
use crate::crypto;
use crate::vault::entities::Error;

pub struct GeneratePasswordAction;

impl Action for GeneratePasswordAction {
    fn run(&self) -> Result<String, Error> {
        let password = crypto::generate();
        copy_to_clipboard(&password);
        Ok("Password - also copied to clipboard".to_string())
    }
}