Giter VIP home page Giter VIP logo

libmsr's Introduction

libmsr

Build Status

libmsr is a library for interacting with magnetic stripe reader/writers.

It's a fork of Jacob Appelbaum's libmsr, which has been inactive for several years and contains several incomplete and/or buggy components. This project is an attempt to deliver a more complete and programmer-friendly library.

Installation and Use

$ git clone https://github.com/woodruffw/libmsr && cd libmsr
$ make && sudo make install

Doxygen generated documentation can be found here.

For functional examples, see the msr-utils repository.

Once installed, linking libmsr into your project is as simple as adding -lmsr to your linker flags.

Hardware Support

libmsr currently supports the MSR-206 and all firmware-compatible reader/writers like the MSR-505(C) and maybe the MSR-605. I've only tested it with the MSR-505C.

libmsr's People

Contributors

ioerror avatar pyoungmeister avatar woodruffw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

libmsr's Issues

ISO writes

ISO writes via msr_iso_write appear to be broken, but I can't verify that it's a software bug and not a hardware problem (since I only have one MSR).

suggestion: int fd --> void *handler

While working on an [adaption for (integration of) USB-devices],(https://github.com/nerilex/libmsr/tree/usb-support) into the library, the direct use of file descriptors turned out problematic.

I temporarily solved it for my for by using a msrio abstraction layer which manages a table of functions and handlers into which the former filedescriptors are now just indexes.

A generic void* or some other opaque pointer given to the application would probably ease abstraction and avoid the allocation of tables.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.