Crate nyx[−][src]
Expand description
Small no-std
implementation of the TOTP algorithm.
Only SHA-1 is supported.
use std::time::SystemTime;
let secs = SystemTime::UNIX_EPOCH.elapsed().unwrap().as_secs();
let _ = nyx::generate("12345678901234567890", secs);
Based on the implementation from totp-rs.