one-time passwords: implement stub
one-time passwords: implement stub: a task in smol-software-harbor (Harbor dataset). Implement hotp(secret, counter, digits = 6) in src/hotp.js following RFC 4226 (the comment above it summarises the algorithm; secret is a Buffer). totp already delegates to it. With the RFC test secret…
The task
Implement `hotp(secret, counter, digits = 6)` in `src/hotp.js` following RFC 4226 (the comment above it summarises the algorithm; `secret` is a Buffer). `totp` already delegates to it. With the RFC test secret `12345678901234567890`, counter 0 gives `755224` and counter 1 gives `287082`. Run `node --test…
Part of efederici/smol-software-harbor.