diff --git a/Cargo.toml b/Cargo.toml index e2a8e07..b9b9d9d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "spm" -version = "0.1.5" +version = "0.1.6" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/src/main.rs b/src/main.rs index 90a1645..1487d63 100644 --- a/src/main.rs +++ b/src/main.rs @@ -3,7 +3,7 @@ use encdfun::inits::read_directory; use encdfun::verifypass::key_creator; use encdfun::{decfuns::read_password, encfuns::write_password}; use openssl::symm::Cipher; -use std::{env, fs, io, path}; +use std::{env, fs, path}; pub mod encdfun; @@ -36,10 +36,7 @@ fn main() { "--list" | "-l" => { match read_directory(&basepath) { Ok(_) => { - println!("Enter identifying name (domain) of password to read: "); - let mut input = String::new(); - io::stdin().read_line(&mut input).unwrap(); - read_password(input.trim(), &keyhash, &cipher, iv, &basepath); + return; } Err(e) => { println!("{}", e);