github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

ossguy / libbitconvert

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 2
    • 1
  • Source
  • Commits
  • Network (1)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

A library that decodes bits from magnetic stripe cards. — Read more

  cancel

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

make common error strings more descriptive 
ossguy (author)
Wed May 27 06:45:21 -0700 2009
commit  a69cd94b71d3aa315d2bb2cd0e305f3c21404adc
tree    f060b20247d0eae73ede2657b513c82d6010cbc4
parent  6d1c8917a43fa76b7948e26fa943db1a2a379bb2
libbitconvert /
name age
history
message
file .gitignore Thu Mar 05 17:06:46 -0800 2009 .gitignore [Dave Vandervies]
file COPYING.txt Sat May 23 15:35:31 -0700 2009 add .txt extension to README and COPYING files ... [ossguy]
file Makefile Mon May 25 12:53:51 -0700 2009 $(LDFLAGS) must be at the end of the link optio... [ossguy]
file README.txt Sat May 23 15:42:13 -0700 2009 add note about core.autocrlf git option to READ... [ossguy]
file bitconvert.c Wed May 27 06:45:21 -0700 2009 make common error strings more descriptive Add... [ossguy]
file bitconvert.h Wed May 27 06:22:48 -0700 2009 define a mask for formats file errors Add a ma... [ossguy]
file combine.c Mon Mar 02 15:41:34 -0800 2009 update code to use consistent bracing conventio... [ossguy]
file driver.c Mon Mar 02 15:41:34 -0800 2009 update code to use consistent bracing conventio... [ossguy]
file formats.txt Mon May 25 13:53:50 -0700 2009 add "Bit Inspector test bitstream" to formats f... [ossguy]
directory test_data/ Mon Feb 23 17:01:38 -0800 2009 add 6 example bitstreams Add bitstreams to the... [ossguy]
README.txt
This is the README for libbitconvert, a library that decodes bits from magnetic
stripe cards into the ALPHA and BCD formats and provides a list of fields and
values for cards described in the formats file.

Before checking out the project on Windows, please turn on the "core.autocrlf"
option in git (run "git config --global core.autocrlf true").  This will convert
newlines in the checked out files into Windows-style newlines so that editors
like Notepad can read them easily.

To build the library and test driver, run "make" from the root directory.  This
should work on any POSIX system with a C compiler, such as Ubuntu with build
tools (run "sudo apt-get install build-essential"), Mac OS X with Xcode, or
Windows with MinGW and MSYS.  libbitconvert requires libpcre, which is available
in Ubuntu 8.04 and 8.10 by running "sudo apt-get install libpcre3 libpcre3-dev".
Mac OS X users can acquire libpcre by installing the "pcre" port in MacPorts.
libpcre for Windows is at http://gnuwin32.sourceforge.net/packages/pcre.htm in
"Complete package, except sources".

To use the library, you can run "./driver" (the test driver), which reads ASCII
1s and 0s from standard input.  The driver expects Track 1 data to be on the
first line of standard input, Track 2 data on the second line of standard
input, and Track 3 data on the third line of standard input.  To specify no
data for a particular track, simply use an empty line.

Example bitstreams are available in the test_data directory.  You can run them
through the test driver using a command like "./driver < test_data/eb_edge".

Alternatively, you can write your own application that #includes bitconvert.h
and links with libbitconvert.a, but beware that the API is not yet stable so
you may have to update your application regularly to keep up with the changes.

For more information on the ALPHA and BCD formats, see
http://www.cyberd.co.uk/support/technotes/isocards.htm.

--
  Copyright (C) 2009  Denver Gingerich <denver@ossguy.com>

  Copying and distribution of this file, with or without modification,
  are permitted in any medium without royalty provided the copyright
  notice and this notice are preserved.
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server