Update Rust crate base32 to 0.5.0 #24

Merged
pierre merged 2 commits from renovate/base32-0.x into master 2024-05-23 09:34:16 +00:00
3 changed files with 4 additions and 4 deletions

4
Cargo.lock generated
View File

@ -52,9 +52,9 @@ dependencies = [
[[package]]
name = "base32"
version = "0.4.0"
version = "0.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "23ce669cd6c8588f79e15cf450314f9638f967fc5770ff1c7c1deb0925ea7cfa"
checksum = "d1ce0365f4d5fb6646220bb52fe547afd51796d90f914d4063cb0b032ebee088"
[[package]]
name = "cc"

View File

@ -7,5 +7,5 @@ edition = "2018"
[dependencies]
totp_rfc6238 = "0.5.3"
base32 = "0.4.0"
base32 = "0.5.0"
clap = { version = "4.5.4", features = ["derive"] }

View File

@ -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();