Crate rusotp

Crate rusotp 

Source

Modules§

ffi

Structs§

AfterError
Error indicating that a value exceeds allowed point.
DriftBehindError
Error indicating that a value exceeds the allowed drift.
HOTP
Represents an HOTP (HMAC-based One-Time Password) generator.
InvalidSecretError
Error invalid Secret.
OtpGenericError
Generic OTP error with a message.
Radix
Numeric radix (base) between 2 and 36.
RadixError
Error for invalid radix values (must be 2..=36).
Secret
Represents a secret as a vector of bytes.
SecretError
Error type for secret-related operations.
TOTP
Represents a TOTP (Time-based One-Time Password) generator.
UnsupportedAlgorithmError
Error for unsupported algorithm in OTP.
UnsupportedIntervalError
Error for unsupported OTP interval.
UnsupportedLengthError
Error for unsupported OTP code length.
UnsupportedRadixError
Error for unsupported radix in OTP.

Enums§

Algorithm
Enum representing the supported hashing algorithms.

Traits§

AlgorithmTrait
Trait for defining common behavior for different hashing algorithms.
OtpError
Trait for all OTP-related errors.

Functions§

generate_qr_code_image
generate_qr_code_string

Type Aliases§

OtpResult
Result type alias for OTP operations.
RadixResult
A specialized Result type for operations that may return a RadixError.
SecretResult
Result type for secret operations.