Commit 9746793f83dd55e161beb0b6458cbe1cf0de048f

Cléo Rebert 2020-06-21T16:03:39

delete test file

diff --git a/src/main.rs b/src/main.rs
deleted file mode 100644
index 7e99d3c..0000000
--- a/src/main.rs
+++ /dev/null
@@ -1,20 +0,0 @@
-use std::time::SystemTime;
-use totp_rs::{Algorithm, TOTP};
-
-fn main() {
-    let username = "example".to_string();
-    let totp = TOTP::new(
-        Algorithm::SHA1,
-        6,
-        1,
-        30,
-        "supersecret".to_string().into_bytes(),
-    );
-    let time = SystemTime::now()
-        .duration_since(SystemTime::UNIX_EPOCH).unwrap()
-        .as_secs();
-    let url = totp.get_url(format!("account:{}", username), "my-org.com".to_string());
-    println!("{}", url);
-    let token = totp.generate(time);
-    println!("{}", token);
-}