authenticateSectorWithKeyB method

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

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

This uses MifareClassic#authenticateSectorWithKeyB API on Android.

Implementation

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