dart_dash_otp 1.3.4 copy "dart_dash_otp: ^1.3.4" to clipboard
dart_dash_otp: ^1.3.4 copied to clipboard

dart_dash_otp is a dart package to generate and verify one-time passwords.

example/example.dart

import 'package:dart_dash_otp/dart_dash_otp.dart';

void main() {
  TOTP totp = TOTP(secret: "J22U6B3WIWRRBTAV");
  HOTP hotp = HOTP(secret: "J22U6B3WIWRRBTAV");

  print(totp.now());
  print(totp.value(date: DateTime.parse('2019-01-01 00:00:00.000')));

  print(hotp.at(counter: 0));
  print(hotp.at(counter: 2019));
}
13
likes
130
pub points
85%
popularity

Publisher

verified publisherdatogedon.com

dart_dash_otp is a dart package to generate and verify one-time passwords.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

base32, crypto

More

Packages that depend on dart_dash_otp