totp: totp

Description Usage Arguments Value References Examples

View source: R/totp.r

Description

Implementation of the Time-based One-Time Password algorithm.

Usage

1
totp(key, interval = 30, digits = 6)

Arguments

key

The secret key.

interval

The interval of time in seconds.

digits

The number of digits of the return.

Value

An integer with digits digits.

References

https://en.wikipedia.org/wiki/Time-based_One-time_Password_algorithm

Examples

1
rotp::totp("asdf")

wrathematics/rotp documentation built on June 29, 2020, 12:56 a.m.