Skip to content
This repository has been archived by the owner on Jun 1, 2024. It is now read-only.

Commit

Permalink
Add code cods
Browse files Browse the repository at this point in the history
  • Loading branch information
BrunoMiguens committed Jul 17, 2019
1 parent a38abd5 commit c93fe04
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
9 changes: 9 additions & 0 deletions lib/src/hotp.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,20 @@ class HOTP extends OTP {
/// @type {String}
/// @desc random base32-encoded key to generate OTP.
///
/// @param {counter}
/// @type {int}
/// @desc the counter value for OTP.
/// This defaults to 0.
///
/// @param {digits}
/// @type {int}
/// @desc the length of the one-time password.
/// This defaults to 6.
///
/// @param {algorithm}
/// @type {OTPAlgorithm}
/// @desc the algorithm to be used on HMAC encoding, dedault to be SHA1
///
/// @return {HOTP}
///
HOTP(
Expand Down
7 changes: 3 additions & 4 deletions lib/src/otp.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,9 @@ abstract class OTP {
/// @type {int}
/// @desc the length of the one-time password, default to be 6
///
/// @param {digest}
/// @type {String}
/// @desc the key that be used to do HMAC encoding, dedault and
/// only to be "sha1"
/// @param {algorithm}
/// @type {OTPAlgorithm}
/// @desc the algorithm to be used on HMAC encoding, dedault to be SHA1
///
///
OTP(
Expand Down
4 changes: 4 additions & 0 deletions lib/src/totp.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ class TOTP extends OTP {
/// @desc the length of the one-time password.
/// This defaults to 6.
///
/// @param {algorithm}
/// @type {OTPAlgorithm}
/// @desc the algorithm to be used on HMAC encoding, dedault to be SHA1
///
/// @return {TOTP}
///
TOTP(
Expand Down

0 comments on commit c93fe04

Please sign in to comment.