Skip to content

Documents for @litert/otp / HOTP / IGenerator

Interface: IGenerator()

Defined in: HOTP.ts:46

Generator function type for HOTP codes.

IGenerator(seq): string

Defined in: HOTP.ts:63

Generator function type for HOTP codes.

Parameters

seq

number

The sequence of OTP to generate.

Returns

string

Properties

digest

readonly digest: EDigest

Defined in: HOTP.ts:56

The digest algorithm used to generate the TOTP code.


digits

readonly digits: number

Defined in: HOTP.ts:51

The output width of OTP.