Hi I'm comparing the different totp libraries available on crates and I don't understand why pins generated from this crate while using SHA1 with the same secret key are different from the the google authenticator crate. The totp generated by the google authenticator crate matches those generated by my authenticator app.
let totp = TOTP::new(
Algorithm::SHA1,
6,
1,
30,
Secret::Raw("I3VFM3JKMNDJCDH5BMBEEQAW6KJ6NOE3".as_bytes().to_vec()).to_bytes().unwrap(),
).unwrap();
let code = totp.generate_current().unwrap();
println!("Totp-rs {code}");
Hi I'm comparing the different totp libraries available on crates and I don't understand why pins generated from this crate while using SHA1 with the same secret key are different from the the google authenticator crate. The totp generated by the google authenticator crate matches those generated by my authenticator app.