YC / another_authenticator

A two-factor authentication app built with Flutter.
MIT License
42 stars 13 forks source link

Possible endianess issue #8

Closed YC closed 2 years ago

YC commented 2 years ago

totp_algorithm.dart

var bytes = new Uint64List.fromList([timeCounter]).buffer.asUint8List();
var digest = hmac.convert(bytes.reversed.toList());