otp 1.0.2
otp: ^1.0.2 copied to clipboard
RFC6238 Time-Based One-Time Password / Google Authenticator Library
import "package:otp/otp.dart";
main() {
var code = OTP.generateTOTPCode("JBSWY3DPEHPK3PXP", DateTime.now().millisecondsSinceEpoch);
print(code);
var code2 = OTP.generateTOTPCode("JBSWY3DPEHPK3PXP", DateTime.now().millisecondsSinceEpoch, interval: 10);
print(code2);
}