Module totp

Source

Structsยง

Totp
TOTP representation broken down into its components.
TotpResponse

Enumsยง

TotpAlgorithm
TotpError

Constantsยง

BASE32_CHARS ๐Ÿ”’
DEFAULT_ALGORITHM ๐Ÿ”’
DEFAULT_DIGITS ๐Ÿ”’
DEFAULT_PERIOD ๐Ÿ”’
STEAM_CHARS ๐Ÿ”’
UNIFFI_META_CONST_BITWARDEN_VAULT_RECORD_TOTPRESPONSE ๐Ÿ”’

Functionsยง

decode_b32 ๐Ÿ”’
This code is migrated from our javascript implementation and is not technically a correct base32 decoder since we filter out various characters, and use exact chunking.
derive_binary ๐Ÿ”’
Derive the OTP from the hash with the given number of digits.
derive_steam_otp ๐Ÿ”’
Derive the Steam OTP from the hash with the given number of digits.
generate_totp
Generate a OATH or RFC 6238 TOTP code from a provided key.
generate_totp_cipher_view
Generate a OATH or RFC 6238 TOTP code from a provided CipherListView.

Type Aliasesยง

HmacSha1 ๐Ÿ”’
HmacSha256 ๐Ÿ”’
HmacSha512 ๐Ÿ”’