SecureBlackbox 2020 Python Edition

Questions / Feedback?

is_totp_password_valid Method

Validates a time-based one-time password.

Syntax

def is_totp_password_valid(key_secret: bytes, password_length: int, time_interval: int, hash_algorithm: str, password: str) -> bool: ...

Remarks

Use this method to validate a time-based one-time password (TOTP) by using explicit TOTP parameters. For this method to work, no user details need to be provided in users collection.

Supported hash algorithms:

SB_MAC_ALGORITHM_HMAC_SHA1SHA1
SB_MAC_ALGORITHM_HMAC_SHA256SHA256
SB_MAC_ALGORITHM_HMAC_SHA512SHA512

Copyright (c) 2022 /n software inc. - All rights reserved.
SecureBlackbox 2020 Python Edition - Version 20.0 [Build 8154]