Skip to content

Releases: yeojz/otplib

v7.0.0-1

22 Oct 13:33
Compare
Choose a tag to compare
v7.0.0-1 Pre-release
Pre-release
7.0.0-1

v7.0.0-0

14 Oct 08:35
Compare
Choose a tag to compare
v7.0.0-0 Pre-release
Pre-release

Addressing issue #7

v6.0.3

04 Sep 05:51
Compare
Choose a tag to compare
  • fix build process not publishing from the dist folder

v6.0.2

03 Mar 16:43
Compare
Choose a tag to compare
6.0.2

v6.0.1

03 Sep 13:44
Compare
Choose a tag to compare

code

  • Code has been split into package-like folders
  • Bundler has been changed from webpack to rollup for all cjs packages
    • browser package is still using webpack.
  • Authenticator by default sets expected encoding to hex for secrets
    • This properly fixes #7 instead of a prior fix.
    • As such, createHmacSecret for Authenticator has been reverted to totpSecret

tests

  • test framework was switched to jest. Syntax-wise, it's kept as it and describe on purpose.

chore

  • distribution package has been cleaned up to only include the 6 core + browser output instead of just transpiling source files
  • updated readme
  • v2 interface has finally been removed.

notes

v6.0.0 (beta)

03 Sep 13:45
Compare
Choose a tag to compare
v6.0.0 (beta) Pre-release
Pre-release

This is a beta release

  • Erroneously tagged as v6.0.0. Should be v6.0.0-beta instead.
  • Refer to v6.0.1 release
  • This is published under otplib@next

v5.1.1

03 Sep 13:46
Compare
Choose a tag to compare
  • revert createHmacSecret for Authenticator to TOTP

v5.1.0

03 Sep 13:47
Compare
Choose a tag to compare
  • Removed key encoding for decoder of Authenticator

v5.0.0

29 Jul 05:34
Compare
Choose a tag to compare

code

  • createHmacSecret for Authenticator has been defaulted to the hotpSecret function
    • addresses issue #7 (see notes section below).
  • Changed output files for webpack from underscore to dashes. i.e. from otplib_commons.js to otplib-commons.js

chore

  • updated readme

notes

In RFC 6238, the secret / seed length for different algorithms is predefined:

HMAC-SHA1 - 20 bytes
HMAC-SHA256 - 32 bytes
HMAC-SHA512 - 64 bytes

As such, the length of the secret is padded and sliced according to the expected length for respective algrorithms. However, Google Authenticator does not seem to pad/slice the secret, resulting in wrong tokens generated when using TOTP implementation directly.

v4.0.6

15 Apr 15:56
Compare
Choose a tag to compare

chore

  • Updated readme