This is a fork of original totp-lite with some changes on API and added support for no_std
.
```rust fn totp1tests() { let secret: &[u8] = b"12345678901234567890"; asserteq!(20, secret.len()); let pairs = vec![ (94287082, 59), (07081804, 1111111109), (14050471, 1111111111), (89005924, 1234567890), (69279037, 2000000000), (65353130, 20000000000), ];
pairs.into_iter().for_each(|(expected, time)| {
assert_eq!(expected, totp::<Sha1>(secret, time));
});
} ```
See totp-lite for more details.
License: MIT