Crate libr2fa

Source

Re-exports§

pub use steam::SteamKey;

Modules§

steam

Structs§

HOTPKey
HOTPKey is the key for the HOTP, HOTP is the counter based key, each time you get a code, the counter will increase by 1, the counter is stored in the key
TOTPKey
TOTPKey is the key for the TOTP, TOTP is the time based key,
URI
the URI struct

Enums§

Error
Error type for the library
HMACType
HMACType is the type of the HMAC SHA1 is the default SHA256 is the recommended SHA512 is the most secure
KeyType
KeyType is the type of the key HOTP is the counter based key TOTP is the time based key STEAM is the steam guard key (TODO not implemented yet)

Traits§

Key
Key is the interface for the keys
OtpAuthKey

Functions§

otpauth_from_uri
create a new key from the uri string
otpauth_from_uri_qrcode
create a new key from the uri qrcode