authenticateSectorWithKeyA method

Future<bool> authenticateSectorWithKeyA({
  1. required int sectorIndex,
  2. required Uint8List key,
})

Sends the Authenticate Sector With Key A command to the tag.

This uses MifareClassic#authenticateSectorWithKeyA API on Android.

Implementation

Future<bool> authenticateSectorWithKeyA({
  required int sectorIndex,
  required Uint8List key,
}) async {
  return channel.invokeMethod('MifareClassic#authenticateSectorWithKeyA', {
    'handle': _tag.handle,
    'sectorIndex': sectorIndex,
    'key': key,
  }).then((value) => value!);
}