- KEYWORDS: Module,Crypto,TOTP,Time-based Password,OTP,One time password
This [[TOTP.js]] module implements a Time-based One-time Password for Espruino.
How to use the module:
const TOTP = require('totp');
const totp = TOTP.create('JBSWY3DPEHPK3PXP');
// 6 digits, period of 30 seconds
console.log(totp.generate(getTime(), 6, 30));
- APPEND_JSDOC: TOTP.js