Documentation
¶
Overview ¶
Package mifare in scardkit provides specialized functionalities for interacting with MIFARE card technologies. This includes support for various MIFARE product types such as Classic, DESFire, and Ultralight. The package encompasses operations like authentication, reading and writing to sectors and blocks, and handling MIFARE-specific security features. It is tailored for applications that require integration with MIFARE card systems, commonly used in access control, transportation, and payment systems.
Index ¶
Constants ¶
const ( // Constants defining sector sizes, key types, etc. DefaultSectorSize = 16 KeyTypeA = "A" KeyTypeB = "B" )
Variables ¶
This section is empty.
Functions ¶
func CalculateChecksum ¶
CalculateChecksum calculates a checksum for data integrity verification.
Types ¶
type Card ¶
type Card struct { }
Card represents a MIFARE card with its specific attributes.
func (*Card) AuthenticateSector ¶
AuthenticateSector performs authentication for a specific sector on the card.
func (*Card) ReadSector ¶
ReadSector reads a specific sector from the card.