dart_otp 1.1.0 copy "dart_otp: ^1.1.0" to clipboard
dart_otp: ^1.1.0 copied to clipboard

outdated

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

example/example.dart

import 'package:dart_otp/dart_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
0
pub points
67%
popularity

Publisher

unverified uploader

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

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

base32, crypto

More

Packages that depend on dart_otp