Type Method
generate(key:digest:digits:counter:)
Compute the HOTP for the key and the counter.
static func generate(key: SymmetricKey, digest: OTPDigest, digits: OTPDigits = .six, counter: UInt64) -> String
Parameters
keyThe key.
digestThe digest to use.
digitsThe number of digits to produce.
counterThe counter to generate the HOTP for.
Return Value
The generated HOTP as String.