Pn5180.MifareAuthenticate Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
MifareAuthenticate(ReadOnlySpan<Byte>, MifareCardCommand, Byte, ReadOnlySpan<Byte>) |
Specific function to authenticate Mifare cards |
MifareAuthenticate(Span<Byte>, MifareCardCommand, Byte, Span<Byte>) |
Specific function to authenticate Mifare cards |
MifareAuthenticate(ReadOnlySpan<Byte>, MifareCardCommand, Byte, ReadOnlySpan<Byte>)
Specific function to authenticate Mifare cards
public bool MifareAuthenticate (ReadOnlySpan<byte> key, Iot.Device.Card.Mifare.MifareCardCommand mifareCommand, byte blockAddress, ReadOnlySpan<byte> cardUid);
member this.MifareAuthenticate : ReadOnlySpan<byte> * Iot.Device.Card.Mifare.MifareCardCommand * byte * ReadOnlySpan<byte> -> bool
Public Function MifareAuthenticate (key As ReadOnlySpan(Of Byte), mifareCommand As MifareCardCommand, blockAddress As Byte, cardUid As ReadOnlySpan(Of Byte)) As Boolean
Parameters
- key
- ReadOnlySpan<Byte>
A 6 bytes key
- mifareCommand
- MifareCardCommand
MifareCardCommand.AuthenticationA or MifareCardCommand.AuthenticationB
- blockAddress
- Byte
The block address to authenticate
- cardUid
- ReadOnlySpan<Byte>
The 4 bytes UUID of the card
Returns
True if success
Applies to
MifareAuthenticate(Span<Byte>, MifareCardCommand, Byte, Span<Byte>)
Specific function to authenticate Mifare cards
public bool MifareAuthenticate (Span<byte> key, Iot.Device.Card.Mifare.MifareCardCommand mifareCommand, byte blockAddress, Span<byte> cardUid);
member this.MifareAuthenticate : Span<byte> * Iot.Device.Card.Mifare.MifareCardCommand * byte * Span<byte> -> bool
Public Function MifareAuthenticate (key As Span(Of Byte), mifareCommand As MifareCardCommand, blockAddress As Byte, cardUid As Span(Of Byte)) As Boolean
Parameters
- mifareCommand
- MifareCardCommand
MifareCardCommand.AuthenticationA or MifareCardCommand.AuthenticationB
- blockAddress
- Byte
The block address to authenticate
Returns
True if success
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for