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