Table of Contents

TOtpUri Class

Utility class to handle OTP URI creation.

Syntax

Unit: Sphinx.Otp

TOtpUri = class(TObject);

Constructors

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

Methods

Name Description
Build Builds an OTP URI string from the provided parameters.
ToString Returns the OTP URI as a string.

Properties

Name Description
AccountName Gets or sets the account name.
Algorithm Gets or sets the hash algorithm.
Counter Gets or sets the counter for HOTP.
Digits Gets or sets the number of digits in the OTP.
Issuer Gets or sets the issuer name.
OtpType Gets or sets the type of OTP (HOTP or TOTP). Default is TOTP.
Period Gets or sets the period for TOTP.
Secret Gets or sets the secret key, base-32 encoded.