Skip to content

dpikalov/hotp-totp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hotp-totp

npm install NPM Unpacked Size npm install

Generate One-Time passwords in JS using WebCrypto

Usage

// Time-based one-time password
await totp('SECRETSECRET')
// HMAC-based one-time password
await hotp('SECRETSECRET', 0 /* counter */) #=> 977742

Installation

  $ npm install hotp-totp

Releases

No releases published

Packages

 
 
 

Contributors