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 to use.
digestThe digest to use.
digitsThe number of digits to produce. Defaults to six.
counterThe counter to generate the HOTP for.
Return Value
The generated HOTP as String.