No description
Find a file
2015-05-11 22:55:32 +02:00
cmake Enable WITH_DEBUG for Windows (Fixes issue 65) 2011-06-27 18:34:07 +00:00
contrib Rename MifareTag to FreefareTag. 2015-05-11 18:55:20 +02:00
debian Update changelog for 0.4.0 2013-12-04 11:03:40 +01:00
examples Rename MifareTag to FreefareTag. 2015-05-11 18:55:20 +02:00
libfreefare Another step in card type agnostism direction. 2015-05-11 22:55:32 +02:00
m4 Add .gitignore 2013-01-14 10:40:29 +01:00
test Rename MifareTag to FreefareTag. 2015-05-11 18:55:20 +02:00
.gitignore Ignore a few more files. 2014-04-06 14:14:12 +02:00
AUTHORS Updates invalid email address 2013-12-03 16:22:23 +01:00
ChangeLog Update changelog for 0.4.0 2013-12-04 11:03:40 +01:00
CMakeLists.txt Enable WITH_DEBUG for Windows (Fixes issue 65) 2011-06-27 18:34:07 +00:00
configure.ac Unbreak automake. 2015-04-13 15:10:35 +02:00
COPYING Add an exception to the LGPL. 2012-05-10 14:36:36 +00:00
HACKING Sort and fix names. 2015-05-11 18:55:24 +02:00
libfreefare.pc.in Install a libfreefare.pc pkg-config module. 2009-12-18 21:31:45 +00:00
Makefile.am Add Microsoft Windows support. 2011-04-24 10:21:03 +00:00
NEWS Updates NEWS file 2013-01-20 17:53:38 +01:00
README.md Update and rename README to README.md 2015-04-13 14:34:13 +02:00
TODO Rename mifare_desfire_authenticate.c to mifare_desfire_crypto.c. 2010-12-18 02:50:38 +00:00

Introduction

The libfreefare project provides a convenient API for MIFARE card manipulations.

It is part of the nfc-tools, you can find more info on them on the nfc-tools wiki.

If you are new to libfreefare or the nfc-tools, you should collect useful information on the project website and the dedicated forums.

Feature matrix

Tags

Tag Status
MIFARE Classic 1k Supported
MIFARE Classic 4k Supported
MIFARE DESFire 2k Supported
MIFARE DESFire 4k Supported
MIFARE DESFire 8k Supported
MIFARE DESFire EV1 Supported
MIFARE Mini Not supported
MIFARE Plus S 2k Not supported
MIFARE Plus S 4k Not supported
MIFARE Plus X 2k Not supported
MIFARE Plus X 4k Not supported
MIFARE Ultralight Supported
MIFARE UltralightC Supported

Specifications

Specification Status
Mifare Application Directory (MAD) v1 Supported
Mifare Application Directory (MAD) v2 Supported
Mifare Application Directory (MAD) v3 Supported (part of Mifare DESFire support)

Installation

You can use released version (see Download section) or development version:

First, ensure all dependencies are installed:

  • libnfc;
  • git;
  • Autotools (autoconf, automake, libtool);
  • OpenSSL development package.
apt-get install autoconf automake git libtool libssl-dev pkg-config

Clone this repository:

git clone https://github.com/nfc-tools/libfreefare.git
cd libfreefare

Before compiling, remember to run:

autoreconf -vis

You can now compile libfreefare the usual autotools way:

./configure --prefix=/usr
make
sudo make install

Debug

In order to debug using gdb, you should tune the CFLAGS:

CFLAGS="-O0 -ggdb" ./configure --prefix=/usr
make clean all

It is then possible to debug examples using this kind of command from the root of the repository:

./libtool --mode=execute gdb examples/mifare-classic-write-ndef

If you are only interested in viewing transfert traces between the PCD and the PICC, simply use the --enable-debug configure flag:

./configure --enable-debug
make clean all