No description
Find a file
Philippe Teuwen 2514cde675
Merge pull request #80 from darconeous/ultralightc-set-key
mifare-ultralight: Added mifare_ultralightc_set_key()
2018-01-06 17:36:49 +01:00
cmake Fix build with CMake 2017-04-24 09:35:08 +02:00
contrib Remove subversion artifacts. 2015-05-12 12:22:39 +02:00
debian Update changelog for 0.4.0 2013-12-04 11:03:40 +01:00
examples Run make style to indent macros 2017-06-29 12:25:53 +02:00
libfreefare mifare-ultralight: Added mifare_ultralightc_set_key() 2018-01-06 08:19:00 -08:00
m4 Add .gitignore 2013-01-14 10:40:29 +01:00
test mifare-ultralight: Added mifare_ultralightc_set_key() 2018-01-06 08:19:00 -08:00
.gitignore Ignore new examples 2017-06-27 13:57:05 +02:00
.travis-ci-build Do not use pkg-config(1) to search for libnfc 2017-06-26 11:30:36 +02:00
.travis.yml Build test then run them 2017-06-26 13:17:37 +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 allow to cross-compile 32 and 64 bit dlls using MinGW 2017-06-07 15:15:55 +02: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.md Improve naming consistency. 2015-05-12 13:52:18 +02:00
libfreefare.pc.in Install a libfreefare.pc pkg-config module. 2009-12-18 21:31:45 +00:00
Makefile.am Ask astyle(1) to indent macros too 2017-06-29 12:23:03 +02:00
NEWS Updates NEWS file 2013-01-20 17:53:38 +01:00
README.md Add Travis-CI badge 2017-06-29 09:55:48 +02:00
TODO Push my TODO notes 2016-01-18 10:31:22 +01:00
Updating.md Add updating instructions. 2015-05-13 02:01:23 +02:00

Introduction

Build Status Join the chat at https://gitter.im/nfc-tools/libfreefare

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
FeliCa Lite Supported
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 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 Ultralight C Supported
NTAG21x 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

For *NIX systems

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

For Windows Systems

Requirements

  • cmake
  • make
  • mingw{32,64}-gcc

Building

mingw64-cmake -DLIBNFC_INCLUDE_DIRS=/path/to/libnfc-source/include  -DLIBNFC_LIBRARIES=/path/to/libnfc.dll
mingw64-make

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