Reply To: Mifare authentication string

Forum MIFARE general topics and applications Mifare authentication string Reply To: Mifare authentication string

Re: Mifare authentication string

2. August 2017 at 13:48
Ok, in agreement here, but in C# the code for doing the authentication is a tad different, What bytes do i need to send to the serial interface to log in ?

i always get 01 00 15 01 09 76 D0 ... reading all the manuals , i can't get for the likes of it any date out of this...

The code is below

public void AuthSector12()
{
try
{
byte[] array = new byte[]
{
// what do i put here ?
};

SerialPort1.Write(array, 0, 8);
Thread.Sleep(25);
string text = "";
int bytesToRead = SerialPort1.BytesToRead;
byte[] array2 = new byte[bytesToRead];
SerialPort1.Read(array2, 0, bytesToRead);
for (int i = 0; i < bytesToRead; i++)
{
uint num = Convert.ToUInt32(array2);
text = text + string.Format("{0:x2}", num).ToUpper() + " ";
}
}
catch (Exception)
{
}
}
+ 0  |  - 0