home *** CD-ROM | disk | FTP | other *** search
/ The Hacker's Encyclopedia 1998 / hackers_encyclopedia.iso / zines / n_z / phun3.010 < prev    next >
Encoding:
Text File  |  2003-06-11  |  6.2 KB  |  178 lines

  1.  
  2. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  3. =                 P/HUN Issue #3, Volume 2: Phile #10 of 11                   =
  4. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  5.  
  6.                 PLASTIC CARD ENCODING PRACTICES AND STANDARDS
  7.                 ---------------------------------------------
  8.                                 By Hasan Ali
  9.                          For P/HUN Issue #3
  10.  
  11.  
  12.                    GENERAL PHYSICAL CHARACTERISTICS
  13.                    --------------------------------
  14.  
  15. If you take any plastic card (MasterCard, VISA, AMEX, ATM cards, etc.) and
  16. turn it over you will find a thin black strip of magnetic material.  This
  17. strip has the ability to hold multiple "tracks" or bands of encoded data.
  18. There are 3 valid tracks.  Track 1 is the track nearest to the top of the
  19. card, and it is followed by Tracks 2 and 3.  The original specifications
  20. allowed for Tracks 1 and 2 only, and they are both read-only.  The
  21. additional Track 3 furnishes an ability to read OR write.
  22.  
  23.  
  24.                                TRACK 1
  25.  
  26.  
  27. The International Airlines Transport Association originated the development
  28. of Track 1 as the official track airline use and, in fact, it defined the
  29. data and encoding formats for the ANSI standard.  This track was originally
  30. designed to allow the use of customer-operated ticket dispensing machines
  31. to cut down the traffic at airport ticket counters.
  32.  
  33. Now, many other parties make use of Track 1 because it is the only encoded
  34. track that permits encoding of the card holder's name.  With this alphanumeric
  35. capacity, the card holder's name can be printed on an EFT terminal receipt
  36. rather cheaply, otherwise the name would have to be sent the computer, which
  37. would be more costly and would take more time.
  38.  
  39. There are 26 formats for Track 1, and they are designated by codes from "A" to
  40. "Z".  Format "B" is shown below.
  41.  
  42. Field Name                    Length(chars)
  43.  
  44. Start sentinel                    1
  45. Format code = "B"                          1 (alpha only)
  46. Primary account number                Up to 19
  47. Separator (SEP)                    1
  48. Country code                    3
  49. Name                        2 to 26
  50.     Surname
  51.     Surname SEP = "/"
  52.     First name or initial
  53.     Space (when required)
  54.     Middle name or initial
  55.     Period (when followed by title)
  56.     Title (when used)
  57. SEP                        1
  58. Expiration date or SEP                4 or 1
  59. Discretionary data                balance up to maximum
  60.                         track length
  61. End sentinel                    1
  62. Longitudinal Redundancy Check (LRC)        1
  63.  
  64. MAXIMUM TRACK LENGTH                79
  65.  
  66. Format code "A" is reserved for proprietary use by the card issuer.  Format
  67. codes "C" through "M" are reserved by ANSI for use in other data formats of
  68. Track 1.  Format codes "N" through "Z" are available for use by individual
  69. card issuers.
  70.  
  71.  
  72.                                TRACK 2
  73.  
  74.  
  75. The American Bankers Association led to the development of Track 2 on behalf
  76. of two credit card companies (Interbank and VISA) and their members.  The
  77. intent was to have a standardized plastic card which could be used at point-
  78. of-sale (POS) terminals to obtain authorization for credit card transactions.
  79.  
  80. Today, in the financial industry, Track 2 is the most widely used encoding
  81. method for plastic cards.  It has a strong following because most EFT
  82. terminals are connected directly to a computer that accesses the cardholder's
  83. data files.  Also, it is the preferred choice of the ABA and is the only track
  84. recognized and supported by MasterCard and VISA.
  85.  
  86. The format of Track 2 is shown below.
  87.  
  88. Field Name                    Length (chars)
  89.  
  90. Start sentinel                    1
  91. Primary account number                up to 19
  92. SEP                        1
  93. Country code                    3
  94. Expiration date or SEP                4 or 1
  95. Discretionary data                balance up to maximum
  96.                         track length
  97. End sentinel                    1
  98. LRC                        1
  99.  
  100. MAXIMUM TRACK LENGTH                40
  101.  
  102. Although Track 2 is widely accepted, there is a serious potential concern
  103. about it because of its limited encoding capacity - only 40 characters.  The
  104. argument supporting the current capacity stresses that all the necessary
  105. information to authorize a transaction is at the data center thereby
  106. eliminating the need to encode extraneous data.  On the other hand, those
  107. suggesting that the capacity be increased feel that greater capacity would
  108. allow certain transactions to be approved directly at the terminal, or,
  109. at least, minimize data sent between terminal and computer for each
  110. transaction.  Those who hold this view are using Tracks 1 and 3.
  111.  
  112.  
  113.                                TRACK 3
  114.  
  115.  
  116. Track 3 was developed for use in off-line EFT terminals but was designed
  117. to be compatible with other plastic card standards.  Thus, Track 3 is
  118. compatible with the ANSI standard for embossing plastic cards and the ANSI
  119. standard for physical characteristics of magnetic stripes.  More recently,
  120. financial institutions have started to use it in on-line systems because
  121. of its greater data storage capacity.
  122.  
  123. The format of Track 3 follows.
  124.  
  125. Field Name            Usage    Status    Length (chars)
  126.  
  127. Start sentinel            M    S    1
  128. Format Code            M    S    2
  129. Primary account number (PAN)       M       S       19
  130. SEP                M    S    1
  131. Country code or SEP        M    S    3 or 1
  132. Currency            M    S    3
  133. Currency exponent        M    S    1
  134. Amount authorized per        M    S    4
  135.     cycle period
  136. Amount remaining this cycle    M    D    4
  137. Cycle begin            M    D    4
  138. Cycle length            M    S    2
  139. Retry count            M    D    1
  140. PIN control parameters or SEP    M    S    6 or 1
  141. Interchange control        M    S    1
  142. Type of account and        M    S    2
  143.     service restriction (PAN)
  144. Type of account and        M    S    2
  145.     service restriction (SAN-1)
  146. Type of account and        M    S    2
  147.     service restriction (SAN-2)
  148. Expiration date or SEP        M    S    4 or 1
  149. Card sequence number        M    S    1
  150. Card security number or SEP        M       S       9 or 1
  151. First subsidiary account    O    S    variable
  152.     number (SAN-1)
  153. SEP                M    S    1
  154. Second subsidiary account    O    S    variable
  155.     number (SAN-2)
  156. SEP                M    S    1
  157. Relay marker            M    S    1
  158. Crypto check digits or SEP    M    D    6 or 1
  159. Discretionary data        O    D    variable
  160. End sentinel            M    S    1
  161. LRC                M    D    1
  162.  
  163. MAXIMUM TRACK LENGTH                107
  164.  
  165. "M" - Mandatory field    "O" - Optional field
  166. "D" - Dynamic field - may be modified by appropriate interchange partners
  167. "S" - Static field - may only be modified by card issuer
  168.  
  169.  
  170.  
  171. For further information on these topics, find these ANSI publications
  172. at your local good technical library:
  173. ANSI X4.13-1979
  174. ANSI X4.16-1973
  175. ANSI X4.16-(Draft October 1980)
  176. ANSI X9.1-1980
  177.  
  178.