# gotp

> simple RFC4226 TOTP

Latest version **1.0.0** (published 2013-07-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install gotp
pnpm add gotp
yarn add gotp
bun add gotp
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2013-07-30 |
| First published | 2013-07-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Nathan Zadoks |
| Maintainers | nathan7 |
| Keywords | google, otp, totp, rfc4226, hmac, crypto |

## Links

- npm: https://www.npmjs.com/package/gotp
- Repository: https://github.com/nathan7/gotp
- Issues: https://github.com/nathan7/gotp/issues
- npm.io page: https://npm.io/package/gotp

## Alternatives

- [@gemini-wallet/core](https://npm.io/package/@gemini-wallet/core.md) — 515.6K weekly downloads
- [utility](https://npm.io/package/utility.md) — 416.6K weekly downloads
- [@primno/dpapi](https://npm.io/package/@primno/dpapi.md) — 7.2K weekly downloads
- [pi-readseek](https://npm.io/package/pi-readseek.md) — 3.7K weekly downloads
- [@emilia-protocol/verify](https://npm.io/package/@emilia-protocol/verify.md) — 1.1K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2013-07-30

## README

# gotp(K, length = 6, timeSlice = 30, epoch = Math.floor(Date.now() / 1000))

  Generates a time-based OTP according to RFC4226.
  K is assumed to be base32. Spaces are automatically removed from K.

---
_Source: https://npm.io/package/gotp · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
