Crate otp_simple

Source
Expand description

A simple implementation of the TOTP and HOTP algorithms.

Note: Most functions in this crate will require a hash function to be specified via a type parameter. It is recommended to specify SHA-1 for maximum compatibility, but many clients also support using SHA-256 and SHA-512.

Re-exports§

pub use rfc::hotp;
pub use rfc::totp;
pub use util::check_hotp;
pub use util::check_totp;

Modules§

rfc
Implementatations of TOTP (RFC6238) and HOTP (RFC4226).
util
Additional utilities for working with TOTP and HOTP.