public Totp(OtpHashAlgorithm otpHashAlgorithm, int codeSize) { _hashAlgorithm = otpHashAlgorithm; // valid input parameter if (codeSize <= 0 || codeSize > 10) { throw new ArgumentOutOfRangeException(nameof(codeSize), codeSize, "length must between 1 and 9"); } _codeSize = codeSize; }
public Totp(OtpHashAlgorithm hashAlgorithm) : this(hashAlgorithm, 6) { }