init(secret:length:hashFunction:)

Initialize HOTP

OTP.swift:114
init(secret: String, length: Int = 6, hashFunction: OTPHashFunction = .sha1)

Parameters

secret

Secret known by client and server

length

Length of password

hashFunction

Hash function to use

If you are using the Google AuthenticatorMiddleware you should choose the default values for length and hashFunction