Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/paulmillr/micro-otp
One Time Password generation via RFC 6238
https://github.com/paulmillr/micro-otp
hotp one-time-password otp rfc6238 totp
Last synced: 16 days ago
JSON representation
One Time Password generation via RFC 6238
- Host: GitHub
- URL: https://github.com/paulmillr/micro-otp
- Owner: paulmillr
- License: mit
- Archived: true
- Created: 2022-06-19T11:09:03.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-03T12:36:32.000Z (7 months ago)
- Last Synced: 2024-06-04T12:44:07.813Z (7 months ago)
- Topics: hotp, one-time-password, otp, rfc6238, totp
- Language: JavaScript
- Homepage:
- Size: 38.1 KB
- Stars: 35
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/funding.yml
- License: LICENSE
Awesome Lists containing this project
README
# micro-otp
> [!WARNING]
> The repository has been merged into [micro-key-producer](https://github.com/paulmillr/micro-key-producer). Please head to the new repo for updates.npm install micro-key-producer
---
One Time Password generation via [RFC 6238](https://datatracker.ietf.org/doc/html/rfc6238).
```ts
import * as otp from 'micro-otp';otp.hotp(otp.parse('ZYTYYE5FOAGW5ML7LRWUL4WTZLNJAMZS'), 0n);
// 549419
otp.totp(otp.parse('ZYTYYE5FOAGW5ML7LRWUL4WTZLNJAMZS'), 0);
// 549419
```## License
MIT (c) Paul Miller [(https://paulmillr.com)](https://paulmillr.com), see LICENSE file.