Skip to main content

MIFARE DESFire NFC card communication protocol

Project description

MIFARE DESFire for Python Documentation Status

This package provides MIFARE DESFire native communication protocol for NFC cards.

Source code:


In photo: MIFARE DESFire EV1 8kB blank card with Identive CLOUD 4500 F Dual Interface Reader


  • Compatibile with USB-based NFC readers via PCSC interface. PCSC API is available on Linux, OSX and Windows. Linux support includes support for Raspberry Pi.
  • Compatibile with Android mobile phones and their built-in NFC readers. This is done using Kivy cross application Python framework and native Android APIs via pyjnius Python to Java bridging.
  • Only some of the commands are implemented in the current alpha quality version, please feel free to add more.
  • Compatible with Python 2 and Python 3


The communication protocol specification is not public. The work is based on reverse engineering existing open source DESFire projects, namely Android host card emulation for DESFire and MIFARE SDK.


Mikko Ohtamaa.


This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.


0.2 (2016-03-30)

  • Added data file read and write

0.1 (2016-03-07)

  • First release on PyPI.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

desfire-0.2.tar.gz (121.2 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page