public
Description: A library that decodes bits from magnetic stripe cards.
Homepage:
Clone URL: git://github.com/ossguy/libbitconvert.git
libbitconvert / formats.txt
100644 41 lines (36 sloc) 0.786 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
Ontario driver's licence
ALPHA: %(?<1>.*)\^(?<2>.*)\^(?<3>.*)\^\?
1. Issuing office
2. Cardholder's full name
3. Cardholder's address
BCD: ;(?<1>\d*)=(?<2>\d*)=\?
1. Card number
2. Other stuff
ALPHA: %" (?<1>[^ ]* [^ ]*) *(?<2>[^ ]*) *(?<3>[^ ]*) *(?<4>[^ ]*) *(?<5>[^ ]*) *\?
1. Postal code
2. License type
3. Gender, height, issue date
4. License number
5. Extra data
 
Credit card
ALPHA: %(?<1>.*)\^(?<2>.*)/(?<3>.*)\^(?<4>\d*)\?
1. Card number
2. Last name
3. First name
4. Other stuff
BCD: ;(?<1>\d*)=(?<2>\d*)\?
1. Card number
2. Other stuff
none
 
M&M Meat Shops MAX card
ALPHA: %(?<1>\d{8})\?
1. Customer number
BCD: ;(?<1>\d{8})\?
1. Customer number
none
 
Bit Inspector test bitstream
ALPHA: %(?<1>TEST)\?
1. Alphanumeric test data
BCD: ;(?<1>12345)\?
1. Numeric test data
none