- Breaking Change the HOTP & TOTP OTP getter methods to return an instance of
OTPResult
instead ofu32
- Made in order to allow for the
as_string
convenience formatter that provides a correct length zero-padded string - The
u32
representation of the code can also be returned withas_u32
if desired
- Made in order to allow for the
- Add in
time_until_refresh
andtime_until_refresh_with_start
to provide a convenient way to get time until a refresh is needed
- Remove the "ffi" feature as it was incompatible with the structs. Passing them as an opaque pointer is a better idea.
- Support parsing an HOTP/TOTP instance from an otpauth URI (Thanks to @orion78fr)
- Add in an "ffi" feature to make all structs & enums C-compatible with the
#[repr(C)]
attribute
- First Release
- Contains the HOTP & TOTP structs for their respective uses