ootp 0.1.1

OOTP (Open One-time Password) is a supports multiple programming languages. The generated one-time passwords are fully compliant with HOTP (HMAC-based One-time Password) and TOTP (Time-based One-time Password). 🚀It's easy to use!
Documentation
1
2
3
4
5
6
7
use hmacsha::ShaTypes;

pub const DEFAULT_BREADTH: u64 = 0;
pub const DEFAULT_COUNTER: u64 = 0;
pub const DEFAULT_DIGITS: u32 = 6;
pub const DEFAULT_PERIOD: u64 = 30;
pub const DEFAULT_ALGORITHM: &ShaTypes = &ShaTypes::Sha1;