This commit is contained in:
@@ -32,8 +32,9 @@ fun main() {
|
||||
)
|
||||
|
||||
// generate and verify OTP
|
||||
val now = System.now()
|
||||
val otp = totp.generate(<secret>, now)
|
||||
totp.verify(<secret>, now, otp)
|
||||
val secret = "...".encodeToByteArray()
|
||||
val time = System.now()
|
||||
val otp = totp.generate(secret, time)
|
||||
totp.verify(secret, time, otp)
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user