diff --git a/docs/__404error.html b/docs/__404error.html index ae406c4..b84cabb 100644 --- a/docs/__404error.html +++ b/docs/__404error.html @@ -4,7 +4,7 @@ - + otp - Dart API docs @@ -12,7 +12,7 @@ - + @@ -22,12 +22,12 @@ - +
- + menu @@ -35,11 +35,17 @@ +
+ +
-
-

404: Something's gone wrong :-(

@@ -83,7 +89,7 @@
otp package otp - 3.1.3 + 3.1.4 diff --git a/docs/index.html b/docs/index.html index d704894..44d23ba 100644 --- a/docs/index.html +++ b/docs/index.html @@ -4,7 +4,7 @@ - + otp - Dart API docs @@ -12,7 +12,7 @@ - + @@ -22,12 +22,12 @@ - +
- + menu @@ -35,11 +35,17 @@ +
+ +
-
-
@@ -72,7 +78,7 @@

Notes

This library does not support any other secret input other than Base32. It is what is used standard most places, and by Google Authenticator. If your secrets are not Base32 forms, please use my Base32 library (the one I use as a dependency for this library) or any other base32 library to encode your secret before passing it into the functions. All generate functions force decode of Base32.

Global Settings

-

useTOTPPaddingForHOTP (bool, default: false) +

useTOTPPaddingForHOTP (bool, default: false) Uses the TOTP padding method for handling secrets bigger or smaller than the mandatory sizes for SHA256/SHA512. This is needed as HOTP does not have an official method of using SHA256 or SHA512 in the RFC spec and most libraries don't pad HOTP for use with SHA256 or SHA512. (examples: otplib and speakeasy from Node.js)

If you enable this, it will use the same padding as TOTP (repeating the secret to the right length) but might cause incompatibilies with other libraries. I am defaulting to no padding, as this is the predominant behavior I am finding for HOTP.

@@ -181,7 +187,7 @@
@@ -106,9 +114,6 @@

Values

Use SHA1

-
- const Algorithm(0) -
@@ -121,9 +126,6 @@

Values

Use SHA256

-
- const Algorithm(1) -
@@ -136,9 +138,6 @@

Values

Use SHA512

-
- const Algorithm(2) -
@@ -153,35 +152,35 @@

Properties

- hashCode - int + hashCode + int
The hash code for this object. -
read-only, inherited
+
read-onlyinherited
- index - int + index + int
A numeric identifier for the enumerated value. -
read-only, inherited
+
read-onlyinherited
- runtimeType - Type + runtimeType + Type
A representation of the runtime type of the object. -
read-only, inherited
+
read-onlyinherited
@@ -195,7 +194,7 @@

Properties

Methods

- noSuchMethod(Invocation invocation) + noSuchMethod(Invocation invocation) → dynamic @@ -203,20 +202,20 @@

Methods

Invoked when a non-existent method or property is accessed. -
inherited
+
inherited
- toString() - String + toString() + String
A string representation of this object. -
inherited
+
inherited
@@ -229,15 +228,15 @@

Methods

Operators

- operator ==(Object other) - bool + operator ==(Object other) + bool
The equality operator. -
inherited
+
inherited
@@ -253,7 +252,7 @@

Constants

values - → const List<Algorithm> + → const List<Algorithm>
@@ -261,9 +260,9 @@

Constants

A constant List of the values in this enum, in order of their declaration. -
- [SHA1, SHA256, SHA512] -
+
+ [SHA1, SHA256, SHA512] +
@@ -286,16 +285,16 @@

Constants

otp library
    -
  1. Classes
  2. -
  3. OTP
  4. +
  5. Classes
  6. +
  7. OTP
  8. -
  9. Enums
  10. -
  11. Algorithm
  12. +
  13. Enums
  14. +
  15. Algorithm
@@ -308,24 +307,24 @@
otp library
  • Constructors
  • Algorithm
  • -
  • Values
  • -
  • SHA1
  • -
  • SHA256
  • -
  • SHA512
  • +
  • Values
  • +
  • SHA1
  • +
  • SHA256
  • +
  • SHA512
  • -
  • - Properties -
  • -
  • hashCode
  • -
  • index
  • -
  • runtimeType
  • +
  • + Properties +
  • +
  • hashCode
  • +
  • index
  • +
  • runtimeType
  • -
  • Methods
  • -
  • noSuchMethod
  • -
  • toString
  • +
  • Methods
  • +
  • noSuchMethod
  • +
  • toString
  • -
  • Operators
  • -
  • operator ==
  • +
  • Operators
  • +
  • operator ==
  • @@ -341,7 +340,7 @@
    otp library