pub struct HOTP {
pub secret: String,
}
Expand description
Two-step verfication of HOTP algorithm.
Fields
secret: String
A secret token for the authentication
Implementations
sourceimpl HOTP
impl HOTP
sourcepub fn generate(&self, counter: usize) -> u32
pub fn generate(&self, counter: usize) -> u32
Generate a HOTP code.
counter
: HOTP is a counter based algorithm.
Trait Implementations
impl Eq for HOTP
impl StructuralEq for HOTP
impl StructuralPartialEq for HOTP
Auto Trait Implementations
impl RefUnwindSafe for HOTP
impl Send for HOTP
impl Sync for HOTP
impl Unpin for HOTP
impl UnwindSafe for HOTP
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more