toto 1.0.1 copy "toto: ^1.0.1" to clipboard
toto: ^1.0.1 copied to clipboard

AI-first TOTP and HOTP CLI with text, JSON, and LON output.

example/toto_example.dart

import 'dart:io';

import 'package:toto/toto.dart';

Future<void> main() async {
  final status = await runToto(
    const [
      'code',
      '--secret-env',
      'TOTO_EXAMPLE_SECRET',
      '--digits',
      '8',
      '--at',
      '59',
      '--format',
      'json',
    ],
    environment: const {
      // RFC 6238 Appendix B test secret. Never hard-code real credentials.
      'TOTO_EXAMPLE_SECRET': 'GEZDGNBVGY3TQOJQGEZDGNBVGY3TQOJQ',
    },
  );

  if (status != 0) {
    exitCode = status;
  }
}
1
likes
160
points
78
downloads

Documentation

API reference

Publisher

verified publisherfluttercandies.com

Weekly Downloads

AI-first TOTP and HOTP CLI with text, JSON, and LON output.

Homepage
Repository (GitHub)
View/report issues

Topics

#otp #totp #hotp #cli #ai

License

MIT (license)

Dependencies

args, dart_dash_otp, lon

More

Packages that depend on toto