Desfire card library for Python
Project still ongoing, use it with caution!
-
Compatible with all readers supported by pySCARD
-
Pure python implementation
-
One of the few DESFire libraries that supports ALL (DES,2DES,3DES,AES) authentication types
-
Enumeration of the card gives an overlook on how the card is structured
-
Functions implement:
- authenticate
- getApplicationIDs
- getKeySetting
- getCardVersion
- formatCard
- selectApplication
- createApplication
- deleteApplication
- getFileIDs
- getFileSettings
- readFileData
- writeFileData
- deleteFile
- createStdDataFile
- getKeyVersion
- changeKeySettings
- changeKey
-
Can’t read data from certain file types
-
Some commands are missing (since there is no full documentation available)
Patrick Weber
The codebase of this project was based on two major projects:
who created a completely working DESFireEV1 library. (this module is based 90% of his work!)
URL: https://www.codeproject.com/Articles/1096861/DIY-electronic-RFID-Door-Lock-with-Battery-Backup
who try to implement the code from Elmue written in C to Python. (this module is based 9% of this work)
miohtama (https://twitter.com/moo9000)
who worte the original desfire module for python.