From bcfd55eb5caec39d4a0f22c3796b44b002dbc4a2 Mon Sep 17 00:00:00 2001 From: Pierre Hubert Date: Thu, 23 May 2024 09:27:58 +0000 Subject: [PATCH] Update src/main.rs --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 67231c0..f2949a7 100644 --- a/src/main.rs +++ b/src/main.rs @@ -77,7 +77,7 @@ fn main() { .set_hash_algorithm(HashAlgorithm::SHA1) .build(); - let key = base32::decode(Alphabet::RFC4648 { padding: true }, &secret).unwrap(); + let key = base32::decode(Alphabet::Rfc4648 { padding: true }, &secret).unwrap(); let code = totp_generator.get_code(&key); let next_update = totp_generator.get_next_update_time().unwrap();