CodeGlyphX logo
CodeGlyphX

API Reference

Class

OtpAuthTotp

Namespace CodeGlyphX
Assembly CodeGlyphX
Modifiers static

Builder for deterministic otpauth://totp/ URIs.

Inheritance

  • Object
  • OtpAuthTotp

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, OtpAlgorithm alg = Sha1, Int32 digits = 6, Int32 period = 30) #
Returns: String

Builds an otpauth://totp/ URI for a TOTP token.

Parameters

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

Builds an otpauth://totp/ URI for a TOTP token.

Parameters

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