Totp

open class Totp

Class to generate RFC 6238 one time passwords.

Based on the Google Authenticator implementation.

See https://tools.ietf.org/html/rfc6238 See https://github.com/google/google-authenticator-android

Constructors

Link copied to clipboard
constructor(algorithm: String, secret: Array<Byte>, length: Int, timeStep: Int)

Functions

Link copied to clipboard
open fun generate(seconds: Long): String