paulmillr / micro-otp

One Time Password generation via RFC 6238

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

micro-otp

One Time Password generation via RFC 6238.

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), see LICENSE file.

About

One Time Password generation via RFC 6238

License:MIT License


Languages

Language:JavaScript 70.0%Language:TypeScript 30.0%