Instance Propertyhummingbird-auth 2.0.1HummingbirdOTP
secret
OTP.swift:155let secret: String
let secret: String
import HummingbirdOTP
struct TOTP
A time based one time password (OTP)
@frozen struct String
A Unicode string value that is a collection of characters.
init(secret: String, length: Int = 6, timeStep: Int = 30, hashFunction: OTPHashFunction = .sha1)
Initialize TOTP
let hashFunction: OTPHashFunction
let length: Int
let timeStep: Int
func compute(date: Date = Date()) -> Int
Compute a TOTP
func createAuthenticatorURL(label: String, issuer: String? = nil) -> String
Create AuthenticatorMiddleware URL for TOTP generator