API Reference
Class
Otp (CodeGlyphX)
Creates standards-based OTP URIs and QR codes.
Inheritance
- Object
- Otp
Methods
public static HotpBuilder Hotp(String issuer, String account, String secretBase32, Int64 counter, QrEasyOptions options = null) #Returns:
HotpBuilderStarts a fluent HOTP builder.
Parameters
- issuer System.String
- account System.String
- secretBase32 System.String
- counter System.Int64
- options CodeGlyphX.QrEasyOptions = null
HotpUri 2 overloads
public static String HotpUri(String issuer, String account, String secretBase32, Int64 counter, OtpAlgorithm alg = Sha1, Int32 digits = 6) #Returns:
StringBuilds a HOTP URI from a Base32 secret.
Parameters
- issuer System.String
- account System.String
- secretBase32 System.String
- counter System.Int64
- alg CodeGlyphX.OtpAlgorithm = Sha1
- digits System.Int32 = 6
public static String HotpUri(String issuer, String account, Byte[] secret, Int64 counter, OtpAlgorithm alg = Sha1, Int32 digits = 6) #Returns:
StringBuilds a HOTP URI from raw secret bytes.
Parameters
- issuer System.String
- account System.String
- secret System.Byte[]
- counter System.Int64
- alg CodeGlyphX.OtpAlgorithm = Sha1
- digits System.Int32 = 6
public static TotpBuilder Totp(String issuer, String account, String secretBase32, QrEasyOptions options = null) #Returns:
TotpBuilderStarts a fluent TOTP builder.
Parameters
- issuer System.String
- account System.String
- secretBase32 System.String
- options CodeGlyphX.QrEasyOptions = null
TotpUri 2 overloads
public static String TotpUri(String issuer, String account, String secretBase32, OtpAlgorithm alg = Sha1, Int32 digits = 6, Int32 period = 30) #Returns:
StringBuilds a TOTP URI from a Base32 secret.
Parameters
- issuer System.String
- account System.String
- secretBase32 System.String
- alg CodeGlyphX.OtpAlgorithm = Sha1
- digits System.Int32 = 6
- period System.Int32 = 30
public static String TotpUri(String issuer, String account, Byte[] secret, OtpAlgorithm alg = Sha1, Int32 digits = 6, Int32 period = 30) #Returns:
StringBuilds a TOTP URI from raw secret bytes.
Parameters
- issuer System.String
- account System.String
- secret System.Byte[]
- alg CodeGlyphX.OtpAlgorithm = Sha1
- digits System.Int32 = 6
- period System.Int32 = 30