# Totp

The TOTP class handles the generation and verification of time-based one-time passwords according to RFC6238 with the SHA1 algorithm, 30 second intervals and 6 digits

****

- Full class name: `Kirby\Toolkit\Totp`
- Source: <https://github.com/getkirby/kirby/tree/5.5.3/src/Toolkit/Totp.php#L21>

****

### Totp

- [new Totp()](https://getkirby.com/docs/reference/objects/toolkit/totp/__construct.md)
- [$totp->generate()](https://getkirby.com/docs/reference/objects/toolkit/totp/generate.md)
- [$totp->secret()](https://getkirby.com/docs/reference/objects/toolkit/totp/secret.md)
- [$totp->uri()](https://getkirby.com/docs/reference/objects/toolkit/totp/uri.md)
- [$totp->verify()](https://getkirby.com/docs/reference/objects/toolkit/totp/verify.md)