generate

fun generate(timestamp: Date = Date(System.currentTimeMillis())): String

Generates a code as a TOTP one-time password.

Parameters

timestamp

the challenge for the code. The default value is the current system time from System.currentTimeMillis.