[−][src]Crate nyx
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(b"12345678901234567890", secs);
Based on the implementation from totp-rs.
Functions
generate | Function for generating TOTP tokens. |
verify | Function for verifying TOTP tokens. |