Skip to content
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.

Commit

Permalink
[⭐] Added read_key()
Browse files Browse the repository at this point in the history
Forgot to re-add this in. oops!
  • Loading branch information
90th committed Jul 20, 2024
1 parent e058d04 commit 2769b86
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
/target
/.idea/.gitignore
/.idea/hasher.iml
/.idea/modules.xml
/.idea/vcs.xml
5 changes: 4 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use std::{env, fs};
use crypto::digest::Digest;
use crypto::sha2::{Sha256, Sha512};
use crypto::md5::Md5;
use console::Term;
use console::{Term};
use std::io;
use rayon::prelude::*;

Expand Down Expand Up @@ -36,5 +36,8 @@ fn main() -> io::Result<()> {
println!("{}", hash);
}

println!("Press any key to exit...");
term.read_key()?;

Ok(())
}

0 comments on commit 2769b86

Please sign in to comment.