1 unstable release
| 0.1.0 | Sep 20, 2021 |
|---|
#2066 in Authentication
9KB
188 lines
one-time
Compute HOTP and TOTP values according to RFCs 4226 and 6238.
This implementation is digest-agnostic.
Features
All features are disabled by default.
std: makesErrorimplementstd::error::Errorand usesstd::time::SystemTimefortotp_nowlibc: use libc for getting the time fortotp_now
If std and libc are both enabled, libc will be used for totp_now.
Dependencies
~0.6–0.9MB
~20K SLoC