Search Results for

    Show / Hide Table of Contents

    TTimeBasedOtp Class

    Derived class for generating time-based OTP (One-Time Password).

    Syntax

    Unit: Sphinx.Otp

    TTimeBasedOtp = class(TCustomOtp);

    Constructors

    Name Description
    Create Initializes a new instance of the TTimeBasedOtp class.

    Methods

    Name Description
    Calculate Overloaded
    Calculate
    Calculate(TDateTime, Boolean)
    Verify Overloaded
    Verify(Int64)
    Verify(Int64, Int64)
    Verify(TDateTime, Int64, Boolean)
    Verify(TDateTime, Int64, Int64, Boolean)
    RemainingSeconds Overloaded
    RemainingSeconds
    RemainingSeconds(TDateTime, Boolean)
    Format Formats the provided OTP value as a string.

    Properties

    Name Description
    TimeStep Gets or sets the time step in seconds for TOTP generation. Default is 30 seconds.
    In This Article
    Back to top TMS Sphinx v1.15
    © 2021 - 2025 tmssoftware.com