python-emv-main

所属分类:文章/文档
开发工具:Python
文件大小:30KB
下载次数:6
上传日期:2021-03-16 15:31:48
上 传 者Alii23
说明:  this is a emv nfc software

文件列表:
LICENSE (1056, 2020-11-06)
Vagrantfile (606, 2020-11-06)
dev-requirements.txt (42, 2020-11-06)
emv (0, 2020-11-06)
emv\__init__.py (23, 2020-11-06)
emv\cap.py (4544, 2020-11-06)
emv\card.py (6866, 2020-11-06)
emv\command (0, 2020-11-06)
emv\command\__init__.py (0, 2020-11-06)
emv\command\client.py (7330, 2020-11-06)
emv\exc.py (134, 2020-11-06)
emv\protocol (0, 2020-11-06)
emv\protocol\__init__.py (0, 2020-11-06)
emv\protocol\command.py (5425, 2020-11-06)
emv\protocol\data.py (5091, 2020-11-06)
emv\protocol\data_elements.py (10827, 2020-11-06)
emv\protocol\response.py (2684, 2020-11-06)
emv\protocol\structures.py (9673, 2020-11-06)
emv\protocol\test (0, 2020-11-06)
emv\protocol\test\test_command.py (785, 2020-11-06)
emv\protocol\test\test_data_elements.py (425, 2020-11-06)
emv\protocol\test\test_response.py (366, 2020-11-06)
emv\protocol\test\test_structures.py (4728, 2020-11-06)
emv\test (0, 2020-11-06)
emv\test\fixtures.py (559, 2020-11-06)
emv\test\test_cap.py (2573, 2020-11-06)
emv\test\test_transmission.py (1214, 2020-11-06)
emv\test\test_util.py (148, 2020-11-06)
emv\transmission.py (1748, 2020-11-06)
emv\util.py (1078, 2020-11-06)
setup.cfg (46, 2020-11-06)
setup.py (1171, 2020-11-06)

EMV for Python ============== ![Tests](https://github.com/russss/python-emv/workflows/Tests/badge.svg) A Pythonic implementation of the EMV smartcard protocol, which is used worldwide for chip-and-PIN payments. This is intended to be readable, tested, and heavily cross-referenced with the appropriate sections of the [EMV Specification](http://www.emvco.com/specifications.aspx). This also includes an implementation of the `EMV CAP` (aka Pinsentry) standard which is known to work for Barclays cards. Installation ------------ You'll need the pcsc smartcard libraries on your system in order to build the smartcard bindings. On Ubuntu: sudo apt-get install build-essential swig libpcsclite-dev python-pip python-devel Then you can install emv from pip: sudo pip install emv To check if everything's working, plug in a smartcard reader, put a bank card in, and run: emvtool info If all goes well, you should see some data about your card. Warning ------- Although this tool has been relatively well tested, it's possible to block or even damage your card, as well as get in trouble with your card issuer. Please make sure you understand the risks. Commands marked in the `--help` output with [!] will initiate a transaction on the card, resulting in a permanent change to the card's internal state which could potentially be detected by your card issuer, particularly if you initiate many transactions. Command Line ------------ This library ships with `emvtool` - a simple command-line tool for testing and CAP password generation. To fetch some card metadata, run: emvtool info If you have more than one smartcard reader (or smartcard-like devices, such as a YubiKey) connected, you may have to select a specific reader. List all the readers with: emvtool readers Then use the `-r` option to select the specific reader ID, e.g.: emvtool -r 1 info To generate an EMV CAP one-time passcode: emvtool -p cap You can also conduct CAP signing and challenge-response: emvtool -p cap -c emvtool -p cap -c -a Legal Stuff ----------- `EMV` is a trademark of [EMVCo](http://www.emvco.com/) and is used purely for descriptive purposes. This library is not affiliated with EMVCo.

近期下载者

相关文件


收藏者