aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.rs11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 05dd895..48b8e4c 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -16,7 +16,7 @@
extern crate reqwest;
extern crate ring;
-use std::env;
+use std::{env, thread, time};
use std::error::Error;
use ring::digest;
@@ -131,7 +131,16 @@ fn main() {
return;
}
+ let mut first_round = true;
+
for pw in passwords {
+ if first_round {
+ first_round = false;
+ }
+ else {
+ thread::sleep(time::Duration::new(1, 0));
+ }
+
match check(Password::new(&pw)) {
Err(e) => println!("{}", e.description()),
Ok(num) => {