Update Rust crate base32 to 0.5.0 #24
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user