Time Based One Time Password Generator
open class TimeBasedOneTimePasswordGenerator(secret: ByteArray, config: TimeBasedOneTimePasswordConfig)
Content copied to clipboard
Generator for the RFC 6238 "TOTP: Time-Based One-Time Password Algorithm" (https://tools.ietf.org/html/rfc6238)
Constructors
Link copied to clipboard
fun TimeBasedOneTimePasswordGenerator(secret: ByteArray, config: TimeBasedOneTimePasswordConfig)
Content copied to clipboard
Functions
Link copied to clipboard
Link copied to clipboard
Convenience method for generate.
Generates a code representing the time-based one-time password.
Link copied to clipboard
Creates an OtpAuthUriBuilder, which pre-configured with the secret, as well as the algorithm, code digits and time step from the config.
Link copied to clipboard
Calculates the start of the given time slot.