Magnetic stripe card

From Just Solve the File Format Problem
(Difference between revisions)
Jump to: navigation, search
m
Line 1: Line 1:
{|
+
{{FormatInfo
|[[File Formats]]
+
|formattype=physical
| >
+
}}
|[[Physical File Formats]]
+
| >
+
|[[Magnetic stripe card]]
+
|}
+
  
 
Magstripe (magnetic-stripe) cards are everywhere: bank cards, [http://cansecwest.com/slides06/csw06-malfunction.pdf hotel key cards], gift cards, transit ticket, id cards. They encode machine-readable data in a strip of magnetized material, usually located next to the long edge of the card. They most commonly appear in the approximate size and shape of a credit-card, though airline boarding passes, mass-transit fare cards, and many other varied forms exist. The underlying technology is the same, though: a sequence of alternately-polarized magnetic stripes which are read with a magnetic head similar to that found in any cassette player.
 
Magstripe (magnetic-stripe) cards are everywhere: bank cards, [http://cansecwest.com/slides06/csw06-malfunction.pdf hotel key cards], gift cards, transit ticket, id cards. They encode machine-readable data in a strip of magnetized material, usually located next to the long edge of the card. They most commonly appear in the approximate size and shape of a credit-card, though airline boarding passes, mass-transit fare cards, and many other varied forms exist. The underlying technology is the same, though: a sequence of alternately-polarized magnetic stripes which are read with a magnetic head similar to that found in any cassette player.

Revision as of 20:34, 17 November 2012

File Format
Name Magnetic stripe card
Ontology

Magstripe (magnetic-stripe) cards are everywhere: bank cards, hotel key cards, gift cards, transit ticket, id cards. They encode machine-readable data in a strip of magnetized material, usually located next to the long edge of the card. They most commonly appear in the approximate size and shape of a credit-card, though airline boarding passes, mass-transit fare cards, and many other varied forms exist. The underlying technology is the same, though: a sequence of alternately-polarized magnetic stripes which are read with a magnetic head similar to that found in any cassette player.

Data formats:

Making a reader

Magnetic card readers capable of decoding the data formats used for credit cards are available pretty cheaply on the Internet, but for arbitrary formats you might need the raw data on the card. It's pretty easy to build a reader that uses a soundcard's DAC to capture the signal, by wiring a tape-head from a cassette player to an audio plug, and using a ruler to line up the tape head as you run it along the desired track. (more detailed instructions)

Binary encoding

Modern cards are usually Aiken Biphase (aka F2F).

Python script to decode Aiken Biphase from a WAV file

Count Zero's canonical walkthrough of magstripe technology from Phrack 37

More sources

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox