SecureBlackbox 2020 .NET Edition

Questions / Feedback?

IsTOTPPasswordValid Method

Validates a time-based one-time password.

Syntax

public bool IsTOTPPasswordValid(byte[] keySecret, int passwordLength, int timeInterval, string hashAlgorithm, string password);
Public Function IsTOTPPasswordValid(ByVal KeySecret As Byte(), ByVal PasswordLength As Integer, ByVal TimeInterval As Integer, ByVal HashAlgorithm As String, ByVal Password As String) As Boolean

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 .NET Edition - Version 20.0 [Build 8165]