libfreefare-master
所属分类:Linux/Unix编程
开发工具:LINUX
文件大小:195KB
下载次数:3
上传日期:2018-11-08 07:08:24
上 传 者:
elbrochas
说明: Rear and writter Mifare
文件列表:
.travis-ci-build (453, 2018-03-10)
.travis.yml (487, 2018-03-10)
AUTHORS (164, 2018-03-10)
CMakeLists.txt (2334, 2018-03-10)
COPYING (9652, 2018-03-10)
ChangeLog (25847, 2018-03-10)
HACKING.md (4630, 2018-03-10)
Makefile.am (1743, 2018-03-10)
NEWS (3545, 2018-03-10)
TODO (981, 2018-03-10)
Updating.md (607, 2018-03-10)
cmake (0, 2018-03-10)
cmake\config_posix.h.cmake (369, 2018-03-10)
cmake\config_windows.h.cmake (1010, 2018-03-10)
cmake\modules (0, 2018-03-10)
cmake\modules\FindLIBNFC.cmake (709, 2018-03-10)
configure.ac (2819, 2018-03-10)
contrib (0, 2018-03-10)
contrib\Makefile.am (58, 2018-03-10)
contrib\libfreefare_zsnippets.vim (2326, 2018-03-10)
contrib\libutil (0, 2018-03-10)
contrib\libutil\Makefile.am (161, 2018-03-10)
contrib\libutil\hexdump.c (3075, 2018-03-10)
contrib\libutil\libutil.h (2280, 2018-03-10)
contrib\win32 (0, 2018-03-10)
contrib\win32\err.h (1118, 2018-03-10)
debian (0, 2018-03-10)
debian\changelog (582, 2018-03-10)
debian\compat (2, 2018-03-10)
debian\control (1626, 2018-03-10)
debian\copyright (977, 2018-03-10)
debian\libfreefare-bin.install (28, 2018-03-10)
debian\libfreefare-dev.install (119, 2018-03-10)
debian\libfreefare-doc.install (32, 2018-03-10)
... ...
# Introduction
[![Build Status](https://travis-ci.org/nfc-tools/libfreefare.svg?branch=master)](https://travis-ci.org/nfc-tools/libfreefare)
[![Join the chat at https://gitter.im/nfc-tools/libfreefare](https://badges.gitter.im/nfc-tools/libfreefare.svg)](https://gitter.im/nfc-tools/libfreefare?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
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](http://nfc-tools.org/).
If you are new to _libfreefare_ or the _nfc-tools_, you should collect useful information on the [project website](http://nfc-tools.org/) and the [dedicated forums](http://www.libnfc.org/community).
# 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](https://github.com/nfc-tools/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,***}-gcc
### Building
mingw***-cmake -DLIBNFC_INCLUDE_DIRS=/path/to/libnfc-source/include -DLIBNFC_LIBRARIES=/path/to/libnfc.dll
mingw***-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
```
近期下载者:
相关文件:
收藏者: