#totp #hotp #otp #oath

no-std one-time

Digest-agnostic HOTP and TOTP implementations according to their RFC specifications

1 unstable release

0.1.0 Sep 20, 2021

#390 in No standard library

EUPL-1.2

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: makes Error implement std::error::Error and uses std::time::SystemTime for totp_now
  • libc: use libc for getting the time for totp_now

If std and libc are both enabled, libc will be used for totp_now.

Dependencies

~360–530KB
~11K SLoC