JP2000030124A - Prepaid card system, reader and password transaction method - Google Patents

Prepaid card system, reader and password transaction method

Info

Publication number
JP2000030124A
JP2000030124A JP10201349A JP20134998A JP2000030124A JP 2000030124 A JP2000030124 A JP 2000030124A JP 10201349 A JP10201349 A JP 10201349A JP 20134998 A JP20134998 A JP 20134998A JP 2000030124 A JP2000030124 A JP 2000030124A
Authority
JP
Japan
Prior art keywords
information
prepaid card
track
reading
variable information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP10201349A
Other languages
Japanese (ja)
Inventor
Kazuma Nagasawa
一眞 長澤
Toshio Kuroi
俊夫 黒井
Takayuki Kamata
隆之 鎌田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NTT Data Group Corp
Original Assignee
NTT Data Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NTT Data Corp filed Critical NTT Data Corp
Priority to JP10201349A priority Critical patent/JP2000030124A/en
Publication of JP2000030124A publication Critical patent/JP2000030124A/en
Pending legal-status Critical Current

Links

Landscapes

  • Control Of Vending Devices And Auxiliary Devices For Vending Devices (AREA)
  • Coin-Freed Apparatuses For Hiring Articles (AREA)

Abstract

PROBLEM TO BE SOLVED: To precisely detect a prepaid card medium altered or forged by the copying of storage information and to inhibit the use of it. SOLUTION: A distance measuring part 145 reads fixed information by a magnetic head 143, measures a distance from a card edge to a fixed information end part and generates a peculiar password key K. A ciphering processing part 144 executes deciphering/ciphering by using the peculiar password key K obtained by the distance measuring part 145 at the read/write of variable information on amount information of a prepaid card by a data reading part 142 through the magnetic head 143. The ciphering processing part 144 deciphers storage information by using peculiar password key K obtained by the distance measuring part 145 at when the prepaid card is inserted. When the information which is read by the peculiar password key K through the data reading part 142 is not precisely decoded, an illegal prepaid card is detected to be inserted and abnormality is detected.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、プリペイドカード
を金額消費に応じて処理するシステムに係り、特にプリ
ペイドカードの記憶情報の複写による不正に対処するプ
リペイドカードシステム、読書装置及び暗号取引方法に
関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a system for processing a prepaid card in accordance with the consumption of money, and more particularly to a prepaid card system, a reading apparatus, and a cryptographic transaction method for dealing with fraud by copying stored information of the prepaid card.

【0002】[0002]

【従来の技術】金銭的価値に対応する金額情報を記憶す
るプリペイドカードを金銭的決済に用いるプリペイドカ
ードシステムが実現されている。プリペイドカードシス
テムでは、通常の場合、複数の店舗においてサービスが
提供される。例えば、各店舗には、複数の読書装置及び
これら読書装置の上位処理装置である中継装置等が設置
されている。読書装置は、プリペイドカードを使用する
ための端末装置であり、この読書装置においては、プリ
ペイドカードに記憶される金額情報に基づいて、遊技媒
体の貸出及び物品の販売等の対価として当該プリペイド
カードが消費される。中継装置は、店舗内の複数の読書
装置等を例えばプリペイドカードの発行元に設置された
決済センタに結合し、該決済センタとの間で通信を行っ
て読書装置等の管理及び消費金額の処理を行う。
2. Description of the Related Art A prepaid card system has been realized in which a prepaid card storing amount information corresponding to a monetary value is used for monetary settlement. In a prepaid card system, a service is usually provided in a plurality of stores. For example, each store is provided with a plurality of reading devices and a relay device or the like which is a higher-level processing device of the reading devices. A reading device is a terminal device for using a prepaid card. In this reading device, based on the amount information stored in the prepaid card, the prepaid card is used as a fee for lending game media and selling goods. Consumed. The relay device couples a plurality of reading devices and the like in the store to, for example, a settlement center installed at the issuer of the prepaid card, and communicates with the settlement center to manage the reading devices and process the consumption amount. I do.

【0003】すなわち、プリペイドカードは、例えば店
舗に設置された読書装置を用いることによって、遊技媒
体の貸出等の対価として消費される。このプリペイドカ
ードの消費に際して、読書装置は、消費金額を計上して
決済処理に供し、且つ該消費金額に応じて、プリペイド
カードに記憶される金額情報を更新する。このプリペイ
ドカードの金額情報の更新時に、予め定めた残額範囲に
該当する場合には、プリペイドカードの残額範囲に対応
する所定個所に残額目安パンチ孔の穿孔が行われる。プ
リペイドカードの消費による読書装置の売上情報は、例
えば中継装置によって収集され、該中継装置は、支配下
の各読書装置の売上情報を集計して決済センタに送信す
る。このようにして、プリペイドカードの消費決済が行
われる。
[0003] That is, the prepaid card is consumed as a price for lending game media, for example, by using a reading device installed in a store. When the prepaid card is consumed, the reading device counts the amount of consumption and provides the payment processing, and updates the amount information stored in the prepaid card according to the amount of consumption. When the amount information of the prepaid card is updated, if the amount falls within a predetermined remaining amount range, a remaining amount reference hole is punched at a predetermined location corresponding to the remaining amount range of the prepaid card. The sales information of the reading device due to the consumption of the prepaid card is collected, for example, by a relay device, and the relay device compiles the sales information of each reading device under control and transmits the total to the settlement center. In this way, the prepaid card consumption settlement is performed.

【0004】一方、読書装置においては、金額情報等の
読取時及び更新時に、エラーのチェックを行うと同時
に、変造、偽造及び不正使用等による正常でない不正な
プリペイドカード、すなわち不正プリペイドカード、を
検知するようにしている。このような不正プリペイドカ
ードは、一般に、プリペイドカードの記憶情報及びパン
チ孔情報、並びにそれらの履歴等に矛盾する内容が含ま
れていれば不正であると推定するなどして弁別してい
る。また、当該読書装置において検知された不正プリペ
イドカードの識別情報等の使用カード情報を記憶してお
き、この情報に基づいて過去に検出した不正プリペイド
カードを弁別し、エラー表示とともに排出するなどして
使用を阻止する。
On the other hand, in the reading apparatus, when reading and updating the amount information, etc., an error is checked, and at the same time, an illegal and unusual prepaid card due to falsification, forgery, illegal use, etc., that is, an unauthorized prepaid card, is detected. I am trying to do it. Generally, such fraudulent prepaid cards are discriminated by, for example, presuming that they are fraudulent if the storage information and punch hole information of the prepaid card and their histories and the like include inconsistent contents. In addition, card information such as identification information of an unauthorized prepaid card detected by the reading device is stored, and based on this information, an unauthorized prepaid card detected in the past is discriminated and discharged together with an error display. Prevent use.

【0005】さらに、当該読書装置に結合された中継装
置から通知される他の読書装置で検知された不正プリペ
イドカードに該当するプリペイドカードを弁別して排除
することも行われている。すなわち、同一店舗内の同一
中継装置に結合された複数の読書装置のうちある読書装
置で不正プリペイドカードが検知されると、その読書装
置から該プリペイドカードの識別情報等を含む検知デー
タが使用カード情報として中継装置に送信される。中継
装置が当該不正プリペイドカードを示す通知データを他
の読書装置に送信することにより、他の読書装置でも当
該不正プリペイドカードを弁別して使用を阻止すること
ができる。
Further, a prepaid card corresponding to a fraudulent prepaid card detected by another reading device notified from a relay device connected to the reading device is also discriminated and removed. That is, when an unauthorized prepaid card is detected by one of a plurality of reading devices coupled to the same relay device in the same store, detection data including identification information of the prepaid card is detected from the reading device. The information is transmitted to the relay device as information. The relay device transmits the notification data indicating the fraudulent prepaid card to another reading device, so that the other reading device can discriminate the fraudulent prepaid card and prevent its use.

【0006】[0006]

【発明が解決しようとする課題】上述したように、プリ
ペイドカードは、金銭的価値を持っていることから、偽
造、及び変造等による不正が行われる危険がある。プリ
ペイドカードは、発行時に初期エンコード情報が記憶さ
れており、その記憶情報に基づいて処理されるため、単
にプリペイドカードを変造又は偽造しただけでは使用す
ることはできない。そこで、プリペイドカードの記憶情
報を、他の正規のプリペイドカードから複写して使用し
ようとすることが行われる。
As described above, since the prepaid card has a monetary value, there is a risk that fraudulent or falsification may be caused by falsification. The prepaid card stores initial encoding information at the time of issuance and is processed based on the stored information. Therefore, the prepaid card cannot be used simply by falsifying or forging the prepaid card. Therefore, it is attempted to copy the stored information of the prepaid card from another regular prepaid card and use it.

【0007】また、上述のように、プリペイドカードを
消費した際に、その最終残額に基づき、必要に応じて残
額目安パンチ孔が穿孔される。この残額目安パンチ孔
は、予め額面金額を区分した複数の金額領域のいずれに
属するかに応じて穿孔され、消費による最終残額が、既
に穿孔された残額目安パンチ孔とは異なる金額領域に新
たに入った場合に穿孔される。なお、消費による残額の
変化が1以上の金額領域にわたる場合には、最終残額が
属する金額領域に対応する残額目安パンチ孔のみが穿孔
される。このため、プリペイドカードの残額目安パンチ
孔の検出に際しては、該当する最小の金額領域に対応す
るもののみが優先されて検出される。
Further, as described above, when a prepaid card is consumed, a remaining amount guide hole is punched as necessary based on the final remaining amount. This remaining amount guide punch hole is perforated according to which of a plurality of money areas that the face value is divided in advance, and the final balance due to consumption is newly added to a money area different from the already-paid remaining money punch hole. Perforated when entering. If the change in the balance due to consumption extends over one or more money regions, only the remaining amount reference punch holes corresponding to the money region to which the final balance belongs are punched. For this reason, when detecting the remaining standard punch hole of the prepaid card, only the one corresponding to the corresponding minimum amount area is detected with priority.

【0008】このため、使用済プリペイドカードを切貼
りしたりすることにより、残額目安パンチ孔の穴埋めを
行うことによるプリペイドカードの変造又は偽造が行わ
れる可能性がある。しかしながら、プリペイドカードと
して全面に磁性層を形成した磁気記憶媒体を用いた場合
には、磁気ヘッド等の高精度の(磁気)センサを用いる
ことによって、比較的容易に接合部を的確に検出するこ
とができる。
For this reason, there is a possibility that the prepaid card may be altered or counterfeited by cutting and pasting the used prepaid card and filling the remaining standard punch holes. However, when a magnetic storage medium having a magnetic layer formed on the entire surface is used as a prepaid card, it is relatively easy to accurately detect the joint by using a high-precision (magnetic) sensor such as a magnetic head. Can be.

【0009】そこで、残額目安パンチ孔を穴埋めするこ
となく、新たな残額目安パンチ孔を穿孔しない範囲内
で、当該金額範囲内のほぼ上限金額に該当する残額を有
する他の正規のプリペイドカードの記憶情報を複写し
て、不正使用に供することが行われる。この場合、当該
金額範囲の下限金額まで消費した時点で、新たに残額目
安パンチ孔が穿孔されない状態で、カードを取り出し、
前述した正規のプリペイドカードから記憶情報を再度複
写する。このように、消費と複写とを繰り返すことによ
り、不正使用が行われる。
Therefore, without filling in the remaining estimated amount punch hole, the storage of another authorized prepaid card having a remaining amount corresponding to almost the upper limit of the amount range within a range in which a new remaining amount estimated punch hole is not punched. The information is copied and provided for unauthorized use. In this case, at the time when the lower limit amount of the amount range is consumed, the card is removed in a state where the remaining amount guide hole is not newly punched,
The stored information is copied again from the regular prepaid card described above. In this way, by repeatedly consuming and copying, illegal use is performed.

【0010】上述したように、他の正規のプリペイドカ
ードの記憶情報を不正なプリペイドカードに複写した場
合、記憶情報自体に矛盾はないはずである。このような
場合、記憶情報自体のチェックだけで、不正を識別する
ことは容易ではない。このような不正を防止するため、
プリペイドカードを個別に認識し、個々のカード毎の固
有の情報を用いて記憶情報を暗号化することにより、記
憶情報とプリペイドカードを個別に対応付けるようにす
ることが、カード発行元等より要望されている。このよ
うに、プリペイドカード毎に固有の情報を、記憶情報と
対応付けるようにすれば、単に記憶情報のみを複写した
不正なプリペイドカードを識別して、使用を阻止するこ
とができると考えられる。
As described above, when the storage information of another regular prepaid card is copied to an unauthorized prepaid card, the storage information itself should be consistent. In such a case, it is not easy to identify impropriety only by checking the stored information itself. To prevent such fraud,
There is a demand from card issuers and the like for individually recognizing prepaid cards and encrypting the stored information using information unique to each card so that the stored information and the prepaid card are individually associated with each other. ing. In this way, by associating the information unique to each prepaid card with the storage information, it is considered that an unauthorized prepaid card in which only the storage information is copied can be identified and used.

【0011】本発明は、上述した事情に鑑みてなされた
もので、正規のプリペイドカードの記憶情報を複写する
ことにより変造又は偽造したプリペイドカードの不正を
的確に検出弁別し、不正なプリペイドカードの使用を未
然に阻止することを可能とするプリペイドカードシステ
ム、読書装置及び暗号取引方法を提供することを目的と
する。
SUMMARY OF THE INVENTION The present invention has been made in view of the above circumstances, and accurately detects and discriminates fraudulence of a falsified or forged prepaid card by copying stored information of a legitimate prepaid card. It is an object of the present invention to provide a prepaid card system, a reading device, and a cryptographic transaction method capable of preventing use beforehand.

【0012】[0012]

【課題を解決するための手段】上記目的を達成するた
め、本発明の第1の観点に係るプリペイドカードシステ
ムは、金銭的価値に対応する金額情報を含み使用にとも
なって随時更新される可変情報と、使用にかかわらず変
化しない所定の固定情報とを磁性層の第1及び第2のト
ラックに記憶する記憶媒体からなるプリペイドカードを
用いて金銭的決済を行うプリペイドカードシステムにお
いて、前記プリペイドカードの端縁から前記第1のトラ
ックの前記固定情報の端部までの第1の距離を計測し、
該第1の距離情報を第1の暗号鍵として前記第2のトラ
ックの可変情報を復号/暗号化して、それぞれ当該プリ
ペイドカードにおける前記第2のトラックの可変情報の
読出/書込を行うとともに、前記第2のトラックにおけ
る前記固定情報と可変情報との間隙に基づく第2の距離
を計測し、該第2の距離情報を第2の暗号鍵として前記
第1のトラックの可変情報を復号/暗号化して、それぞ
れ当該プリペイドカードにおける前記第1のトラックの
可変情報の読出/書込を行って、前記プリペイドカード
の消費金額に応じて前記可変情報を更新し、且つ該消費
金額を含む売上情報を送信する読書手段と、前記読書手
段との間で通信を行って、前記読書手段から前記プリペ
イドカードの前記売上情報及び使用プリペイドカード情
報を受信して格納処理する上位処理手段と、を備える。
In order to achieve the above object, a prepaid card system according to a first aspect of the present invention includes a variable information which includes money amount information corresponding to a monetary value and is updated as needed with use. And a predetermined fixed information that does not change irrespective of use, in a prepaid card system for performing a financial settlement using a prepaid card composed of a storage medium storing the first and second tracks of the magnetic layer. Measuring a first distance from an edge to an end of the fixed information of the first track;
The variable information of the second track is decrypted / encrypted using the first distance information as a first encryption key to read / write the variable information of the second track on the prepaid card, respectively. A second distance based on a gap between the fixed information and the variable information in the second track is measured, and the variable information of the first track is decrypted / encrypted using the second distance information as a second encryption key. And reads / writes the variable information of the first track on the prepaid card, updates the variable information according to the consumption amount of the prepaid card, and stores the sales information including the consumption amount. A communication is performed between the reading means to be transmitted and the reading means, and the sales information and the used prepaid card information of the prepaid card are received and stored from the reading means. Comprising a host processing unit for management, the.

【0013】このような構成によれば、読書手段は、プ
リペイドカードの端縁からプリペイドカード発行時に第
1のトラックに書込まれる固定情報の端部までの、プリ
ペイドカード毎に固有の距離を第1の暗号鍵として、当
該プリペイドカードの第2のトラックにおける可変情報
の読出/書込における復号/暗号化に用いるとともに、
該第2のトラックにおける前記固定情報と可変情報との
間隙に基づく距離を第2の暗号鍵として、当該プリペイ
ドカードの第1のトラックにおける可変情報の読出/書
込における復号/暗号化に用いることにより、他のプリ
ペイドカードの記憶情報の複写による不正使用を的確に
防止することができる。したがって、媒体の変造又は偽
造によるプリペイドカードの不正使用を未然に阻止する
ことができる。
According to such a configuration, the reading means sets a unique distance for each prepaid card from the edge of the prepaid card to the end of the fixed information written on the first track when the prepaid card is issued. As one encryption key, it is used for decryption / encryption in reading / writing of variable information on the second track of the prepaid card,
Using the distance based on the gap between the fixed information and the variable information in the second track as a second encryption key for decryption / encryption in reading / writing of the variable information in the first track of the prepaid card; Thus, unauthorized use of the stored information of another prepaid card due to copying can be accurately prevented. Therefore, it is possible to prevent unauthorized use of the prepaid card due to falsification or forgery of the medium.

【0014】なお、上記プリペイドカードは、さらにI
Cチップを備えてもよく、そのICメモリには上記可変
情報が記憶され、実際の支払いの場面では、このICメ
モリに記憶された情報が使用されるようにしてもよい。
[0014] The prepaid card further includes an I
A C chip may be provided, and the variable information may be stored in the IC memory, and the information stored in the IC memory may be used in actual payment.

【0015】本発明の第2の観点に係るプリペイドカー
ドシステムは、金銭的価値に対応する金額情報を含み使
用にともなって随時更新される可変情報と、使用にかか
わらず変化しない所定の固定情報とを磁性層の第1及び
第2のトラックに記憶する記憶媒体からなるプリペイド
カードを用いて金銭的決済を行うプリペイドカードシス
テムにおいて、プリペイドカードの第1及び第2のトラ
ックに固定情報を書込み、前記第1のトラックの固定情
報を検出して、当該プリペイドカードの端縁から前記第
1のトラックの固定情報の端部までの第1の距離を計測
し、該第1の距離情報を第1の暗号鍵として当該プリペ
イドカードの前記第2のトラックに前記可変情報を暗号
化記録し、且つ前記第2のトラックの固定情報及び可変
情報を検出して、該第2のトラックにおける固定情報と
可変情報との間隙に基づく第2の距離を計測し、該第2
の距離情報を第2の暗号鍵として当該プリペイドカード
の前記第1のトラックに前記可変情報の初期情報を暗号
化記録して、前記プリペイドカードとして発行する記録
手段と、前記プリペイドカードの端縁から前記第1のト
ラックの前記固定情報の端部までの前記第1の距離を計
測し、該第1の距離情報を第1の暗号鍵として前記第2
のトラックの可変情報を復号/暗号化して、それぞれ当
該プリペイドカードにおける前記第2のトラックの可変
情報の読出/書込を行うとともに、前記第2のトラック
における前記固定情報と可変情報との間の前記第2の距
離を計測し、該第2の距離情報を第2の暗号鍵として前
記第1のトラックの可変情報を復号/暗号化して、それ
ぞれ当該プリペイドカードにおける前記第1のトラック
の可変情報の読出/書込を行って、前記プリペイドカー
ドの消費金額に応じて前記可変情報を更新し、且つ該消
費金額を含む売上情報を送信する読書手段と、前記読書
手段との間で通信を行って、前記読書手段から前記プリ
ペイドカードの前記売上情報及び使用プリペイドカード
情報を受信して格納処理する上位処理手段と、を備え
る。
A prepaid card system according to a second aspect of the present invention is characterized in that variable information that includes money amount information corresponding to a monetary value and is updated as needed with use, and predetermined fixed information that does not change regardless of use is included. In a prepaid card system for performing a financial settlement using a prepaid card composed of a storage medium for storing in a first track and a second track of a magnetic layer, fixed information is written in the first and second tracks of the prepaid card, The fixed information of the first track is detected, a first distance from the edge of the prepaid card to the end of the fixed information of the first track is measured, and the first distance information is converted to the first distance. Encrypting and recording the variable information on the second track of the prepaid card as an encryption key, and detecting fixed information and variable information of the second track, A second distance based on the gap between the fixed information and the variable information in the second track is measured, the second
Recording means for encrypting and recording the initial information of the variable information on the first track of the prepaid card using the distance information of the prepaid card as a second encryption key, and from the edge of the prepaid card The first distance to the end of the fixed information of the first track is measured, and the first distance information is used as a first encryption key in the second track.
Decrypts / encrypts the variable information of the second track, reads / writes the variable information of the second track on the corresponding prepaid card, and writes the variable information between the fixed information and the variable information on the second track. The second distance is measured, and the variable information of the first track is decrypted / encrypted using the second distance information as a second encryption key, and the variable information of the first track in the prepaid card is changed. Communication between the reading means for updating the variable information according to the consumption amount of the prepaid card and transmitting sales information including the consumption amount, and reading / writing An upper-level processing unit that receives the sales information and the used prepaid card information of the prepaid card from the reading unit and stores the received information.

【0016】このような構成によれば、プリペイドカー
ド発行時に、プリペイドカードの端縁から第1のトラッ
クに書込まれる固定情報の端部までの、プリペイドカー
ドの媒体毎に固有の距離を第1の暗号鍵として、当該プ
リペイドカードの第2のトラックにおける初期可変情報
の書込における暗号化に用いるとともに、該第2のトラ
ックにおける前記固定情報と可変情報との間隙に基づく
距離を第2の暗号鍵として、当該プリペイドカードの第
1のトラックにおける可変情報の読出/書込における復
号/暗号化に用いることにより、読書手段は、プリペイ
ドカードの端縁から第1のトラックに書込まれる固定情
報の端部までの距離を計測し第1の暗号鍵として、当該
プリペイドカードの第2のトラックにおける可変情報の
読出/書込における復号/暗号化に用いるとともに、該
第2のトラックにおける前記固定情報と可変情報との間
隙に基づく距離を第2の暗号鍵として、当該プリペイド
カードの第1のトラックにおける可変情報の読出/書込
における復号/暗号化に用いることにより、他のプリペ
イドカードの記憶情報の複写による不正使用を的確に防
止することができる。したがって、媒体の変造又は偽造
によるプリペイドカードの不正使用を未然に阻止するこ
とができる。
According to such a configuration, at the time of issuing the prepaid card, the unique distance for each medium of the prepaid card from the edge of the prepaid card to the end of the fixed information written on the first track is set to the first distance. Of the prepaid card in the second track of the prepaid card during the writing of the initial variable information, and the distance based on the gap between the fixed information and the variable information in the second track is determined by the second encryption key. By using the key as a key for decryption / encryption in reading / writing of variable information in the first track of the prepaid card, the reading means can read the fixed information written to the first track from the edge of the prepaid card. The distance to the end is measured and used as a first encryption key in reading / writing of variable information on the second track of the prepaid card. Reading / writing of variable information in the first track of the prepaid card using the distance based on the gap between the fixed information and the variable information in the second track as a second encryption key while using for decryption / encryption. , It is possible to accurately prevent unauthorized use by copying stored information of another prepaid card. Therefore, it is possible to prevent unauthorized use of the prepaid card due to falsification or forgery of the medium.

【0017】前記読書手段は、前記プリペイドカードの
前記第1及び第2のトラックにおける可変情報及び固定
情報の読み書きを行う磁気ヘッドと、前記プリペイドカ
ードの前記第1及び第2のトラックにおける可変情報及
び固定情報を前記磁気ヘッドを用いて読出/書込する読
書処理手段と、前記磁気ヘッドを用いて前記プリペイド
カードの前記第1及び第2のトラックの前記固定情報及
び可変情報を検出し、当該プリペイドカードの所定の端
縁から前記第1のトラックの固定情報の端部までの第1
の距離、及び当該プリペイドカードの前記第2のトラッ
クの固定情報と可変情報との間隙に基づく第2の距離を
計測する距離計測手段と、前記距離計測手段で得られる
第1及び第2の距離情報をそれぞれ暗号鍵として、前記
第2のトラック及び前記第1のトラックにおける可変情
報を復号/暗号化して前記読書処理手段における該可変
情報の読出/書込に供する暗号処理手段と、前記プリペ
イドカードの消費金額に応じて、前記読書処理手段によ
り前記金額情報を更新し、且つ該消費金額を含む売上情
報を送信する消費処理手段と、を含んでいてもよい。
The reading means comprises: a magnetic head for reading and writing variable information and fixed information on the first and second tracks of the prepaid card; and a variable head for reading and writing variable information and fixed information on the first and second tracks of the prepaid card. Reading processing means for reading / writing fixed information by using the magnetic head; detecting the fixed information and variable information of the first and second tracks of the prepaid card by using the magnetic head; A first from a predetermined edge of the card to an end of the fixed information of the first track;
Distance measuring means for measuring a distance between the fixed information and the variable information of the second track of the prepaid card, and first and second distances obtained by the distance measuring means Encryption processing means for decrypting / encrypting the variable information in the second track and the first track using the information as an encryption key to provide the reading / writing of the variable information in the reading processing means; and the prepaid card. And a consumption processing unit for updating the price information by the reading processing unit and transmitting sales information including the consumption amount in accordance with the consumption amount.

【0018】なお、上記プリペイドカードは、さらにI
Cチップを備えてもよく、そのICメモリには上記可変
情報が記憶され、実際の支払いの場面では、このICメ
モリに記憶された情報が使用されるようにしてもよい。
The above prepaid card further includes an I
A C chip may be provided, and the variable information may be stored in the IC memory, and the information stored in the IC memory may be used in actual payment.

【0019】前記プリペイドカードシステムは、パチン
コ店における遊技媒体であるパチンコ玉又はメタルの貸
与の対価を決済するためのシステムであってもよい。
[0019] The prepaid card system may be a system for settling payment for lending pachinko balls or metal, which is a game medium in a pachinko parlor.

【0020】本発明の第3の観点に係る読書装置は、金
銭的価値に対応する金額情報を含み使用にともなって随
時更新される可変情報と、使用にかかわらず変化しない
固定情報と、の第1及び第2のトラックにおける読み書
きを行う磁気ヘッドと、プリペイドカードの前記第1及
び第2のトラックにおける前記可変情報と固定情報とを
前記磁気ヘッドを用いて読出/書込する読書処理手段
と、前記磁気ヘッドを用いて前記プリペイドカードの前
記第1及び第2のトラックの前記固定情報及び可変情報
を検出し、当該プリペイドカードの所定の端縁から前記
第1のトラックの固定情報の端部までの第1の距離、及
び当該プリペイドカードの前記第2のトラックの固定情
報と可変情報との間隙に基づく第2の距離を計測する距
離計測手段と、前記距離計測手段で得られる前記第1及
び第2の距離情報を第1及び第2の暗号鍵として、それ
ぞれ前記第2のトラックの可変情報及び第1のトラック
の可変情報を復号/暗号化して前記読書処理手段におけ
る該第1及び前記第2のトラックの可変情報の読出/書
込に供する暗号処理手段と、前記プリペイドカードの消
費金額に応じて、前記読書処理手段により前記金額情報
を更新し、且つ該消費金額を含む売上情報を送信する消
費処理手段と、を備える。
A reading apparatus according to a third aspect of the present invention is a reading apparatus comprising: variable information that includes money amount information corresponding to a monetary value and is updated as needed with use; and fixed information that does not change regardless of use. A magnetic head for reading and writing on the first and second tracks, a reading processing means for reading / writing the variable information and the fixed information on the first and second tracks of the prepaid card using the magnetic head, Using the magnetic head, the fixed information and the variable information of the first and second tracks of the prepaid card are detected, and from a predetermined edge of the prepaid card to an end of the fixed information of the first track. Distance measuring means for measuring a first distance of the second track and a second distance based on a gap between fixed information and variable information of the second track of the prepaid card; The variable information of the second track and the variable information of the first track are decrypted / encrypted using the first and second distance information obtained by the distance measuring means as first and second encryption keys, respectively. A cryptographic processing unit for reading / writing the variable information of the first and second tracks in the reading processing unit, and updating the price information by the reading processing unit in accordance with a consumption amount of the prepaid card; And consumption processing means for transmitting sales information including the consumption amount.

【0021】このような構成によれば、読書装置は、プ
リペイドカードの端縁からプリペイドカード発行時に第
1のトラックに書込まれる固定情報の端部までの、プリ
ペイドカードの媒体毎に固有の距離を第1の暗号鍵とし
て、当該プリペイドカードの第2のトラックにおける可
変情報の読出/書込における復号/暗号化に用いるとと
もに、該第2のトラックにおける前記固定情報と可変情
報との間隙に基づく距離を第2の暗号鍵として、当該プ
リペイドカードの第1のトラックにおける可変情報の読
出/書込における復号/暗号化に用いることにより、他
のプリペイドカードの記憶情報の複写による不正使用を
的確に防止することができる。したがって、媒体の変造
又は偽造によるプリペイドカードの不正使用を未然に阻
止することができる。
According to such a configuration, the reading device can provide a unique distance for each medium of the prepaid card from the edge of the prepaid card to the end of the fixed information written on the first track when the prepaid card is issued. As the first encryption key for decryption / encryption in reading / writing of the variable information on the second track of the prepaid card, and based on the gap between the fixed information and the variable information in the second track. By using the distance as a second encryption key for decryption / encryption in reading / writing of variable information in the first track of the prepaid card, unauthorized use by copying stored information of another prepaid card can be accurately performed. Can be prevented. Therefore, it is possible to prevent unauthorized use of the prepaid card due to falsification or forgery of the medium.

【0022】なお、上記プリペイドカードは、さらにI
Cチップを備えてもよく、そのICメモリには上記可変
情報が記憶され、実際の支払いの場面では、このICメ
モリに記憶された情報が使用されるようにしてもよい。
Note that the above prepaid card further includes an I
A C chip may be provided, and the variable information may be stored in the IC memory, and the information stored in the IC memory may be used in actual payment.

【0023】該読書装置が処理する前記プリペイドカー
ドは、パチンコ店における遊技媒体であるパチンコ玉又
はメタルの貸与の対価を支払うためのカードであっても
よい。
[0023] The prepaid card processed by the reading device may be a card for paying for a pachinko ball or metal loan as a game medium in a pachinko parlor.

【0024】本発明の第4の観点に係るプリペイドカー
ドシステムは、金銭的価値に対応する金額情報を含み使
用にともなって随時更新される可変情報と、使用にかか
わらず変化しない所定の固定情報とを磁性層の複数のト
ラックに記憶する記憶媒体からなるプリペイドカードを
用いて金銭的決済を行うプリペイドカードシステムにお
いて、前記プリペイドカードの端縁から前記複数のトラ
ックのうちの一つのトラックの前記固定情報の端部まで
の第1の距離及び該トラックの前記固定情報と可変情報
との間隙に基づく第2の距離を計測し、該第1及び第2
の距離情報を組み合わせて暗号鍵として前記複数のトラ
ックのうちの他の所定のトラックの可変情報を復号/暗
号化して、それぞれ当該プリペイドカードにおける前記
他のトラックの可変情報の読出/書込を行って、前記プ
リペイドカードの消費金額に応じて前記可変情報を更新
し、且つ該消費金額を含む売上情報を送信する読書手段
と、前記読書手段との間で通信を行って、前記読書手段
から前記プリペイドカードの前記売上情報及び使用プリ
ペイドカード情報を受信して格納処理する上位処理手段
と、を備える。
[0024] The prepaid card system according to the fourth aspect of the present invention is characterized in that variable information that includes money amount information corresponding to a monetary value and is updated as needed with use, and predetermined fixed information that does not change irrespective of use is included. In a prepaid card system for performing a financial settlement using a prepaid card composed of a storage medium for storing a plurality of tracks on a plurality of tracks of a magnetic layer, the fixed information of one track of the plurality of tracks is measured from an edge of the prepaid card. Measuring a first distance to an end of the track and a second distance based on a gap between the fixed information and the variable information of the track.
And decrypts / encrypts the variable information of another predetermined track among the plurality of tracks as an encryption key, and reads / writes the variable information of the other track on the prepaid card. The variable information is updated in accordance with the consumption amount of the prepaid card, and communication is performed between the reading unit and the reading unit that transmits the sales information including the consumption amount. A higher-level processing unit that receives and stores the sales information and the used prepaid card information of the prepaid card.

【0025】このような構成によれば、読書手段は、プ
リペイドカード発行時に一つのトラックに書込まれる固
定情報の端部までの、プリペイドカードの端縁からの媒
体毎に固有の第1の距離及び該トラックの前記固定情報
と可変情報とのプリペイドカード毎にばらつく間隙に基
づく第2の距離を組み合わせて暗号鍵として、当該プリ
ペイドカードのその他のトラックにおける可変情報の読
出/書込における復号/暗号化に用いることにより、他
のプリペイドカードの記憶情報の複写による不正使用を
的確に防止することができる。したがって、媒体の変造
又は偽造によるプリペイドカードの不正使用を未然に阻
止することができる。
According to such a configuration, the reading means comprises the first distance unique to each medium from the edge of the prepaid card to the end of the fixed information written on one track when the prepaid card is issued. And decryption / encryption in reading / writing of variable information in other tracks of the prepaid card by combining a second distance based on a gap that varies for each prepaid card between the fixed information and the variable information of the track as an encryption key. By using such a method, unauthorized use of the stored information of another prepaid card due to copying can be properly prevented. Therefore, it is possible to prevent unauthorized use of the prepaid card due to falsification or forgery of the medium.

【0026】なお、上記プリペイドカードは、さらにI
Cチップを備えてもよく、そのICメモリには上記可変
情報が記憶され、実際の支払いの場面では、このICメ
モリに記憶された情報が使用されるようにしてもよい。
The above prepaid card further includes
A C chip may be provided, and the variable information may be stored in the IC memory, and the information stored in the IC memory may be used in actual payment.

【0027】本発明の第5の観点に係るプリペイドカー
ドシステムは、金銭的価値に対応する金額情報を含み使
用にともなって随時更新される可変情報と、使用にかか
わらず変化しない所定の固定情報とを磁性層の複数のト
ラックに記憶する記憶媒体からなるプリペイドカードを
用いて金銭的決済を行うプリペイドカードシステムにお
いて、プリペイドカードの前記複数のトラックのうちの
少なくとも1つのトラックに固定情報及び可変情報を書
込むとともに、該トラックの前記固定情報及び可変情報
を検出して、当該プリペイドカードの端縁から当該トラ
ックの前記固定情報の端部までの第1の距離を計測し、
且つ当該トラックの該固定情報と前記可変情報との間隙
に対応する第2の距離を計測して、該第1及び第2の距
離情報を組み合わせて暗号鍵として前記複数のトラック
のうちの他の所定のトラックに前記可変情報を暗号化記
録して、前記プリペイドカードとして発行する記録手段
と、前記プリペイドカードの端縁から前記各トラックの
前記固定情報の端部までの前記第1の距離、及び当該ト
ラックの該固定情報と前記可変情報との間隙に対応する
第2の距離を計測し、該第1及び第2の距離情報を組み
合わせて暗号鍵として前記他の所定のトラックの可変情
報を復号/暗号化して、該トラックの可変情報の読出/
書込を行って、前記プリペイドカードの消費金額に応じ
て前記可変情報を更新し、且つ該消費金額を含む売上情
報を送信する読書手段と、前記読書手段との間で通信を
行って、前記読書手段から前記プリペイドカードの前記
売上情報及び使用プリペイドカード情報を受信して格納
処理する上位処理手段と、を備える。
A prepaid card system according to a fifth aspect of the present invention comprises: variable information including amount information corresponding to a monetary value, which is updated as needed with use; predetermined fixed information which does not change regardless of use; In a prepaid card system for performing a monetary settlement using a prepaid card comprising a storage medium for storing in a plurality of tracks of a magnetic layer, fixed information and variable information are stored in at least one of the plurality of tracks of the prepaid card. While writing, the fixed information and the variable information of the track are detected, and a first distance from an edge of the prepaid card to an end of the fixed information of the track is measured,
And measuring a second distance corresponding to a gap between the fixed information and the variable information of the track, and combining the first and second distance information with each other as an encryption key for another of the plurality of tracks. Recording means for encrypting and recording the variable information on a predetermined track, and issuing as the prepaid card, the first distance from an edge of the prepaid card to an end of the fixed information of each track, and A second distance corresponding to a gap between the fixed information and the variable information of the track is measured, and the variable information of the other predetermined track is decrypted as an encryption key by combining the first and second distance information. / Encrypt and read the variable information of the track /
By performing writing, the variable information is updated according to the consumption amount of the prepaid card, and communication is performed between the reading unit and the reading unit that transmits sales information including the consumption amount. A high-level processing unit that receives the sales information and the used prepaid card information of the prepaid card from the reading unit and stores the received information.

【0028】このような構成によれば、プリペイドカー
ドの端縁から、プリペイドカード発行時に各トラックに
書込まれる固定情報の端部までの、プリペイドカード毎
に固有の距離を第1の暗号鍵とし、当該トラックにおけ
る前記固定情報と可変情報との間隙に基づく距離を第2
の暗号鍵として、これら第1及び第2の暗号鍵の組み合
わせを、当該プリペイドカードの他の所定のトラックに
おける可変情報の読出/書込における復号/暗号化に用
いることにより、読書手段は、プリペイドカードの端縁
から各トラックに書込まれる固定情報の端部までの距離
を計測して第1の暗号鍵とし、当該トラックにおける前
記固定情報と可変情報との間隙に基づく距離を第2の暗
号鍵として、当該プリペイドカードの他の所定のトラッ
クにおける可変情報の読出/書込における復号/暗号化
に用いることにより、他のプリペイドカードの記憶情報
の複写による不正使用を的確に防止することができる。
したがって、媒体の変造又は偽造によるプリペイドカー
ドの不正使用を未然に阻止することができる。
According to such a configuration, a unique distance for each prepaid card from the edge of the prepaid card to the end of the fixed information written to each track when the prepaid card is issued is defined as the first encryption key. The distance based on the gap between the fixed information and the variable information in the track
By using the combination of the first and second encryption keys for decryption / encryption in reading / writing of variable information on another predetermined track of the prepaid card, the reading means The distance from the edge of the card to the end of the fixed information written to each track is measured and used as a first encryption key, and the distance based on the gap between the fixed information and the variable information in the track is defined as a second encryption key. By using the key as a key for decryption / encryption in reading / writing of variable information in another predetermined track of the prepaid card, it is possible to appropriately prevent unauthorized use of the stored information of the other prepaid card by copying. .
Therefore, it is possible to prevent unauthorized use of the prepaid card due to falsification or forgery of the medium.

【0029】前記読書手段は、前記プリペイドカードの
前記複数のトラックにおける可変情報及び固定情報の読
み書きを行う磁気ヘッドと、前記プリペイドカードの各
トラックにおける可変情報及び固定情報を前記磁気ヘッ
ドを用いて読出/書込する読書処理手段と、前記磁気ヘ
ッドを用いて、前記プリペイドカードの各トラックの固
定情報及び可変情報を検出し、当該プリペイドカードの
所定の端縁から当該トラックの該固定情報の端部までの
第1の距離、並びに当該トラックにおける前記固定情報
と可変情報との間隙に基づく第2の距離を計測する距離
計測手段と、前記距離計測手段で得られる第1及び第2
の距離情報を組み合わせて暗号鍵として、前記複数のト
ラックのうちの他の所定のトラックにおける可変情報を
復号/暗号化して前記読書処理手段における該可変情報
の読出/書込に供する暗号処理手段と、前記プリペイド
カードの消費金額に応じて、前記読書処理手段により前
記金額情報を更新し、且つ該消費金額を含む売上情報を
送信する消費処理手段と、を含んでいてもよい。
The reading means includes a magnetic head for reading and writing variable information and fixed information on the plurality of tracks of the prepaid card, and reading the variable information and fixed information on each track of the prepaid card using the magnetic head. The fixed information and the variable information of each track of the prepaid card are detected by using the read / write processing means for writing / writing and the magnetic head, and the end of the fixed information of the track is detected from a predetermined edge of the prepaid card. Distance measuring means for measuring a first distance to the track, a second distance based on a gap between the fixed information and the variable information in the track, and first and second distances obtained by the distance measuring means.
Encryption processing means for decrypting / encrypting variable information in another predetermined track of the plurality of tracks as a cryptographic key by combining the distance information of And a consumption processing unit for updating the price information by the reading processing unit in accordance with the consumption amount of the prepaid card, and transmitting sales information including the consumption amount.

【0030】なお、上記プリペイドカードは、さらにI
Cチップを備えてもよく、そのICメモリには上記可変
情報が記憶され、実際の支払いの場面では、このICメ
モリに記憶された情報が使用されるようにしてもよい。
The above prepaid card is further provided with I
A C chip may be provided, and the variable information may be stored in the IC memory, and the information stored in the IC memory may be used in actual payment.

【0031】前記プリペイドカードシステムは、パチン
コ店における遊技媒体であるパチンコ玉又はメタルの貸
与の対価を決済するためのシステムであってもよい。
[0031] The prepaid card system may be a system for settling payment for lending pachinko balls or metal, which is a game medium in a pachinko parlor.

【0032】本発明の第6の観点に係る読書装置は、金
銭的価値に対応する金額情報を含み使用にともなって随
時更新される可変情報と、使用にかかわらず変化しない
固定情報と、の複数のトラックにおける読み書きを行う
磁気ヘッドと、プリペイドカードの各トラックにおける
可変情報と固定情報とを前記磁気ヘッドを用いて読出/
書込する読書処理手段と、前記磁気ヘッドを用いて、前
記プリペイドカードの各トラックの前記固定情報及び可
変情報を検出し、当該プリペイドカードの所定の端縁か
ら前記第1のトラックの固定情報の端部までの第1の距
離、並びに当該トラックにおける前記固定情報と可変情
報との間隙に基づく第2の距離を計測する距離計測手段
と、前記距離計測手段で得られる前記第1及び第2の距
離情報を組み合わせて暗号鍵として、前記複数のトラッ
クのうちの他の所定のトラックにおける可変情報を復号
/暗号化して前記読書処理手段における該第1及び第2
のトラックの可変情報の読出/書込に供する暗号処理手
段と、前記プリペイドカードの消費金額に応じて、前記
読書処理手段により前記金額情報を更新し、且つ該消費
金額を含む売上情報を送信する消費処理手段と、を備え
る。
[0032] The reading apparatus according to the sixth aspect of the present invention comprises a plurality of variable information that includes monetary value information corresponding to a monetary value and is updated as needed with use, and fixed information that does not change regardless of use. And a variable head and a fixed head in each track of the prepaid card using the magnetic head.
The fixed information and the variable information of each track of the prepaid card are detected using the reading processing means for writing and the magnetic head, and the fixed information of the first track is detected from a predetermined edge of the prepaid card. A distance measuring means for measuring a first distance to an end and a second distance based on a gap between the fixed information and the variable information in the track; and the first and second distances obtained by the distance measuring means. The variable information in another predetermined track of the plurality of tracks is decrypted / encrypted as an encryption key by combining the distance information, and the first and second information in the reading processing unit is decrypted.
An encryption processing means for reading / writing the variable information of the truck, and updating the price information by the reading processing means according to the consumption amount of the prepaid card, and transmitting sales information including the consumption amount. Consumption processing means.

【0033】このような構成によれば、読書装置は、プ
リペイドカード発行時に各トラックに書込まれる固定情
報の端部までのプリペイドカードの端縁からのプリペイ
ドカード毎に固有の距離を第1の暗号鍵とし、当該各プ
リペイドカードの当該トラックにおける前記固定情報と
可変情報との間隙に基づく距離を第2の暗号鍵として、
これら第1及び第2の暗号鍵を当該プリペイドカードの
他の所定のトラックにおける可変情報の読出/書込にお
ける復号/暗号化に用いることにより、他のプリペイド
カードの記憶情報の複写による不正使用を的確に防止す
ることができる。したがって、媒体の変造又は偽造によ
るプリペイドカードの不正使用を未然に阻止することが
できる。
According to such a configuration, the reading device sets the distance unique to each prepaid card from the edge of the prepaid card to the end of the fixed information written on each track when the prepaid card is issued, by the first. As a second encryption key, a distance based on a gap between the fixed information and the variable information in the track of each prepaid card is defined as an encryption key.
By using these first and second encryption keys for decryption / encryption in reading / writing of variable information in another predetermined track of the prepaid card, unauthorized use by copying stored information of another prepaid card is prevented. It can be prevented exactly. Therefore, it is possible to prevent unauthorized use of the prepaid card due to falsification or forgery of the medium.

【0034】なお、上記プリペイドカードは、さらにI
Cチップを備えてもよく、そのICメモリには上記可変
情報が記憶され、実際の支払いの場面では、このICメ
モリに記憶された情報が使用されるようにしてもよい。
The above prepaid card further includes an I
A C chip may be provided, and the variable information may be stored in the IC memory, and the information stored in the IC memory may be used in actual payment.

【0035】該読書装置が処理する前記プリペイドカー
ドは、パチンコ店における遊技媒体であるパチンコ玉又
はメタルの貸与の対価を支払うためのカードであっても
よい。
[0035] The prepaid card processed by the reading apparatus may be a card for paying for a pachinko ball or metal loan as a game medium in a pachinko parlor.

【0036】本発明の第7の観点に係るプリペイドカー
ドシステムは、金銭的価値に対応する金額情報を含み使
用にともなって随時更新される可変情報と使用にかかわ
らず変化しない所定の固定情報とを磁性層の複数のトラ
ックに記憶する記憶媒体からなるプリペイドカードを用
いて金銭的決済を行うプリペイドカードシステムにおい
て、前記プリペイドカードの前記複数のトラックのうち
の一つのトラックの前記固定情報と可変情報とのオーバ
ラップ部分を検出して、該オーバラップ部分の波形を抽
出し、該波形に基づく暗号鍵を用いて前記複数のトラッ
クのうちの他の所定のトラックの可変情報を復号/暗号
化して、それぞれ当該プリペイドカードにおける前記他
のトラックの可変情報の読出/書込を行って、前記プリ
ペイドカードの消費金額に応じて前記可変情報を更新
し、且つ該消費金額を含む売上情報を送信する読書手段
と、前記読書手段との間で通信を行って、前記読書手段
から前記プリペイドカードの前記売上情報及び使用プリ
ペイドカード情報を受信して格納処理する上位処理手段
と、を備える。
A prepaid card system according to a seventh aspect of the present invention comprises: variable information that includes amount information corresponding to a monetary value and is updated as needed with use; and predetermined fixed information that does not change regardless of use. In a prepaid card system for performing a financial settlement using a prepaid card comprising a storage medium for storing in a plurality of tracks of a magnetic layer, the fixed information and the variable information of one of the tracks of the plurality of tracks of the prepaid card, Detecting an overlap portion of the plurality of tracks, extracting / encrypting variable information of another predetermined track among the plurality of tracks by using an encryption key based on the overlap portion, By reading / writing the variable information of the other track on the prepaid card, the erase of the prepaid card is performed. The variable information is updated according to the amount of money, and the reading means for transmitting the sales information including the consumption amount, and communication between the reading means, the sales information of the prepaid card from the reading means and Host processing means for receiving and storing the used prepaid card information.

【0037】このような構成によれば、読書手段は、プ
リペイドカードの同一のトラックに書込まれる固定情報
と可変情報とのオーバラップ部分の波形に基づいて暗号
鍵を生成し、当該プリペイドカードのその他のトラック
における可変情報の読出/書込における復号/暗号化に
該暗号鍵を用いることにより、他のプリペイドカードの
記憶情報の複写による不正使用を的確に防止することが
できる。したがって、媒体の変造又は偽造によるプリペ
イドカードの不正使用を未然に阻止することができる。
According to such a configuration, the reading means generates the encryption key based on the waveform of the overlapping portion between the fixed information and the variable information written on the same track of the prepaid card, and By using the encryption key for decryption / encryption in reading / writing of the variable information in other tracks, it is possible to properly prevent unauthorized use by copying stored information of another prepaid card. Therefore, it is possible to prevent unauthorized use of the prepaid card due to falsification or forgery of the medium.

【0038】前記読書手段は、前記プリペイドカードの
前記複数のトラックにおける可変情報及び固定情報の読
み書きを行う磁気ヘッドと、前記プリペイドカードの各
トラックにおける可変情報及び固定情報を前記磁気ヘッ
ドを用いて読出/書込する読書処理手段と、前記磁気ヘ
ッドを用いて、前記プリペイドカードの各トラックの固
定情報及び可変情報を読取り、当該トラックにおける前
記固定情報と可変情報とのオーバラップ部分を検出し
て、該オーバラップ部分の波形を抽出し、該波形に基づ
く暗号鍵を生成する波形解析手段と、前記波形解析手段
で得られる前記固定情報と可変情報とのオーバラップ部
分の波形に基づく暗号鍵を用いて、前記複数のトラック
のうちの他の所定のトラックにおける可変情報を復号/
暗号化して前記読書処理手段における該可変情報の読出
/書込に供する暗号処理手段と、前記プリペイドカード
の消費金額に応じて、前記読書処理手段により前記金額
情報を更新し、且つ該消費金額を含む売上情報を送信す
る消費処理手段と、を含んでいてもよい。
The reading means includes a magnetic head for reading and writing variable information and fixed information on the plurality of tracks of the prepaid card, and reading the variable information and fixed information on each track of the prepaid card using the magnetic head. Reading / writing the fixed information and the variable information of each track of the prepaid card using the read / write processing means for writing / writing and the magnetic head, and detecting an overlapping portion between the fixed information and the variable information in the track, A waveform analysis unit for extracting a waveform of the overlap portion and generating an encryption key based on the waveform, and an encryption key based on a waveform of an overlap portion between the fixed information and the variable information obtained by the waveform analysis unit. Decoding the variable information in another predetermined track of the plurality of tracks.
Encrypting means for encrypting and providing the reading / writing of the variable information in the reading processing means; and updating the price information by the reading processing means in accordance with the amount of consumption of the prepaid card, and And consumption processing means for transmitting the sales information including the sales information.

【0039】なお、上記プリペイドカードは、さらにI
Cチップを備えてもよく、そのICメモリには上記可変
情報が記憶され、実際の支払いの場面では、このICメ
モリに記憶された情報が使用されるようにしてもよい。
The above-mentioned prepaid card further includes an I
A C chip may be provided, and the variable information may be stored in the IC memory, and the information stored in the IC memory may be used in actual payment.

【0040】該プリペイドカードシステムは、パチンコ
店における遊技媒体であるパチンコ玉又はメタルの貸与
の対価を決済するためのシステムであってもよい。
[0040] The prepaid card system may be a system for settling payment for lending pachinko balls or metal, which is a game medium in a pachinko parlor.

【0041】本発明の第8の観点に係る読書装置は、金
銭的価値に対応する金額情報を含み使用にともなって随
時更新される可変情報と、使用にかかわらず変化しない
固定情報と、の複数のトラックにおける読み書きを行う
磁気ヘッドと、プリペイドカードの各トラックにおける
可変情報と固定情報とを前記磁気ヘッドを用いて読出/
書込する読書処理手段と、前記磁気ヘッドを用いて、前
記プリペイドカードの各トラックの固定情報及び可変情
報を読取り、当該トラックにおける前記固定情報と可変
情報とのオーバラップ部分を検出して、該オーバラップ
部分の波形を抽出し、該波形に基づく暗号鍵を生成する
波形解析手段と、前記波形解析手段で得られる前記固定
情報と可変情報とのオーバラップ部分の波形に基づく暗
号鍵を用いて、前記複数のトラックのうちの他の所定の
トラックにおける可変情報を復号/暗号化して前記読書
処理手段における該可変情報の読出/書込に供する暗号
処理手段と、前記プリペイドカードの消費金額に応じ
て、前記読書処理手段により前記金額情報を更新し、且
つ該消費金額を含む売上情報を送信する消費処理手段
と、を備える。
The reading apparatus according to the eighth aspect of the present invention comprises a plurality of variable information including variable amount information corresponding to a monetary value, which is updated as needed with use, and fixed information which does not change regardless of use. And a variable head and a fixed head in each track of the prepaid card using the magnetic head.
The fixed information and the variable information of each track of the prepaid card are read by using the reading processing means for writing and the magnetic head, and an overlapping portion between the fixed information and the variable information in the track is detected, A waveform analysis unit that extracts a waveform of an overlap portion and generates an encryption key based on the waveform, and an encryption key based on a waveform of an overlap portion between the fixed information and the variable information obtained by the waveform analysis unit. An encryption processing means for decrypting / encrypting variable information in another predetermined track of the plurality of tracks and providing the variable information for reading / writing in the reading processing means; And a consumption processing unit for updating the price information by the reading processing unit and transmitting sales information including the consumption amount.

【0042】このような構成によれば、読書装置は、プ
リペイドカードの同一のトラックに書込まれる固定情報
と可変情報とのオーバラップ部分の波形に基づいて暗号
鍵を生成し、当該プリペイドカードのその他のトラック
における可変情報の読出/書込における復号/暗号化に
該暗号鍵を用いることにより、他のプリペイドカードの
記憶情報の複写による不正使用を的確に防止することが
できる。したがって、媒体の変造又は偽造によるプリペ
イドカードの不正使用を未然に阻止することができる。
According to such a configuration, the reading device generates the encryption key based on the waveform of the overlapping portion between the fixed information and the variable information written on the same track of the prepaid card, and generates the encryption key. By using the encryption key for decryption / encryption in reading / writing of the variable information in other tracks, it is possible to properly prevent unauthorized use by copying stored information of another prepaid card. Therefore, it is possible to prevent unauthorized use of the prepaid card due to falsification or forgery of the medium.

【0043】なお、上記プリペイドカードは、さらにI
Cチップを備えてもよく、そのICメモリには上記可変
情報が記憶され、実際の支払いの場面では、このICメ
モリに記憶された情報が使用されるようにしてもよい。
It should be noted that the above prepaid card further includes an I
A C chip may be provided, and the variable information may be stored in the IC memory, and the information stored in the IC memory may be used in actual payment.

【0044】該読書装置が処理する前記プリペイドカー
ドは、パチンコ店における遊技媒体であるパチンコ玉又
はメタルの貸与の対価を支払うためのカードであっても
よい。
[0044] The prepaid card processed by the reading device may be a card for paying for a pachinko ball or metal loan as a game medium in a pachinko parlor.

【0045】本発明の第9の観点に係る暗号取引方法
は、金銭的価値に対応する金額情報を含み使用にともな
って随時更新される可変情報と、使用にかかわらず変化
しない所定の固定情報とを磁性層の第1及び第2のトラ
ックに記憶する記憶媒体からなるプリペイドカードを用
いて金銭的決済を行うプリペイドカードシステムにおけ
る暗号取引方法であって、プリペイドカードの発行時に
おいて、プリペイドカードの第1及び第2のトラックに
固定情報を書込み、前記第1のトラックの固定情報を検
出して、当該プリペイドカードの端縁から前記第1のト
ラックの固定情報の端部までの第1の距離を計測し、該
第1の距離情報を第1の暗号鍵として当該プリペイドカ
ードの前記第2のトラックに前記可変情報を暗号化記録
する第1の記録ステップと、前記第2のトラックの固定
情報及び可変情報を検出して、該第2のトラックにおけ
る固定情報と可変情報との間隙に基づく第2の距離を計
測し、該第2の距離情報を第2の暗号鍵として当該プリ
ペイドカードの前記第1のトラックに前記可変情報の初
期情報を暗号化記録して、前記プリペイドカードとして
発行する第2の記録ステップと、取引時において、前記
プリペイドカードの端縁から前記第1のトラックの前記
固定情報の端部までの前記第1の距離を計測し、該第1
の距離情報を第1の暗号鍵として前記第2のトラックの
可変情報を復号/暗号化する第1の暗復号ステップと、
前記第1の暗復号ステップにより復号/暗号化された前
記第2のトラックの可変情報の読出/書込を行う第1の
読書ステップと、前記第2のトラックにおける前記固定
情報と可変情報との間の前記第2の距離を計測し、該第
2の距離情報を第2の暗号鍵として前記第1のトラック
の可変情報を復号/暗号化する第2の暗復号ステップ
と、前記第1の暗復号ステップにより復号/暗号化され
た前記第1のトラックの可変情報の読出/書込を行う第
2の読書ステップと、を備える。
The cryptographic transaction method according to the ninth aspect of the present invention provides a cryptographic transaction method comprising: Is a cryptographic transaction method in a prepaid card system for performing a monetary settlement using a prepaid card comprising a storage medium for storing in a first track and a second track of a magnetic layer, wherein when the prepaid card is issued, The fixed information is written to the first and second tracks, the fixed information of the first track is detected, and the first distance from the edge of the prepaid card to the end of the fixed information of the first track is calculated. A first recording step of measuring and encrypting and recording the variable information on the second track of the prepaid card using the first distance information as a first encryption key. And fixed information and variable information of the second track are detected, a second distance based on a gap between the fixed information and the variable information in the second track is measured, and the second distance information is calculated. A second recording step in which the initial information of the variable information is encrypted and recorded on the first track of the prepaid card as a second encryption key, and is issued as the prepaid card; Measuring a first distance from an edge to an end of the fixed information of the first track;
A first encryption / decryption step of decrypting / encrypting the variable information of the second track using the distance information of the second track as a first encryption key;
A first reading step of reading / writing the variable information of the second track decrypted / encrypted by the first encryption / decryption step, and a read / write of the fixed information and the variable information in the second track; A second encryption / decryption step of measuring the second distance between the two, and decrypting / encrypting the variable information of the first track using the second distance information as a second encryption key; A second reading step of reading / writing the variable information of the first track decrypted / encrypted by the encryption / decryption step.

【0046】本発明の第10の観点に係る暗号取引方法
は、金銭的価値に対応する金額情報を含み使用にともな
って随時更新される可変情報と使用にかかわらず変化し
ない所定の固定情報とを磁性層の複数のトラックに記憶
する記憶媒体からなるプリペイドカードを用いて金銭的
決済を行うプリペイドカードシステムにおける暗号取引
方法であって、取引時において、前記プリペイドカード
の前記複数のトラックのうちの一つのトラックの前記固
定情報と可変情報とのオーバラップ部分を検出して、該
オーバラップ部分の波形を抽出する抽出ステップと、前
記抽出ステップにより抽出された波形に基づく暗号鍵を
用いて前記複数のトラックのうちの他の所定のトラック
の可変情報を復号/暗号化して、それぞれ当該プリペイ
ドカードにおける前記他のトラックの可変情報の読出/
書込を行う読書ステップと、を備える。
A cryptographic transaction method according to a tenth aspect of the present invention is characterized in that variable information including amount information corresponding to a monetary value and constantly updated with use and predetermined fixed information which does not change regardless of use are used. A cryptographic transaction method in a prepaid card system for performing a financial settlement using a prepaid card comprising a storage medium stored in a plurality of tracks of a magnetic layer, wherein at the time of a transaction, one of the plurality of tracks of the prepaid card is used. An extraction step of detecting an overlap portion between the fixed information and the variable information of one track and extracting a waveform of the overlap portion, and using the encryption key based on the waveform extracted in the extraction step to generate the plurality of tracks. The variable information of another predetermined track among the tracks is decrypted / encrypted, and each of the variable information in the corresponding prepaid card is decrypted. Serial of variable information of other track read /
A reading step for writing.

【0047】前記プリペイドカードは、パチンコ店にお
ける遊技媒体であるパチンコ玉又はメタルの貸与の対価
を支払うためのカードであってもよい。
[0047] The prepaid card may be a card for paying for the lending of pachinko balls or metal, which is a game medium in a pachinko parlor.

【0048】[0048]

【発明の実施の形態】以下、本発明に係るプリペイドカ
ードシステムを、その実施の形態について、図面を参照
して説明する。本発明の第1の実施の形態に係るプリペ
イドカードシステムの主要部となる読書装置は、図1に
示すように構成されている。この場合、プリペイドカー
ドの記憶情報は、カード発行時すなわちエンコード時に
書込まれ、以後の消費等によって書き換えられることが
ないカード識別情報(カードID)、製造元を示す製造
元コード及び製造日(エンコード日)情報等の固定情報
と、残額等を示す金額情報及びエラー発生時におけるエ
ラーコード等のように以後の消費等の処理によって随時
更新される可変情報とで構成される。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS A prepaid card system according to the present invention will be described below with reference to the accompanying drawings. A reading device as a main part of the prepaid card system according to the first embodiment of the present invention is configured as shown in FIG. In this case, the storage information of the prepaid card is written at the time of card issuance, that is, at the time of encoding, and is not rewritten by subsequent consumption or the like. It is composed of fixed information such as information, amount information indicating the remaining amount and the like, and variable information such as an error code at the time of occurrence of an error that is updated as needed by subsequent processing such as consumption.

【0049】図1に示す読書装置1は、通信処理部1
1、消費処理部12、記憶部13及びリーダ/ライタ1
4を備えている。通信処理部11は、消費処理部12と
中継装置2との間の通信を行う。通信処理部11は、例
えば、中継装置2からの要求コマンドに対するレスポン
スとして、読書装置1におけるプリペイドカードの消費
金額情報を含む売上情報を記憶部13から読み出して中
継装置2に送信する。消費処理部12は、遊技媒体等の
物品を提供するなどして消費操作を実行する物販機(図
示していない)等に連動し、遊技媒体等の提供に対応す
るプリペイドカードの消費に基づき、リーダ/ライタ1
4を介してプリペイドカードの金額情報等の記憶情報を
更新するとともに、消費金額情報を含む売上情報を記憶
部13に蓄積する。記憶部13は、日常の消費処理部1
2における消費金額の処理に基づく売上情報を格納蓄積
する。
The reading device 1 shown in FIG.
1, consumption processing unit 12, storage unit 13, and reader / writer 1
4 is provided. The communication processing unit 11 performs communication between the consumption processing unit 12 and the relay device 2. The communication processing unit 11 reads, for example, the sales information including the consumption amount information of the prepaid card in the reading device 1 from the storage unit 13 and transmits the sales information to the relay device 2 as a response to the request command from the relay device 2. The consumption processing unit 12 is linked to a vending machine (not shown) that performs a consumption operation by providing an article such as a game medium or the like, and based on consumption of a prepaid card corresponding to provision of the game medium or the like, Reader / writer 1
The storage information such as the amount information of the prepaid card is updated through the storage unit 4 and the sales information including the consumption amount information is stored in the storage unit 13. The storage unit 13 stores the daily consumption processing unit 1
2 stores and stores sales information based on the processing of the consumption amount.

【0050】リーダ/ライタ14は、プリペイドカード
挿入時には、まず、プリペイドカードの固定情報を読み
取るとともに、該固定情報の記録位置を計測し、該プリ
ペイドカードの端縁、すなわちカードエッジから該固定
情報の端部までの距離を求め、固有暗号鍵Kとする。次
に可変情報を読取り、該可変情報を該固有暗号鍵Kを用
いて復号化し、残額情報を消費処理部12に与える。な
お、固定情報も予め全てのプリペイドカードに共通に定
めた所定の標準暗号鍵により暗号化されていてもよい。
When the prepaid card is inserted, the reader / writer 14 first reads the fixed information of the prepaid card, measures the recording position of the fixed information, and reads the fixed information from the edge of the prepaid card, that is, the card edge. The distance to the end is obtained and used as a unique encryption key K. Next, the variable information is read, the variable information is decrypted using the unique encryption key K, and the balance information is provided to the consumption processing unit 12. Note that the fixed information may also be encrypted using a predetermined standard encryption key that is previously defined in common for all prepaid cards.

【0051】リーダ/ライタ14は、該固有暗号鍵Kを
当該プリペイドカードからの可変情報の読出における復
号化に用いるだけでなく、当該プリペイドカードへの可
変情報の更新時の書込における暗号化に用いる。当該プ
リペイドカードの発行時の初期エンコード情報の書込時
にも、可変情報については当該固有暗号鍵Kを用いてい
るため、カードエッジから該固定情報の端部までの距離
の計測結果が正しい固有暗号鍵Kに対応しないときは、
可変情報を正しく復号化して読出すことができず、不正
なプリペイドカードが挿入されたと判定する。可変情報
を正しく復号化して読出すことができたときは、適正な
プリペイドカードであるとして、次に残額目安パンチ孔
を検出して、プリペイドカードに記憶されている金額情
報との間で矛盾がないか否かを確認する。
The reader / writer 14 not only uses the unique encryption key K for decryption when reading the variable information from the prepaid card, but also for encrypting when writing the variable information to the prepaid card. Used. Even when writing the initial encoding information at the time of issuing the prepaid card, the unique encryption key K is used for the variable information. If it does not correspond to key K,
The variable information cannot be correctly decoded and read, and it is determined that an unauthorized prepaid card has been inserted. If the variable information can be correctly decoded and read, it is determined that the card is a proper prepaid card, and the remaining amount of the punched hole is detected next. Check if there is any.

【0052】この金額情報は消費処理部12により処理
されて残額情報が記憶部13に書き込まれる。さらに、
該残額情報を消費処理部12における消費金額情報に応
じて更新し、同様にプリペイドカードの金額情報を固有
暗号鍵Kにより暗号化して更新する。このとき、更新後
の残額に基づき必要に応じて残額目安パンチ孔を穿孔す
る。
This money amount information is processed by the consumption processing unit 12, and the remaining amount information is written into the storage unit 13. further,
The balance information is updated according to the consumption amount information in the consumption processing unit 12, and similarly, the amount information of the prepaid card is encrypted and updated using the unique encryption key K. At this time, a remaining amount guide punch hole is punched as needed based on the updated remaining amount.

【0053】すなわち、リーダ/ライタ14は、読書制
御部141、データ読書部142、磁気ヘッド143、
暗号処理部144及び距離計測部145を有している。
読書制御部141は、リーダ/ライタ14における読書
動作全体を制御する。データ読書部142は、読書制御
部141の制御に基づき、磁気ヘッド143を介してプ
リペイドカードに金額情報等の可変情報の更新書込を行
うとともに、残額に基づいて、所定残額時には残額目安
パンチ孔を穿孔する。磁気ヘッド143は、データ読書
部142の制御により、プリペイドカード上の可変情報
及び固定情報等の磁気記憶情報を読出すとともに、暗号
処理部144の制御により、距離計測部145を介して
固定情報を読み取る。距離計測部145は、磁気ヘッド
143により固定情報を読み取って、カードエッジから
該固定情報端部までの距離を計測して、固有暗号鍵Kを
生成する。
That is, the reader / writer 14 includes a reading control unit 141, a data reading unit 142, a magnetic head 143,
It has an encryption processing unit 144 and a distance measurement unit 145.
The reading control unit 141 controls the entire reading operation in the reader / writer 14. The data reading unit 142 updates and writes variable information such as amount information on the prepaid card via the magnetic head 143 under the control of the reading control unit 141, and based on the remaining amount, when there is a predetermined remaining amount, the remaining amount punch hole. Perforate. The magnetic head 143 reads magnetic storage information such as variable information and fixed information on the prepaid card under the control of the data reading unit 142, and also reads the fixed information via the distance measurement unit 145 under the control of the encryption processing unit 144. read. The distance measurement unit 145 reads the fixed information with the magnetic head 143, measures the distance from the card edge to the fixed information end, and generates a unique encryption key K.

【0054】暗号処理部144は、データ読書部142
により、磁気ヘッド143を介して行われる当該プリペ
イドカードの金額情報等の可変情報の読出/書込に際
し、距離計測部145により得られる固有暗号鍵Kを用
いて復号/暗号化する。すなわち、暗号処理部144
は、プリペイドカード挿入時に、距離計測部145によ
り得られる固有暗号鍵Kを用いて記憶情報を復号化す
る。当該固有暗号鍵Kにより、データ読書部142を介
して読出される情報が正しく復号化されない場合に、不
正プリペイドカードが挿入されたとして、異常を検出す
る。
The encryption processing unit 144 includes a data reading unit 142
Thus, when reading / writing variable information such as the amount information of the prepaid card performed via the magnetic head 143, the information is decrypted / encrypted using the unique encryption key K obtained by the distance measuring unit 145. That is, the encryption processing unit 144
Decrypts the stored information using the unique encryption key K obtained by the distance measuring unit 145 when the prepaid card is inserted. When the information read via the data reading unit 142 is not correctly decrypted by the unique encryption key K, an abnormality is detected as an unauthorized prepaid card being inserted.

【0055】このように構成される読書装置1を含む本
発明の第1の実施の形態に係るプリペイドカードシステ
ムは、図2に示すように読書装置1、中継装置2、記録
装置3及び決済センタ4を備えている。記録装置3及び
決済センタ4は、カード発行会社及びカード製造工場等
のようなカード発行元Dに設置されている。一般に、カ
ード発行元Dに対応する店舗Sは複数存在し、各店舗S
には、複数個の読書装置1及びこれらの読書装置1を決
済センタ4に接続する中継装置2が設置されている。
The prepaid card system according to the first embodiment of the present invention including the reading device 1 configured as described above comprises a reading device 1, a relay device 2, a recording device 3, and a settlement center as shown in FIG. 4 is provided. The recording device 3 and the settlement center 4 are installed at a card issuer D such as a card issuing company and a card manufacturing factory. Generally, there are a plurality of stores S corresponding to the card issuer D, and each store S
Are provided with a plurality of reading devices 1 and a relay device 2 for connecting these reading devices 1 to the settlement center 4.

【0056】中継装置2は各店舗Sに1個とは限らず、
例えば店舗S内の所定の領域、例えばホール及びフロア
毎に中継装置2が1個ずつ設けられていてもよい。すな
わち、中継装置2は、店舗S毎の複数台の読書装置1、
店舗S内のホール毎の複数台の読書装置1あるいは店舗
S内のフロア毎の複数台の読書装置1と決済センタ4と
の間に設けられる。このプリペイドカードシステムで
は、カード発行元Dで製造され発行されたプリペイドカ
ードが店舗Sに販売され、さらに店舗Sで利用者に販売
される。利用者は、店舗Sにおいて、例えば遊技媒体の
貸出等のようなサービス提供の対価をプリペイドカード
により支払うことができる。
The relay device 2 is not limited to one for each store S,
For example, one relay device 2 may be provided for each predetermined area in the store S, for example, for each hall and floor. That is, the relay device 2 includes a plurality of reading devices 1 for each store S,
The payment center 4 is provided between the plurality of reading devices 1 for each hall in the store S or the plurality of reading devices 1 for each floor in the store S. In this prepaid card system, a prepaid card manufactured and issued by the card issuer D is sold to the store S, and further sold to the user at the store S. At the store S, the user can pay for the provision of a service such as lending of a game medium by using a prepaid card.

【0057】このサービス提供及び支払いは、店舗Sに
設置された読書装置1を用いて行われ、プリペイドカー
ドに金額情報として記憶されている金額が消費される。
店舗Sは、読書装置1で消費された金額情報を中継装置
2において集計し、カード発行元Dの決済センタ4に送
信する。カード発行元Dは、各店舗Sから決済センタ4
において受信した金額情報に相当する金額を売上金とし
て各店舗Sに支払う。
The provision of the service and the payment are performed by using the reading device 1 installed in the store S, and the amount stored as the amount information on the prepaid card is consumed.
The store S counts the amount information consumed by the reading device 1 in the relay device 2 and transmits the information to the settlement center 4 of the card issuer D. The card issuer D sends each store S to the settlement center 4
Pay the amount corresponding to the amount information received in each store S as the sales amount.

【0058】このプリペイドカードシステムで使用する
プリペイドカードを、図3を参照して説明する。図3に
示すように、プリペイドカードCは、磁性層を用いた磁
気的な情報記憶部Aを持ち、該情報記憶部Aは、固定情
報領域A1及び可変情報領域A2を有する。固定情報領
域A1には、プリペイドカードCのカード識別情報、製
造元を示す製造元コード及び製造日情報等のように、エ
ンコード時に一旦書込んだ後は、消費等によって変更さ
れることがない固定情報が書込まれる。この場合、該固
定情報は、必ずしも暗号化しなくともよいが、例えば各
プリペイドカードに共通の標準暗号鍵KSによって暗号
化されている。可変情報領域A2には、残額等の金額情
報及びエラー発生時におけるエラーコード等のように使
用・消費によって随時更新、変更又は追加される可変情
報が書込まれる。該可変情報は、カードエッジから固定
情報までの距離に対応するカード固有の固有暗号鍵Kに
よって暗号化されている。
A prepaid card used in this prepaid card system will be described with reference to FIG. As shown in FIG. 3, the prepaid card C has a magnetic information storage section A using a magnetic layer, and the information storage section A has a fixed information area A1 and a variable information area A2. In the fixed information area A1, fixed information that is not changed by consumption or the like after being written once at the time of encoding, such as card identification information of the prepaid card C, a manufacturer code indicating the manufacturer, and manufacturing date information, etc. Written. In this case, the fixed information does not necessarily have to be encrypted. For example, the fixed information is encrypted by a standard encryption key KS common to each prepaid card. In the variable information area A2, variable information that is updated, changed, or added at any time by use or consumption, such as amount information such as a balance and an error code when an error occurs, is written. The variable information is encrypted with a card-specific unique encryption key K corresponding to the distance from the card edge to the fixed information.

【0059】記録装置3は、カード発行元Dにおいてプ
リペイドカードCを発行するための装置である。この記
録装置3は、プリペイドカードC発行時に、プリペイド
カードCの固定情報領域A1に固定情報を書込み、可変
情報領域A2に初期可変情報を書込む。可変情報領域A
2への初期可変情報の書込みにあたっては、それに先立
って固定情報領域A1に固定情報を書込んでおき、カー
ドエッジから該固定情報の端部までの距離を計測して得
られる距離情報を固有暗号鍵Kとする。記録装置3は、
この固有暗号鍵Kを用いて、可変情報領域A2への書込
情報を暗号化する。
The recording device 3 is a device for issuing a prepaid card C at the card issuer D. When the prepaid card C is issued, the recording device 3 writes fixed information in the fixed information area A1 of the prepaid card C and writes initial variable information in the variable information area A2. Variable information area A
Before writing the initial variable information into the fixed information area 2, the fixed information is written into the fixed information area A1. Let it be a key K. The recording device 3
Using this unique encryption key K, the information to be written in the variable information area A2 is encrypted.

【0060】すなわち、記録装置3は、図4に示すよう
に、エンコード制御部31、記憶部32、書込処理部3
3、磁気ヘッド34、距離計測部35及び暗号処理部3
6を有している。エンコード制御部31は、この記録装
置3におけるプリペイドカードCのエンコード、すなわ
ち初期情報の書込みを制御する。記憶部32は、エンコ
ード制御部31によるエンコード処理に必要な各種情報
及び処理中の一時情報を記憶する。書込処理部33は、
エンコード制御部31により制御されて磁気ヘッド34
を駆動し、所定情報の書込みを行う。磁気ヘッド34
は、書込処理部33により制御されてプリペイドカード
Cの固定情報領域A1及び可変情報領域A2の磁性層に
情報を磁気的に書込む。また磁気ヘッド34は、距離計
測部35により制御されて、固定情報領域A1に書込ま
れた固定情報を読み取る。なお、磁気ヘッド34は、プ
リペイドカードCの磁気情報の書込み及び読出しに際し
て、プリペイドカードCに対して相対的に移動させる
が、この場合、磁気ヘッド34を移動させても、プリペ
イドカードCを移動させても、あるいは両者を同時に相
異なる方向に移動させてもよい。
That is, as shown in FIG. 4, the recording device 3 includes an encoding control unit 31, a storage unit 32, and a writing processing unit 3.
3, magnetic head 34, distance measurement unit 35, and encryption processing unit 3
6. The encoding control unit 31 controls encoding of the prepaid card C in the recording device 3, that is, writing of initial information. The storage unit 32 stores various types of information necessary for the encoding process by the encoding control unit 31 and temporary information being processed. The write processing unit 33
The magnetic head 34 is controlled by the encode controller 31.
To write predetermined information. Magnetic head 34
Is magnetically written to the magnetic layers of the fixed information area A1 and the variable information area A2 of the prepaid card C under the control of the writing processing unit 33. The magnetic head 34 is controlled by the distance measuring unit 35 to read the fixed information written in the fixed information area A1. The magnetic head 34 is moved relative to the prepaid card C when writing and reading the magnetic information of the prepaid card C. In this case, even if the magnetic head 34 is moved, the prepaid card C is moved. Or both may be simultaneously moved in different directions.

【0061】距離計測部35は、磁気ヘッド34により
読み取られた固定情報の端部のカードエッジからの距離
を計測し、該距離に応じた距離情報を固有暗号鍵Kとし
て、暗号処理部36に供給する。暗号処理部36は、書
込処理部33による可変情報領域A2への情報書込に際
し、距離計測部35により得た固有暗号鍵Kを用いて書
込情報を暗号化する。エンコード制御部31は、書込処
理部33を介して固定情報領域A1へ固定情報を書込
み、距離計測部35でカードエッジから該固定情報の端
部までの距離が求められ、固有暗号鍵Kが特定された
後、書込処理部33を介して可変情報領域A2へ可変情
報を書込む。この可変情報の書込の際に、書込処理部3
3は、暗号処理部36により、固有暗号鍵Kを用いた暗
号化を施す。
The distance measuring section 35 measures the distance of the end of the fixed information read by the magnetic head 34 from the card edge, and uses the distance information corresponding to the distance as a unique encryption key K to the encryption processing section 36. Supply. The encryption processing unit 36 encrypts the write information using the unique encryption key K obtained by the distance measurement unit 35 when the writing processing unit 33 writes information in the variable information area A2. The encoding control unit 31 writes the fixed information to the fixed information area A1 via the writing processing unit 33. The distance measuring unit 35 calculates the distance from the card edge to the end of the fixed information. After being specified, the variable information is written to the variable information area A2 via the write processing unit 33. When writing the variable information, the write processing unit 3
3, the encryption processing unit 36 performs encryption using the unique encryption key K.

【0062】読書装置1は、例えば、遊技媒体の貸出等
を行う物販機(図示せず)に接続されており、物販機が
利用者に提供した遊技媒体等の対価をプリペイドカード
Cに記憶されている金額情報における残額から差し引く
ことにより、プリペイドカードCの消費を具体化するた
めの装置である。この読書装置1は、プリペイドカード
Cがセットされると、まず、固定情報領域A1の固定情
報を読み取って、カードエッジから当該固定情報までの
距離を計測して固有暗号鍵Kを生成し、以後の復号及び
暗号化に供する。
The reading device 1 is connected to, for example, a vending machine (not shown) for renting out game media, etc., and stores in the prepaid card C the value of the game media etc. provided by the vending machine to the user. This is an apparatus for embodying the consumption of the prepaid card C by subtracting from the remaining amount in the amount information. When the prepaid card C is set, the reading device 1 first reads the fixed information in the fixed information area A1, measures the distance from the card edge to the fixed information, generates the unique encryption key K, For decryption and encryption.

【0063】読書装置1は、プリペイドカードCの可変
情報領域A2の金額情報等を距離計測部145により得
た固有暗号鍵Kを用いて暗号処理部144により復号化
した結果、正常に復号化することができた場合には、当
該プリペイドカードCは正常であると判定し、復号化の
結果、正常に復号化できていないと判定した場合には、
当該プリペイドカードCは異常であり、不正プリペイド
カードであると判定する。このとき、多くの場合、計測
結果には、経時変化によるレベルの低下及び磁気ヘッド
34と143との相違による計測誤差等が存在する可能
性があるため、距離情報を適宜量子化するなどして、同
一の固有暗号鍵Kとして利用できるようにしてもよい。
The reading device 1 decrypts the money information and the like in the variable information area A2 of the prepaid card C by the encryption processing unit 144 using the unique encryption key K obtained by the distance measurement unit 145, and as a result, decrypts the information normally. If successful, the prepaid card C is determined to be normal, and as a result of decryption, if it is determined that decryption has not been performed normally,
The prepaid card C is abnormal and is determined to be an unauthorized prepaid card. At this time, in many cases, the measurement result may include a level decrease due to a change with time and a measurement error due to a difference between the magnetic heads 34 and 143. Therefore, the distance information is appropriately quantized. , May be used as the same unique encryption key K.

【0064】さらに、読書装置1は、プリペイドカード
Cの情報記憶部Aの記憶情報及びパンチ孔情報等に矛盾
があるか否かをチェックし、矛盾があれば、当該プリペ
イドカードCに何らかの不正及び不具合があると判定す
る。不正又は不具合があると判定された場合、読書装置
1は、中継装置2に不正プリペイドカードのカード識別
情報等を含む検知データを送信するとともに、当該プリ
ペイドカードの使用を阻止して排出する。さらに、読書
装置1は、中継装置2から他の読書装置1で不正プリペ
イドカードと判定されたプリペイドカード情報の通知デ
ータを受信し、プリペイドカードCが装填されると直ち
に該通知データに基づいて当該プリペイドカードCを弁
別し、使用を阻止して排出する。
Further, the reading device 1 checks whether or not the stored information and the punched hole information of the information storage unit A of the prepaid card C are inconsistent. It is determined that there is a defect. When it is determined that there is a fraud or a malfunction, the reading device 1 transmits the detection data including the card identification information of the fraudulent prepaid card to the relay device 2 and also blocks the use of the prepaid card and discharges it. Further, the reading device 1 receives the notification data of the prepaid card information determined to be an unauthorized prepaid card by the other reading device 1 from the relay device 2, and immediately receives the notification data based on the notification data when the prepaid card C is loaded. The prepaid card C is discriminated, used, and discharged.

【0065】中継装置2は、店舗S内の各読書装置1に
おいて消費金額として処理された金額情報を集約して、
決済センタ4に送信する。
The relay device 2 aggregates the money amount information processed as the consumption amount in each reading device 1 in the store S,
Send to settlement center 4.

【0066】次に、上述したプリペイドカードシステム
における処理について、図5〜図8に示すフローチャー
トを参照して説明する。まず、記録装置3におけるエン
コード処理について、図5を参照して説明する。図5に
示すエンコード処理は、記録装置3にプリペイドカード
がセットされるとその都度起動される。プリペイドカー
ドがセットされると、まず、エンコード制御部31は、
例えば記憶部32に格納された情報に基づき固定情報を
生成し、暗号処理部36で予め設定した所定の標準暗号
鍵KSにより暗号化し(ステップS1)、書込処理部3
3により磁気ヘッド34を介して、プリペイドカードの
情報記憶部Aの所定の固定情報領域A1に書込む(ステ
ップS2)。
Next, the processing in the above-described prepaid card system will be described with reference to the flowcharts shown in FIGS. First, the encoding process in the recording device 3 will be described with reference to FIG. The encoding process shown in FIG. 5 is started each time a prepaid card is set in the recording device 3. When the prepaid card is set, first, the encoding control unit 31
For example, fixed information is generated based on the information stored in the storage unit 32, and is encrypted with a predetermined standard encryption key KS preset in the encryption processing unit 36 (step S1).
3 writes the information into the predetermined fixed information area A1 of the information storage unit A of the prepaid card via the magnetic head 34 (step S2).

【0067】次に、距離計測部35は、書込まれた固定
情報を磁気ヘッド34を介して読み取り、図9に示すよ
うに、カードエッジから固定情報の端部までの距離Kを
計測して、当該プリペイドカードCに固有の固有暗号鍵
Kを得る(ステップS3)。このとき、暗号鍵、すなわ
ち距離Kは、図10に示すように、カードエッジから固
定情報のデータ部の始端STX(start of text)まで
の距離である。固定情報のデータ部は、始端STXで始
まり、終端ETX(end of text)で終わる。エンコー
ド制御部31は、所要の可変情報を、書込処理部33を
介して、暗号処理部36により距離計測部35で得た固
有暗号鍵Kを用いて暗号化して(ステップS4)、プリ
ペイドカードの情報記憶部Aの可変情報領域A2に書込
み(ステップS5)、プリペイドカードCのエンコード
処理を終了する。
Next, the distance measuring section 35 reads the written fixed information via the magnetic head 34 and measures the distance K from the card edge to the end of the fixed information as shown in FIG. Then, a unique encryption key K unique to the prepaid card C is obtained (step S3). At this time, the encryption key, that is, the distance K is a distance from the card edge to the start end STX (start of text) of the data part of the fixed information, as shown in FIG. The data section of the fixed information starts at the start end STX and ends at the end end ETX (end of text). The encoding control unit 31 encrypts the required variable information by using the unique encryption key K obtained by the distance measurement unit 35 by the encryption processing unit 36 via the writing processing unit 33 (step S4), and Is written into the variable information area A2 of the information storage unit A (step S5), and the encoding process of the prepaid card C is completed.

【0068】次に、上述したプリペイドカードシステム
における消費処理について、図6〜図8に示すフローチ
ャートを参照して説明する。図6に示す消費処理は、読
書装置1のリーダ/ライタ14のデータ読書部142に
プリペイドカードCがセットされるとその都度起動され
る。処理が開始されると、リーダ/ライタ14の暗号処
理部144は、セットされたプリペイドカードCが正常
か否かをチェックする(ステップS11)。すなわち、
まず、リーダ/ライタ14の暗号処理部144が、磁気
ヘッド143により、プリペイドカードCの固定情報領
域A1から固定情報を読み取って予め設定した標準暗号
鍵KSで復号化し、カードエッジから固定情報の始端S
TXまでの距離を計測し、固有暗号鍵Kを得る。そし
て、暗号処理部144は、データ読書部142を介して
磁気ヘッド143によりプリペイドカードCの可変情報
領域A2の金額情報等の可変情報を読出し、固有暗号鍵
Kを用いて復号化する。暗号処理部144は、読出した
可変情報が正常に復号化できたか否かを確認し、正常に
復号化できなければ、セットされたプリペイドカードC
は異常であり、不正な手段により作成されたものである
と判定する。
Next, the consumption processing in the above-mentioned prepaid card system will be described with reference to the flowcharts shown in FIGS. The consumption process shown in FIG. 6 is started each time the prepaid card C is set in the data reading unit 142 of the reader / writer 14 of the reading device 1. When the processing is started, the encryption processing unit 144 of the reader / writer 14 checks whether the set prepaid card C is normal (step S11). That is,
First, the encryption processing unit 144 of the reader / writer 14 reads the fixed information from the fixed information area A1 of the prepaid card C with the magnetic head 143, decrypts the fixed information with the preset standard encryption key KS, and starts the fixed information from the card edge. S
The distance to TX is measured, and a unique encryption key K is obtained. Then, the encryption processing unit 144 reads the variable information such as the amount information of the variable information area A2 of the prepaid card C by the magnetic head 143 via the data reading unit 142, and decrypts the information using the unique encryption key K. The encryption processing unit 144 checks whether or not the read variable information has been successfully decrypted. If the variable information cannot be decrypted normally, the prepaid card C
Is abnormal and is determined to have been created by unauthorized means.

【0069】読出した記憶情報が正常に復号化できた場
合には、次に、リーダ/ライタ14の暗号処理部144
により、残額目安パンチ孔の位置及び記憶情報における
矛盾の有無を検出する。このとき、残額目安パンチ孔の
位置及び記憶情報に矛盾が検出された場合には、当該プ
リペイドカードCは異常であるとする。暗号処理部14
4により、異常が検出されたか否かが判定され(ステッ
プS12)、異常が検出された場合には、プリペイドカ
ードCが不正であるとして、不正又はエラー表示等を行
った後、システムの動作を停止するなどの異常/不正処
理を実行する(ステップS13)。
If the read storage information has been successfully decrypted, then the encryption processing unit 144 of the reader / writer 14 is read.
Thus, the position of the remaining standard punch hole and the presence or absence of inconsistency in the stored information are detected. At this time, when inconsistency is detected in the position of the remaining amount guide punch hole and the stored information, it is determined that the prepaid card C is abnormal. Encryption processing unit 14
In step S12, it is determined whether an abnormality has been detected (step S12). If an abnormality has been detected, the prepaid card C is determined to be invalid, and after displaying a fraud or error display, the system operation is performed. An abnormal / illegal process such as stopping is executed (step S13).

【0070】ステップS12で、異常が検出されていな
いと判定された場合には、消費処理部12により、リー
ダ/ライタ14(の読書制御部141及びデータ読書部
142)を介して先の暗号鍵を用いて復号化した情報か
らプリペイドカードCの残額を確認し、記憶部13に格
納する(ステップS14)。残額があれば、利用者から
の終了スイッチ(図示せず)の押下による終了要求の有
無を調べ(ステップS15)、終了要求がなければ、消
費スイッチ(図示せず)の押下による消費要求、例えば
遊技媒体の貸出要求、の有無を調べる(ステップS1
6)。例えば、遊技システム等の場合、終了スイッチ
は、カードの返却を要求するカード返却スイッチであ
り、消費スイッチは、遊技媒体の貸出を要求する貸出ス
イッチである。
If it is determined in step S12 that no abnormality has been detected, the consumption processing unit 12 sends the encryption key via the reader / writer 14 (the reading control unit 141 and the data reading unit 142). The remaining amount of the prepaid card C is confirmed from the information decrypted by using and stored in the storage unit 13 (step S14). If there is the remaining amount, it is checked whether or not there is an end request from the user by pressing the end switch (not shown) (step S15). If there is no end request, a consumption request by pressing the consumption switch (not shown), for example, Check whether there is a request for renting a game medium (step S1)
6). For example, in the case of a game system or the like, the end switch is a card return switch for requesting the return of a card, and the consumption switch is a lending switch for requesting lending of a game medium.

【0071】ステップS16で、利用者からの消費要求
があれば、利用者に遊技媒体を貸出すなどして、消費を
行わせる(ステップS17)。消費処理部12は、もと
の残額から消費額を減算し、新たな残額として、記憶部
13に記憶されている残額を更新する(ステップS1
8)。そして、更新後の新たな残額が“0”であるか否
かを調べ(ステップS19)、残額が“0”であれば、
その旨のメッセージを表示して(ステップS20)、消
費処理を終了するための終了処理に移行する(ステップ
S21)。終了処理の終了後は消費処理を終了して、待
機状態に戻る。
In step S16, if there is a consumption request from the user, the user is caused to consume the game medium by renting out a game medium or the like (step S17). The consumption processing unit 12 subtracts the consumption amount from the original balance and updates the balance stored in the storage unit 13 as a new balance (step S1).
8). Then, it is determined whether or not the updated balance is “0” (step S19). If the balance is “0”,
A message to that effect is displayed (step S20), and the process proceeds to an end process for ending the consumption process (step S21). After the end processing, the consumption processing ends, and the process returns to the standby state.

【0072】ステップS14において、プリペイドカー
ドCの残額がない場合及び残額が確認できない場合に
は、直ちにステップS21にジャンプして終了処理を実
行する。ステップS15において、終了要求が認識され
た場合にも直ちにステップS21にジャンプして終了処
理を実行する。
In step S14, if there is no remaining amount of the prepaid card C or if the remaining amount cannot be confirmed, the process immediately jumps to step S21 to execute an end process. If the end request is recognized in step S15, the process immediately jumps to step S21 to execute the end process.

【0073】ステップS16において、消費要求がない
場合には、ステップS15に戻り、終了要求又は消費要
求を待つ。ステップS19において、差し引き残額が
“0”にならず、残額が残っている場合にも、ステップ
S15に戻り、終了要求又は消費要求を待つ。
If there is no consumption request in step S16, the flow returns to step S15 to wait for an end request or a consumption request. In step S19, even when the remaining balance does not become “0” and the remaining balance remains, the process returns to step S15 and waits for an end request or a consumption request.

【0074】ステップS11のカードチェック処理の詳
細を図7に示している。カードチェック処理が開始され
ると、まず、読書制御部141は、暗号処理部144に
より磁気ヘッド143を介して、プリペイドカードCの
情報記憶部Aの固定情報領域A1から固定情報を読出し
(ステップS31)、標準暗号鍵KSを用いて復号化す
る(ステップS32)。距離計測部145は、この固定
情報の読み取り時に、カードエッジから固定情報データ
部の始端STXまでの距離を計測して、当該プリペイド
カードCに固有の固有暗号鍵Kとする(ステップS3
3)。また、暗号処理部144は、データ読書部142
により磁気ヘッド143を介してプリペイドカードCの
可変情報領域A2から金額情報等の可変情報を読出し
(ステップS34)、先に生成した固有暗号鍵Kを用い
て復号化する(ステップS35)。この場合の可変情報
は、固有暗号鍵Kを使用して暗号化されており、該固有
暗号鍵Kを示す距離は、カードによるばらつきを的確に
反映し、しかもシステムにおける位置検出誤差等があっ
ても、当該固有暗号鍵Kを正しく再現できる程度の値と
する。
FIG. 7 shows the details of the card check process in step S11. When the card check process is started, first, the reading control unit 141 reads fixed information from the fixed information area A1 of the information storage unit A of the prepaid card C via the magnetic head 143 by the encryption processing unit 144 (step S31). ), Decryption is performed using the standard encryption key KS (step S32). At the time of reading the fixed information, the distance measuring unit 145 measures the distance from the card edge to the start end STX of the fixed information data unit, and sets the distance as the unique encryption key K unique to the prepaid card C (step S3).
3). Further, the encryption processing unit 144 includes a data reading unit 142
The variable information such as the amount information is read from the variable information area A2 of the prepaid card C via the magnetic head 143 (step S34), and is decrypted using the unique encryption key K generated previously (step S35). In this case, the variable information is encrypted using the unique encryption key K, and the distance indicating the unique encryption key K accurately reflects the variation among the cards, and further includes a position detection error in the system. Is set to such a value that the unique encryption key K can be correctly reproduced.

【0075】復号化の結果、金額情報が正常に復号化さ
れたか否かが判定され(ステップS36)、正常に復号
化されたと判定されれば、暗号処理部144は、次に、
金額情報及びその他の情報相互間、及びこれらと残額目
安パンチ孔の穿孔状況等との間の矛盾を検出し(ステッ
プS37)、そのような矛盾があるか否かを判定する
(ステップS38)。矛盾がなければ、暗号処理部14
4は、当該プリペイドカードCが正常であるとし(ステ
ップS39)、処理を終了して、図6の消費処理に戻
る。ステップS36において、正常でないと判定された
場合には、異常と判定し(ステップS40)、処理を終
了して、図6の消費処理に戻る。また、ステップS38
において、矛盾が存在すると判定した場合にも、ステッ
プS40に移行し、処理を終了して、図6の消費処理に
戻る。
As a result of the decryption, it is determined whether or not the amount information has been decrypted normally (step S36). If it is determined that the information has been decrypted normally, the encryption processing unit 144 next proceeds to
A contradiction between the money amount information and other information and between these and the remaining amount indication punch holes are detected (step S37), and it is determined whether or not there is such a contradiction (step S38). If there is no contradiction, the cryptographic processing unit 14
No. 4 assumes that the prepaid card C is normal (step S39), ends the process, and returns to the consumption process of FIG. If it is determined in step S36 that the state is not normal, it is determined that the state is abnormal (step S40), the processing ends, and the flow returns to the consumption processing in FIG. Step S38
Also, when it is determined that a contradiction exists, the process proceeds to step S40, ends the process, and returns to the consumption process in FIG.

【0076】ここでは、図10に示すカードエッジと、
固定情報領域A1の固定情報の始端STXとの間の距離
が、プリペイドカードのセット位置のばらつき、記録装
置3における書込み/読出し用の磁気ヘッド34の位置
のばらつき等によりプリペイドカードC毎に変動する。
Here, the card edge shown in FIG.
The distance between the fixed information area A1 and the start end STX of the fixed information fluctuates for each prepaid card C due to variation in the set position of the prepaid card, variation in the position of the magnetic head 34 for writing / reading in the recording device 3, and the like. .

【0077】図6に示したステップS21の終了処理の
詳細を図8に示している。終了処理が開始されると、そ
の時点で記憶部13に記憶されている最終残額に基づい
て、プリペイドカードCの可変情報領域A2における残
額等の金額情報を含む可変情報を先に述べた固有暗号鍵
Kを用いて暗号化して更新記録し(ステップS51)、
該更新後の残額が残額目安パンチ孔の穿孔が必要な金額
か否かを調べる(ステップS52)。残額目安パンチ孔
の穿孔が必要な金額とは、プリペイドカードCに度数値
として印刷された残額領域のうちの従前の領域とは異な
る領域に新たに入る金額である。このような金額である
ときは、リーダ/ライタ14のデータ読書部142によ
り、残額目安パンチ孔が穿孔される(ステップS5
3)。残額目安パンチ孔の穿孔後は、リーダ/ライタ1
4からプリペイドカードCを排出する(ステップS5
4)。そして、処理を終了し、消費処理に戻る。
FIG. 8 shows the details of the end processing of step S21 shown in FIG. When the end processing is started, the variable information including the amount information such as the remaining amount in the variable information area A2 of the prepaid card C is written based on the final remaining amount stored in the storage unit 13 at that time. The data is encrypted and updated using the key K (step S51),
It is checked whether or not the remaining amount after the update is a necessary amount for punching a remaining amount punch hole (step S52). The amount of money required for punching the remaining amount guide punch hole is an amount of money newly entering an area of the remaining amount area printed on the prepaid card C as a frequency value, which is different from the previous area. If the amount is such, the remaining amount guide hole is punched by the data reading unit 142 of the reader / writer 14 (step S5).
3). After punching the remaining guide hole, the reader / writer 1
4 to discharge the prepaid card C (step S5).
4). Then, the process ends, and the process returns to the consumption process.

【0078】また、ステップS52で、更新後の残額が
残額目安パンチ孔の穿孔が必要な金額でないと判定され
た場合には、ステップS53をスキップしてステップS
54に移行し、プリペイドカードCを排出する。上述し
たように、プリペイドカードCは、情報記憶部Aを固定
情報領域A1及び可変情報領域A2で構成する。図9に
示すように固定情報領域A1及び可変情報領域A2はそ
れぞれ異なるトラックとする。固定情報領域A1には、
消費・使用時に書換え・更新を行わない固定的な固定情
報を書込み、可変情報領域A2には、消費・使用にとも
なって書換え・更新を行う可変情報を書込む。
If it is determined in step S52 that the remaining amount after the update is not the amount required for punching the remaining standard punch holes, step S53 is skipped and step S53 is skipped.
The process proceeds to 54, where the prepaid card C is discharged. As described above, in the prepaid card C, the information storage unit A includes the fixed information area A1 and the variable information area A2. As shown in FIG. 9, the fixed information area A1 and the variable information area A2 are different tracks. In the fixed information area A1,
Fixed information that is not rewritten or updated at the time of consumption or use is written, and variable information that is rewritten or updated at the time of consumption or use is written to the variable information area A2.

【0079】既に述べたように、プリペイドカードCの
端縁、すなわちカードエッジから固定情報の始端STX
までの距離は、記録装置3におけるプリペイドカードの
セット時の位置決め精度、磁気ヘッド34の取付位置精
度、及び固定情報書込時の書込み信号のタイミング等に
よって、カードによってばらつく。本発明では、この距
離のプリペイドカードCによるばらつきを利用して、プ
リペイドカードCの暗号化処理の固有暗号鍵Kを得る。
As described above, the start edge STX of the fixed information from the edge of the prepaid card C, that is, the card edge.
The distance up to varies depending on the card due to the positioning accuracy when setting the prepaid card in the recording device 3, the mounting position accuracy of the magnetic head 34, the timing of a write signal when writing fixed information, and the like. In the present invention, a unique encryption key K for the encryption processing of the prepaid card C is obtained by utilizing the variation of the distance between the prepaid cards C.

【0080】プリペイドカードCのエンコード時には、
まず、固定情報を書き込み、次に該固定情報始端STX
位置のカードエッジからの距離を計測する。このとき計
測されるばらつきを含む距離情報を暗号鍵とする。すな
わち、プリペイドカードCには、金額情報等の可変情報
を磁気記憶させているが、この情報記憶に際しては、第
三者が不正に内容を読み取ろうとしても内容が判明しな
いように、暗号化を施して記憶させている。この暗号化
の暗号鍵Kとして、上述により計測されるカードエッジ
からの距離データを用いる。プリペイドカードCのエン
コード時には、この暗号鍵Kを用いて書込情報を暗号化
している。
At the time of encoding the prepaid card C,
First, fixed information is written, and then the fixed information start end STX is written.
Measure the distance of the position from the card edge. The distance information including the variation measured at this time is used as an encryption key. That is, variable information such as amount information is magnetically stored in the prepaid card C. When storing the information, encryption is performed so that the contents cannot be identified even if a third party tries to read the contents illegally. And remembered. As the encryption key K for this encryption, the distance data from the card edge measured as described above is used. At the time of encoding the prepaid card C, the write information is encrypted using the encryption key K.

【0081】読書装置1では、固定情報の始端STX位
置を計測して、距離データを暗号鍵Kとして用いて、プ
リペイドカードCの可変情報を復号化する。また、当該
プリペイドカードCへの可変情報の書込時にも、この暗
号鍵Kを用いて暗号化する。読書装置1では、プリペイ
ドカードCの読み取り時に、この可変情報の復号化が正
常に行えるか否かをチェックする。もしも、両者が対応
していれば正常なカードとして使用でき、対応していな
い場合には、他のプリペイドカードCの磁気情報を不正
に複写したおそれがあり、使用することができない。こ
の場合、以後の読出/書込情報の復号/暗号化について
も同様の暗号鍵を使用するので、不正に情報を複写した
カードでは、一切の情報の読出し及び書込みを行うこと
ができない。
The reading device 1 measures the starting end STX position of the fixed information, and decrypts the variable information of the prepaid card C using the distance data as the encryption key K. Also, when the variable information is written to the prepaid card C, the variable information is encrypted using the encryption key K. In reading the prepaid card C, the reading device 1 checks whether or not the variable information can be normally decoded. If both correspond, the card can be used as a normal card. If not, the magnetic information of another prepaid card C may be illegally copied and cannot be used. In this case, the same encryption key is used for the subsequent decryption / encryption of the read / write information, so that no information can be read or written on the card on which the information is illegally copied.

【0082】このようにして、プリペイドカードCに予
め固定情報を記憶させ、その媒体毎に固有のカードエッ
ジから固定情報の始端STXまでの距離を暗号鍵Kとし
て、プリペイドカードCの可変情報を書込んでエンコー
ドを行い、読書装置1は、プリペイドカードCのカード
エッジから固有情報の始端STXまでの距離を実測して
暗号鍵Kを再現し、該暗号鍵Kを用いて可変情報の読出
/書込における復号/暗号化を行うことにより、他のプ
リペイドカードの記憶情報の複写による不正を的確に検
出する。したがって、正規のプリペイドカードの記憶情
報を複写することにより変造又は偽造したプリペイドカ
ードを使用しようとする不正を、事前に的確に防止し、
変造又は偽造によるプリペイドカードの不正使用を未然
に阻止することが可能となる。
In this manner, the fixed information is stored in the prepaid card C in advance, and the variable information of the prepaid card C is written using the distance from the card edge unique to the medium to the starting end STX of the fixed information as the encryption key K. The reading device 1 measures the distance from the card edge of the prepaid card C to the starting point STX of the unique information to reproduce the encryption key K, and reads / writes the variable information using the encryption key K. By performing decryption / encryption, the unauthorized detection due to copying of the stored information of another prepaid card is accurately detected. Therefore, fraudulent attempts to use a falsified or forged prepaid card by copying the stored information of a legitimate prepaid card are accurately prevented in advance,
It is possible to prevent unauthorized use of the prepaid card due to falsification or forgery.

【0083】上述においては、読書装置1では、カード
エッジから固定情報データの始端までの距離を計測し、
その距離を暗号鍵Kとして可変情報の復号/暗号化に用
いるようにした。しかしながら、このようなシステムに
おいても、上述した距離を再現するように磁気情報が不
正に複写されてしまい、カードが使用されるおそれがあ
る。
In the above description, the reading device 1 measures the distance from the card edge to the beginning of the fixed information data,
The distance is used as an encryption key K for decryption / encryption of variable information. However, even in such a system, the magnetic information is illegally copied so as to reproduce the above-described distance, and the card may be used.

【0084】本発明の第2の実施の形態では、情報記憶
部が2トラックに形成され、各トラックにおいて可変情
報と固定情報が同一のトラック上にある。このため、次
のようにして暗号鍵を生成する(図16参照)。まず、
第1のトラックTaにおけるカードエッジから固定情報
(の始端STX)までの距離を計測し、第1の固有暗号
鍵K1とする。そして、第1の固有暗号鍵K1で第2の
トラックTb上の可変情報を暗号化する。次に、第2の
トラックTb上における固定情報の終端ETXから可変
情報の始端(例えばSTX)までの距離を第2の固有暗
号鍵K2とし、該第2の固有暗号鍵K2で第1のトラッ
クTaの可変情報を暗号化する。
In the second embodiment of the present invention, the information storage section is formed on two tracks, and in each track, the variable information and the fixed information are on the same track. Therefore, an encryption key is generated as follows (see FIG. 16). First,
The distance from the card edge on the first track Ta to (the start end STX thereof) of the fixed information is measured, and is set as a first unique encryption key K1. Then, the variable information on the second track Tb is encrypted with the first unique encryption key K1. Next, the distance from the end ETX of the fixed information to the start end (for example, STX) of the variable information on the second track Tb is defined as a second unique encryption key K2, and the second unique encryption key K2 is used for the first track. The variable information of Ta is encrypted.

【0085】本発明の第2の実施の形態に係るプリペイ
ドカードシステムの主要部となる読書装置は、図11に
示すように構成されている。図11に示す読書装置1A
は、通信処理部11、消費処理部12、記憶部13及び
リーダ/ライタ14Aを備えている。通信処理部11、
消費処理部12及び記憶部13については、図1と同様
であり、リーダ/ライタ14Aについては、図1のリー
ダ/ライタ14とは若干異なる。
A reading device as a main part of the prepaid card system according to the second embodiment of the present invention is configured as shown in FIG. Reading device 1A shown in FIG.
Has a communication processing unit 11, a consumption processing unit 12, a storage unit 13, and a reader / writer 14A. Communication processing unit 11,
The consumption processing unit 12 and the storage unit 13 are the same as those in FIG. 1, and the reader / writer 14A is slightly different from the reader / writer 14 in FIG.

【0086】すなわち、通信処理部11は、消費処理部
12と中継装置2との間の通信を行う。通信処理部11
は、例えば、中継装置2からの要求コマンドに対するレ
スポンスとして、読書装置1Aにおけるプリペイドカー
ドの消費金額情報を含む売上情報を記憶部13から読み
出して中継装置2に送信する。消費処理部12は、遊技
媒体等の物品を提供するなどして消費操作を実行する物
販機等に連動し、遊技媒体等の提供に対応するプリペイ
ドカードの消費に基づき、リーダ/ライタ14Aを介し
てプリペイドカードの金額情報等の記憶情報を更新する
とともに、消費金額情報を含む売上情報を記憶部13に
蓄積する。記憶部13は、日常の消費処理部12におけ
る消費金額の処理に基づく売上情報を格納蓄積する。
That is, the communication processing unit 11 performs communication between the consumption processing unit 12 and the relay device 2. Communication processing unit 11
For example, as a response to a request command from the relay device 2, the sales information including the consumption amount information of the prepaid card in the reading device 1 </ b> A is read from the storage unit 13 and transmitted to the relay device 2. The consumption processing unit 12 is linked to a vending machine or the like that performs a consumption operation by providing an article such as a game medium, and via the reader / writer 14A based on the consumption of a prepaid card corresponding to the provision of the game medium. In addition, the storage information such as the amount information of the prepaid card is updated, and the sales information including the consumption amount information is stored in the storage unit 13. The storage unit 13 stores and stores sales information based on daily consumption amount processing in the daily consumption processing unit 12.

【0087】リーダ/ライタ14Aは、プリペイドカー
ド挿入時には、まず、プリペイドカードの情報記憶部
A′の第1及び第2のトラックTa及びTb(図16参
照)の固定情報を読み取るとともに、第1のトラックT
aの固定情報の記録位置を計測し、該プリペイドカード
の端縁、すなわちカードエッジから該固定情報の端部ま
での距離を求め、第1の固有暗号鍵K1とする。次に第
2のトラックTbの可変情報を読取り、該可変情報を該
固有暗号鍵K1を用いて復号化するとともに、該第2の
トラックTbの固定情報の終端から可変情報の始端まで
の距離、すなわち固定情報と可変情報との間隙、を計測
し、第2の固有暗号鍵K2とする。そして、第1のトラ
ックTaの可変情報を読取り、残額情報等を消費処理部
12に与える。なお、固定情報も予め全てのプリペイド
カードに共通に定めた所定の標準暗号鍵により暗号化さ
れていてもよい。
When the prepaid card is inserted, the reader / writer 14A first reads the fixed information of the first and second tracks Ta and Tb (see FIG. 16) of the information storage section A 'of the prepaid card and reads the first information. Track T
The recording position of the fixed information a is measured, and the distance from the edge of the prepaid card, that is, the card edge to the end of the fixed information is obtained, and is set as a first unique encryption key K1. Next, the variable information of the second track Tb is read, the variable information is decrypted using the unique encryption key K1, and the distance from the end of the fixed information of the second track Tb to the start of the variable information is determined. That is, the gap between the fixed information and the variable information is measured and used as the second unique encryption key K2. Then, the variable information of the first track Ta is read, and the balance information and the like are provided to the consumption processing unit 12. Note that the fixed information may also be encrypted using a predetermined standard encryption key that is previously defined in common for all prepaid cards.

【0088】リーダ/ライタ14Aは、第1及び第2の
固有暗号鍵K1及びK2を当該プリペイドカードの各ト
ラックからの可変情報の読出における復号化に用いるだ
けでなく、当該プリペイドカードの各トラックへの可変
情報の更新時の書込における暗号化にも用いる。当該プ
リペイドカードの発行時の初期エンコード情報の書込時
にも、可変情報については当該第1及び第2の固有暗号
鍵K1及びK2を用いているため、これらに相当する距
離の計測結果が正しい第1及び第2の固有暗号鍵K1及
びK2に対応しないときは、各トラックの可変情報を正
しく復号化して読出すことができず、不正なプリペイド
カードが挿入されたと判定する。可変情報を正しく復号
化して読出すことができたときは、適正なプリペイドカ
ードであるとして、次に残額目安パンチ孔を検出して、
プリペイドカードに記憶されている金額情報との間で矛
盾がないか否かを確認する。
The reader / writer 14A not only uses the first and second unique encryption keys K1 and K2 for decoding variable information from each track of the prepaid card, but also uses the first and second unique encryption keys K1 and K2 for each track of the prepaid card. It is also used for encryption in writing when updating the variable information. Since the first and second unique encryption keys K1 and K2 are used for variable information even when the initial encoding information is written when the prepaid card is issued, the measurement result of the distance corresponding to these is correct. If they do not correspond to the first and second unique encryption keys K1 and K2, the variable information of each track cannot be correctly decrypted and read, and it is determined that an unauthorized prepaid card has been inserted. When the variable information can be correctly decoded and read, it is determined that the card is a proper prepaid card, and the remaining amount of the punch hole is detected next.
It is checked whether there is any inconsistency with the amount information stored in the prepaid card.

【0089】この金額情報は消費処理部12により処理
されて残額情報が記憶部13に書き込まれる。さらに、
該残額情報を消費処理部12における消費金額情報に応
じて更新し、同様にプリペイドカードの金額情報を固有
暗号鍵K1及びK2により暗号化して更新する。なお、
情報記憶部A′の各トラックの使い分けは、予め情報の
種類及びタイミング等に基づいて決定し、その使い分け
に応じてトラック及び第1,第2の固有暗号鍵K1,K
2を選定する。このとき、更新後の残額に基づき必要に
応じて残額目安パンチ孔を穿孔する。
This money amount information is processed by the consumption processing unit 12, and the remaining amount information is written into the storage unit 13. further,
The balance information is updated in accordance with the consumption amount information in the consumption processing unit 12, and similarly, the amount information of the prepaid card is encrypted and updated using the unique encryption keys K1 and K2. In addition,
The proper use of each track in the information storage unit A 'is determined in advance based on the type and timing of information, etc., and according to the proper use of the track, the track and the first and second unique encryption keys K1, K
Select 2. At this time, a remaining amount guide punch hole is punched as needed based on the updated remaining amount.

【0090】すなわち、リーダ/ライタ14Aは、読書
制御部141、データ読書部142、磁気ヘッド14
3、暗号処理部144A及び距離計測部145Aを有し
ている。読書制御部141は、リーダ/ライタ14にお
ける読書動作全体を制御する。データ読書部142は、
読書制御部141の制御に基づき、磁気ヘッド143を
介してプリペイドカードに金額情報等の可変情報の更新
書込を行うとともに、残額に基づいて、所定残額時には
残額目安パンチ孔を穿孔する。磁気ヘッド143は、こ
の場合、例えば各トラック毎に固定情報用の磁気ヘッド
エレメントと可変情報用の磁気ヘッドエレメントとが配
設されてなり、データ読書部142の制御により、プリ
ペイドカード上の各トラックの可変情報及び固定情報等
の磁気記憶情報を読出すとともに、暗号処理部144A
の制御により、距離計測部145Aを介して各トラック
の固定情報及び可変情報を読み取る。距離計測部145
Aは、磁気ヘッド143により第1のトラックTaの固
定情報を読み取って、カードエッジから該固定情報端部
までの距離を計測して、第1の固有暗号鍵K1を生成
し、さらに、磁気ヘッド143により第2のトラックT
aの固定情報及び可変情報を読み取って、固定情報と可
変情報との間隙(距離)を計測して、第2の固有暗号鍵
K2を生成する。
That is, the reader / writer 14A includes a reading control unit 141, a data reading unit 142, and a magnetic head 14
3. It has an encryption processing unit 144A and a distance measurement unit 145A. The reading control unit 141 controls the entire reading operation in the reader / writer 14. The data reading unit 142
Based on the control of the reading control unit 141, the variable information such as the amount information is updated and written on the prepaid card via the magnetic head 143, and based on the remaining amount, the remaining amount guide hole is punched at the time of the predetermined remaining amount. In this case, the magnetic head 143 is provided with, for example, a magnetic head element for fixed information and a magnetic head element for variable information for each track, and controls each track on the prepaid card under the control of the data reading unit 142. And read out magnetically stored information such as variable information and fixed information of the
, The fixed information and the variable information of each track are read via the distance measuring unit 145A. Distance measuring unit 145
A reads the fixed information of the first track Ta with the magnetic head 143, measures the distance from the card edge to the end of the fixed information, generates the first unique encryption key K1, and further generates the first unique encryption key K1. 143, the second track T
The fixed information and the variable information of “a” are read, the gap (distance) between the fixed information and the variable information is measured, and a second unique encryption key K2 is generated.

【0091】暗号処理部144Aは、データ読書部14
2により、磁気ヘッド143を介して行われる当該プリ
ペイドカードの金額情報等の可変情報の読出/書込に際
し、距離計測部145Aにより得られる第1及び第2の
固有暗号鍵K1及びK2をトラック毎に用いて復号/暗
号化する。すなわち、暗号処理部144Aは、プリペイ
ドカード挿入時に、距離計測部145Aにより得られる
第1及び第2の固有暗号鍵K1及びK2を用いてそれぞ
れ第2及び第1のトラックTb及びTaの可変情報を復
号化する。当該第1及び第2の固有暗号鍵K1及びK2
により、データ読書部142を介して読出される情報が
正しく復号化されない場合に、不正プリペイドカードが
挿入されたとして、異常を検出する。
The encryption processing unit 144A is provided with the data reading unit 14
2, the first and second unique encryption keys K1 and K2 obtained by the distance measuring unit 145A are used for reading / writing variable information such as the amount information of the prepaid card via the magnetic head 143 for each track. For decryption / encryption. That is, when the prepaid card is inserted, the encryption processing unit 144A uses the first and second unique encryption keys K1 and K2 obtained by the distance measurement unit 145A to convert the variable information of the second and first tracks Tb and Ta, respectively. Decrypt. The first and second unique encryption keys K1 and K2
Thus, if the information read via the data reading unit 142 is not correctly decoded, it is determined that an unauthorized prepaid card has been inserted and an abnormality is detected.

【0092】このように構成される読書装置1Aを含む
本発明の第2の実施の形態に係るプリペイドカードシス
テムは、実質的に図2とほぼ同様に構成される。このプ
リペイドカードシステムで使用するプリペイドカード
を、図12を参照して説明する。図12に示すように、
プリペイドカードCAは、磁性層を用いた磁気的な情報
記憶部A′を持ち、該情報記憶部A′は、第1のトラッ
クTa及び第2のトラックTbを有する。第1のトラッ
クTaには、固定情報領域Aa1及び可変情報領域Aa
2が配置され、第2のトラックTbには、固定情報領域
Ab1及び可変情報領域Ab2が配置される。
A prepaid card system according to the second embodiment of the present invention including the reading apparatus 1A thus configured is configured substantially in the same manner as FIG. A prepaid card used in this prepaid card system will be described with reference to FIG. As shown in FIG.
The prepaid card CA has a magnetic information storage unit A 'using a magnetic layer, and the information storage unit A' has a first track Ta and a second track Tb. The first track Ta includes a fixed information area Aa1 and a variable information area Aa.
2 are arranged, and a fixed information area Ab1 and a variable information area Ab2 are arranged on the second track Tb.

【0093】第1及び第2のトラックTa及びTbの固
定情報領域Aa1及びAb1には、プリペイドカードC
Aのカード識別情報、製造元を示す製造元コード及び製
造日情報等のように、エンコード時に一旦書込んだ後
は、消費等によって変更されることがない固定情報が、
各トラックに適宜振り分けられて書込まれる。この場
合、該固定情報は、必ずしも暗号化しなくともよいが、
例えば各プリペイドカードCAに共通の標準暗号鍵KS
によって暗号化されている。
The fixed information areas Aa1 and Ab1 of the first and second tracks Ta and Tb include a prepaid card C
Once written once at the time of encoding, such as the card identification information of A, the manufacturer code indicating the manufacturer, and the manufacturing date information, fixed information that is not changed by consumption or the like,
It is allocated to each track and written. In this case, the fixed information does not necessarily have to be encrypted,
For example, a standard encryption key KS common to each prepaid card CA
Is encrypted by

【0094】第1及び第2のトラックTa及びTbの可
変情報領域Aa2及びAb2には、残額等の金額情報及
びエラー発生時におけるエラーコード等のように使用・
消費によって随時更新、変更又は追加される可変情報
が、各トラックに適宜振り分けられて書込まれる。第2
のトラックTbの可変情報は、カードエッジから第1の
トラックTaの固定情報までの距離に対応するカード固
有の第1の固有暗号鍵K1によって暗号化され、第1の
トラックTaの可変情報は、第2のトラックTbの固定
情報と可変情報との間隙に対応するカード固有の第2の
固有暗号鍵K2によって暗号化されている。
The variable information areas Aa2 and Ab2 of the first and second tracks Ta and Tb are used for information such as amount information such as the balance and an error code when an error occurs.
Variable information that is updated, changed, or added as needed by consumption is allocated to each track and written. Second
The variable information of the track Tb is encrypted by the first unique encryption key K1 unique to the card corresponding to the distance from the card edge to the fixed information of the first track Ta, and the variable information of the first track Ta is The second track Tb is encrypted by a card-specific second unique encryption key K2 corresponding to the gap between the fixed information and the variable information.

【0095】図13に示す記録装置3Aは、カード発行
元DにおいてプリペイドカードCAを発行するための装
置である。この記録装置3Aは、プリペイドカードCA
発行時に、プリペイドカードCAの各トラックTa及び
Tbの固定情報領域Aa1及びAb1に固定情報を書込
み、そして可変情報領域Ab2及びAa2に初期可変情
報を書込む。第2のトラックTbの可変情報領域Ab2
への初期可変情報の書込みにあたっては、それに先立っ
て第1のトラックTaの固定情報領域Aa1に固定情報
を書込んでおき、カードエッジから該固定情報の端部ま
での距離を計測して得られる距離情報を第1の固有暗号
鍵K1とする。記録装置3Aは、この第1の固有暗号鍵
K1を用いて、第2のトラックTbの可変情報領域Ab
2への書込情報を暗号化する。
The recording device 3A shown in FIG. 13 is a device for issuing a prepaid card CA at the card issuer D. This recording device 3A uses a prepaid card CA.
At the time of issuance, the fixed information is written into the fixed information areas Aa1 and Ab1 of each track Ta and Tb of the prepaid card CA, and the initial variable information is written into the variable information areas Ab2 and Aa2. Variable information area Ab2 of second track Tb
Before writing the initial variable information into the fixed information, the fixed information is written into the fixed information area Aa1 of the first track Ta, and the distance from the card edge to the end of the fixed information is measured. The distance information is defined as a first unique encryption key K1. The recording device 3A uses the first unique encryption key K1 to store the variable information area Ab of the second track Tb.
2 is encrypted.

【0096】第1のトラックTaの可変情報領域Aa2
への初期可変情報の書込みにあたっては、それに先立っ
て第2のトラックTbの固定情報領域Ab1に固定情報
を、そして可変情報領域Ab2に可変情報をそれぞれ書
込んでおき、当該第2のトラックTbにおける固定情報
と可変情報との間隙の距離を計測して得られる距離情報
を第2の固有暗号鍵K2とする。記録装置3Aは、この
第2の固有暗号鍵K2を用いて、第1のトラックTaの
可変情報領域Aa2への書込情報を暗号化する。
The variable information area Aa2 of the first track Ta
Before writing the initial variable information to the second track Tb, the fixed information is written to the fixed information area Ab1 of the second track Tb, and the variable information is written to the variable information area Ab2. The distance information obtained by measuring the distance of the gap between the fixed information and the variable information is defined as a second unique encryption key K2. The recording device 3A uses the second unique encryption key K2 to encrypt the write information to the variable information area Aa2 of the first track Ta.

【0097】すなわち、記録装置3Aは、図13に示す
ように、エンコード制御部31A、記憶部32、書込処
理部33、磁気ヘッド34、距離計測部35A及び暗号
処理部36Aを有している。エンコード制御部31A
は、この記録装置3AにおけるプリペイドカードCAの
エンコード、すなわち初期情報の書込みを制御する。記
憶部32は、エンコード制御部31Aによるエンコード
処理に必要な各種情報及び処理中の一時情報を記憶す
る。書込処理部33は、エンコード制御部31Aにより
制御されて磁気ヘッド34を駆動し、所定情報の書込み
を行う。磁気ヘッド34は、この場合、例えば各トラッ
ク毎に固定情報用の磁気ヘッドエレメントと可変情報用
の磁気ヘッドエレメントとが配設されてなり、書込処理
部33により制御されてプリペイドカードCAの第1の
トラックTaの固定情報領域Aa1及び可変情報領域A
a2、並びに第2のトラックTbの固定情報領域Ab1
及び可変情報領域Ab2の磁性層に情報を磁気的に書込
む。また磁気ヘッド34は、距離計測部35Aにより制
御されて、第1及び第2のトラックTa及びTbの固定
情報領域Aa1及びAb1に書込まれた固定情報及び第
2のトラックTbの可変情報領域Ab2に書込まれた可
変情報を読み取る。
That is, as shown in FIG. 13, the recording device 3A has an encoding control unit 31A, a storage unit 32, a writing processing unit 33, a magnetic head 34, a distance measuring unit 35A, and an encryption processing unit 36A. . Encoding control unit 31A
Controls the encoding of the prepaid card CA in the recording device 3A, that is, the writing of the initial information. The storage unit 32 stores various types of information necessary for the encoding process performed by the encoding control unit 31A and temporary information being processed. The write processing unit 33 drives the magnetic head 34 under the control of the encode control unit 31A to write predetermined information. In this case, the magnetic head 34 includes, for example, a magnetic head element for fixed information and a magnetic head element for variable information for each track. Fixed information area Aa1 and variable information area A of one track Ta
a2, and the fixed information area Ab1 of the second track Tb
Then, information is magnetically written in the magnetic layer of the variable information area Ab2. Further, the magnetic head 34 is controlled by the distance measuring unit 35A, and the fixed information written in the fixed information areas Aa1 and Ab1 of the first and second tracks Ta and Tb and the variable information area Ab2 of the second track Tb. Reads the variable information written in.

【0098】距離計測部35Aは、磁気ヘッド34によ
り読み取られた、第1のトラックTaの固定情報の端部
のカードエッジからの距離及び第2のトラックTbの固
定情報と可変情報との間隙を計測し、それぞれ距離に応
じた距離情報を第1及び第2の固有暗号鍵K1及びK2
として、暗号処理部36Aに供給する。暗号処理部36
Aは、書込処理部33による第2のトラックTbの可変
情報領域Ab2への情報書込に際し、距離計測部35A
により得た第1の暗号鍵K1を用いて書込情報を暗号化
する。また、暗号処理部36Aは、書込処理部33によ
る第1のトラックTaの可変情報領域Aa2への情報書
込に際し、距離計測部35Aにより得た第2の暗号鍵K
2を用いて書込情報を暗号化する。
The distance measuring section 35A measures the distance from the card edge at the end of the fixed information of the first track Ta and the gap between the fixed information and the variable information of the second track Tb, which are read by the magnetic head 34. The distance information corresponding to the distance is measured and the first and second unique encryption keys K1 and K2
Is supplied to the encryption processing unit 36A. Encryption processing unit 36
A indicates a distance measurement unit 35A when the write processing unit 33 writes information in the variable information area Ab2 of the second track Tb.
The write information is encrypted using the first encryption key K1 obtained in step (1). In addition, the encryption processing unit 36A uses the second encryption key K obtained by the distance measurement unit 35A when writing information to the variable information area Aa2 of the first track Ta by the writing processing unit 33.
2 to encrypt the write information.

【0099】エンコード制御部31Aは、書込処理部3
3を介して各トラックTa及びTbの固定情報領域Aa
1及びAb1へそれぞれ固定情報を書込み、距離計測部
35Aでカードエッジから該第1のトラックTaの固定
情報の端部までの距離を求め、第1の固有暗号鍵K1を
特定した後、書込処理部33を介して第2のトラックT
bの可変情報領域Ab2へ可変情報を書込む。この可変
情報の書込の際に、書込処理部33は、暗号処理部36
Aにより、第1の固有暗号鍵K1を用いた暗号化を施
す。
The encoding control unit 31 A
3, the fixed information area Aa of each track Ta and Tb
1 and Ab1 are respectively written, and the distance measuring unit 35A obtains the distance from the card edge to the end of the fixed information of the first track Ta, specifies the first unique encryption key K1, and then writes. The second track T via the processing unit 33
The variable information is written to the variable information area Ab2 of b. At the time of writing the variable information, the write processing unit 33
A performs encryption using the first unique encryption key K1.

【0100】さらに、エンコード制御部31Aは、距離
計測部35Aで第2のトラックTbの固定情報と可変情
報との間の距離(間隙)を求め、第2の固有暗号鍵K2
を特定した後、書込処理部33を介して第1のトラック
Taの可変情報領域Aa2へ可変情報を書込む。この可
変情報の書込の際に、書込処理部33は、暗号処理部3
6Aにより、第2の固有暗号鍵K2を用いた暗号化を施
す。読書装置1Aは、例えば、遊技媒体の貸出等を行う
物販機に接続されており、物販機が利用者に提供した遊
技媒体等の対価をプリペイドカードCAに記憶されてい
る金額情報における残額から差し引くことにより、プリ
ペイドカードCAの消費を具体化するための装置であ
る。この読書装置1Aは、プリペイドカードCAがセッ
トされると、まず、第1のトラックTaの固定情報領域
Aa1の固定情報を読み取って、カードエッジから当該
固定情報までの距離を計測して第1の固有暗号鍵K1を
生成し、さらに第2のトラックTbの固定情報領域Ab
1の固定情報及び可変情報領域Ab2を読み取って、当
該固定情報と可変情報との間の距離を計測して第2の固
有暗号鍵K2を生成して、以後の復号及び暗号化に供す
る。
Further, the encoding control section 31A obtains the distance (gap) between the fixed information and the variable information of the second track Tb by the distance measuring section 35A, and obtains the second unique encryption key K2.
Is specified, the variable information is written to the variable information area Aa2 of the first track Ta via the write processing unit 33. At the time of writing the variable information, the write processing unit 33
6A, encryption using the second unique encryption key K2 is performed. The reading device 1A is connected to, for example, a vending machine that lends a game medium, etc., and subtracts the value of the game medium, etc. provided by the vending machine to the user from the balance in the price information stored in the prepaid card CA. This is an apparatus for embodying the consumption of the prepaid card CA. When the prepaid card CA is set, the reading device 1A first reads the fixed information in the fixed information area Aa1 of the first track Ta, measures the distance from the card edge to the fixed information, and performs the first reading. A unique encryption key K1 is generated, and a fixed information area Ab of the second track Tb is further generated.
The first fixed information and the variable information area Ab2 are read, and the distance between the fixed information and the variable information is measured to generate a second unique encryption key K2, which is used for subsequent decryption and encryption.

【0101】読書装置1Aは、プリペイドカードCAの
可変情報領域Aa2及びAb2の金額情報等を距離計測
部145Aにより得た固有暗号鍵K1及びK2を用いて
暗号処理部144Aにより復号化した結果、正常に復号
化することができた場合には、当該プリペイドカードC
Aは正常であると判定し、復号化の結果、正常に復号化
できていないと判定した場合には、当該プリペイドカー
ドCAは異常であり、不正プリペイドカードであると判
定する。このとき、多くの場合、計測結果には、経時変
化によるレベルの低下及び磁気ヘッド34と143との
相違による計測誤差等が存在する可能性があるため、距
離情報を適宜量子化するなどして、共通の固有暗号鍵K
1及びK2として利用できるようにしてもよい。
The reading apparatus 1A decrypts the price information and the like in the variable information areas Aa2 and Ab2 of the prepaid card CA by the encryption processing section 144A using the unique encryption keys K1 and K2 obtained by the distance measurement section 145A. If the prepaid card C can be decrypted
If A is determined to be normal, and as a result of decryption, it is determined that decryption has not been performed normally, the prepaid card CA is abnormal and is determined to be an unauthorized prepaid card. At this time, in many cases, the measurement result may include a level decrease due to a change with time and a measurement error due to a difference between the magnetic heads 34 and 143. Therefore, the distance information is appropriately quantized. , A common unique encryption key K
It may be made available as 1 and K2.

【0102】さらに、読書装置1Aは、プリペイドカー
ドCAの情報記憶部A′の記憶情報及びパンチ孔情報等
に矛盾があるか否かをチェックし、矛盾があれば、当該
プリペイドカードCAに何らかの不正及び不具合がある
と判定する。不正又は不具合があると判定された場合、
読書装置1Aは、中継装置2に不正プリペイドカードの
カード識別情報等を含む検知データを送信するととも
に、当該プリペイドカードの使用を阻止して排出する。
さらに、読書装置1Aは、中継装置2から他の読書装置
で不正プリペイドカードと判定されたプリペイドカード
情報の通知データを受信し、プリペイドカードCAが装
填されると直ちに該通知データに基づいて当該プリペイ
ドカードを弁別し、使用を阻止して排出する。
Further, the reading device 1A checks whether or not the storage information and the punch hole information of the information storage unit A 'of the prepaid card CA are inconsistent. And that there is a defect. If it is determined to be fraudulent or defective,
The reading device 1A transmits the detection data including the card identification information of the unauthorized prepaid card to the relay device 2 and prevents the use of the prepaid card and discharges it.
Further, the reading device 1A receives, from the relay device 2, notification data of prepaid card information determined to be an unauthorized prepaid card by another reading device, and immediately receives the prepaid card based on the notification data when the prepaid card CA is loaded. Discard the card, prevent use and eject it.

【0103】次に、上述したプリペイドカードシステム
における処理について、図14及び図15に示すフロー
チャートを参照して説明する。なお、消費処理及び終了
処理については、それぞれ図6及び図8にフローチャー
トを示した第1の実施の形態における消費処理及び終了
処理と実質的に同様である。まず、記録装置3Aにおけ
るエンコード処理について、図14を参照して説明す
る。図14に示すエンコード処理は、記録装置3Aにプ
リペイドカードがセットされるとその都度起動される。
Next, the processing in the above-described prepaid card system will be described with reference to the flowcharts shown in FIGS. Note that the consumption processing and the termination processing are substantially the same as the consumption processing and the termination processing in the first embodiment shown in the flowcharts of FIGS. 6 and 8, respectively. First, the encoding process in the recording device 3A will be described with reference to FIG. The encoding process shown in FIG. 14 is started each time a prepaid card is set in the recording device 3A.

【0104】プリペイドカードがセットされると、ま
ず、エンコード制御部31Aは、例えば記憶部32に格
納された情報に基づき固定情報を生成し、予め設定した
所定の標準暗号鍵KSを用いて暗号処理部36Aにより
暗号化し(ステップS61)、書込処理部33により磁
気ヘッド34を介して、プリペイドカードの情報記憶部
A′の所定の第1及び第2の固定情報領域Aa1及びA
b1に書込む(ステップS62)。次に、距離計測部3
5Aは、書込まれた固定情報を磁気ヘッド34を介して
読み取り、図16に示すように、カードエッジから第1
のトラックTaの固定情報の端部までの距離K1を計測
して、当該プリペイドカードCAに固有の第1の固有暗
号鍵K1を得る(ステップS63)。このとき、第1の
暗号鍵、すなわち距離K1は、カードエッジから固定情
報のデータ部の始端STXまでの距離である。
When the prepaid card is set, first, the encoding control section 31A generates fixed information based on, for example, information stored in the storage section 32 and performs an encryption process using a predetermined standard encryption key KS. The data is encrypted by the unit 36A (step S61), and the first and second fixed information areas Aa1 and Aa of the information storage unit A 'of the prepaid card are written by the write processing unit 33 via the magnetic head 34.
Write to b1 (step S62). Next, the distance measurement unit 3
5A reads the written fixed information via the magnetic head 34 and, as shown in FIG.
Then, a distance K1 to the end of the fixed information of the track Ta is measured to obtain a first unique encryption key K1 unique to the prepaid card CA (step S63). At this time, the first encryption key, that is, the distance K1 is a distance from the card edge to the start end STX of the data part of the fixed information.

【0105】エンコード制御部31Aは、所要の可変情
報を、書込処理部33を介して、暗号処理部36Aによ
り距離計測部35Aで得た第1の固有暗号鍵K1を用い
て暗号化して(ステップS64)、プリペイドカードの
情報記憶部A′の第2のトラックTbの可変情報領域A
b2に書込む(ステップS65)。そして、距離計測部
35Aは、書込まれた第2のトラックTbの可変情報を
磁気ヘッド34を介して読み取り、図16に示すよう
に、第2のトラックTbの固定情報と可変情報との間の
距離K2を計測して、当該プリペイドカードCAに固有
の第2の固有暗号鍵K2を得る(ステップS66)。こ
のとき、第2の暗号鍵、すなわち距離K2は、固定情報
のデータ部の終端ETXから可変情報のデータ部の始端
STXまでの距離である。
The encoding control unit 31A encrypts the required variable information via the writing processing unit 33 by using the first unique encryption key K1 obtained by the distance measurement unit 35A by the encryption processing unit 36A ( Step S64), the variable information area A of the second track Tb of the information storage unit A 'of the prepaid card
Write to b2 (step S65). Then, the distance measuring unit 35A reads the written variable information of the second track Tb via the magnetic head 34 and, as shown in FIG. 16, determines between the fixed information and the variable information of the second track Tb. Is measured to obtain a second unique encryption key K2 unique to the prepaid card CA (step S66). At this time, the second encryption key, that is, the distance K2 is the distance from the end ETX of the data part of the fixed information to the start end STX of the data part of the variable information.

【0106】エンコード制御部31Aは、所要の可変情
報を、書込処理部33を介して、暗号処理部36Aによ
り距離計測部35Aで得た第2の固有暗号鍵K2を用い
て暗号化して(ステップS67)、プリペイドカードの
情報記憶部A′の第1のトラックTaの可変情報領域A
a2に書込み(ステップS68)、プリペイドカードC
Aのエンコード処理を終了する。次に、上述したプリペ
イドカードシステムにおける消費処理は、読書装置1A
のリーダ/ライタ14Aのデータ読書部142にプリペ
イドカードCAがセットされるとその都度起動される。
The encoding control section 31A encrypts the necessary variable information via the writing processing section 33 by the encryption processing section 36A using the second unique encryption key K2 obtained by the distance measurement section 35A ( Step S67), the variable information area A of the first track Ta of the information storage unit A 'of the prepaid card
a2 (step S68), the prepaid card C
The encoding process of A ends. Next, the consumption processing in the above-described prepaid card system is performed by the reading device 1A.
Is activated each time the prepaid card CA is set in the data reading section 142 of the reader / writer 14A.

【0107】処理が開始されると、リーダ/ライタ14
Aの暗号処理部144は、セットされたプリペイドカー
ドCAが正常か否かをチェックする。すなわち、まず、
リーダ/ライタ14Aの暗号処理部144Aが、磁気ヘ
ッド143により、プリペイドカードCAの第1及び第
2のトラックTa及びTbの固定情報領域Aa1及びA
b1から固定情報を読み取って予め設定した標準暗号鍵
KSで復号化し、距離計測部145Aが、カードエッジ
から第1のトラックTaの固定情報の始端STXまでの
距離を計測し、第1の固有暗号鍵K1を得る。そして、
暗号処理部144Aは、データ読書部142を介して磁
気ヘッド143によりプリペイドカードCAの第2のト
ラックTbの可変情報領域Ab2の金額情報等の可変情
報を読出し、第1の固有暗号鍵K1を用いて復号化す
る。
When the processing is started, the reader / writer 14
The encryption processing unit 144 of A checks whether the set prepaid card CA is normal. That is, first,
The encryption processing section 144A of the reader / writer 14A uses the magnetic head 143 to cause the fixed information areas Aa1 and Aa of the first and second tracks Ta and Tb of the prepaid card CA.
The fixed information is read from b1 and decrypted with the standard encryption key KS set in advance. Obtain the key K1. And
The encryption processing unit 144A reads variable information such as price information in the variable information area Ab2 of the second track Tb of the prepaid card CA using the magnetic head 143 via the data reading unit 142, and uses the first unique encryption key K1. To decrypt.

【0108】さらに、距離計測部145Aが、第2のト
ラックTbの固定情報の終端ETXから可変情報の始端
STXまでの距離を計測し、第2の固有暗号鍵K2を得
る。そして、暗号処理部144Aは、データ読書部14
2を介して磁気ヘッド143によりプリペイドカードC
Aの第1のトラックTaの可変情報領域Aa2の金額情
報等の可変情報を読出し、第2の固有暗号鍵K2を用い
て復号化する。暗号処理部144は、読出した可変情報
が正常に復号化できたか否かを確認し、正常に復号化で
きなければ、セットされたプリペイドカードCAは異常
であり、不正な手段により作成されたものであると判定
する。
Further, the distance measuring unit 145A measures the distance from the end ETX of the fixed information of the second track Tb to the start STX of the variable information, and obtains a second unique encryption key K2. Then, the encryption processing unit 144 </ b> A
2 by the magnetic head 143 through the prepaid card C
The variable information such as the amount information of the variable information area Aa2 of the first track Ta of A is read and decrypted using the second unique encryption key K2. The encryption processing unit 144 checks whether or not the read variable information has been successfully decrypted. Is determined.

【0109】読出した記憶情報が正常に復号化できた場
合には、次に、リーダ/ライタ14Aの暗号処理部14
4Aにより、残額目安パンチ孔の位置及び記憶情報にお
ける矛盾の有無を検出する。このとき、残額目安パンチ
孔の位置及び記憶情報に矛盾が検出された場合には、当
該プリペイドカードは異常であるとする。暗号処理部1
44Aにより、異常が検出されたか否かが判定され、異
常が検出された場合には、プリペイドカードCAが不正
であるとして、不正又はエラー表示等を行った後、シス
テムの動作を停止するなどの異常/不正処理を実行す
る。
If the read storage information can be normally decrypted, then the encryption processing unit 14 of the reader / writer 14A
By using 4A, it is detected whether or not there is a contradiction in the position of the remaining standard punch hole and the stored information. At this time, if inconsistency is detected in the position of the remaining amount guide punch hole and the stored information, the prepaid card is determined to be abnormal. Cryptographic processing unit 1
By 44A, it is determined whether or not an abnormality is detected. If an abnormality is detected, the prepaid card CA is determined to be invalid, and after displaying a fraud or error display, the system operation is stopped. Execute abnormal / illegal processing.

【0110】上述した、図6のステップS11に相当す
るカードチェック処理の詳細を図15に示している。カ
ードチェック処理が開始されると、まず、読書制御部1
41は、暗号処理部144Aにより磁気ヘッド143を
介して、プリペイドカードCAの情報記憶部A′の各ト
ラックTa及びTbの固定情報領域Aa1及びAb1か
ら固定情報を読出し(ステップS71)、標準暗号鍵K
Sを用いて復号化する(ステップS72)。距離計測部
145Aは、この固定情報の読み取り時に、カードエッ
ジから第1のトラックTaの固定情報データ部の始端S
TXまでの距離を計測して、当該プリペイドカードCA
に固有の第1の固有暗号鍵K1とするとともに第2のト
ラックTbの固定情報と可変情報との間の距離を計測し
て、当該プリペイドカードCAに固有の第2の固有暗号
鍵K2とする(ステップS73)。ここでは、可変情報
の復号化を行って第2のトラックTbの固定情報と可変
情報との間の距離を計測するものとしたが、可変情報を
復号化しなくともこの距離の計測を行うことができる場
合には、第1の固有暗号鍵K1等を求める前に、第2の
トラックTbの可変情報を読み取って、第2のトラック
Tbの固定情報と可変情報との間の距離を計測する。
FIG. 15 shows details of the card check processing corresponding to step S11 in FIG. 6 described above. When the card check process is started, first, the reading control unit 1
41 reads the fixed information from the fixed information areas Aa1 and Ab1 of the tracks Ta and Tb of the information storage unit A 'of the prepaid card CA via the magnetic head 143 by the encryption processing unit 144A (step S71), K
Decoding is performed using S (step S72). When reading the fixed information, the distance measuring unit 145A reads the start end S of the fixed information data part of the first track Ta from the card edge.
Measure the distance to TX, and check the prepaid card CA
And a distance between the fixed information and the variable information of the second track Tb is measured to obtain a second unique encryption key K2 unique to the prepaid card CA. (Step S73). Here, the distance between the fixed information of the second track Tb and the variable information is measured by decoding the variable information. However, the distance can be measured without decoding the variable information. If possible, the variable information of the second track Tb is read and the distance between the fixed information and the variable information of the second track Tb is measured before obtaining the first unique encryption key K1 and the like.

【0111】また、暗号処理部144Aは、データ読書
部142により磁気ヘッド143を介してプリペイドカ
ードCAの各トラックTa及びTbの可変情報領域Aa
2及びAb2から金額情報等の可変情報を読出し(ステ
ップS74)、先に生成した第1及び第2の固有暗号鍵
K1及びK2を用いて復号化する(ステップS75)。
この場合の第1及び第2のトラックTa及びTbの可変
情報は、第1及び第2の固有暗号鍵K1及びK2をそれ
ぞれ使用して暗号化されており、該第1及び第2の固有
暗号鍵K1及びK2を示す距離は、カードによるばらつ
きを的確に反映し、しかもシステムにおける位置検出誤
差等があっても、当該第1及び第2の固有暗号鍵K1及
びK2を正しく再現できる程度の値とする。
Further, the encryption processing section 144A controls the variable information area Aa of each track Ta and Tb of the prepaid card CA by the data reading section 142 via the magnetic head 143.
The variable information such as the money amount information is read from No. 2 and Ab2 (step S74), and decrypted using the first and second unique encryption keys K1 and K2 generated previously (step S75).
In this case, the variable information of the first and second tracks Ta and Tb is encrypted using the first and second unique encryption keys K1 and K2, respectively, and the first and second unique encryption keys are used. The distances indicating the keys K1 and K2 accurately reflect variations among cards, and are values enough to correctly reproduce the first and second unique encryption keys K1 and K2 even if there is a position detection error in the system. And

【0112】復号の結果、金額情報等の可変情報が正常
に復号化されたか否かが判定され(ステップS76)、
正常に復号化されたと判定されれば、暗号処理部144
Aは、次に、金額情報及びその他の情報相互間、及びこ
れらと残額目安パンチ孔の穿孔状況等との間の矛盾を検
出し(ステップS77)、そのような矛盾があるか否か
を判定する(ステップS78)。矛盾がなければ、暗号
処理部144Aは、当該プリペイドカードCAが正常で
あるとし(ステップS79)、処理を終了して、消費処
理に戻る。
As a result of the decoding, it is determined whether or not variable information such as money amount information has been normally decoded (step S76).
If it is determined that the data has been decrypted normally, the encryption processing unit 144
A then detects inconsistencies between the amount information and other information and between these and the remaining amount punch hole punching state and the like (step S77), and determines whether or not there is such an inconsistency. (Step S78). If there is no contradiction, the encryption processing unit 144A determines that the prepaid card CA is normal (step S79), ends the process, and returns to the consumption process.

【0113】ステップS76において、正常でないと判
定された場合には、異常と判定し(ステップS80)、
処理を終了して、消費処理に戻る。また、ステップS7
8において、矛盾が存在すると判定した場合にも、ステ
ップS80に移行し、処理を終了して、消費処理に戻
る。
If it is determined in step S76 that the state is not normal, it is determined that the state is abnormal (step S80).
The process ends, and returns to the consumption process. Step S7
Also in step 8, when it is determined that there is a contradiction, the process shifts to step S80, ends the process, and returns to the consumption process.

【0114】ここでは、図16に示すカードエッジと、
第1のトラックTaの固定情報領域Aa1の固定情報の
始端STXとの間の距離、及び第2のトラックTbの固
定情報領域Ab1の固定情報と可変情報領域Ab2の可
変情報との間の距離が、プリペイドカードのセット位置
のばらつき、記録装置3Aにおける書込み/読出し用の
磁気ヘッド34の位置のばらつき等によりプリペイドカ
ードCA毎に変動する。上述したように、プリペイドカ
ードCAは、情報記憶部A′を、第1のトラックTaの
固定情報領域Aa1及び可変情報領域Aa2、並びに第
2のトラックTbの固定情報領域Ab1及び可変情報領
域Ab2で構成する。
Here, the card edge shown in FIG.
The distance between the fixed information area Aa1 of the first track Ta and the start point STX of the fixed information and the distance between the fixed information of the fixed information area Ab1 of the second track Tb and the variable information of the variable information area Ab2 are , For each prepaid card CA due to variations in the set position of the prepaid card, variations in the position of the magnetic head 34 for writing / reading in the recording device 3A, and the like. As described above, in the prepaid card CA, the information storage section A 'is divided into the fixed information area Aa1 and the variable information area Aa2 of the first track Ta, and the fixed information area Ab1 and the variable information area Ab2 of the second track Tb. Constitute.

【0115】このようにして、プリペイドカードCAに
予め第1のトラックTaの固定情報を記憶させ、その媒
体毎に固有のカードエッジから該第1のトラックTaの
固定情報の始端STXまでの距離を第1の固有暗号鍵K
1として、プリペイドカードCAの第2のトラックTb
の可変情報を暗号化して書込み、第2のトラックTbの
固定情報と可変情報との間の距離を第2の固有暗号鍵K
2として、第1のトラックTaの可変情報を暗号化して
書込んでエンコードを行い、読書装置1Aは、プリペイ
ドカードCAのカードエッジから第1のトラックTaの
固有情報の始端STXまでの距離を実測して第1の固有
暗号鍵K1を再現し、該第1の固有暗号鍵K1を用いて
第2のトラックTbの可変情報の読出/書込における復
号/暗号化を行い、且つ第2のトラックTbの固有情報
と可変情報との間の距離を実測して第2の固有暗号鍵K
2を再現し、該第2の固有暗号鍵K2を用いて第1のト
ラックTaの可変情報の読出/書込における復号/暗号
化を行うことにより、他のプリペイドカードCAの記憶
情報の複写による不正を的確に検出する。したがって、
正規のプリペイドカードCAの記憶情報を複写すること
により変造又は偽造したプリペイドカードを使用しよう
とする不正を、事前に的確に防止し、変造又は偽造によ
るプリペイドカードの不正使用を未然に阻止することが
可能となる。
In this manner, the fixed information of the first track Ta is stored in the prepaid card CA in advance, and the distance from the card edge unique to the medium to the start end STX of the fixed information of the first track Ta is determined for each medium. First unique encryption key K
1 as the second track Tb of the prepaid card CA
The variable information of the second track Tb is encrypted and written, and the distance between the fixed information and the variable information of the second track Tb is set to the second unique encryption key K.
2, the variable information of the first track Ta is encrypted, written, and encoded, and the reading device 1A measures the distance from the card edge of the prepaid card CA to the start end STX of the unique information of the first track Ta. To reproduce the first unique encryption key K1 and to perform decryption / encryption in reading / writing of the variable information of the second track Tb using the first unique encryption key K1, The distance between the unique information of Tb and the variable information is actually measured to obtain a second unique encryption key K
2 is reproduced, and decryption / encryption in reading / writing of the variable information of the first track Ta is performed using the second unique encryption key K2, thereby copying the storage information of another prepaid card CA. Detect fraud accurately. Therefore,
By duplicating the stored information of a legitimate prepaid card CA, it is possible to appropriately prevent fraudulent attempts to use a falsified or forged prepaid card in advance and prevent improper use of the prepaid card due to falsification or forgery. It becomes possible.

【0116】本発明の第3の実施の形態では、上述した
第2の実施の形態とほぼ同様に情報記憶部が例えば2ト
ラックに形成され、各トラックにおいて可変情報と固定
情報が同一のトラック上にあり、次のようにして暗号鍵
を生成する(図21参照)。一方のトラック、例えば第
2のトラックTbにおけるカードエッジから固定情報の
始端までの距離を計測し、固有暗号鍵K1bとする。そ
して、第2のトラックTb上における固定情報の終端か
ら可変情報の始端までの距離を固有暗号鍵K2bとす
る。これら固有暗号鍵K1b及びK2bを組み合わせた
暗号鍵K1b・K2bで、他方のトラック、例えば第1
のトラックTaの可変情報を暗号化する。
In the third embodiment of the present invention, the information storage section is formed on, for example, two tracks in substantially the same manner as in the above-described second embodiment, and in each track, the variable information and the fixed information are on the same track. And generates an encryption key as follows (see FIG. 21). The distance from the card edge of one track, for example, the second track Tb, to the beginning of the fixed information is measured and used as a unique encryption key K1b. Then, the distance from the end of the fixed information to the start of the variable information on the second track Tb is defined as a unique encryption key K2b. With the encryption keys K1b and K2b combining the unique encryption keys K1b and K2b, the other track, for example, the first track
The variable information of the track Ta is encrypted.

【0117】本発明の第3の実施の形態に係るプリペイ
ドカードシステムの主要部となる読書装置は、図17に
示すように構成されている。図17に示す読書装置1B
は、通信処理部11、消費処理部12、記憶部13及び
リーダ/ライタ14Bを備えている。通信処理部11、
消費処理部12及び記憶部13については、図1及び図
11と同様であり、リーダ/ライタ14Bについては、
図11のリーダ/ライタ14Aとは若干異なる。
A reading device as a main part of a prepaid card system according to a third embodiment of the present invention is configured as shown in FIG. Reading device 1B shown in FIG.
Has a communication processing unit 11, a consumption processing unit 12, a storage unit 13, and a reader / writer 14B. Communication processing unit 11,
The consumption processing unit 12 and the storage unit 13 are the same as those in FIGS. 1 and 11, and the reader / writer 14B is
It is slightly different from the reader / writer 14A of FIG.

【0118】すなわち、通信処理部11は、消費処理部
12と中継装置2との間の通信を行う。通信処理部11
は、例えば、中継装置2からの要求コマンドに対するレ
スポンスとして、読書装置1Bにおけるプリペイドカー
ドの消費金額情報を含む売上情報を記憶部13から読み
出して中継装置2に送信する。消費処理部12は、遊技
媒体等の物品を提供するなどして消費操作を実行する物
販機等に連動し、遊技媒体等の提供に対応するプリペイ
ドカードの消費に基づき、リーダ/ライタ14Bを介し
てプリペイドカードの金額情報等の記憶情報を更新する
とともに、消費金額情報を含む売上情報を記憶部13に
蓄積する。記憶部13は、日常の消費処理部12におけ
る消費金額の処理に基づく売上情報を格納蓄積する。
That is, the communication processing unit 11 performs communication between the consumption processing unit 12 and the relay device 2. Communication processing unit 11
For example, as a response to a request command from the relay device 2, the sales information including the consumption amount information of the prepaid card in the reading device 1 </ b> B is read from the storage unit 13 and transmitted to the relay device 2. The consumption processing unit 12 is linked to a vending machine or the like that performs a consumption operation by providing an article such as a game medium, and through the reader / writer 14B based on the consumption of a prepaid card corresponding to the provision of the game medium. Thus, the storage information such as the amount information of the prepaid card is updated, and the sales information including the consumption amount information is stored in the storage unit 13. The storage unit 13 stores and stores sales information based on daily consumption amount processing in the daily consumption processing unit 12.

【0119】リーダ/ライタ14Bは、プリペイドカー
ド挿入時には、まず、プリペイドカードCAの情報記憶
部A′の第1及び第2のトラックTa及びTb(図21
参照)の固定情報を読み取るとともに、第2のトラック
Tbの固定情報及び可変情報の記録位置を計測し、図2
1に示すように、該プリペイドカードCAの端縁、すな
わちカードエッジから第2のトラックTbの固定情報の
端部までの距離を求め、固有暗号鍵K1bとする。
At the time of inserting the prepaid card, the reader / writer 14B first sets the first and second tracks Ta and Tb (FIG. 21) in the information storage section A 'of the prepaid card CA.
2), and the recording positions of the fixed information and the variable information of the second track Tb are measured, and FIG.
As shown in FIG. 1, the distance from the edge of the prepaid card CA, that is, the card edge to the end of the fixed information of the second track Tb is obtained, and is set as a unique encryption key K1b.

【0120】次に、第2のトラックTbの可変情報の記
録位置を計測し、図21に示すように、当該トラックに
おける固定情報と可変情報との間の距離を求め、固有暗
号鍵K2bとする。第1のトラックTaの可変情報は、
固有暗号鍵K1bとK2bを組み合わせた暗号鍵K1b
・K2bを用いて復号化する。なお、第2のトラックT
bの可変情報は、固定情報と同様の標準暗号鍵KSを用
いて復号化する。このようにして、第1及び第2のトラ
ックTa及びTbの可変情報を読取り、残額情報等を消
費処理部12に与える。
Next, the recording position of the variable information on the second track Tb is measured, and as shown in FIG. 21, the distance between the fixed information and the variable information on the track is determined and used as the unique encryption key K2b. . The variable information of the first track Ta is:
Encryption key K1b combining unique encryption keys K1b and K2b
Decrypt using K2b. Note that the second track T
The variable information b is decrypted using the same standard encryption key KS as the fixed information. In this way, the variable information of the first and second tracks Ta and Tb is read, and the balance information and the like are provided to the consumption processing unit 12.

【0121】リーダ/ライタ14Bは、固有暗号鍵K1
b及びK2bを組み合わせた暗号鍵K1b・K2b及び
標準暗号鍵KSを、当該プリペイドカードCAの各トラ
ックTa及びTbからの可変情報の読出しにおける復号
化に用いるだけでなく、当該プリペイドカードCAの各
トラックTa及びTbへの可変情報の更新時の書込にお
ける暗号化にも用いる。当該プリペイドカードCAの発
行時の初期エンコード情報の書込時にも、第1のトラッ
クTaの可変情報については当該固有暗号鍵K1b及び
K2bを組み合わせた暗号鍵K1b・K2bを用いてい
るため、各固有暗号鍵K1b及びK2bに相当する距離
の計測結果が正しい固有暗号鍵K1b及びK2bに対応
しないときは、当該トラックの可変情報を正しく復号化
して読出すことができず、不正なプリペイドカードが挿
入されたと判定する。可変情報を正しく復号化して読出
すことができたときは、適正なプリペイドカードである
として、次に残額目安パンチ孔を検出して、プリペイド
カードCAに記憶されている金額情報との間で矛盾がな
いか否かを確認する。
The reader / writer 14B uses the unique encryption key K1
b and K2b, the encryption key K1b / K2b and the standard encryption key KS are used not only for decoding in reading the variable information from each track Ta and Tb of the prepaid card CA, but also for each track of the prepaid card CA. It is also used for encryption at the time of updating variable information to Ta and Tb. At the time of writing the initial encoding information at the time of issuing the prepaid card CA, the variable information of the first track Ta uses the encryption keys K1b and K2b combining the unique encryption keys K1b and K2b. If the measurement result of the distance corresponding to the encryption keys K1b and K2b does not correspond to the correct unique encryption keys K1b and K2b, the variable information of the track cannot be correctly decrypted and read, and an incorrect prepaid card is inserted. Is determined. If the variable information can be correctly decoded and read, it is determined that the card is a proper prepaid card, the remaining amount of the punch hole is detected next, and a discrepancy exists between the variable information and the amount information stored in the prepaid card CA. Check if there are any.

【0122】この金額情報は消費処理部12により処理
されて残額情報が記憶部13に書き込まれる。さらに、
該残額情報を消費処理部12における消費金額情報に応
じて更新し、同様にプリペイドカードCAの金額情報を
暗号鍵K1b・K2b及びKSにより暗号化して更新す
る。なお、情報記憶部A′の各トラックの使い分けは、
予め情報の種類及びタイミング等に基づいて決定し、そ
の使い分けに応じてトラック及び暗号鍵を選定する。こ
のとき、更新後の残額に基づき必要に応じて残額目安パ
ンチ孔を穿孔する。
This money amount information is processed by the consumption processing unit 12, and the remaining amount information is written in the storage unit 13. further,
The balance information is updated in accordance with the consumption amount information in the consumption processing unit 12, and similarly, the amount information of the prepaid card CA is encrypted and updated using the encryption keys K1b, K2b and KS. The use of each track in the information storage unit A 'is as follows.
The track and the encryption key are determined in advance based on the type and timing of information, and the track and the encryption key are selected according to the proper use. At this time, a remaining amount guide punch hole is punched as needed based on the updated remaining amount.

【0123】すなわち、リーダ/ライタ14Bは、読書
制御部141、データ読書部142、磁気ヘッド14
3、暗号処理部144B及び距離計測部145Bを有し
ている。読書制御部141は、リーダ/ライタ14にお
ける読書動作全体を制御する。データ読書部142は、
読書制御部141の制御に基づき、磁気ヘッド143を
介してプリペイドカードCAに金額情報等の可変情報の
更新書込を行うとともに、残額に基づいて、所定残額時
には残額目安パンチ孔を穿孔する。
That is, the reader / writer 14B includes a reading control section 141, a data reading section 142, and a magnetic head 14
3. It has an encryption processing unit 144B and a distance measurement unit 145B. The reading control unit 141 controls the entire reading operation in the reader / writer 14. The data reading unit 142
Under the control of the reading control unit 141, the prepaid card CA is updated and written with variable information such as amount information via the magnetic head 143, and based on the remaining amount, a remaining amount guide hole is punched at the time of a predetermined remaining amount.

【0124】磁気ヘッド143は、例えば各トラック毎
に固定情報用の磁気ヘッドエレメントと可変情報用の磁
気ヘッドエレメントとが配設されてなり、データ読書部
142の制御により、プリペイドカードCA上の各トラ
ックの可変情報及び固定情報等の磁気記憶情報を読出す
とともに、暗号処理部144Bの制御により、距離計測
部145Bを介して各トラックの固定情報及び可変情報
を読み取る。距離計測部145Bは、磁気ヘッド143
により第1及び第2のトラックTa及びTbの固定情報
を読み取って、カードエッジから第2のトラックTbの
固定情報端部までの距離を計測して、固有暗号鍵K1b
を生成し、さらに、磁気ヘッド143により各トラック
Ta及びTbの可変情報を読み取って、第2のトラック
Tbの固定情報と可変情報との間隙(距離)を計測し
て、固有暗号鍵K2bを生成する。
The magnetic head 143 is provided with a magnetic head element for fixed information and a magnetic head element for variable information, for example, for each track, and controls each data on the prepaid card CA under the control of the data reading unit 142. The magnetic storage information such as the variable information and the fixed information of the track is read, and the fixed information and the variable information of each track are read via the distance measuring unit 145B under the control of the encryption processing unit 144B. The distance measuring unit 145B includes a magnetic head 143.
Reads the fixed information of the first and second tracks Ta and Tb, measures the distance from the card edge to the end of the fixed information of the second track Tb, and obtains the unique encryption key K1b.
Further, the variable information of each track Ta and Tb is read by the magnetic head 143, the gap (distance) between the fixed information and the variable information of the second track Tb is measured, and the unique encryption key K2b is generated. I do.

【0125】暗号処理部144Bは、データ読書部14
2により、磁気ヘッド143を介して行われる当該プリ
ペイドカードCAの金額情報等の可変情報の読出/書込
に際し、距離計測部145Bにより得られる固有暗号鍵
K1b及びK2bを用いた暗号鍵K1b・K2b及び予
め設定されている標準暗号鍵KSをトラック毎に用いて
復号/暗号化する。すなわち、暗号処理部144Bは、
プリペイドカード挿入時に、距離計測部145Bにより
得られる固有暗号鍵K1b及びK2bに基づく暗号鍵K
1b・K2bを用いて第1のトラックTaの可変情報を
復号化し、所定の標準暗号鍵KSを用いて第2のトラッ
クTbの可変情報を復号化する。当該暗号鍵K1b・K
2b及びKSにより、データ読書部142を介して読出
される情報が正しく復号化されない場合に、不正プリペ
イドカードが挿入されたとして、異常を検出する。この
ように構成される読書装置1Bを含む本発明の第3の実
施の形態に係るプリペイドカードシステムも、実質的に
図2とほぼ同様に構成される。
The encryption processing section 144 B
2, when reading / writing variable information such as the amount information of the prepaid card CA via the magnetic head 143, the encryption keys K1b and K2b using the unique encryption keys K1b and K2b obtained by the distance measuring unit 145B. And decrypting / encrypting using a predetermined standard encryption key KS for each track. That is, the encryption processing unit 144B
When the prepaid card is inserted, the encryption key K based on the unique encryption keys K1b and K2b obtained by the distance measurement unit 145B
The variable information of the first track Ta is decrypted using 1b · K2b, and the variable information of the second track Tb is decrypted using a predetermined standard encryption key KS. The encryption key K1b · K
When the information read through the data reading unit 142 is not correctly decoded by 2b and KS, an abnormality is detected as an unauthorized prepaid card being inserted. The prepaid card system according to the third embodiment of the present invention including the reading device 1B configured as described above has substantially the same configuration as that of FIG.

【0126】このプリペイドカードシステムで使用する
プリペイドカードは、図12に示したプリペイドカード
CAである。すなわち、プリペイドカードCAは、磁性
層を用いた磁気的な情報記憶部A′を持ち、該情報記憶
部A′は、第1のトラックTa及び第2のトラックTb
を有する。第1のトラックTaには、固定情報領域Aa
1及び可変情報領域Aa2が配置され、第2のトラック
Tbには、固定情報領域Ab1及び可変情報領域Ab2
が配置される。第1及び第2のトラックTa及びTbの
固定情報領域Aa1及びAb1には、プリペイドカード
CAのカード識別情報、製造元を示す製造元コード及び
製造日情報等のように、エンコード時に一旦書込んだ後
は、消費等によって変更されることがない固定情報が、
各トラックに適宜振り分けられて書込まれる。この場
合、該固定情報は、各プリペイドカードCAに共通に設
定された所定の標準暗号鍵KSによって暗号化されてい
る。
The prepaid card used in this prepaid card system is the prepaid card CA shown in FIG. That is, the prepaid card CA has a magnetic information storage section A 'using a magnetic layer, and the information storage section A' includes a first track Ta and a second track Tb.
Having. The first track Ta has a fixed information area Aa
1 and a variable information area Aa2, and the second track Tb includes a fixed information area Ab1 and a variable information area Ab2.
Is arranged. Once written in the fixed information areas Aa1 and Ab1 of the first and second tracks Ta and Tb at the time of encoding, such as card identification information of the prepaid card CA, manufacturer code indicating the manufacturer, and manufacturing date information. , Fixed information that does not change due to consumption,
It is allocated to each track and written. In this case, the fixed information is encrypted with a predetermined standard encryption key KS that is commonly set for each prepaid card CA.

【0127】第1及び第2のトラックTa及びTbの可
変情報領域Aa2及びAb2には、残額等の金額情報及
びエラー発生時におけるエラーコード等のように使用・
消費によって随時更新、変更又は追加される可変情報
が、各トラックに適宜振り分けられて書込まれる。第1
のトラックTaの可変情報は、第2のトラックTbから
得た固有暗号鍵K1b及びK2bを用いた暗号鍵K1b
・K2bによって暗号化され、第2のトラックTbの可
変情報は、固定情報と共通の所定の標準暗号鍵KSによ
って暗号化されている。
The variable information areas Aa2 and Ab2 of the first and second tracks Ta and Tb are used for the amount information such as the balance and the error code when an error occurs.
Variable information that is updated, changed, or added as needed by consumption is allocated to each track and written. First
The variable information of the track Ta is an encryption key K1b using the unique encryption keys K1b and K2b obtained from the second track Tb.
The variable information of the second track Tb is encrypted by K2b, and is encrypted by a predetermined standard encryption key KS common to the fixed information.

【0128】図18に示す記録装置3Bは、カード発行
元DにおいてプリペイドカードCAを発行するための装
置である。この記録装置3Bは、プリペイドカードCA
発行時に、プリペイドカードCAの各トラックTa及び
Tbの固定情報領域Aa1及びAb1に固定情報を書込
み、そして可変情報領域Ab2及びAa2に初期可変情
報を書込む。各トラックTa及びTbの固定情報領域A
a1及びAb1への固定情報の書込み、及び第2のトラ
ックTbの可変情報領域Ab2への初期可変情報の書込
みにあたっては、所定の標準暗号鍵KS用いて書込情報
を暗号化する。一方、第1のトラックTaの可変情報領
域Aa2への初期可変情報の書込みにあたっては、それ
に先立って第2のトラックTbの固定情報領域Ab1に
固定情報を、そして可変情報領域Ab2に可変情報を書
込んでおき、カードエッジから該固定情報の端部までの
距離を計測して得られる距離情報を固有暗号鍵K1bと
し、固定情報と可変情報との間の距離を計測して得られ
る距離情報を固有暗号鍵K2bとする。記録装置3B
は、これら固有暗号鍵K1b及びK2bを組み合わせた
暗号鍵K1b・K2bを用いて、第1のトラックTaの
可変情報領域Aa2への書込情報を暗号化する。
The recording device 3B shown in FIG. 18 is a device for issuing a prepaid card CA at the card issuer D. This recording device 3B uses a prepaid card CA
At the time of issuance, the fixed information is written into the fixed information areas Aa1 and Ab1 of each track Ta and Tb of the prepaid card CA, and the initial variable information is written into the variable information areas Ab2 and Aa2. Fixed information area A of each track Ta and Tb
When writing fixed information to a1 and Ab1 and writing initial variable information to the variable information area Ab2 of the second track Tb, the write information is encrypted using a predetermined standard encryption key KS. On the other hand, before writing the initial variable information to the variable information area Aa2 of the first track Ta, the fixed information is written to the fixed information area Ab1 of the second track Tb and the variable information is written to the variable information area Ab2 prior to writing. The distance information obtained by measuring the distance from the card edge to the end of the fixed information is defined as the unique encryption key K1b, and the distance information obtained by measuring the distance between the fixed information and the variable information is obtained. The unique encryption key is K2b. Recording device 3B
Encrypts the information to be written into the variable information area Aa2 of the first track Ta using the encryption keys K1b and K2b obtained by combining the unique encryption keys K1b and K2b.

【0129】すなわち、記録装置3Bは、図18に示す
ように、エンコード制御部31B、記憶部32、書込処
理部33、磁気ヘッド34、距離計測部35B及び暗号
処理部36Bを有している。エンコード制御部31B
は、この記録装置3BにおけるプリペイドカードCAの
エンコード、すなわち初期情報の書込みを制御する。記
憶部32は、エンコード制御部31Bによるエンコード
処理に必要な各種情報及び処理中の一時情報を記憶す
る。書込処理部33は、エンコード制御部31Bにより
制御されて磁気ヘッド34を駆動し、所定情報の書込み
を行う。
That is, as shown in FIG. 18, the recording device 3B has an encoding control unit 31B, a storage unit 32, a writing processing unit 33, a magnetic head 34, a distance measuring unit 35B, and an encryption processing unit 36B. . Encoding control unit 31B
Controls the encoding of the prepaid card CA in the recording device 3B, that is, the writing of the initial information. The storage unit 32 stores various types of information necessary for the encoding process by the encoding control unit 31B and temporary information being processed. The write processing unit 33 drives the magnetic head 34 under the control of the encode control unit 31B to write predetermined information.

【0130】磁気ヘッド34は、この場合、各トラック
毎に固定情報用の磁気ヘッドエレメントと可変情報用の
磁気ヘッドエレメントとが配設されてなり、書込処理部
33により制御されてプリペイドカードCAの第1のト
ラックTaの固定情報領域Aa1及び可変情報領域Aa
2、並びに第2のトラックTbの固定情報領域Ab1及
び可変情報領域Ab2の磁性層に情報を磁気的に書込
む。また磁気ヘッド34は、距離計測部35Bにより制
御されて、第1及び第2のトラックTa及びTbの固定
情報領域Aa1及びAb1に書込まれた固定情報及び第
1及び第2のトラックTa及びTbの可変情報領域Aa
2及びAb2に書込まれた可変情報を読み取る。
In this case, the magnetic head 34 is provided with a magnetic head element for fixed information and a magnetic head element for variable information for each track, and is controlled by the write processing unit 33 to control the prepaid card CA. Fixed information area Aa1 and variable information area Aa of the first track Ta
2, information is magnetically written in the magnetic layers of the fixed information area Ab1 and the variable information area Ab2 of the second track Tb. Further, the magnetic head 34 is controlled by the distance measurement unit 35B, and the fixed information written in the fixed information areas Aa1 and Ab1 of the first and second tracks Ta and Tb and the first and second tracks Ta and Tb. Variable information area Aa
2 and the variable information written in Ab2.

【0131】距離計測部35Bは、磁気ヘッド34によ
り第2のトラックTbの固定情報及び可変情報を読み取
って、第2のトラックTbのカードエッジから固定情報
の端部までの距離及び固定情報と可変情報との間隙を計
測し、それぞれの距離に応じた距離情報を固有暗号鍵K
1b及びK2bとする。そして、距離計測部35Bは、
これらの固有暗号鍵K1b及びK2bを暗号処理部36
Bに供給する。暗号処理部36Bは、書込処理部33に
よる第1及び第2のトラックTa及びTbの固定情報領
域Aa1及びAb1、並びに第2のトラックTbの可変
情報領域Ab2への情報書込に際し、予め設定された所
定の標準暗号鍵KSを用いて書込情報を暗号化する。ま
た、暗号処理部36Bは、書込処理部33による第1の
トラックTaの可変情報領域Aa2への情報書込に際
し、距離計測部35Bにより第2のトラックTaから得
た固有暗号鍵K1b及びK2bを組み合わせた暗号鍵K
1b・K2bを用いて書込情報を暗号化する。
The distance measuring section 35B reads the fixed information and the variable information of the second track Tb with the magnetic head 34, and reads the distance from the card edge of the second track Tb to the end of the fixed information and the fixed information. The gap with the information is measured, and the distance information corresponding to each distance is used as the unique encryption key K.
1b and K2b. And the distance measurement unit 35B
These unique cryptographic keys K1b and K2b are
B. The encryption processing unit 36B is preset when the writing processing unit 33 writes information to the fixed information areas Aa1 and Ab1 of the first and second tracks Ta and Tb and the variable information area Ab2 of the second track Tb. The write information is encrypted using the predetermined standard encryption key KS. Further, when the writing processing unit 33 writes information to the variable information area Aa2 of the first track Ta, the encryption processing unit 36B uses the unique encryption keys K1b and K2b obtained from the second track Ta by the distance measurement unit 35B. Key K that combines
The write information is encrypted using 1b · K2b.

【0132】エンコード制御部31Bは、書込処理部3
3を介して各トラックTa及びTbの固定情報領域Aa
1及びAb1にそれぞれ固定情報を書込むとともに、第
2のトラックTbの可変情報領域Ab2に可変情報を書
込む。さらに、エンコード制御部31Bは、距離計測部
35Bでカードエッジから第2のトラックTbの固定情
報の端部までの距離を求めて、固有暗号鍵K1bを特定
し、且つ第2のトラックTbの固定情報と可変情報との
間の距離(間隙)を求め、第2の固有暗号鍵K2を特定
した後、書込処理部33を介して第1のトラックTaの
可変情報領域Aa2へ可変情報を書込む。この可変情報
の書込の際に、書込処理部33は、暗号処理部36Bに
より、固有暗号鍵K1b及びK2bを組み合わせた暗号
鍵K1b・K2bを用いた暗号化を施す。
The encoding control unit 31 B
3, the fixed information area Aa of each track Ta and Tb
The fixed information is written into the variable information area Ab2 of the second track Tb, while the fixed information is written into the variable information areas Ab1 and Ab1. Furthermore, the encoding control unit 31B determines the distance from the card edge to the end of the fixed information of the second track Tb by the distance measuring unit 35B, specifies the unique encryption key K1b, and fixes the second track Tb. After obtaining the distance (gap) between the information and the variable information and specifying the second unique encryption key K2, the variable information is written to the variable information area Aa2 of the first track Ta via the write processing unit 33. Put in. When writing the variable information, the write processing unit 33 performs encryption using the encryption keys K1b and K2b obtained by combining the unique encryption keys K1b and K2b with the encryption processing unit 36B.

【0133】読書装置1Bは、例えば、遊技媒体の貸出
等を行う物販機に接続されており、物販機が利用者に提
供した遊技媒体等の対価をプリペイドカードCAに記憶
されている金額情報における残額から差し引くことによ
り、プリペイドカードCAの消費を具体化するための装
置である。この読書装置1Bは、プリペイドカードCA
がセットされると、まず、第2のトラックTbの固定情
報領域Ab1の固定情報を読み取って、カードエッジか
ら当該固定情報までの距離を計測して固有暗号鍵K1b
を生成し、さらに該第2のトラックTbの固定情報領域
Ab1の固定情報及び可変情報領域Ab2を読み取っ
て、当該固定情報と可変情報との間の距離を計測して固
有暗号鍵K2bを生成して、これら固有暗号鍵K1b及
びK2bを組み合わせた暗号鍵K1b・K2bを以後の
第1のトラックTaの可変情報の復号及び暗号化に供す
る。
The reading device 1B is connected to, for example, a vending machine for renting out a game medium, etc., and stores the price of the game medium and the like provided by the vending machine to the user in the amount information stored in the prepaid card CA. This is a device for realizing consumption of the prepaid card CA by subtracting it from the balance. This reading device 1B uses a prepaid card CA
Is set, first, the fixed information in the fixed information area Ab1 of the second track Tb is read, the distance from the card edge to the fixed information is measured, and the unique encryption key K1b is read.
And reads the fixed information and the variable information area Ab2 of the fixed information area Ab1 of the second track Tb, and measures the distance between the fixed information and the variable information to generate the unique encryption key K2b. Then, the encryption keys K1b and K2b obtained by combining the unique encryption keys K1b and K2b are used for decryption and encryption of variable information of the first track Ta thereafter.

【0134】読書装置1Bは、プリペイドカードCAの
可変情報領域Aa2及びAb2等の金額情報等を距離計
測部145Bにより得た固有暗号鍵K1b及びK2bを
組み合わせた暗号鍵K1b・K2b、並びに標準暗号鍵
KSを用いて暗号処理部144Bにより復号化した結
果、正常に復号化することができた場合には、当該プリ
ペイドカードCAは正常であると判定し、復号化の結
果、正常に復号化できていないと判定した場合には、当
該プリペイドカードCAは異常であり、不正プリペイド
カードであると判定する。このとき、多くの場合、計測
結果には、経時変化によるレベルの低下及び磁気ヘッド
34と143との相違による計測誤差等が存在する可能
性があるため、距離情報を適宜量子化するなどして、共
通の固有暗号鍵K1b及びK2bとして利用できるよう
にしてもよい。
The reading device 1B includes encryption keys K1b and K2b obtained by combining the unique encryption keys K1b and K2b obtained by the distance measuring unit 145B with the price information of the variable information areas Aa2 and Ab2 of the prepaid card CA, and the standard encryption key. If the result of the decryption by the encryption processing unit 144B using the KS has been successful, the prepaid card CA is determined to be normal, and as a result of the decryption, it has been successfully decrypted. If it is determined that there is no such card, the prepaid card CA is abnormal and it is determined that the card is an unauthorized prepaid card. At this time, in many cases, there is a possibility that the measurement result may include a decrease in level due to a change with time and a measurement error due to a difference between the magnetic heads 34 and 143. Therefore, the distance information is appropriately quantized. , May be used as common unique encryption keys K1b and K2b.

【0135】さらに、読書装置1Bは、プリペイドカー
ドCAの情報記憶部A′の記憶情報及びパンチ孔情報等
に矛盾があるか否かをチェックし、矛盾があれば、当該
プリペイドカードCAに何らかの不正及び不具合がある
と判定する。不正又は不具合があると判定された場合、
読書装置1Bは、中継装置2に不正プリペイドカードの
カード識別情報等を含む検知データを送信するととも
に、当該プリペイドカードの使用を阻止して排出する。
さらに、読書装置1Bは、中継装置2から他の読書装置
で不正プリペイドカードと判定されたプリペイドカード
情報の通知データを受信し、プリペイドカードCAが装
填されると直ちに該通知データに基づいて当該プリペイ
ドカードを弁別し、使用を阻止して排出する。
Further, the reading device 1B checks whether there is any inconsistency in the information stored in the information storage unit A 'of the prepaid card CA, the punch hole information, and the like. And that there is a defect. If it is determined to be fraudulent or defective,
The reading device 1B transmits the detection data including the card identification information of the unauthorized prepaid card and the like to the relay device 2, and prevents the use of the prepaid card and discharges it.
Further, the reading device 1B receives, from the relay device 2, notification data of prepaid card information determined to be an unauthorized prepaid card by another reading device, and immediately after the prepaid card CA is loaded, the prepaid card based on the notification data. Discard the card, prevent use and eject it.

【0136】次に、上述したプリペイドカードシステム
における処理について、図19及び図20に示すフロー
チャートを参照して説明する。なお、消費処理及び終了
処理については、それぞれ図6及び図8にフローチャー
トを示した第1の実施の形態における消費処理及び終了
処理と実質的に同様である。まず、記録装置3Bにおけ
るエンコード処理について、図19を参照して説明す
る。図19に示すエンコード処理は、記録装置3Bにプ
リペイドカードがセットされるとその都度起動される。
プリペイドカードがセットされると、まず、エンコード
制御部31Bは、例えば記憶部32に格納された情報に
基づき固定情報を生成し、予め設定した所定の標準暗号
鍵KSを用いて暗号処理部36Bにより暗号化し(ステ
ップS91)、書込処理部33により磁気ヘッド34を
介して、プリペイドカードの情報記憶部A′の所定の第
1及び第2の固定情報領域Aa1及びAb1に書込む
(ステップS92)。
Next, the processing in the above-described prepaid card system will be described with reference to the flowcharts shown in FIGS. Note that the consumption processing and the termination processing are substantially the same as the consumption processing and the termination processing in the first embodiment shown in the flowcharts of FIGS. 6 and 8, respectively. First, the encoding process in the recording device 3B will be described with reference to FIG. The encoding process shown in FIG. 19 is activated each time a prepaid card is set in the recording device 3B.
When the prepaid card is set, first, the encoding control unit 31B generates fixed information based on the information stored in the storage unit 32, for example, and the encryption processing unit 36B uses the predetermined standard encryption key KS to set the fixed information. The data is encrypted (step S91), and written into the predetermined first and second fixed information areas Aa1 and Ab1 of the information storage unit A 'of the prepaid card by the write processing unit 33 via the magnetic head 34 (step S92). .

【0137】次に、エンコード制御部31Bは、第2の
トラックTb用の初期可変情報を生成し、所定の標準暗
号鍵KSを用いて暗号処理部36Bにより暗号化し(ス
テップS93)、書込処理部33により磁気ヘッド34
を介して、プリペイドカードの情報記憶部A′の所定の
第2の可変情報領域Ab2に書込む(ステップS9
4)。次に、距離計測部35Aは、第2のトラックTb
に書込まれた固定情報及び可変情報を磁気ヘッド34を
介して読み取り、図21に示すように、カードエッジか
ら第2のトラックTbの固定情報の端部までの距離K1
bを計測して、当該プリペイドカードに固有の固有暗号
鍵K1bを得るとともに、該第2のトラックTbの固定
情報と可変情報との間の距離K2bを計測して、当該プ
リペイドカードに固有の固有暗号鍵K2bを得る(ステ
ップS95)。このとき、暗号鍵、すなわち距離K1b
は、カードエッジか第2のトラックTbにおける固定情
報のデータ部の始端STXまでの距離である。
Next, the encoding control unit 31B generates initial variable information for the second track Tb, encrypts it using the predetermined standard encryption key KS by the encryption processing unit 36B (step S93), and performs the writing process. The magnetic head 34 by the part 33
Is written in the predetermined second variable information area Ab2 of the information storage section A 'of the prepaid card (step S9).
4). Next, the distance measuring unit 35A performs the second track Tb
The fixed information and the variable information written to the second track Tb are read from the card edge to the end of the fixed information of the second track Tb as shown in FIG.
b, a unique encryption key K1b unique to the prepaid card is obtained, and a distance K2b between fixed information and variable information of the second track Tb is measured to obtain a unique encryption key K1b unique to the prepaid card. An encryption key K2b is obtained (step S95). At this time, the encryption key, that is, the distance K1b
Is the distance from the card edge to the start STX of the data portion of the fixed information in the second track Tb.

【0138】エンコード制御部31Bは、所要の可変情
報を、書込処理部33を介して、暗号処理部36Bによ
り距離計測部35Bで得た固有暗号鍵K1b及びK2b
を組み合わせた暗号鍵K1b・K2bを用いて暗号化し
て(ステップS96)、プリペイドカードの情報記憶部
A′の第1のトラックTaの可変情報領域Aa2に書込
み(ステップS97)、プリペイドカードCAのエンコ
ード処理を終了する。上述したプリペイドカードシステ
ムにおける消費処理は、読書装置1Bのリーダ/ライタ
14Bのデータ読書部142にプリペイドカードCAが
セットされるとその都度起動される。
The encoding control unit 31B transmits the required variable information via the writing processing unit 33 to the unique encryption keys K1b and K2b obtained by the encryption processing unit 36B at the distance measuring unit 35B.
Is encrypted using the encryption key K1b / K2b (step S96), and is written into the variable information area Aa2 of the first track Ta of the information storage unit A 'of the prepaid card (step S97), and the prepaid card CA is encoded. The process ends. The above-described consumption processing in the prepaid card system is activated each time the prepaid card CA is set in the data reading unit 142 of the reader / writer 14B of the reading device 1B.

【0139】処理が開始されると、リーダ/ライタ14
Bの暗号処理部144Bは、セットされたプリペイドカ
ードCAが正常か否かをチェックする。すなわち、ま
ず、リーダ/ライタ14Bの暗号処理部144Bが、磁
気ヘッド143により、プリペイドカードCAの第1及
び第2のトラックTa及びTbの固定情報領域Aa1及
びAb1から固定情報を読取り、且つ第2のトラックT
bの可変情報領域Ab2から可変情報を読取って、予め
設定した標準暗号鍵KSで復号化し、距離計測部145
Bが、カードエッジから第2のトラックTbの固定情報
の始端STXまでの距離を計測して、固有暗号鍵K1b
を得る。そして、距離計測部145Bは、第2のトラッ
クTbにおける固定情報の終端から可変情報の始端まで
の距離を計測して、固有暗号鍵K2bを得る。固有暗号
鍵K1b及びK2bを組み合わせて暗号鍵K1b・K2
bを生成する。
When the process is started, the reader / writer 14
The encryption processing unit 144B of B checks whether the set prepaid card CA is normal. That is, first, the encryption processing unit 144B of the reader / writer 14B reads the fixed information from the fixed information areas Aa1 and Ab1 of the first and second tracks Ta and Tb of the prepaid card CA with the magnetic head 143, and Track T
b, reads the variable information from the variable information area Ab2, decrypts it with the standard encryption key KS set in advance,
B measures the distance from the card edge to the beginning STX of the fixed information of the second track Tb, and determines the unique encryption key K1b
Get. Then, the distance measuring unit 145B measures the distance from the end of the fixed information to the start of the variable information on the second track Tb, and obtains the unique encryption key K2b. Combining the unique encryption keys K1b and K2b, the encryption keys K1b and K2
Generate b.

【0140】さらに、暗号処理部144Bは、データ読
書部142を介して磁気ヘッド143によりプリペイド
カードCAの第1のトラックTaの可変情報領域Aa2
の金額情報等の可変情報を読出し、暗号鍵K1b・K2
bを用いて復号化する。暗号処理部144Bは、読出し
た可変情報が正常に復号化できたか否かを確認し、正常
に復号化できなければ、セットされたプリペイドカード
CAは異常であり、不正な手段により作成されたもので
あると判定する。
Further, the encryption processing section 144B uses the magnetic head 143 via the data reading / writing section 142 to change the variable information area Aa2 of the first track Ta of the prepaid card CA.
Variable information such as the amount information of the encryption key K1b / K2
b. The encryption processing unit 144B checks whether or not the read variable information has been decrypted normally. If the variable information cannot be decrypted normally, the set prepaid card CA is abnormal, and the Is determined.

【0141】読出した記憶情報が正常に復号化できた場
合には、次に、リーダ/ライタ14Bの暗号処理部14
4Bにより、残額目安パンチ孔の位置及び記憶情報にお
ける矛盾の有無を検出する。このとき、残額目安パンチ
孔の位置及び記憶情報に矛盾が検出された場合には、当
該プリペイドカードCAは異常であるとする。
If the read storage information has been successfully decrypted, then the encryption processing unit 14 of the reader / writer 14B
By using 4B, the position of the remaining standard punch hole and the presence or absence of inconsistency in the stored information are detected. At this time, if inconsistency is detected in the position of the remaining amount guide punch hole and the stored information, it is determined that the prepaid card CA is abnormal.

【0142】暗号処理部144Bにより、異常が検出さ
れたか否かが判定され、異常が検出された場合には、プ
リペイドカードCAが不正であるとして、不正又はエラ
ー表示等を行った後、システムの動作を停止するなどの
異常/不正処理を実行する。
It is determined by the encryption processing section 144B whether or not an abnormality has been detected. If an abnormality has been detected, the prepaid card CA is determined to be invalid, and after displaying a fraud or error, etc., the system Execute abnormal / illegal processing such as stopping operation.

【0143】上述した図6のステップS11に相当する
カードチェック処理の詳細を図20に示している。カー
ドチェック処理が開始されると、まず、読書制御部14
1は、暗号処理部144Bにより磁気ヘッド143を介
して、プリペイドカードCAの情報記憶部A′の第1及
び第2のトラックTa及びTbの固定情報領域Aa1及
びAb1から固定情報を、そして第2のトラックTbの
可変情報領域Ab2から可変情報を読出し(ステップS
101)、標準暗号鍵KSを用いて復号化する(ステッ
プS102)。距離計測部145Bは、これら固定情報
及び可変情報の読み取り時に、カードエッジから第2の
トラックTbの固定情報データ部の始端STXまでの距
離を計測して、当該プリペイドカードCAに固有の固有
暗号鍵K1bとするとともに第2のトラックTbの固定
情報と可変情報との間の距離を計測して、当該プリペイ
ドカードCAに固有の固有暗号鍵K2bとする(ステッ
プS103)。
FIG. 20 shows details of the card check processing corresponding to step S11 in FIG. 6 described above. When the card check process is started, first, the reading control unit 14
Reference numeral 1 denotes fixed information from the fixed information areas Aa1 and Ab1 of the first and second tracks Ta and Tb of the information storage unit A 'of the prepaid card CA via the magnetic head 143 by the encryption processing unit 144B, and the second Of the variable information from the variable information area Ab2 of the track Tb (step S
101), decryption is performed using the standard encryption key KS (step S102). When reading the fixed information and the variable information, the distance measuring unit 145B measures the distance from the card edge to the start end STX of the fixed information data section of the second track Tb, and reads the unique encryption key unique to the prepaid card CA. K1b and the distance between the fixed information and the variable information of the second track Tb are measured to obtain a unique encryption key K2b unique to the prepaid card CA (step S103).

【0144】また、暗号処理部144Bは、データ読書
部142により磁気ヘッド143を介してプリペイドカ
ードCAの第1のトラックTaの可変情報領域Aa2か
ら金額情報等の可変情報を読出し(ステップS10
4)、先に生成した固有暗号鍵K1b及びK2bの組み
合わせからなる暗号鍵K1b・K2bを用いて復号化す
る(ステップS105)。この場合の第1のトラックT
aの可変情報は、暗号鍵K1b・K2bを使用して暗号
化されており、該固有暗号鍵K1b及びK2bを示す距
離は、カードによるばらつきを的確に反映し、しかもシ
ステムにおける位置検出誤差等があっても、当該固有暗
号鍵K1b及びK2bを正しく再現できる程度の値とす
る。
Further, the encryption processing section 144B reads out variable information such as amount information from the variable information area Aa2 of the first track Ta of the prepaid card CA by the data reading section 142 via the magnetic head 143 (step S10).
4), decryption is performed using the encryption keys K1b and K2b, which are a combination of the previously generated unique encryption keys K1b and K2b (step S105). The first track T in this case
The variable information a is encrypted using the encryption keys K1b and K2b, and the distance indicating the unique encryption keys K1b and K2b accurately reflects the variation due to the card, and furthermore, the position detection error and the like in the system are reduced. Even so, the value is set to such a value that the unique encryption keys K1b and K2b can be correctly reproduced.

【0145】復号化の結果、金額情報等の可変情報が正
常に復号化されたか否かが判定され(ステップS10
6)、正常に復号化されたと判定されれば、暗号処理部
144Bは、次に、金額情報及びその他の情報相互間、
及びこれらと残額目安パンチ孔の穿孔状況等との間の矛
盾を検出し(ステップS107)、そのような矛盾があ
るか否かを判定する(ステップS108)。矛盾がなけ
れば、暗号処理部144Bは、当該プリペイドカードC
Aが正常であるとし(ステップS109)、処理を終了
して、消費処理に戻る。
As a result of the decoding, it is determined whether or not variable information such as money amount information has been normally decoded (step S10).
6) If it is determined that the data has been decrypted normally, the encryption processing unit 144B then proceeds to execute
And a contradiction between them and the remaining punch amount of the reference hole is detected (step S107), and it is determined whether or not there is such a contradiction (step S108). If there is no contradiction, the encryption processing unit 144B sends the prepaid card C
Assuming that A is normal (step S109), the process ends, and the process returns to the consumption process.

【0146】ステップS106において、正常でないと
判定された場合には、異常と判定し(ステップS11
0)、処理を終了して、消費処理に戻る。また、ステッ
プS108において、矛盾が存在すると判定した場合に
も、ステップS110に移行し、処理を終了して、消費
処理に戻る。
If it is determined in step S106 that the state is not normal, it is determined that the state is abnormal (step S11).
0), end the process and return to the consumption process. Also, in step S108, when it is determined that there is a contradiction, the process shifts to step S110, ends the process, and returns to the consumption process.

【0147】ここでは、図21に示すカードエッジと、
第2のトラックTbの固定情報領域Ab1の固定情報の
始端(STX)との間の距離、及び第2のトラックTb
の固定情報領域Ab1の固定情報と可変情報領域Ab2
の可変情報との間の距離が、プリペイドカードのセット
位置のばらつき、記録装置3Bにおける書込み/読出し
用の磁気ヘッド34の位置のばらつき等によりプリペイ
ドカードCA毎に変動する。
Here, the card edge shown in FIG.
The distance between the fixed information area Ab1 of the second track Tb and the start end (STX) of the fixed information, and the second track Tb
Of the fixed information area Ab1 and the variable information area Ab2
Of the prepaid card CA varies depending on the set position of the prepaid card, the position of the magnetic head 34 for writing / reading in the recording device 3B, and the like.

【0148】このようにして、プリペイドカードCAに
予め第1及び第2のトラックTa及びTbの固定情報を
記憶させ、その媒体毎に固有のカードエッジから該第2
のトラックTbの固定情報の始端STXまでの距離を固
有暗号鍵K1bとし、第2のトラックTbの固定情報と
可変情報との間の距離を固有暗号鍵K2bとして、これ
らの組み合わせによる暗号鍵K1b・K2bを用いて第
1のトラックTaの可変情報を暗号化して書込んでエン
コードを行い、読書装置1Bは、プリペイドカードCA
のカードエッジから第2のトラックTbの固有情報の始
端STXまでの距離を実測して固有暗号鍵K1aを再現
し、且つ第2のトラックTbの固有情報と可変情報との
間の距離を実測して固有暗号鍵K2bを再現し、これら
固有暗号鍵K1b及びK2bを組合わせた暗号鍵K1b
・K2bを用いて第1のトラックTaの可変情報の読出
/書込における復号/暗号化を行うことにより、他のプ
リペイドカードCAの記憶情報の複写による不正を的確
に検出する。したがって、正規のプリペイドカードCA
の記憶情報を複写することにより変造又は偽造したプリ
ペイドカードを使用しようとする不正を、事前に的確に
防止し、変造又は偽造によるプリペイドカードの不正使
用を未然に阻止することが可能となる。
In this way, the fixed information of the first and second tracks Ta and Tb is stored in the prepaid card CA in advance, and the second information is obtained from the card edge peculiar to each medium.
And the distance between the fixed information and the variable information of the second track Tb as the unique encryption key K2b, and the distance between the fixed information and the variable information of the second track Tb as the unique encryption key K1b. The variable information of the first track Ta is encrypted using K2b, written and encoded, and the reading device 1B reads the prepaid card CA.
Is measured from the card edge of the second track Tb to the start end STX of the unique information of the second track Tb to reproduce the unique encryption key K1a, and the distance between the unique information of the second track Tb and the variable information is actually measured. To reproduce the unique encryption key K2b, and combine the unique encryption keys K1b and K2b with the encryption key K1b.
By performing decryption / encryption in reading / writing of the variable information of the first track Ta using K2b, an illegality due to copying of the stored information of another prepaid card CA is accurately detected. Therefore, the regular prepaid card CA
By duplicating the stored information, it is possible to accurately prevent in advance the use of a falsified or forged prepaid card in advance and prevent improper use of the falsified or forged prepaid card.

【0149】上述では、第2のトラックTbにおけるカ
ードエッジから固定情報の始端までの距離を計測し、固
有暗号鍵K1bとし、第2のトラックTb上における固
定情報の終端から可変情報の始端までの距離を固有暗号
鍵K2bとする。これら固有暗号鍵K1b及びK2bを
組み合わせた暗号鍵K1b・K2bで、第1のトラック
のTaの可変情報を暗号化するようにした。これと同様
に、例えば第1のトラックTaにおけるカードエッジか
ら固定情報の始端までの距離を計測し、固有暗号鍵K1
aとし、第1のトラックTa上における固定情報の終端
から可変情報の始端までの距離を固有暗号鍵K2aとす
る。これら固有暗号鍵K1a及びK2aを組み合わせた
暗号鍵K1a・K2aで、第1のトラックのTaの可変
情報を暗号化するようにしてもよい。このシステムは、
3個以上の多数のトラックにより情報記憶部を構成した
場合にも適用することができる。
In the above description, the distance from the card edge on the second track Tb to the beginning of the fixed information is measured and used as the unique encryption key K1b, from the end of the fixed information on the second track Tb to the beginning of the variable information. The distance is defined as a unique encryption key K2b. The variable information of Ta of the first track is encrypted with the encryption keys K1b and K2b obtained by combining the unique encryption keys K1b and K2b. Similarly, the distance from the card edge in the first track Ta to the start of the fixed information is measured, and the unique encryption key K1 is determined.
a, and the distance from the end of the fixed information to the start of the variable information on the first track Ta is set as the unique encryption key K2a. The Ta variable information of the first track may be encrypted with the encryption keys K1a and K2a that combine these unique encryption keys K1a and K2a. This system is
The present invention can also be applied to a case where the information storage unit is configured by a large number of three or more tracks.

【0150】本発明の第4の実施の形態では、上述した
第3の実施の形態とほぼ同様に情報記憶部が例えば2ト
ラックに形成され、各トラックにおいて可変情報と固定
情報が同一のトラック上にあり、次のようにして暗号鍵
を生成する(図24参照)。同一トラック上に固定情報
と可変情報が書込まれている場合、これら固定情報と可
変情報とは、通常の場合それぞれ異なる磁気ヘッドエレ
メントによって読取り/書込みされる。すなわち、記録
装置には、固定情報書込み用の磁気ヘッドエレメントと
可変情報書込み用の磁気ヘッドエレメントとが設けら
れ、読書装置には、固定情報読取り用の磁気ヘッドエレ
メントと可変情報読取り/書込み用の磁気ヘッドエレメ
ントとが設けられる。
In the fourth embodiment of the present invention, the information storage section is formed on, for example, two tracks, and the variable information and the fixed information are on the same track in each track, in substantially the same manner as in the third embodiment. And an encryption key is generated as follows (see FIG. 24). When fixed information and variable information are written on the same track, these fixed information and variable information are usually read / written by different magnetic head elements. That is, the recording apparatus is provided with a magnetic head element for writing fixed information and a magnetic head element for writing variable information, and the reading apparatus is provided with a magnetic head element for reading fixed information and a magnetic head element for reading / writing variable information. And a magnetic head element.

【0151】固定情報は、カードの発行時に一旦書込ま
れたら以後書き換えられることはなく、初期情報をその
まま保持する。これに対して、可変情報は、読書装置に
おける更新の都度書き換えられ、読書装置の可変情報読
取り/書込み用の磁気ヘッドエレメントの配設位置及び
プリペイドカード寸法のばらつきに起因して、書換えに
より記録位置が変化する。一般に可変情報の書換えによ
り、該可変情報の記録位置は、固定情報側に移動する傾
向があり、固定情報の記録領域に一部がオーバラップし
て記録されることも多い。そこで、一方のトラック、例
えば第2のトラックTbにおける固定情報と可変情報オ
ーバラップ部分を検出して、当該部分の信号波形を抽出
し、該信号波形に基づいて固有暗号鍵KLを生成する
(図25及び図26参照)。この固有暗号鍵KLで、他
方のトラック、例えば第1のトラックTaの可変情報を
暗号化する。本発明の第4の実施の形態に係るプリペイ
ドカードシステムの主要部となる読書装置は、図22に
示すように構成されている。図22に示す読書装置1C
は、通信処理部11、消費処理部12、記憶部13及び
リーダ/ライタ14Cを備えている。通信処理部11、
消費処理部12及び記憶部13については、図1、図1
1及び図17と同様であり、リーダ/ライタ14Cにつ
いては、図11のリーダ/ライタ14A及び図17のリ
ーダ/ライタ14Bとは若干異なる。
Once the fixed information is written at the time of issuance of the card, it is not rewritten thereafter, and the initial information is held as it is. On the other hand, the variable information is rewritten each time an update is performed in the reading device, and the recording position is changed by rewriting due to the variation in the arrangement position of the magnetic head element for reading / writing the variable information and the dimensions of the prepaid card of the reading device. Changes. Generally, the rewriting of the variable information tends to cause the recording position of the variable information to move to the fixed information side, and the recording position of the fixed information is often partially overlapped and recorded. Thus, a portion where fixed information and variable information overlap in one track, for example, the second track Tb, is detected, a signal waveform of the portion is extracted, and a unique encryption key KL is generated based on the signal waveform (FIG. 25 and FIG. 26). The variable information of the other track, for example, the first track Ta is encrypted with the unique encryption key KL. A reading device as a main part of a prepaid card system according to a fourth embodiment of the present invention is configured as shown in FIG. Reading device 1C shown in FIG.
Has a communication processing unit 11, a consumption processing unit 12, a storage unit 13, and a reader / writer 14C. Communication processing unit 11,
The consumption processing unit 12 and the storage unit 13 are described in FIGS.
1 and FIG. 17, and the reader / writer 14C is slightly different from the reader / writer 14A of FIG. 11 and the reader / writer 14B of FIG.

【0152】すなわち、通信処理部11は、消費処理部
12と中継装置2との間の通信を行う。通信処理部11
は、例えば、中継装置2からの要求コマンドに対するレ
スポンスとして、読書装置1Cにおけるプリペイドカー
ドの消費金額情報を含む売上情報を記憶部13から読み
出して中継装置2に送信する。消費処理部12は、遊技
媒体等の物品を提供するなどして消費操作を実行する物
販機等に連動し、遊技媒体等の提供に対応するプリペイ
ドカードの消費に基づき、リーダ/ライタ14Cを介し
てプリペイドカードの金額情報等の記憶情報を更新する
とともに、消費金額情報を含む売上情報を記憶部13に
蓄積する。記憶部13は、日常の消費処理部12におけ
る消費金額の処理に基づく売上情報を格納蓄積する。リ
ーダ/ライタ14Cは、プリペイドカードCB挿入時に
は、まず、プリペイドカードCBの情報記憶部A″の第
1及び第2のトラックTa及びTb(図21参照)の固
定情報を読み取るとともに、第2のトラックTbの固定
情報と可変情報とのオーバラップ部分を検出して、図2
5に示すような該オーバラップ部分の固定情報の信号と
可変情報の信号とが重畳されて形成される図26のよう
な合成信号波形を抽出する。
That is, the communication processing unit 11 performs communication between the consumption processing unit 12 and the relay device 2. Communication processing unit 11
For example, as a response to a request command from the relay device 2, the sales information including the consumption amount information of the prepaid card in the reading device 1C is read from the storage unit 13 and transmitted to the relay device 2. The consumption processing unit 12 is linked to a vending machine or the like that performs a consumption operation by providing an article such as a game medium, and via the reader / writer 14C based on the consumption of a prepaid card corresponding to the provision of the game medium and the like. Then, the storage information such as the price information of the prepaid card is updated, and the sales information including the consumption amount information is stored in the storage unit 13. The storage unit 13 stores and stores sales information based on daily consumption amount processing in the daily consumption processing unit 12. When the prepaid card CB is inserted, the reader / writer 14C first reads the fixed information of the first and second tracks Ta and Tb (see FIG. 21) of the information storage unit A ″ of the prepaid card CB, and reads the second track. The overlap between the fixed information and the variable information of Tb is detected, and FIG.
A composite signal waveform as shown in FIG. 26 formed by superimposing the signal of the fixed information and the signal of the variable information in the overlap portion as shown in FIG. 5 is extracted.

【0153】次に、該第2のトラックTbの固定情報と
可変情報とのオーバラップ部分の信号波形を例えばPC
M(パルス符号変調)等のA/D(アナログ−ディジタ
ル)変換により量子化して、固有暗号鍵KLとする。第
1のトラックTaの可変情報は、固有暗号鍵KLを用い
て復号化する。なお、第2のトラックTbの可変情報
は、固定情報と同様の標準暗号鍵KSを用いて復号化す
る。このようにして、第1及び第2のトラックTa及び
Tbの可変情報を読取り、残額情報等を消費処理部12
に与える。
Next, the signal waveform of the overlapping portion between the fixed information and the variable information of the second track Tb is represented by, for example, PC
Quantization is performed by A / D (analog-digital) conversion such as M (pulse code modulation) to obtain a unique encryption key KL. The variable information of the first track Ta is decrypted using the unique encryption key KL. Note that the variable information of the second track Tb is decrypted using the same standard encryption key KS as the fixed information. In this manner, the variable information of the first and second tracks Ta and Tb is read, and the balance information and the like are read by the consumption processing unit 12.
Give to.

【0154】リーダ/ライタ14Cは、固有暗号鍵KL
及び標準暗号鍵KSを、当該プリペイドカードCBの各
トラックTa及びTbからの可変情報の読出しにおける
復号化に用いるだけでなく、当該プリペイドカードCB
の各トラックTa及びTbへの可変情報の更新時の書込
における暗号化にも用いる。当該プリペイドカードCB
の発行時の初期エンコード情報の書込時には、第1のト
ラックTaの可変情報については、第2のトラックTb
における固定情報と可変情報とのオーバラップ部分が発
生していないので標準暗号鍵KSを用いる。読書装置1
C等による1回以上の更新書込の結果、第2のトラック
Tbに固定情報と可変情報とのオーバラップ部分が発生
すれば、以後は、該オーバラップ部分の信号波形に基づ
く固有暗号鍵KLを用いて書込まれる。
The reader / writer 14C uses the unique encryption key KL
And the standard encryption key KS are used not only for decryption in reading the variable information from the tracks Ta and Tb of the prepaid card CB, but also for the prepaid card CB.
Is also used for encryption when writing variable information to each of the tracks Ta and Tb. The prepaid card CB
At the time of writing the initial encoding information at the time of issuance of the second track Tb,
Since the overlapping portion between the fixed information and the variable information does not occur, the standard encryption key KS is used. Reading device 1
As a result of one or more update writes by C or the like, if an overlapping portion between the fixed information and the variable information occurs in the second track Tb, the unique encryption key KL based on the signal waveform of the overlapping portion thereafter. Written using

【0155】このため、第2のトラックTbにおいて、
固定情報と可変情報とのオーバラップ部分が検出された
場合、該オーバラップ部分の信号波形を量子化した結果
が、正しい固有暗号鍵KLに対応しないときは、第1の
トラックTaの可変情報を正しく復号化して読出すこと
ができず、不正なプリペイドカードが挿入されたと判定
する。第1のトラックTaの可変情報を正しく復号化し
て読出すことができたときは、適正なプリペイドカード
であるとして、次に残額目安パンチ孔を検出して、プリ
ペイドカードCBに記憶されている金額情報との間で矛
盾がないか否かを確認する。
Therefore, in the second track Tb,
When an overlap portion between the fixed information and the variable information is detected, if the result of quantizing the signal waveform of the overlap portion does not correspond to the correct unique encryption key KL, the variable information of the first track Ta is replaced with the variable information. It cannot be decrypted and read correctly, and it is determined that an unauthorized prepaid card has been inserted. If the variable information of the first track Ta can be correctly decoded and read, it is determined that the card is an appropriate prepaid card, and the remaining amount of the punch hole is detected, and the amount stored in the prepaid card CB is detected. Check if there is any inconsistency with the information.

【0156】この金額情報は消費処理部12により処理
されて残額情報が記憶部13に書き込まれる。さらに、
該残額情報を消費処理部12における消費金額情報に応
じて更新し、同様にプリペイドカードCBの金額情報を
暗号鍵KL及びKSにより暗号化して更新する。なお、
情報記憶部A″の各トラックの使い分けは、予め情報の
種類及びタイミング等に基づいて決定し、その使い分け
に応じてトラック及び暗号鍵を選定する。このとき、更
新後の残額に基づき必要に応じて残額目安パンチ孔を穿
孔する。
This money information is processed by the consumption processing unit 12 and the remaining money information is written into the storage unit 13. further,
The balance information is updated in accordance with the consumption amount information in the consumption processing unit 12, and similarly, the amount information of the prepaid card CB is encrypted and updated using the encryption keys KL and KS. In addition,
The proper use of each track in the information storage unit A ″ is determined in advance based on the type and timing of information and the like, and the track and the encryption key are selected according to the proper use. Drill a punch hole with the remaining amount.

【0157】すなわち、リーダ/ライタ14Cは、読書
制御部141、データ読書部142、磁気ヘッド14
3、暗号処理部144C及び波形解析部146を有して
いる。読書制御部141は、リーダ/ライタ14Cにお
ける読書動作全体を制御する。データ読書部142は、
読書制御部141の制御に基づき、磁気ヘッド143を
介してプリペイドカードCBに金額情報等の可変情報の
更新書込を行うとともに、残額に基づいて、所定残額時
には残額目安パンチ孔を穿孔する。
That is, the reader / writer 14C comprises a reading control unit 141, a data reading unit 142, and a magnetic head 14
3. It has an encryption processing unit 144C and a waveform analysis unit 146. The reading control unit 141 controls the entire reading operation in the reader / writer 14C. The data reading unit 142
Under the control of the reading control unit 141, the prepaid card CB is updated and written with variable information such as amount information via the magnetic head 143, and based on the remaining amount, a remaining amount guide hole is punched when a predetermined remaining amount is reached.

【0158】磁気ヘッド143は、例えば各トラック毎
に固定情報用の磁気ヘッドエレメントと可変情報用の磁
気ヘッドエレメントとが配設されてなり、データ読書部
142の制御により、プリペイドカードCB上の各トラ
ックの可変情報及び固定情報等の磁気記憶情報を読出す
とともに、暗号処理部144Cの制御により、波形解析
部146を介して各トラックの固定情報及び可変情報を
読み取る。波形解析部146は、磁気ヘッド143によ
り第2のトラックTbの記録情報を読み取って、第2の
トラックTbの固定情報と可変情報とのオーバラップ部
分を検出し、該オーバラップ部分の合成信号波形をPC
M等のA/D変換により量子化して、固有暗号鍵KLを
生成する。
The magnetic head 143 is provided with, for example, a fixed information magnetic head element and a variable information magnetic head element for each track, and controls each data on the prepaid card CB under the control of the data reading unit 142. The magnetic storage information such as the variable information and the fixed information of the track is read, and the fixed information and the variable information of each track are read through the waveform analysis section 146 under the control of the encryption processing section 144C. The waveform analysis unit 146 reads the recording information of the second track Tb by the magnetic head 143, detects an overlapping portion between the fixed information and the variable information of the second track Tb, and generates a composite signal waveform of the overlapping portion. To PC
It is quantized by A / D conversion such as M to generate a unique encryption key KL.

【0159】暗号処理部144Cは、データ読書部14
2により、磁気ヘッド143を介して行われる当該プリ
ペイドカードCBの金額情報等の可変情報の読出/書込
に際し、波形解析部146により得られる固有暗号鍵K
Lを用いて第1のトラックTaの可変情報を復号/暗号
化し、予め設定されている標準暗号鍵KSを用いて第2
のトラックTbの可変情報を復号/暗号化する。つま
り、暗号処理部144Cは、プリペイドカードCB挿入
時に、波形解析部146により得られる固有暗号鍵KL
を用いて第1のトラックTaの可変情報を復号化し、所
定の標準暗号鍵KSを用いて第2のトラックTbの可変
情報を復号化する。当該暗号鍵KL及びKSにより、デ
ータ読書部142を介して読出される情報が正しく復号
化されない場合に、不正プリペイドカードが挿入された
として、異常を検出する。
The encryption processing section 144 C
2, the unique encryption key K obtained by the waveform analysis unit 146 when reading / writing variable information such as the amount information of the prepaid card CB via the magnetic head 143.
L, the variable information of the first track Ta is decrypted / encrypted, and the second information is decrypted by using a preset standard encryption key KS.
Decrypt / encrypt the variable information of the track Tb. That is, when the prepaid card CB is inserted, the encryption processing unit 144C uses the unique encryption key KL obtained by the waveform analysis unit 146.
To decrypt the variable information of the first track Ta, and decrypt the variable information of the second track Tb using a predetermined standard encryption key KS. If the information read via the data reading unit 142 is not correctly decrypted by the encryption keys KL and KS, an abnormality is detected as an unauthorized prepaid card is inserted.

【0160】このように構成される読書装置1Cを含む
本発明の第4の実施の形態に係るプリペイドカードシス
テムも、実質的に図2とほぼ同様に構成される。このプ
リペイドカードシステムで使用するプリペイドカード
は、本来は、図12に示したのと同様なプリペイドカー
ドCAである。しかしながら、この場合、読書装置1C
等による書換えを経て、図24に示すようなプリペイド
カードCBとなっている。すなわち、プリペイドカード
CBは、磁性層を用いた磁気的な情報記憶部A″を持
ち、該情報記憶部A″は、第1のトラックTa及び第2
のトラックTbを有する。第1のトラックTaには、固
定情報領域Aa1及び可変情報領域Aa2が配置され、
第2のトラックTbには、固定情報領域Ab1及び可変
情報領域Ab2が配置される。
[0160] A prepaid card system according to the fourth embodiment of the present invention including the reading device 1C thus configured is also configured substantially in substantially the same manner as in FIG. The prepaid card used in this prepaid card system is originally a prepaid card CA similar to that shown in FIG. However, in this case, the reading device 1C
After rewriting by the above method, a prepaid card CB as shown in FIG. 24 is obtained. That is, the prepaid card CB has a magnetic information storage unit A ″ using a magnetic layer, and the information storage unit A ″ includes the first track Ta and the second track Ta.
Track Tb. On the first track Ta, a fixed information area Aa1 and a variable information area Aa2 are arranged,
A fixed information area Ab1 and a variable information area Ab2 are arranged on the second track Tb.

【0161】第1及び第2のトラックTa及びTbの固
定情報領域Aa1及びAb1には、プリペイドカードC
Aのカード識別情報、製造元を示す製造元コード及び製
造日情報等のように、エンコード時に一旦書込んだ後
は、消費等によって変更されることがない固定情報が、
各トラックに適宜振り分けられて書込まれる。この場
合、該固定情報は、各プリペイドカード共通に設定され
た所定の標準暗号鍵KSによって暗号化されている。第
1及び第2のトラックTa及びTbの可変情報領域Aa
2及びAb2には、残額等の金額情報及びエラー発生時
におけるエラーコード等のように使用・消費によって随
時更新、変更又は追加される可変情報が、各トラックに
適宜振り分けられて書込まれる。第1のトラックTaの
可変情報は、第2のトラックTbから得た固有暗号鍵K
Lによって暗号化され、第2のトラックTbの可変情報
は、固定情報と共通の所定の標準暗号鍵KSによって暗
号化されている。
In the fixed information areas Aa1 and Ab1 of the first and second tracks Ta and Tb, the prepaid card C
Once written once at the time of encoding, such as the card identification information of A, the manufacturer code indicating the manufacturer, and the manufacturing date information, fixed information that is not changed by consumption or the like,
It is allocated to each track and written. In this case, the fixed information is encrypted with a predetermined standard encryption key KS set commonly for each prepaid card. Variable information area Aa of first and second tracks Ta and Tb
In 2 and Ab2, variable information that is updated, changed or added as needed by use or consumption, such as amount information such as a balance and an error code when an error occurs, is allocated to each track and written. The variable information of the first track Ta is the unique encryption key K obtained from the second track Tb.
L, and the variable information of the second track Tb is encrypted by a predetermined standard encryption key KS common to the fixed information.

【0162】この場合の発行時のプリペイドカードは、
プリペイドカードCAであるので、カード発行元Dにお
いては、図18に示す記録装置3Bにより発行される。
この記録装置3Bは、プリペイドカード発行時に、プリ
ペイドカードCAの各トラックTa及びTbの固定情報
領域Aa1及びAb1に固定情報を書込み、そして可変
情報領域Ab2及びAa2に初期可変情報を書込む。各
トラックTa及びTbの固定情報領域Aa1及びAb1
への固定情報及び初期可変情報の書込みにあたっては、
所定の標準暗号鍵KS用いて書込情報を暗号化する。
The prepaid card at the time of issuance in this case is
Since the card is a prepaid card CA, the card issuance D is issued by the recording device 3B shown in FIG.
When the prepaid card is issued, the recording device 3B writes fixed information in the fixed information areas Aa1 and Ab1 of the tracks Ta and Tb of the prepaid card CA, and writes initial variable information in the variable information areas Ab2 and Aa2. Fixed information areas Aa1 and Ab1 of each track Ta and Tb
When writing fixed information and initial variable information to
The write information is encrypted using a predetermined standard encryption key KS.

【0163】読書装置1Cは、例えば、遊技媒体の貸出
等を行う物販機に接続されており、物販機が利用者に提
供した遊技媒体等の対価をプリペイドカードCA又はC
Bに記憶されている金額情報における残額から差し引く
ことにより、プリペイドカードCA又はCBの消費を具
体化するための装置である。この読書装置1Cは、プリ
ペイドカードCBがセットされると、まず、第2のトラ
ックTbの固定情報領域Ab1及び可変情報領域Ab2
から、固定情報と可変情報のオーバラップ部分を検出す
る。オーバラップ部分があれば、該オーバラップ部分の
合成信号波形を抽出して、該波形を量子化し、固有暗号
鍵KLを生成して、第1のトラックTaの可変情報の復
号及び暗号化に供する。オーバラップ部分が存在しない
場合には、標準暗号鍵KSを第1のトラックTaの可変
情報の復号及び暗号化に用いる。
The reading device 1C is connected to, for example, a vending machine for renting out a game medium, etc., and uses the prepaid card CA or C for the value of the game medium provided by the vending machine to the user.
This is a device for realizing the consumption of the prepaid card CA or CB by subtracting from the remaining amount in the amount information stored in B. When the prepaid card CB is set, the reading device 1C first sets the fixed information area Ab1 and the variable information area Ab2 of the second track Tb.
, An overlap portion between the fixed information and the variable information is detected. If there is an overlap portion, a composite signal waveform of the overlap portion is extracted, the waveform is quantized, a unique encryption key KL is generated, and the resultant information is used for decryption and encryption of the variable information of the first track Ta. . If there is no overlap portion, the standard encryption key KS is used for decryption and encryption of the variable information of the first track Ta.

【0164】読書装置1Cは、プリペイドカードCBの
可変情報領域Aa2及びAb2等の金額情報等を波形解
析部146により得た固有暗号鍵KL及び標準暗号鍵K
Sを用いて暗号処理部144Cにより復号化した結果、
正常に復号化することができた場合には、当該プリペイ
ドカードCBは正常であると判定し、復号化の結果、正
常に復号化できていないと判定した場合には、当該プリ
ペイドカードCBは異常であり、不正プリペイドカード
であると判定する。
The reading device 1C uses the unique encryption key KL and the standard encryption key K obtained by the waveform analyzer 146 to obtain the amount information and the like of the variable information areas Aa2 and Ab2 of the prepaid card CB.
As a result of decryption by the encryption processing unit 144C using S,
When the prepaid card CB is successfully decrypted, it is determined that the prepaid card CB is normal. When the decryption is not successful, the prepaid card CB is abnormal. Is determined to be an unauthorized prepaid card.

【0165】このとき、多くの場合、計測結果には、経
時変化によるレベルの低下及び磁気ヘッド34と143
との相違による計測誤差等が存在する可能性があるた
め、合成信号波形を適宜量子化するなどして、共通の固
有暗号鍵KLとして利用できるようにしている。さら
に、読書装置1Cは、プリペイドカードCBの情報記憶
部A″の記憶情報及びパンチ孔情報等に矛盾があるか否
かをチェックし、矛盾があれば、当該プリペイドカード
CBに何らかの不正又は不具合があると判定する。
At this time, in many cases, the measurement results include a decrease in level due to a change with time and the magnetic heads 34 and 143.
Since there is a possibility that a measurement error or the like due to the difference exists, the synthesized signal waveform is quantized as appropriate to be used as a common unique encryption key KL. Further, the reading device 1C checks whether or not the storage information and the punch hole information of the information storage unit A ″ of the prepaid card CB are inconsistent. It is determined that there is.

【0166】不正又は不具合があると判定された場合、
読書装置1Cは、中継装置2に不正プリペイドカードの
カード識別情報等を含む検知データを送信するととも
に、当該プリペイドカードの使用を阻止して排出する。
さらに、読書装置1Cは、中継装置2から他の読書装置
1Cで不正プリペイドカードと判定されたプリペイドカ
ード情報の通知データを受信し、プリペイドカードCB
が装填されると直ちに該通知データに基づいて当該プリ
ペイドカードを弁別し、使用を阻止して排出する。
When it is determined that there is a fraud or a defect,
The reading device 1C transmits the detection data including the card identification information of the unauthorized prepaid card to the relay device 2, and prevents the use of the prepaid card and discharges it.
Further, the reading device 1C receives, from the relay device 2, notification data of prepaid card information determined to be an unauthorized prepaid card by another reading device 1C, and reads the prepaid card CB.
Immediately after is loaded, the prepaid card is discriminated based on the notification data, and the card is ejected after being used.

【0167】次に、上述したプリペイドカードシステム
における処理について、図23に示すフローチャートを
参照して説明する。なお、消費処理及び終了処理につい
ては、それぞれ図6及び図8にフローチャートを示した
第1の実施の形態における消費処理及び終了処理と実質
的に同様であり、エンコード処理については図19にフ
ローチャートを示した第3の実施の形態におけるエンコ
ード処理と実質的に同様である。上述したプリペイドカ
ードシステムにおける消費処理は、読書装置1Cのリー
ダ/ライタ14Cのデータ読書部142にプリペイドカ
ードCBがセットされるとその都度起動される。
Next, the processing in the above-described prepaid card system will be described with reference to the flowchart shown in FIG. Note that the consumption processing and the end processing are substantially the same as the consumption processing and the end processing in the first embodiment shown in the flowcharts of FIGS. 6 and 8, respectively, and the encoding processing is shown in the flowchart of FIG. This is substantially the same as the encoding process according to the third embodiment shown. The above-described consumption processing in the prepaid card system is activated each time the prepaid card CB is set in the data reading section 142 of the reader / writer 14C of the reading apparatus 1C.

【0168】処理が開始されると、リーダ/ライタ14
Cの暗号処理部144Cは、セットされたプリペイドカ
ードCBが正常か否かをチェックする。すなわち、ま
ず、リーダ/ライタ14Cの暗号処理部144Cが、磁
気ヘッド143により、プリペイドカードCBの第1及
び第2のトラックTa及びTbの固定情報領域Aa1及
びAb1から固定情報を読取り、且つ第2のトラックT
bの可変情報領域Ab2から可変情報を読取って、予め
設定した標準暗号鍵KSで復号化し、波形解析部146
が、第2のトラックTbの固定情報と可変情報とのオー
バラップ部分を検出して、該オーバラップ部分の合成信
号波形を抽出する。さらに、波形解析部146は、該合
成信号波形をPCMその他のA/D変換により量子化し
て固有暗号鍵KLを生成する。
When the processing is started, the reader / writer 14
The C encryption processing unit 144C checks whether the set prepaid card CB is normal. That is, first, the encryption processing unit 144C of the reader / writer 14C reads the fixed information from the fixed information areas Aa1 and Ab1 of the first and second tracks Ta and Tb of the prepaid card CB by the magnetic head 143, and Track T
b, reads the variable information from the variable information area Ab2, decrypts the variable information with the standard encryption key KS set in advance, and
Detects an overlapping portion between the fixed information and the variable information of the second track Tb, and extracts a composite signal waveform of the overlapping portion. Further, the waveform analyzer 146 quantizes the combined signal waveform by PCM or other A / D conversion to generate a unique encryption key KL.

【0169】さらに、暗号処理部144Cは、データ読
書部142を介して磁気ヘッド143によりプリペイド
カードCBの第1のトラックTaの可変情報領域Aa2
の金額情報等の可変情報を読出し、固有暗号鍵KLを用
いて復号化する。暗号処理部144Cは、読出した可変
情報が正常に復号化できたか否かを確認し、正常に復号
化できなければ、セットされたプリペイドカードCBは
異常であり、不正な手段により作成されたものであると
判定する。読出した記憶情報が正常に復号化できた場合
には、次に、リーダ/ライタ14Cの暗号処理部144
Cにより、残額目安パンチ孔の位置及び記憶情報におけ
る矛盾の有無を検出する。このとき、残額目安パンチ孔
の位置及び記憶情報に矛盾が検出された場合には、当該
プリペイドカードは異常であるとする。暗号処理部14
4Cにより、異常が検出されたか否かが判定され、異常
が検出された場合には、プリペイドカードCBが不正で
あるとして、不正又はエラー表示等を行った後、システ
ムの動作を停止するなどの異常/不正処理を実行する。
Further, the encryption processing section 144C controls the variable information area Aa2 of the first track Ta of the prepaid card CB by the magnetic head 143 via the data reading section 142.
The variable information such as the amount information is read out and decrypted using the unique encryption key KL. The encryption processing unit 144C checks whether or not the read variable information has been successfully decrypted. If the variable information cannot be decrypted normally, the prepaid card CB that has been set is abnormal, Is determined. If the read storage information has been successfully decrypted, then the encryption processing unit 144 of the reader / writer 14C is read.
By C, the position of the remaining standard punch hole and the presence or absence of inconsistency in the stored information are detected. At this time, if inconsistency is detected in the position of the remaining amount guide punch hole and the stored information, the prepaid card is determined to be abnormal. Encryption processing unit 14
By 4C, it is determined whether or not an abnormality is detected. If an abnormality is detected, the prepaid card CB is determined to be invalid, an invalid or error display is performed, and then the operation of the system is stopped. Execute abnormal / illegal processing.

【0170】上述した図6のステップS11に相当する
カードチェック処理の詳細を図23に示している。カー
ドチェック処理が開始されると、まず、読書制御部14
1は、波形解析部146により、磁気ヘッド143を介
して、第2のトラックTbにおける固定情報領域Ab1
と可変情報領域Ab2とのオーバラップ部分を検出し、
当該部分の信号波形を抽出する(ステップS121)。
波形解析部146は、第2のトラックTbにおける固定
情報領域Ab1と可変情報領域Ab2とのオーバラップ
部分を検出したか否かを判定し(ステップS122)、
オーバラップ部分を検出した場合には、抽出したオーバ
ラップ部分の波形を、PCM等により量子化して、固有
暗号鍵KLとして暗号処理部144Cに与える(ステッ
プS123)。そして、暗号処理部144Cによりプリ
ペイドカードCBの情報記憶部A″の第1及び第2のト
ラックTa及びTbの固定情報領域Aa1及びAb1か
ら固定情報を、そして可変情報領域Aa2及びAb2か
ら可変情報を読出し(ステップS124)、標準暗号鍵
KS及び固有暗号鍵KL(第1のトラックTaの可変情
報)を用いて復号化する(ステップS125)。
FIG. 23 shows details of the card check processing corresponding to step S11 in FIG. 6 described above. When the card check process is started, first, the reading control unit 14
Reference numeral 1 denotes a fixed information area Ab1 in the second track Tb by the waveform analyzer 146 via the magnetic head 143.
And the overlap portion between the variable information area Ab2 and
The signal waveform of the portion is extracted (step S121).
The waveform analysis unit 146 determines whether or not an overlapping portion between the fixed information area Ab1 and the variable information area Ab2 in the second track Tb has been detected (Step S122).
When the overlap portion is detected, the extracted waveform of the overlap portion is quantized by PCM or the like, and given to the encryption processing unit 144C as the unique encryption key KL (step S123). Then, the cryptographic processing unit 144C uses the fixed information from the fixed information areas Aa1 and Ab1 of the first and second tracks Ta and Tb of the information storage unit A ″ of the prepaid card CB, and the variable information from the variable information areas Aa2 and Ab2. The data is read (step S124), and decrypted using the standard encryption key KS and the unique encryption key KL (variable information of the first track Ta) (step S125).

【0171】復号の結果、金額情報のような可変情報等
が正常に復号化されたか否かが判定され(ステップS1
26)、正常に復号化されたと判定されれば、暗号処理
部144Cは、次に、金額情報及びその他の情報相互
間、及びこれらと残額目安パンチ孔の穿孔状況等との間
の矛盾を検出し(ステップS127)、そのような矛盾
があるか否かを判定する(ステップS128)。矛盾が
なければ、暗号処理部144Cは、当該プリペイドカー
ドが正常であるとし(ステップS129)、処理を終了
して、消費処理に戻る。
As a result of the decoding, it is determined whether or not variable information such as money amount information has been normally decoded (step S1).
26) If it is determined that the data has been decrypted normally, the encryption processing unit 144C then detects inconsistencies between the money amount information and other information, and between these and the remaining hole amount of the reference hole. Then, it is determined whether or not there is such a contradiction (step S128). If there is no contradiction, the encryption processing unit 144C determines that the prepaid card is normal (step S129), ends the process, and returns to the consumption process.

【0172】ステップS122において、オーバラップ
部分が検出されなかったときは、ステップS124に移
行し、第1及び第2のトラックTa及びTbの固定情報
領域Aa1及びAb1から固定情報を、そして可変情報
領域Aa2及びAb2から可変情報を読出し、ステップ
S125において全ての情報に共通の標準暗号鍵KSを
用いて復号化する。
If no overlap portion is detected in step S122, the flow shifts to step S124, where the fixed information is read from the fixed information areas Aa1 and Ab1 of the first and second tracks Ta and Tb, and the variable information area is read. The variable information is read from Aa2 and Ab2 and decrypted in step S125 using the standard encryption key KS common to all information.

【0173】ステップS126において、正常でないと
判定された場合には、異常と判定し(ステップS13
0)、処理を終了して、消費処理に戻る。また、ステッ
プS128において、矛盾が存在すると判定した場合に
も、ステップS130に移行し、処理を終了して、消費
処理に戻る。なお、図24に示すように第2のトラック
Tbの固定情報領域Ab1と可変情報領域Ab2とが一
部オーバラップすることにより、図25に示すような、
固定情報領域Ab1の信号波形と可変情報領域Ab2の
信号波形とがオーバラップ部分において加算的に重畳さ
れ図26に示すような合成波形を得る。このオーバラッ
プ部分の合成波形は、固定情報領域Ab1の信号波形と
可変情報領域Ab2の信号波形とのオーバラップの大き
さ、及び各信号波形等によって異なり、おおむねプリペ
イドカードCBの外径寸法、及び可変情報を更新した読
書装置(のヘッド配置等)によって各プリペイドカード
毎に相違する。そこで、該合成波形を量子化して第1の
トラックTaの可変情報用の固有暗号鍵KLとする。
If it is determined in step S126 that the state is not normal, it is determined that the state is abnormal (step S13).
0), end the process and return to the consumption process. Also, if it is determined in step S128 that there is a contradiction, the process proceeds to step S130, ends the process, and returns to the consumption process. As shown in FIG. 24, when the fixed information area Ab1 and the variable information area Ab2 of the second track Tb partially overlap, as shown in FIG.
The signal waveform of the fixed information area Ab1 and the signal waveform of the variable information area Ab2 are additively superimposed in the overlapping portion to obtain a composite waveform as shown in FIG. The composite waveform of the overlap portion differs depending on the magnitude of the overlap between the signal waveform of the fixed information area Ab1 and the signal waveform of the variable information area Ab2, and each signal waveform, and generally includes the outer diameter of the prepaid card CB, and It differs for each prepaid card depending on (the head arrangement of, for example) the reading device that has updated the variable information. Therefore, the synthesized waveform is quantized to obtain a unique encryption key KL for variable information of the first track Ta.

【0174】このようにして、プリペイドカードにの1
及び第2のトラックTa及びTbに固定情報及び可変情
報を書込んでエンコードを行い、読書装置1Cにおける
可変情報の更新によって、第2のトラックTbの可変情
報の位置がずれて、固定情報にオーバラップする状態と
なって、プリペイドカードCBとなる。読書装置1C
は、この状態のプリペイドカードCBの第2のトラック
Tbの固有情報と可変情報とのオーバラップ部分を検出
し、該オーバラップ部分の合成信号波形を抽出し、量子
化して固有暗号鍵KLを生成し、該固有暗号鍵KLを用
いて第1のトラックTaの可変情報の読出/書込におけ
る復号/暗号化を行うことにより、他のプリペイドカー
ドの記憶情報の複写による不正を的確に検出する。した
がって、正規のプリペイドカードの記憶情報を複写する
ことにより変造又は偽造したプリペイドカードを使用し
ようとする不正を、事前に的確に防止し、変造又は偽造
によるプリペイドカードの不正使用を未然に阻止するこ
とが可能となる。
[0174] In this way, the 1
Then, the fixed information and the variable information are written and encoded in the second tracks Ta and Tb, and the variable information in the second track Tb shifts due to the update of the variable information in the reading device 1C, and the fixed information is overwritten. The wrap state is established, and the prepaid card CB is obtained. Reading device 1C
Detects an overlap portion between the unique information and the variable information of the second track Tb of the prepaid card CB in this state, extracts a synthesized signal waveform of the overlap portion, and quantizes to generate a unique encryption key KL. Then, by using the unique encryption key KL to perform decryption / encryption in reading / writing of the variable information of the first track Ta, fraud by copying stored information of another prepaid card is accurately detected. Therefore, fraudulent attempts to use a falsified or forged prepaid card by copying the stored information of a legitimate prepaid card must be properly prevented in advance, and fraudulent use of the prepaid card due to falsification or falsification must be prevented. Becomes possible.

【0175】上述では、読書装置1Cは、プリペイドカ
ードCBの第2のトラックTbの固有情報と可変情報と
のオーバラップ部分を検出し、該オーバラップ部分の合
成信号波形を抽出し、量子化して固有暗号鍵KLを生成
し、該固有暗号鍵KLを用いて第1のトラックTaの可
変情報の読出/書込における復号/暗号化を行うように
した。これと同様に、読書装置1Cが、プリペイドカー
ドCBの第1のトラックTaの固有情報と可変情報との
オーバラップ部分を検出し、該オーバラップ部分の合成
信号波形を抽出し、量子化して固有暗号鍵を生成し、該
固有暗号鍵を用いて第2のトラックTbの可変情報の読
出/書込における復号/暗号化を行うようにしてもよ
い。
In the above description, the reading device 1C detects the overlapping portion between the unique information of the second track Tb of the prepaid card CB and the variable information, extracts the synthesized signal waveform of the overlapping portion, and quantizes it. A unique encryption key KL is generated, and decryption / encryption in reading / writing of the variable information of the first track Ta is performed using the unique encryption key KL. Similarly, the reading device 1C detects an overlap portion between the unique information of the first track Ta of the prepaid card CB and the variable information, extracts a synthesized signal waveform of the overlap portion, quantizes the overlapped signal, and quantizes the unique signal. An encryption key may be generated, and decryption / encryption in reading / writing of the variable information of the second track Tb may be performed using the unique encryption key.

【0176】なお、上記各実施の形態において、距離を
測定する手法としては、既知の任意の手法を使用するこ
とができる。例えば、プリペイドカードを搬送する搬送
系のパルスモータ(ステッピングモータ)に制御部が供
給するパルス数をカウントし、カウント値を距離を表す
値としてもよい、また、カウントしたパルス数に一定の
定数を乗算し、実際の距離を求めてもよい。また、距離
を測定する対象の領域に予め、通常では発生しえないパ
ターンのデータ(例えば、全て1又は0のデータを記録
しておき、データ数(ビット数)をカウントし、カウン
ト値を距離を表す値としたり、カウントしたビット数に
一定の定数を乗算して、実際の距離を求めてもよい。
In each of the above embodiments, any known technique can be used as a technique for measuring the distance. For example, the number of pulses supplied by the control unit to a pulse motor (stepping motor) of a transport system that transports a prepaid card may be counted, and the count value may be a value representing a distance. The actual distance may be obtained by multiplication. Further, data of a pattern which cannot be normally generated (for example, data of all 1s or 0s is recorded in advance in an area to be measured for distance, the number of data (the number of bits) is counted, and the count value is set to the distance. Or the actual distance may be obtained by multiplying the counted number of bits by a certain constant.

【0177】なお、上記プリペイドカードは磁気カード
に限定されず、ICカードでもよい。この場合、ICカ
ードは、上記固定情報と可変情報をメモリに記憶するI
Cチップの他に、磁気領域を有し、該磁気領域に記録し
た任意の情報について上述の方法により鍵を取得し、そ
の鍵を用いて、ICメモリにおける可変情報を暗復号化
する。
The prepaid card is not limited to a magnetic card, but may be an IC card. In this case, the IC card stores the fixed information and the variable information in a memory.
It has a magnetic area in addition to the C chip, obtains a key for any information recorded in the magnetic area by the above-described method, and encrypts and decrypts variable information in the IC memory using the key.

【0178】なお、この発明は、パチンコシステムに適
用してもよい。この場合、遊技媒体とはパチンコ玉又は
メタルであり、店舗とはパチンコ店等であり、プリペイ
ドカードはパチンコシステム用のプリペイドカードであ
る。読書装置及び図示せぬ物販機はパチンコ台に接続さ
れており、物販機はパチンコ玉又はメタルの供給を受け
るための貸出ボタンを備える。該貸出ボタンが押下され
ることにより、所定量のパチンコ玉又はメタルが供給さ
れるとともに、該物販機に接続されている読書装置に所
定金額の消費要求が送信され、読書装置は例えば挿入さ
れているパチンコ用のプリペイドカードの金額情報を該
消費要求に応じて更新する。
Note that the present invention may be applied to a pachinko system. In this case, the game medium is a pachinko ball or metal, the store is a pachinko parlor, or the like, and the prepaid card is a prepaid card for a pachinko system. The reading device and a vending machine (not shown) are connected to a pachinko machine, and the vending machine includes a lending button for receiving a supply of pachinko balls or metal. When the lending button is pressed, a predetermined amount of pachinko balls or metal is supplied, and a consumption request for a predetermined amount is transmitted to a reading device connected to the vending machine, and the reading device is inserted, for example. The amount information of the prepaid card for pachinko is updated according to the consumption request.

【0179】[0179]

【発明の効果】以上説明したように、本発明によれば、
プリペイドカードにおける固定情報及び可変情報の書込
み位置のばらつきに基づく暗号鍵を用いて、可変情報の
復号/暗号化を行うようにして、正規のプリペイドカー
ドの記憶情報を複写することにより変造又は偽造したプ
リペイドカードの不正を的確に検出弁別し、不正なプリ
ペイドカードの使用を未然に阻止することを可能とする
プリペイドカードシステム及び読書装置を提供すること
ができる。
As described above, according to the present invention,
Using the encryption key based on the variation of the writing position of the fixed information and the variable information in the prepaid card, the variable information is decrypted / encrypted, and the stored information of the legitimate prepaid card is falsified or forged. It is possible to provide a prepaid card system and a reading device that can accurately detect and discriminate fraudulence of a prepaid card and prevent the use of the fraudulent prepaid card.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の第1の実施の形態に係るプリペイドカ
ードシステムの主要部である読書装置の構成を模式的に
示すブロック図である。
FIG. 1 is a block diagram schematically showing a configuration of a reading device as a main part of a prepaid card system according to a first embodiment of the present invention.

【図2】図1の構成が組み込まれたプリペイドカードシ
ステムの構成を模式的に示すブロック図である。
FIG. 2 is a block diagram schematically showing a configuration of a prepaid card system into which the configuration of FIG. 1 is incorporated.

【図3】図1のプリペイドカードシステムで使用するプ
リペイドカードを模式的に示す図である。
FIG. 3 is a diagram schematically showing a prepaid card used in the prepaid card system of FIG. 1;

【図4】図1のプリペイドカードシステムにおける記録
装置の構成を模式的に示すブロック図である。
FIG. 4 is a block diagram schematically showing a configuration of a recording device in the prepaid card system of FIG. 1;

【図5】図1のプリペイドカードシステムにおけるエン
コード処理を説明するためのフローチャートである。
FIG. 5 is a flowchart for explaining an encoding process in the prepaid card system of FIG. 1;

【図6】図1のプリペイドカードシステムにおける消費
処理を説明するためのフローチャートである。
FIG. 6 is a flowchart for explaining consumption processing in the prepaid card system of FIG. 1;

【図7】図1のプリペイドカードシステムにおけるカー
ドチェック処理を説明するためのフローチャートであ
る。
FIG. 7 is a flowchart illustrating a card check process in the prepaid card system of FIG. 1;

【図8】図1のプリペイドカードシステムにおける終了
処理を説明するためのフローチャートである。
FIG. 8 is a flowchart for explaining an end process in the prepaid card system of FIG. 1;

【図9】図3のプリペイドカードにおける固定情報、可
変情報及び暗号鍵に対応する距離部分の配置の一例を模
式的に説明する図である。
FIG. 9 is a diagram schematically illustrating an example of an arrangement of distance portions corresponding to fixed information, variable information, and an encryption key in the prepaid card of FIG. 3;

【図10】図9の固定情報のデータの始端及び終端を説
明するための模式図である。
FIG. 10 is a schematic diagram for explaining a start end and an end of data of fixed information in FIG. 9;

【図11】本発明の第2の実施の形態に係るプリペイド
カードシステムの主要部である読書装置の構成を模式的
に示すブロック図である。
FIG. 11 is a block diagram schematically showing a configuration of a reading device as a main part of a prepaid card system according to a second embodiment of the present invention.

【図12】図11のプリペイドカードシステムで使用す
るプリペイドカードを模式的に示す図である。
FIG. 12 is a diagram schematically showing a prepaid card used in the prepaid card system of FIG. 11;

【図13】図11のプリペイドカードシステムにおける
記録装置の構成を模式的に示すブロック図である。
13 is a block diagram schematically showing a configuration of a recording device in the prepaid card system of FIG.

【図14】図11のプリペイドカードシステムにおける
エンコード処理を説明するためのフローチャートであ
る。
FIG. 14 is a flowchart for explaining an encoding process in the prepaid card system of FIG. 11;

【図15】図11のプリペイドカードシステムにおける
カードチェック処理を説明するためのフローチャートで
ある。
FIG. 15 is a flowchart for explaining a card check process in the prepaid card system of FIG. 11;

【図16】図12のプリペイドカードにおける固定情報
及び可変情報を記録するトラック配置及び暗号鍵に対応
する距離部分の配置の一例を模式的に説明する図であ
る。
16 is a diagram schematically illustrating an example of a track arrangement for recording fixed information and variable information in the prepaid card of FIG. 12 and an arrangement of a distance portion corresponding to an encryption key.

【図17】本発明の第3の実施の形態に係るプリペイド
カードシステムの主要部である読書装置の構成を模式的
に示すブロック図である。
FIG. 17 is a block diagram schematically showing a configuration of a reading device as a main part of a prepaid card system according to a third embodiment of the present invention.

【図18】図17のプリペイドカードシステムにおける
記録装置の構成を模式的に示すブロック図である。
18 is a block diagram schematically showing a configuration of a recording device in the prepaid card system of FIG.

【図19】図17のプリペイドカードシステムにおける
エンコード処理を説明するためのフローチャートであ
る。
FIG. 19 is a flowchart illustrating an encoding process in the prepaid card system of FIG. 17;

【図20】図17のプリペイドカードシステムにおける
カードチェック処理を説明するためのフローチャートで
ある。
FIG. 20 is a flowchart illustrating a card check process in the prepaid card system of FIG. 17;

【図21】図17のプリペイドカードシステムで使用す
るプリペイドカードにおける固定情報及び可変情報を記
録するトラック配置及び暗号鍵に対応する距離部分の配
置の一例を模式的に説明する図である。
21 is a diagram schematically illustrating an example of a track arrangement for recording fixed information and variable information and an arrangement of a distance portion corresponding to an encryption key in a prepaid card used in the prepaid card system of FIG. 17;

【図22】本発明の第4の実施の形態に係るプリペイド
カードシステムの主要部である読書装置の構成を模式的
に示すブロック図である。
FIG. 22 is a block diagram schematically showing a configuration of a reading device as a main part of a prepaid card system according to a fourth embodiment of the present invention.

【図23】図22のプリペイドカードシステムにおける
カードチェック処理を説明するためのフローチャートで
ある。
FIG. 23 is a flowchart illustrating a card check process in the prepaid card system of FIG. 22;

【図24】図22のプリペイドカードシステムで使用す
るプリペイドカードにおける固定情報及び可変情報を記
録するトラック配置及び暗号鍵に対応する部分の配置の
一例を模式的に説明する図である。
24 is a diagram schematically illustrating an example of a track arrangement for recording fixed information and variable information and an arrangement of a portion corresponding to an encryption key in a prepaid card used in the prepaid card system of FIG. 22;

【図25】図22のプリペイドカードシステムで利用す
るプリペイドカードにおける固定情報と可変情報とのオ
ーバラップ部分の波形合成を模式的に説明する図であ
る。
FIG. 25 is a diagram schematically illustrating a waveform synthesis of an overlapping portion between fixed information and variable information in the prepaid card used in the prepaid card system of FIG. 22;

【図26】図22のプリペイドカードシステムで利用す
るプリペイドカードにおける固定情報と可変情報とのオ
ーバラップ部分の合成波形を模式的に説明する図であ
る。
26 is a diagram schematically illustrating a composite waveform of an overlap portion between fixed information and variable information in a prepaid card used in the prepaid card system of FIG. 22.

【符号の説明】[Explanation of symbols]

1 読書装置 1A 読書装置 1B 読書装置 1C 読書装置 2 中継装置 3 記録装置 3A 記録装置 3B 記録装置 4 決済センタ 11 通信処理部 12 消費処理部 13 記憶部 14 リーダ/ライタ 14A リーダ/ライタ 14B リーダ/ライタ 14C リーダ/ライタ 31 エンコード制御部 31A エンコード制御部 31B エンコード制御部 32 記憶部 33 書込処理部 34 磁気ヘッド 35 距離基準情報再生部 35A 距離基準情報再生部 35B 距離基準情報再生部 36 暗号処理部 36A 暗号処理部 36B 暗号処理部 141 読書制御部 142 データ読書部 143 磁気ヘッド 144 暗号処理部 144A 暗号処理部 144B 暗号処理部 144C 暗号処理部 145 距離計測部 145A 距離計測部 145B 距離計測部 146 波形解析部 C プリペイドカード CA プリペイドカード CB プリペイドカード D カード発行元 S 店舗 DESCRIPTION OF SYMBOLS 1 Reading device 1A Reading device 1B Reading device 1C Reading device 2 Relay device 3 Recording device 3A Recording device 3B Recording device 4 Payment center 11 Communication processing unit 12 Consumption processing unit 13 Storage unit 14 Reader / writer 14A Reader / writer 14B Reader / writer 14C Reader / writer 31 Encoding control unit 31A Encoding control unit 31B Encoding control unit 32 Storage unit 33 Write processing unit 34 Magnetic head 35 Distance reference information reproduction unit 35A Distance reference information reproduction unit 35B Distance reference information reproduction unit 36 Encryption processing unit 36A Encryption processing unit 36B Encryption processing unit 141 Reading control unit 142 Data reading unit 143 Magnetic head 144 Encryption processing unit 144A Encryption processing unit 144B Encryption processing unit 144C Encryption processing unit 145 Distance measurement unit 145A Distance measurement unit 145B Distance measurement unit 146 Shape analysis part C prepaid card CA prepaid cards CB prepaid card D card issuer S shop

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.7 識別記号 FI テーマコート゛(参考) G07F 7/08 J (72)発明者 鎌田 隆之 東京都江東区豊洲三丁目3番3号 エヌ・ ティ・ティ・データ通信株式会社内 Fターム(参考) 3E044 AA05 AA06 BA06 CA01 CA02 CA05 CC10 DA01 DA03 DA10 DB02 DB05 DC01 DC05 DC06 DD02 DE01 DE02 EA20 EB01 3E048 AA03 BA07 5B058 CA31 KA32 KA35 YA06 YA20──────────────────────────────────────────────────続 き Continued on the front page (51) Int.Cl. 7 Identification symbol FI Theme coat ゛ (Reference) G07F 7/08 J (72) Inventor Takayuki Kamata 3-3-3 Toyosu, Koto-ku, Tokyo NTT F-term in T Data Communication Co., Ltd. (reference) 3E044 AA05 AA06 BA06 CA01 CA02 CA05 CC10 DA01 DA03 DA10 DB02 DB05 DC01 DC05 DC06 DD02 DE01 DE02 EA20 EB01 3E048 AA03 BA07 5B058 CA31 KA32 KA35 YA06 YA20

Claims (16)

【特許請求の範囲】[Claims] 【請求項1】金銭的価値に対応する金額情報を含み使用
にともなって随時更新される可変情報と、使用にかかわ
らず変化しない所定の固定情報とを磁性層の第1及び第
2のトラックに記憶する記憶媒体からなるプリペイドカ
ードを用いて金銭的決済を行うプリペイドカードシステ
ムにおいて、 前記プリペイドカードの端縁から前記第1のトラックの
前記固定情報の端部までの第1の距離を計測し、該第1
の距離情報を第1の暗号鍵として前記第2のトラックの
可変情報を復号/暗号化して、それぞれ当該プリペイド
カードにおける前記第2のトラックの可変情報の読出/
書込を行うとともに、前記第2のトラックにおける前記
固定情報と可変情報との間隙に基づく第2の距離を計測
し、該第2の距離情報を第2の暗号鍵として前記第1の
トラックの可変情報を復号/暗号化して、それぞれ当該
プリペイドカードにおける前記第1のトラックの可変情
報の読出/書込を行って、前記プリペイドカードの消費
金額に応じて前記可変情報を更新し、且つ該消費金額を
含む売上情報を送信する読書手段と、 前記読書手段との間で通信を行って、前記読書手段から
前記プリペイドカードの前記売上情報及び使用プリペイ
ドカード情報を受信して格納処理する上位処理手段と、
を備えることを特徴とするプリペイドカードシステム。
1. A method according to claim 1, wherein variable information including amount information corresponding to a monetary value and updated at any time with use and predetermined fixed information which does not change regardless of use are stored in first and second tracks of the magnetic layer. In a prepaid card system for performing financial settlement using a prepaid card comprising a storage medium for storing, a first distance from an edge of the prepaid card to an end of the fixed information of the first track is measured, The first
The variable information of the second track is decrypted / encrypted using the distance information of the second track as the first encryption key, and the variable information of the second track is read / encoded on the prepaid card.
Writing is performed, and a second distance based on a gap between the fixed information and the variable information in the second track is measured, and the second distance information is used as a second encryption key for the first track. The variable information is decrypted / encrypted, and the variable information of the first track in the prepaid card is read / written to update the variable information according to the consumption amount of the prepaid card. Reading means for transmitting sales information including an amount of money, upper-level processing means for performing communication between the reading means and receiving the sales information and the used prepaid card information of the prepaid card from the reading means and storing the received information. When,
A prepaid card system comprising:
【請求項2】金銭的価値に対応する金額情報を含み使用
にともなって随時更新される可変情報と、使用にかかわ
らず変化しない所定の固定情報とを磁性層の第1及び第
2のトラックに記憶する記憶媒体からなるプリペイドカ
ードを用いて金銭的決済を行うプリペイドカードシステ
ムにおいて、 プリペイドカードの第1及び第2のトラックに固定情報
を書込み、前記第1のトラックの固定情報を検出して、
当該プリペイドカードの端縁から前記第1のトラックの
固定情報の端部までの第1の距離を計測し、該第1の距
離情報を第1の暗号鍵として当該プリペイドカードの前
記第2のトラックに前記可変情報を暗号化記録し、且つ
前記第2のトラックの固定情報及び可変情報を検出し
て、該第2のトラックにおける固定情報と可変情報との
間隙に基づく第2の距離を計測し、該第2の距離情報を
第2の暗号鍵として当該プリペイドカードの前記第1の
トラックに前記可変情報の初期情報を暗号化記録して、
前記プリペイドカードとして発行する記録手段と、 前記プリペイドカードの端縁から前記第1のトラックの
前記固定情報の端部までの前記第1の距離を計測し、該
第1の距離情報を第1の暗号鍵として前記第2のトラッ
クの可変情報を復号/暗号化して、それぞれ当該プリペ
イドカードにおける前記第2のトラックの可変情報の読
出/書込を行うとともに、前記第2のトラックにおける
前記固定情報と可変情報との間の前記第2の距離を計測
し、該第2の距離情報を第2の暗号鍵として前記第1の
トラックの可変情報を復号/暗号化して、それぞれ当該
プリペイドカードにおける前記第1のトラックの可変情
報の読出/書込を行って、前記プリペイドカードの消費
金額に応じて前記可変情報を更新し、且つ該消費金額を
含む売上情報を送信する読書手段と、 前記読書手段との間で通信を行って、前記読書手段から
前記プリペイドカードの前記売上情報及び使用プリペイ
ドカード情報を受信して格納処理する上位処理手段と、
を備えることを特徴とするプリペイドカードシステム。
2. A method according to claim 1, wherein said variable information includes amount information corresponding to a monetary value and is updated at any time with use, and predetermined fixed information which does not change regardless of use is stored in said first and second tracks of said magnetic layer. In a prepaid card system for performing financial settlement using a prepaid card comprising a storage medium for storing, fixed information is written to first and second tracks of the prepaid card, and fixed information of the first track is detected.
A first distance from an edge of the prepaid card to an end of the fixed information of the first track is measured, and the second track of the prepaid card is used as the first distance information as a first encryption key. The variable information is encrypted and recorded, and the fixed information and the variable information of the second track are detected, and a second distance based on the gap between the fixed information and the variable information in the second track is measured. Using the second distance information as a second encryption key, encrypting and recording the initial information of the variable information on the first track of the prepaid card,
Recording means for issuing as the prepaid card; measuring a first distance from an edge of the prepaid card to an end of the fixed information of the first track; The variable information of the second track is decrypted / encrypted as an encryption key to read / write the variable information of the second track on the prepaid card, respectively. The second distance to the variable information is measured, and the variable information of the first track is decrypted / encrypted using the second distance information as a second encryption key. The variable information of one track is read / written, the variable information is updated according to the consumption amount of the prepaid card, and the sales information including the consumption amount is transmitted. Reading means, communication between the reading means, higher-level processing means for receiving the sales information and used prepaid card information of the prepaid card from the reading means and storing and processing,
A prepaid card system comprising:
【請求項3】前記読書手段は、 前記プリペイドカードの前記第1及び第2のトラックに
おける可変情報及び固定情報の読み書きを行う磁気ヘッ
ドと、 前記プリペイドカードの前記第1及び第2のトラックに
おける可変情報及び固定情報を前記磁気ヘッドを用いて
読出/書込する読書処理手段と、 前記磁気ヘッドを用いて前記プリペイドカードの前記第
1及び第2のトラックの前記固定情報及び可変情報を検
出し、当該プリペイドカードの所定の端縁から前記第1
のトラックの固定情報の端部までの第1の距離、及び当
該プリペイドカードの前記第2のトラックの固定情報と
可変情報との間隙に基づく第2の距離を計測する距離計
測手段と、 前記距離計測手段で得られる第1及び第2の距離情報を
それぞれ暗号鍵として、前記第2のトラック及び前記第
1のトラックにおける可変情報を復号/暗号化して前記
読書処理手段における該可変情報の読出/書込に供する
暗号処理手段と、 前記プリペイドカードの消費金額に応じて、前記読書処
理手段により前記金額情報を更新し、且つ該消費金額を
含む売上情報を送信する消費処理手段と、を含むことを
特徴とする請求項1又は2に記載のプリペイドカードシ
ステム。
3. A reading head comprising: a magnetic head for reading and writing variable information and fixed information on the first and second tracks of the prepaid card; and a variable head on the first and second tracks of the prepaid card. Reading processing means for reading / writing information and fixed information using the magnetic head; detecting the fixed information and the variable information of the first and second tracks of the prepaid card using the magnetic head; From the predetermined edge of the prepaid card, the first
A distance measuring means for measuring a first distance to an end of the fixed information of the track and a second distance based on a gap between the fixed information and the variable information of the second track of the prepaid card; The variable information in the second track and the first track is decrypted / encrypted by using the first and second distance information obtained by the measuring means as encryption keys, respectively, and the reading / reading of the variable information by the reading processing means is performed. Encryption processing means for writing; and consumption processing means for updating the price information by the reading processing means and transmitting sales information including the consumption amount in accordance with the consumption amount of the prepaid card. The prepaid card system according to claim 1 or 2, wherein:
【請求項4】金銭的価値に対応する金額情報を含み使用
にともなって随時更新される可変情報と、使用にかかわ
らず変化しない固定情報と、の第1及び第2のトラック
における読み書きを行う磁気ヘッドと、 プリペイドカードの前記第1及び第2のトラックにおけ
る前記可変情報と固定情報とを前記磁気ヘッドを用いて
読出/書込する読書処理手段と、 前記磁気ヘッドを用いて前記プリペイドカードの前記第
1及び第2のトラックの前記固定情報及び可変情報を検
出し、当該プリペイドカードの所定の端縁から前記第1
のトラックの固定情報の端部までの第1の距離、及び当
該プリペイドカードの前記第2のトラックの固定情報と
可変情報との間隙に基づく第2の距離を計測する距離計
測手段と、 前記距離計測手段で得られる前記第1及び第2の距離情
報を第1及び第2の暗号鍵として、それぞれ前記第2の
トラックの可変情報及び前記第1のトラックの可変情報
を復号/暗号化して前記読書処理手段における該第1及
び第2のトラックの可変情報の読出/書込に供する暗号
処理手段と、 前記プリペイドカードの消費金額に応じて、前記読書処
理手段により前記金額情報を更新し、且つ該消費金額を
含む売上情報を送信する消費処理手段と、を備えること
を特徴とする読書装置。
4. A magnet for reading and writing in a first and a second track of variable information including money amount information corresponding to a monetary value and constantly updated with use and fixed information which does not change regardless of use. A head; reading processing means for reading / writing the variable information and the fixed information in the first and second tracks of the prepaid card using the magnetic head; The fixed information and the variable information of the first and second tracks are detected, and the first and second tracks are detected from a predetermined edge of the prepaid card.
A distance measuring means for measuring a first distance to an end of the fixed information of the track and a second distance based on a gap between the fixed information and the variable information of the second track of the prepaid card; The variable information of the second track and the variable information of the first track are decrypted / encrypted by using the first and second distance information obtained by the measuring means as first and second encryption keys, respectively. Encryption processing means for reading / writing the variable information of the first and second tracks in the reading processing means; and updating the price information by the reading processing means according to the consumption amount of the prepaid card; and A consumption processing unit for transmitting sales information including the consumption amount.
【請求項5】金銭的価値に対応する金額情報を含み使用
にともなって随時更新される可変情報と、使用にかかわ
らず変化しない所定の固定情報とを磁性層の複数のトラ
ックに記憶する記憶媒体からなるプリペイドカードを用
いて金銭的決済を行うプリペイドカードシステムにおい
て、 前記プリペイドカードの端縁から前記複数のトラックの
うちの一つのトラックの前記固定情報の端部までの第1
の距離及び該トラックの前記固定情報と可変情報との間
隙に基づく第2の距離を計測し、該第1及び第2の距離
情報を組み合わせて暗号鍵として前記複数のトラックの
うちの他の所定のトラックの可変情報を復号/暗号化し
て、それぞれ当該プリペイドカードにおける前記他のト
ラックの可変情報の読出/書込を行って、前記プリペイ
ドカードの消費金額に応じて前記可変情報を更新し、且
つ該消費金額を含む売上情報を送信する読書手段と、 前記読書手段との間で通信を行って、前記読書手段から
前記プリペイドカードの前記売上情報及び使用プリペイ
ドカード情報を受信して格納処理する上位処理手段と、
を備えることを特徴とするプリペイドカードシステム。
5. A storage medium for storing variable information including money amount information corresponding to a monetary value and constantly updated with use, and predetermined fixed information that does not change regardless of use in a plurality of tracks of a magnetic layer. A prepaid card system for performing financial settlement using a prepaid card comprising: a first card from an edge of the prepaid card to an end of the fixed information of one of the plurality of tracks.
And a second distance based on a gap between the fixed information and the variable information of the track, and combining the first and second distance information with each other as an encryption key to determine another predetermined one of the plurality of tracks. Decrypts / encrypts the variable information of the other track, reads / writes the variable information of the other track on the corresponding prepaid card, updates the variable information according to the consumption amount of the prepaid card, and A reading unit that transmits the sales information including the consumption amount; and a communication unit that communicates with the reading unit, receives the sales information and the used prepaid card information of the prepaid card from the reading unit, and stores and processes the information. Processing means;
A prepaid card system comprising:
【請求項6】金銭的価値に対応する金額情報を含み使用
にともなって随時更新される可変情報と、使用にかかわ
らず変化しない所定の固定情報とを磁性層の複数のトラ
ックに記憶する記憶媒体からなるプリペイドカードを用
いて金銭的決済を行うプリペイドカードシステムにおい
て、 プリペイドカードの前記複数のトラックのうちの少なく
とも1つのトラックに固定情報及び可変情報を書込むと
ともに、該トラックの前記固定情報及び可変情報を検出
して、当該プリペイドカードの端縁から当該トラックの
前記固定情報の端部までの第1の距離を計測し、且つ当
該トラックの該固定情報と前記可変情報との間隙に対応
する第2の距離を計測して、該第1及び第2の距離情報
を組み合わせて暗号鍵として前記複数のトラックのうち
の他の所定のトラックに前記可変情報を暗号化記録し
て、前記プリペイドカードとして発行する記録手段と、 前記プリペイドカードの端縁から前記各トラックの前記
固定情報の端部までの前記第1の距離、及び当該トラッ
クの該固定情報と前記可変情報との間隙に対応する第2
の距離を計測し、該第1及び第2の距離情報を組み合わ
せて暗号鍵として前記他の所定のトラックの可変情報を
復号/暗号化して、該トラックの可変情報の読出/書込
を行って、前記プリペイドカードの消費金額に応じて前
記可変情報を更新し、且つ該消費金額を含む売上情報を
送信する読書手段と、 前記読書手段との間で通信を行って、前記読書手段から
前記プリペイドカードの前記売上情報及び使用プリペイ
ドカード情報を受信して格納処理する上位処理手段と、
を備えることを特徴とするプリペイドカードシステム。
6. A storage medium for storing variable information including money amount information corresponding to a monetary value and updated as needed with use and predetermined fixed information that does not change regardless of use in a plurality of tracks of a magnetic layer. A prepaid card system for performing a financial settlement using a prepaid card comprising: writing fixed information and variable information on at least one of the plurality of tracks of the prepaid card; Detecting information, measuring a first distance from an edge of the prepaid card to an end of the fixed information of the track, and measuring a first distance corresponding to a gap between the fixed information of the track and the variable information. 2 is measured, and the first and second distance information are combined and used as an encryption key for another predetermined one of the plurality of tracks. Recording means for encrypting and recording the variable information on a track and issuing it as the prepaid card; a first distance from an edge of the prepaid card to an end of the fixed information of each track; The second information corresponding to the gap between the fixed information and the variable information.
Is measured, the variable information of the other predetermined track is decrypted / encrypted as an encryption key by combining the first and second distance information, and the variable information of the track is read / written. A reading unit that updates the variable information according to the consumption amount of the prepaid card and transmits sales information including the consumption amount; and performs communication between the reading unit and the reading unit. Higher-level processing means for receiving and storing the sales information and the used prepaid card information of the card,
A prepaid card system comprising:
【請求項7】前記読書手段は、 前記プリペイドカードの前記複数のトラックにおける可
変情報及び固定情報の読み書きを行う磁気ヘッドと、 前記プリペイドカードの各トラックにおける可変情報及
び固定情報を前記磁気ヘッドを用いて読出/書込する読
書処理手段と、 前記磁気ヘッドを用いて、前記プリペイドカードの各ト
ラックの固定情報及び可変情報を検出し、当該プリペイ
ドカードの所定の端縁から当該トラックの該固定情報の
端部までの第1の距離、並びに当該トラックにおける前
記固定情報と可変情報との間隙に基づく第2の距離を計
測する距離計測手段と、 前記距離計測手段で得られる第1及び第2の距離情報を
組み合わせて暗号鍵として、前記複数のトラックのうち
の他の所定のトラックにおける可変情報を復号/暗号化
して前記読書処理手段における該可変情報の読出/書込
に供する暗号処理手段と、 前記プリペイドカードの消費金額に応じて、前記読書処
理手段により前記金額情報を更新し、且つ該消費金額を
含む売上情報を送信する消費処理手段と、を含むことを
特徴とする請求項5又は6に記載のプリペイドカードシ
ステム。
7. The reading means uses a magnetic head for reading and writing variable information and fixed information on the plurality of tracks of the prepaid card, and uses the magnetic head for reading variable information and fixed information on each track of the prepaid card. Read / write processing means for reading / writing, and using the magnetic head, detecting fixed information and variable information of each track of the prepaid card, and detecting the fixed information of the track from a predetermined edge of the prepaid card. Distance measuring means for measuring a first distance to an end, and a second distance based on a gap between the fixed information and the variable information in the track; first and second distances obtained by the distance measuring means Decrypts / encrypts variable information in another predetermined track of the plurality of tracks as an encryption key by combining information; An encryption processing means for reading / writing the variable information in the reading processing means; and updating the price information by the reading processing means in accordance with a consumption amount of the prepaid card, and a sales including the consumption amount. 7. The prepaid card system according to claim 5, further comprising a consumption processing unit for transmitting information.
【請求項8】金銭的価値に対応する金額情報を含み使用
にともなって随時更新される可変情報と、使用にかかわ
らず変化しない所定の固定情報と、の複数のトラックに
おける読み書きを行う磁気ヘッドと、 プリペイドカードの各トラックにおける可変情報と固定
情報とを前記磁気ヘッドを用いて読出/書込する読書処
理手段と、 前記磁気ヘッドを用いて、前記プリペイドカードの各ト
ラックの前記固定情報及び可変情報を検出し、当該プリ
ペイドカードの所定の端縁から前記第1のトラックの固
定情報の端部までの第1の距離、並びに当該トラックに
おける前記固定情報と可変情報との間隙に基づく第2の
距離を計測する距離計測手段と、 前記距離計測手段で得られる前記第1及び第2の距離情
報を組み合わせて暗号鍵として、前記複数のトラックの
うちの他の所定のトラックにおける可変情報を復号/暗
号化して前記読書処理手段における該第1及び第2のト
ラックの可変情報の読出/書込に供する暗号処理手段
と、 前記プリペイドカードの消費金額に応じて、前記読書処
理手段により前記金額情報を更新し、且つ該消費金額を
含む売上情報を送信する消費処理手段と、を備えること
を特徴とする読書装置。
8. A magnetic head for reading and writing a plurality of tracks of variable information including money amount information corresponding to a monetary value and being updated as needed with use, and predetermined fixed information that does not change regardless of use. Reading processing means for reading / writing variable information and fixed information in each track of the prepaid card using the magnetic head; and using the magnetic head, the fixed information and variable information of each track of the prepaid card. And a first distance from a predetermined edge of the prepaid card to an end of the fixed information of the first track, and a second distance based on a gap between the fixed information and the variable information on the track. Distance measuring means for measuring the distance, and combining the first and second distance information obtained by the distance measuring means as an encryption key, Encryption processing means for decrypting / encrypting variable information in another predetermined track of the rack and providing reading / writing of variable information in the first and second tracks in the reading / writing means; A reading device, comprising: a consumption processing unit that updates the price information by the reading processing unit according to a consumption amount and transmits sales information including the consumption amount.
【請求項9】金銭的価値に対応する金額情報を含み使用
にともなって随時更新される可変情報と使用にかかわら
ず変化しない所定の固定情報とを磁性層の複数のトラッ
クに記憶する記憶媒体からなるプリペイドカードを用い
て金銭的決済を行うプリペイドカードシステムにおい
て、 前記プリペイドカードの前記複数のトラックのうちの一
つのトラックの前記固定情報と可変情報とのオーバラッ
プ部分を検出して、該オーバラップ部分の波形を抽出
し、該波形に基づく暗号鍵を用いて前記複数のトラック
のうちの他の所定のトラックの可変情報を復号/暗号化
して、それぞれ当該プリペイドカードにおける前記他の
トラックの可変情報の読出/書込を行って、前記プリペ
イドカードの消費金額に応じて前記可変情報を更新し、
且つ該消費金額を含む売上情報を送信する読書手段と、 前記読書手段との間で通信を行って、前記読書手段から
前記プリペイドカードの前記売上情報及び使用プリペイ
ドカード情報を受信して格納処理する上位処理手段と、
を備えることを特徴とするプリペイドカードシステム。
9. A storage medium which stores variable information including money amount information corresponding to a monetary value and constantly updated with use and predetermined fixed information which does not change regardless of use in a plurality of tracks of a magnetic layer. In a prepaid card system for performing a financial settlement using a prepaid card, the overlapped portion of the fixed information and the variable information of one track of the plurality of tracks of the prepaid card is detected, and the overlap is detected. A partial waveform is extracted, and variable information of another predetermined track of the plurality of tracks is decrypted / encrypted using an encryption key based on the waveform, and variable information of the other track in the prepaid card is respectively obtained. And updating the variable information according to the consumption amount of the prepaid card,
And communicating with the reading means for transmitting the sales information including the consumption amount, and receiving and storing the sales information and the used prepaid card information of the prepaid card from the reading means. Upper-level processing means;
A prepaid card system comprising:
【請求項10】前記読書手段は、 前記プリペイドカードの前記複数のトラックにおける可
変情報及び固定情報の読み書きを行う磁気ヘッドと、 前記プリペイドカードの各トラックにおける可変情報及
び固定情報を前記磁気ヘッドを用いて読出/書込する読
書処理手段と、 前記磁気ヘッドを用いて、前記プリペイドカードの各ト
ラックの固定情報及び可変情報を読取り、当該トラック
における前記固定情報と可変情報とのオーバラップ部分
を検出して、該オーバラップ部分の波形を抽出し、該波
形に基づく暗号鍵を生成する波形解析手段と、 前記波形解析手段で得られる前記固定情報と可変情報と
のオーバラップ部分の波形に基づく暗号鍵を用いて、前
記複数のトラックのうちの他の所定のトラックにおける
可変情報を復号/暗号化して前記読書処理手段における
該可変情報の読出/書込に供する暗号処理手段と、 前記プリペイドカードの消費金額に応じて、前記読書処
理手段により前記金額情報を更新し、且つ該消費金額を
含む売上情報を送信する消費処理手段と、を含むことを
特徴とする請求項9に記載のプリペイドカードシステ
ム。
10. The reading means comprises: a magnetic head for reading and writing variable information and fixed information on the plurality of tracks of the prepaid card; and a variable head and fixed information for each track of the prepaid card using the magnetic head. Read / write processing means for reading / writing data; and using the magnetic head, read fixed information and variable information of each track of the prepaid card, and detect an overlapping portion of the fixed information and variable information in the track. Waveform analysis means for extracting a waveform of the overlap portion and generating an encryption key based on the waveform; and an encryption key based on a waveform of the overlap portion between the fixed information and the variable information obtained by the waveform analysis means. And decrypting / encrypting variable information in another predetermined track of the plurality of tracks, Encryption processing means for reading / writing the variable information in the reading processing means; and updating the price information by the reading processing means in accordance with the consumption amount of the prepaid card, and sales information including the consumption amount. The prepaid card system according to claim 9, further comprising: a consumption processing unit for transmitting.
【請求項11】金銭的価値に対応する金額情報を含み使
用にともなって随時更新される可変情報と、使用にかか
わらず変化しない所定の固定情報と、の複数のトラック
における読み書きを行う磁気ヘッドと、 プリペイドカードの各トラックにおける可変情報と固定
情報とを前記磁気ヘッドを用いて読出/書込する読書処
理手段と、 前記磁気ヘッドを用いて、前記プリペイドカードの各ト
ラックの固定情報及び可変情報を読取り、当該トラック
における前記固定情報と可変情報とのオーバラップ部分
を検出して、該オーバラップ部分の波形を抽出し、該波
形に基づく暗号鍵を生成する波形解析手段と、 前記波形解析手段で得られる前記固定情報と可変情報と
のオーバラップ部分の波形に基づく暗号鍵を用いて、前
記複数のトラックのうちの他の所定のトラックにおける
可変情報を復号/暗号化して前記読書処理手段における
該可変情報の読出/書込に供する暗号処理手段と、 前記プリペイドカードの消費金額に応じて、前記読書処
理手段により前記金額情報を更新し、且つ該消費金額を
含む売上情報を送信する消費処理手段と、を備えること
を特徴とする読書装置。
11. A magnetic head for reading and writing a plurality of tracks of variable information including amount information corresponding to a monetary value and updated as needed with use, and predetermined fixed information that does not change regardless of use. Reading processing means for reading / writing variable information and fixed information in each track of the prepaid card using the magnetic head; and using the magnetic head to read fixed information and variable information of each track of the prepaid card. Reading, detecting an overlapping portion of the fixed information and the variable information in the track, extracting a waveform of the overlapping portion, and generating an encryption key based on the waveform; and a waveform analyzing unit. Using an encryption key based on the waveform of the overlapping portion of the fixed information and the variable information obtained, the other of the plurality of tracks is used. Encryption processing means for decrypting / encrypting the variable information in a predetermined track and providing the reading / writing of the variable information in the reading processing means; and the price information by the reading processing means in accordance with the consumption amount of the prepaid card. And a consumption processing unit for transmitting sales information including the consumption amount.
【請求項12】金銭的価値に対応する金額情報を含み使
用にともなって随時更新される可変情報と、使用にかか
わらず変化しない所定の固定情報とを磁性層の第1及び
第2のトラックに記憶する記憶媒体からなるプリペイド
カードを用いて金銭的決済を行うプリペイドカードシス
テムにおける暗号取引方法であって、 プリペイドカードの発行時において、プリペイドカード
の第1及び第2のトラックに固定情報を書込み、前記第
1のトラックの固定情報を検出して、当該プリペイドカ
ードの端縁から前記第1のトラックの固定情報の端部ま
での第1の距離を計測し、該第1の距離情報を第1の暗
号鍵として当該プリペイドカードの前記第2のトラック
に前記可変情報を暗号化記録する第1の記録ステップ
と、 前記第2のトラックの固定情報及び可変情報を検出し
て、該第2のトラックにおける固定情報と可変情報との
間隙に基づく第2の距離を計測し、該第2の距離情報を
第2の暗号鍵として当該プリペイドカードの前記第1の
トラックに前記可変情報の初期情報を暗号化記録して、
前記プリペイドカードとして発行する第2の記録ステッ
プと、 取引時において、前記プリペイドカードの端縁から前記
第1のトラックの前記固定情報の端部までの前記第1の
距離を計測し、該第1の距離情報を第1の暗号鍵として
前記第2のトラックの可変情報を復号/暗号化する第1
の暗復号ステップと、 前記第1の暗復号ステップにより復号/暗号化された前
記第2のトラックの可変情報の読出/書込を行う第1の
読書ステップと、 前記第2のトラックにおける前記固定情報と可変情報と
の間の前記第2の距離を計測し、該第2の距離情報を第
2の暗号鍵として前記第1のトラックの可変情報を復号
/暗号化する第2の暗復号ステップと、 前記第1の暗復号ステップにより復号/暗号化された前
記第1のトラックの可変情報の読出/書込を行う第2の
読書ステップと、 を備えることを特徴とする暗号取引方法。
12. The first and second tracks of the magnetic layer store variable information including money amount information corresponding to a monetary value and constantly updated with use and predetermined fixed information that does not change regardless of use. A cryptographic transaction method in a prepaid card system for performing a financial settlement using a prepaid card comprising a storage medium for storing fixed information on first and second tracks of the prepaid card when the prepaid card is issued, The fixed information of the first track is detected, and a first distance from an edge of the prepaid card to an end of the fixed information of the first track is measured. A first recording step of encrypting and recording the variable information on the second track of the prepaid card as an encryption key of: And variable information are detected, and a second distance based on a gap between the fixed information and the variable information in the second track is measured. The initial information of the variable information is encrypted and recorded on the first track,
A second recording step for issuing as the prepaid card, and during a transaction, measuring a first distance from an edge of the prepaid card to an end of the fixed information of the first track, Using the distance information of the second track as the first encryption key to decrypt / encrypt
A first reading step of reading / writing variable information of the second track decrypted / encrypted by the first encryption / decryption step; and the fixed step in the second track. A second encryption / decryption step of measuring the second distance between the information and the variable information, and decrypting / encrypting the variable information of the first track using the second distance information as a second encryption key; And a second reading step of reading / writing the variable information of the first track decrypted / encrypted by the first encryption / decryption step.
【請求項13】金銭的価値に対応する金額情報を含み使
用にともなって随時更新される可変情報と使用にかかわ
らず変化しない所定の固定情報とを磁性層の複数のトラ
ックに記憶する記憶媒体からなるプリペイドカードを用
いて金銭的決済を行うプリペイドカードシステムにおけ
る暗号取引方法であって、 取引時において、前記プリペイドカードの前記複数のト
ラックのうちの一つのトラックの前記固定情報と可変情
報とのオーバラップ部分を検出して、該オーバラップ部
分の波形を抽出する抽出ステップと、 前記抽出ステップにより抽出された波形に基づく暗号鍵
を用いて前記複数のトラックのうちの他の所定のトラッ
クの可変情報を復号/暗号化して、それぞれ当該プリペ
イドカードにおける前記他のトラックの可変情報の読出
/書込を行う読書ステップと、 を備えることを特徴とする暗号取引方法。
13. A storage medium that stores variable information including money amount information corresponding to a monetary value and constantly updated with use and predetermined fixed information that does not change regardless of use in a plurality of tracks of a magnetic layer. A cryptographic transaction method in a prepaid card system for performing a financial settlement using a prepaid card, wherein at the time of a transaction, the fixed information and the variable information of one track of the plurality of tracks of the prepaid card are overwritten. An extraction step of detecting a lap portion and extracting a waveform of the overlap portion; and a variable information of another predetermined track of the plurality of tracks using an encryption key based on the waveform extracted by the extraction step. To read / write the variable information of the other track on the prepaid card, respectively. Cryptographic transaction method characterized by comprising: a reading step of performing, the.
【請求項14】該プリペイドカードシステムは、パチン
コ店における遊技媒体であるパチンコ玉又はメタルの貸
与の対価を決済するためのシステムであることを特徴と
する請求項1、2、3、5、6、7、9、10のいずれ
か1項に記載のプリペイドカードシステム。
14. The prepaid card system according to claim 1, 2, 3, 5, 5 or 6, wherein the system is a system for settling payment for lending pachinko balls or metal as a game medium in a pachinko parlor. The prepaid card system according to any one of claims 7, 9, 9, and 10.
【請求項15】該読書装置が処理する前記プリペイドカ
ードは、パチンコ店における遊技媒体であるパチンコ玉
又はメタルの貸与の対価を支払うためのカードであるこ
とを特徴とする請求項4、8、11のいずれか1項に記
載の読書装置。
15. The card according to claim 4, wherein said prepaid card processed by said reading device is a card for paying for a pachinko ball or metal loan as a game medium in a pachinko parlor. A reading device according to any one of the preceding claims.
【請求項16】前記プリペイドカードは、パチンコ店に
おける遊技媒体であるパチンコ玉又はメタルの貸与の対
価を支払うためのカードであることを特徴とする請求項
12又は13に記載の暗号取引方法。
16. The cryptographic transaction method according to claim 12, wherein the prepaid card is a card for paying for a loan of a pachinko ball or metal as a game medium in a pachinko parlor.
JP10201349A 1998-07-16 1998-07-16 Prepaid card system, reader and password transaction method Pending JP2000030124A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10201349A JP2000030124A (en) 1998-07-16 1998-07-16 Prepaid card system, reader and password transaction method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10201349A JP2000030124A (en) 1998-07-16 1998-07-16 Prepaid card system, reader and password transaction method

Publications (1)

Publication Number Publication Date
JP2000030124A true JP2000030124A (en) 2000-01-28

Family

ID=16439570

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10201349A Pending JP2000030124A (en) 1998-07-16 1998-07-16 Prepaid card system, reader and password transaction method

Country Status (1)

Country Link
JP (1) JP2000030124A (en)

Similar Documents

Publication Publication Date Title
US7036721B2 (en) Method and apparatus for autonomous validation of issued scrip media
JP2000030124A (en) Prepaid card system, reader and password transaction method
JPH11328334A (en) Prepaid card system and reader writer
JPH11156036A (en) Automatic vending machine
JP3483792B2 (en) Prepaid card system, reading device and variable information updating method
JP2000030126A (en) Prepaid card system, reader, writer and illegal card use preventing method
JP3472179B2 (en) Prepaid card system, reading device and usage permission method
JP2000030125A (en) Prepaid card system, reader, writer and illegal card use preventing method
JP2000030130A (en) Prepaid card system, reader and illegal card use preventing method
JPH11328503A (en) Prepaid card system, recorder, reader/writer, ticket issuing machine and illegal card use prevention method
JPH11102468A (en) Prepaid card system, card reader and card unauthorized use preventing method
JP3486746B2 (en) Prepaid card system, reading device and card identification method
JP3571840B2 (en) IC card and IC card processing system
JP2000030131A (en) Prepaid card system, reader and illegal card use preventing method
JPH11328505A (en) Prepaid card system and reader/writer
JP2000231662A (en) Prepaid card system repeater and reading device
JP3467204B2 (en) Prepaid card system, reading device and card identification method
JPH10247229A (en) Magnetic card system
JP2000259909A (en) Prepaid card system, recording device, reading device and card discriminating method
JP3301988B2 (en) Prepaid card system, reading device and variable information updating method
JP2004171596A (en) Data output method, data output system and ic card
JPH02279392A (en) Data recording medium and apparatus using the same
JP2000259919A (en) Prepaid card system, recording device, reading and writing device and card discriminating method
JP2000259922A (en) Prepaid card system, reading and writing device and variable information updating method
JP2000030133A (en) Pre-paid card system, recording device, reading device, ticket issuing machine and illegal card detecting method