CodeGlyphX logo
CodeGlyphX

API Reference

Class

OtpAuthHotp

Namespace CodeGlyphX
Assembly CodeGlyphX
Modifiers static

Builder for deterministic otpauth://hotp/ URIs.

Inheritance

  • Object
  • OtpAuthHotp

Remarks

Output is stable (parameter ordering is fixed) and uses percent-encoding for label/query parts.

Methods

Create 2 overloads
public static String Create(String issuer, String account, Byte[] secret, Int64 counter, OtpAlgorithm alg = Sha1, Int32 digits = 6) #
Returns: String

Builds an otpauth://hotp/ URI for a HOTP token.

Parameters

issuer System.String requiredposition: 0
account System.String requiredposition: 1
secret System.ReadOnlySpan{System.Byte} requiredposition: 2
counter System.Int64 requiredposition: 3
alg CodeGlyphX.OtpAlgorithm = Sha1 optionalposition: 4
digits System.Int32 = 6 optionalposition: 5
Create(System.String issuer, System.String account, System.Byte[] secret, System.Int64 counter, CodeGlyphX.OtpAlgorithm alg, System.Int32 digits) #

Builds an otpauth://hotp/ URI for a HOTP token.

Parameters

issuer System.String required
account System.String required
secret System.Byte[] required
counter System.Int64 required
alg CodeGlyphX.OtpAlgorithm required
digits System.Int32 required