B4R Question MFRC522 Authenticate Key fail

tzfpg

Active Member
Licensed User
Longtime User
Hi,

I have a Mifare card with authenticate key protect. When I read card, I facing the problem of MFRC522 Authenticate Key fail.
Below is my code:
B4X:
If rfid1.IsMifare Then
        Dim authenticate_key() As Byte  = JoinBytes(Array(Array As Byte(0x8D,0x6E,0x14,0xB5,0xEC,0xA6)))
        If rfid1.MifareAuthenticate2(1,authenticate_key,True) = False Then        
            Log("Failed to authenticate")
            Return
        End If
End If

Error Log:
B4X:
 Failed to authenticate

Please help me. Thank you.
 
Top