API Reference
Class
OtpAuthTotp
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:
StringBuilds an otpauth://totp/ URI for a TOTP token.
Parameters
- issuer System.String
- account System.String
- secret System.ReadOnlySpan{System.Byte}
- alg CodeGlyphX.OtpAlgorithm = Sha1
- digits System.Int32 = 6
- period System.Int32 = 30
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
- account System.String
- secret System.Byte[]
- alg CodeGlyphX.OtpAlgorithm
- digits System.Int32
- period System.Int32