JP2000268305A - Prepaid card system, reading and writing apparatus, and method for updating variable information - Google Patents

Prepaid card system, reading and writing apparatus, and method for updating variable information

Info

Publication number
JP2000268305A
JP2000268305A JP11065770A JP6577099A JP2000268305A JP 2000268305 A JP2000268305 A JP 2000268305A JP 11065770 A JP11065770 A JP 11065770A JP 6577099 A JP6577099 A JP 6577099A JP 2000268305 A JP2000268305 A JP 2000268305A
Authority
JP
Japan
Prior art keywords
variable information
recorded
distance data
storage area
recording
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
JP11065770A
Other languages
Japanese (ja)
Inventor
Hideo Takashima
秀男 高島
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 JP11065770A priority Critical patent/JP2000268305A/en
Publication of JP2000268305A publication Critical patent/JP2000268305A/en
Pending legal-status Critical Current

Links

Landscapes

  • Control Of Vending Devices And Auxiliary Devices For Vending Devices (AREA)
  • Storage Device Security (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Recording Or Reproducing By Magnetic Means (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a prepaid card system or the like capable of preventing a forgery of a copy or the like. SOLUTION: When variable information updated according to the amount of consumed money is written onto a card, the reading and writing apparatus reads two pieces of variable information from a variable region EA1, and records and updates one of them which has not been recorded and updated at the previous use of the card. Then, characteristic data is obtained as a distance value between characteristic sections corresponding to the two pieces of the variable information in the variable region EA1. The characteristic data of the non-updated variable information is allowed to be contained in the variable information to be recorded in a variable region EA2, and encrypted with the characteristic data of the updated variable information being used as a key to be recorded and updated. After completing the recording and updating of the two pieces of the variable information into the variable regions EA1, EA2, the characteristic data of the two pieces of the variable information in the variable region EA1 is obtained, and the variable information in the variable region EA2 is decoded with the characteristic data of the updated variable information being used as a key. Then, it is discriminated whether or not the characteristic data of the non-updated variable information coincides with the characteristic data contained in the decoded variable information.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、プリペイドカード
の偽造を防止するプリペイドカードシステム、読書装置
及び可変情報更新方法に関する。
The present invention relates to a prepaid card system for preventing forgery of a prepaid card, a reading apparatus, and a variable information updating method.

【0002】[0002]

【従来の技術】金銭的価値を有する金額情報を記憶する
プリペイドカードを、遊技媒体等の貸出の対価の支払い
等に用いるプリペイドカードシステムが実現されてい
る。プリペイドカードシステムは、例えば、カード発行
元に設置される記録装置、各店舗に設置される発券機及
び読書装置等を備える。記録装置は、各プリペイドカー
ドに、カードID、券面金額等の固定情報と、残高等の
可変情報と、を記録(エンコード)する。可変情報及び
固定情報が記録されたプリペイドカードは、例えばカー
ド発行元から各店舗に販売される。
2. Description of the Related Art A prepaid card system has been realized in which a prepaid card storing money amount information having a monetary value is used to pay for a rental of a game medium or the like. The prepaid card system includes, for example, a recording device installed at a card issuer, a ticket issuing machine installed at each store, a reading device, and the like. The recording device records (encodes), on each prepaid card, fixed information such as a card ID and a face value, and variable information such as a balance. A prepaid card on which variable information and fixed information are recorded is sold to each store from, for example, a card issuer.

【0003】各店舗では、例えばカード発行元から購入
したプリペイドカードを発券機に格納する。発券機は、
利用者からの購入要求に応じて、自己に格納されている
プリペイドカードに所定の発券処理を施して発券する。
発券されたプリペイドカードは、利用者により例えば店
舗の読書装置で使用される。読書装置は、挿入されたプ
リペイドカードについて所定のチェックを行い、チェッ
ク結果が適正である場合、そのカードの使用を許可す
る。そして、該プリペイドカードに記憶されている残高
情報を含む可変情報を、消費金額等に応じて記録更新し
て排出する。
In each store, for example, a prepaid card purchased from a card issuer is stored in a ticket issuing machine. The ticketing machine is
In response to a purchase request from a user, a pre-paid card stored therein is subjected to a predetermined ticket issuing process to issue a ticket.
The issued prepaid card is used by a user, for example, in a reading device at a store. The reading device performs a predetermined check on the inserted prepaid card, and if the check result is appropriate, permits the use of the card. Then, the variable information including the balance information stored in the prepaid card is recorded and updated according to the consumption amount and the like, and is discharged.

【0004】[0004]

【発明が解決しようとする課題】しかし、上記のような
システムでは、例えば、プリペイドカードの可変情報を
他のカードにコピーする等して不正カードが偽造される
可能性がある。例えば、読書装置は、挿入されたカード
について種々のチェックを行い、それらのチェック結果
が適正である場合に、可変情報の記録更新を行うが、チ
ェックが適正に完了した後で、可変情報を記録更新する
前に、処理対象のカードを他のカード(例えば、残高情
報等の可変情報が記録されていないカード)にすり替え
られると、すり替えられた他のカードに、可変情報が記
録されてしまう。これにより、例えば残高の多いカード
を挿入し、挿入時のチェックが完了した後、可変情報が
記憶されていないカードにすり替えて、残高の高いカー
ドのデータを記録させることにより、カードの偽造がな
される虞がある。
However, in such a system as described above, there is a possibility that a fraudulent card is forged, for example, by copying variable information of a prepaid card to another card. For example, the reading device performs various checks on the inserted card, and records and updates the variable information when the results of the checks are appropriate, but records the variable information after the check is properly completed. If the card to be processed is replaced with another card (for example, a card on which variable information such as balance information is not recorded) before updating, the variable information is recorded on the replaced card. Thus, for example, a card with a large balance is inserted, and after a check at the time of insertion is completed, the card is replaced with a card in which variable information is not stored, and data of the card with a high balance is recorded, thereby forging a card. There is a risk that.

【0005】本発明は、上述した事情に鑑みてなされた
もので、データの不正コピー等によるプリペイドカード
の偽造を防止することができるプリペイドカードシステ
ム、読書装置及び可変情報更新方法を提供することを目
的とする。
The present invention has been made in view of the above-mentioned circumstances, and provides a prepaid card system, a reading device, and a variable information updating method which can prevent forgery of a prepaid card due to unauthorized copying of data. Aim.

【0006】[0006]

【課題を解決するための手段】上記目的を達成するた
め、本発明の第1の観点に係るプリペイドカードシステ
ムは、プリペイドカードに金額情報を含む可変情報を記
録して発行する記録装置と、前記記録装置により発行さ
れたプリペイドカードに記憶されている可変情報を消費
金額に応じて更新する読書装置と、を備えるプリペイド
カードシステムにおいて、前記読書装置は、挿入された
プリペイドカードの第1の磁気記憶領域に記憶されてい
る2つの可変情報のうち、該プリペイドカードの前回の
使用時に記録更新された方の可変情報の記録位置に基づ
いて取得した距離データを鍵として、第2の記憶領域に
記憶されている可変情報を復号化するとともに、前回記
録更新されなかった方の可変情報の記録位置に基づいて
取得した距離データが、前記復号化された可変情報に含
まれる距離データと、一致するか否かを判別し、一致し
ない場合、カードの使用を禁止する読取チェック手段
と、消費金額に応じて更新された可変情報を前記プリペ
イドカードに記録する際に、前記第1の磁気記憶領域に
おける2つの可変情報のうち、前回のカード使用時に記
録更新されなかった方の可変情報を記録更新する第1更
新手段と、前記第1更新手段により記録更新されなかっ
た方の可変情報の記録位置に基づいて取得した距離デー
タを、前記プリペイドカードの第2の記憶領域に記録す
べき可変情報に含めるとともに、前記第1更新手段によ
り記録更新された方の可変情報の記録位置に基づいて取
得した距離データを鍵として、前記第2の記憶領域に記
録すべき可変情報を暗号化して記録更新する第2更新手
段と、可変情報の記録更新の完了後、前記プリペイドカ
ードの第1の磁気記憶領域における2つの可変情報の記
録位置に基づいてそれぞれ距離データを取得し、前記第
1更新手段により記録更新された方の可変情報の距離デ
ータを鍵として、前記第2の記憶領域に記憶されている
可変情報を復号化するとともに、前記第1更新手段によ
り記録更新されなかった方の可変情報の距離データが、
前記復号化された可変情報に含まれる距離データと、一
致するか否かを判別し、一致しない場合、所定のエラー
処理を行う更新チェック手段と、を備える。
In order to achieve the above object, a prepaid card system according to a first aspect of the present invention comprises: a recording device for recording and issuing variable information including money amount information on a prepaid card; A reading device that updates the variable information stored in the prepaid card issued by the recording device in accordance with the amount of consumption, wherein the reading device includes a first magnetic storage device of the inserted prepaid card. Of the two variable information stored in the area, the distance data obtained based on the recording position of the variable information which has been recorded and updated in the previous use of the prepaid card is stored in the second storage area as a key. The distance data obtained by decoding the variable information that has been recorded and based on the recording position of the variable information that has not been recorded and updated last time Determining whether or not the distance data included in the decrypted variable information matches; if not, reading check means for prohibiting use of the card; and reading the variable information updated according to the consumption amount. First recording means for recording and updating, of the two pieces of variable information in the first magnetic storage area, the variable information which has not been recorded and updated during the previous use of the card when recording on the prepaid card; The distance data acquired based on the recording position of the variable information that has not been updated and recorded by the first updating means is included in the variable information to be recorded in the second storage area of the prepaid card, and the distance data is recorded by the first updating means. The variable information to be recorded in the second storage area is encrypted by using the distance data acquired based on the recording position of the variable information that has been recorded and updated as a key, so that the recording information is updated. A second updating unit for acquiring distance data based on recording positions of the two variable information in the first magnetic storage area of the prepaid card after the completion of the recording and updating of the variable information. Using the distance data of the record-updated variable information as a key, the variable information stored in the second storage area is decrypted, and the variable information of the record-unupdated variable information is not updated by the first update means. If the distance data is
Update checking means for determining whether or not the distance data is included in the decoded variable information, and performing a predetermined error process when the distance data does not match;

【0007】このような構成によれば、カードの使用毎
に、2つの可変情報の一方のみを記録更新する。このた
め、記録の直前に、処理対象のカードが、例えば可変情
報等が記憶されていないカード等にすり替えられた場
合、そのカードに一方の可変情報が記録されても、記録
されているべき他方の可変情報が存在しないため、第2
の記憶領域における可変情報中に適正な距離データ(特
徴データ)が存在しないこととなる。従って、一方の可
変情報の記録更新後に、記録更新されない方の可変情報
について、その距離データを照合することにより、カー
ドのすり替え等の不正行為を容易に検出できる。また、
一般にプリペイドカードは、その製造時においてカード
を打ち抜く際に誤差が生じ、また、データを記録する際
にも記録位置に多少の誤差が生じる。従って、可変情報
の記録位置に基づいて取得された距離データは、プリペ
イドカード毎に一意となるため、これを暗号鍵に使用
し、また、照合に用いることにより、より安全性の高い
システムを実現できる。
With this configuration, each time the card is used, only one of the two pieces of variable information is recorded and updated. For this reason, immediately before recording, if the processing target card is replaced with, for example, a card that does not store variable information or the like, even if one variable information is recorded on that card, the other should be recorded Because the variable information of
No suitable distance data (feature data) is present in the variable information in the storage area. Therefore, after updating the record of one of the variable information, by comparing the distance data with respect to the variable information which is not to be updated, it is possible to easily detect an improper act such as replacement of a card. Also,
In general, an error occurs when a prepaid card is punched out during manufacture, and a slight error occurs in a recording position when data is recorded. Therefore, since the distance data obtained based on the recording position of the variable information is unique for each prepaid card, it is used as an encryption key and used for verification to realize a more secure system. it can.

【0008】前記記録装置は、プリペイドカードの第1
の磁気記憶領域に、2つの可変情報を記録する第1記録
手段と、前記第1記録手段により記録された2つの可変
情報のうち、一方の可変情報の記録位置に基づいて取得
した距離データを、第2の記憶領域に記録すべき可変情
報に含めるとともに、他方の可変情報の記録位置に基づ
いて取得した距離データを鍵として、前記第2の記憶領
域に記録すべき可変情報を暗号化して記録する第2記録
手段と、を備えてもよく、前記読書装置は、挿入された
前記プリペイドカードが未使用である場合、該プリペイ
ドカードの第1の磁気記憶領域に記憶されている2つの
可変情報のうち、一方の可変情報の記録位置に基づいて
取得した距離データを鍵として、第2の記憶領域に記憶
されている可変情報を復号化するとともに、他方の可変
情報の記録位置に基づいて取得した距離データが、前記
復号化された可変情報に含まれている距離データと一致
するか否かを判別し、一致しない場合、カードの使用を
禁止する初期読取チェック手段と、消費金額に応じて更
新された可変情報を前記未使用のプリペイドカードに記
録する際に、前記第1の磁気記憶領域における2つの可
変情報のうちの一方を記録更新する第1初期更新手段
と、前記第1初期更新手段により記録更新されなかった
方の可変情報の記録位置に基づいて取得した距離データ
を、第2の記憶領域に記録すべき可変情報に含めるとと
もに、前記第1初期更新手段により記録更新された方の
可変情報の記録位置に基づいて取得した距離データを鍵
として、前記第2の記憶領域に記録すべき可変情報を暗
号化して記録更新する第2初期更新手段と、可変情報の
記録更新の完了後、前記プリペイドカードの第1の磁気
記憶領域における2つの可変情報の記録位置に基づいて
それぞれ距離データを取得し、前記第1初期更新手段に
より記録更新された方の可変情報の距離データを鍵とし
て、前記第2の記憶領域に記憶されている可変情報を復
号化するとともに、前記第1初期更新手段により記録更
新されなかった方の可変情報の距離データが、前記復号
化された可変情報に含まれる距離データと、一致するか
否かを判別し、一致しない場合、所定のエラー処理を行
う初期更新チェック手段と、を備えてもよい。
[0008] The recording device is provided with a first prepaid card.
The first recording means for recording two pieces of variable information in the magnetic storage area of the above, and the distance data acquired based on the recording position of one of the two pieces of variable information among the two pieces of variable information recorded by the first recording means. The variable information to be recorded in the second storage area is encrypted by using the distance data obtained based on the recording position of the other variable information as a key while including the variable information to be recorded in the second storage area. And a second recording means for recording. When the inserted prepaid card is unused, the reading device is configured to store the two variable information stored in the first magnetic storage area of the prepaid card. Using the distance data obtained based on the recording position of one of the variable information as a key, the variable information stored in the second storage area is decrypted, and the information is stored in the recording position of the other variable information. Determining whether the acquired distance data matches the distance data included in the decrypted variable information. If the distance data does not match, the initial reading check means for prohibiting use of the card; A first initial update unit that records and updates one of the two variable information items in the first magnetic storage area when the variable information item updated according to the above is recorded on the unused prepaid card; (1) Include distance data acquired based on the recording position of the variable information that has not been recorded and updated by the initial updating means in the variable information to be recorded in the second storage area, and update the recording information by the first initial updating means. A second initial updating method for encrypting and recording and updating the variable information to be recorded in the second storage area, using the distance data acquired based on the recording position of the obtained variable information as a key; After the completion of the recording and updating of the variable information, the distance data are respectively obtained based on the recording positions of the two variable information in the first magnetic storage area of the prepaid card, and the recording and updating are performed by the first initial updating means. Using the distance data of the variable information as a key, the variable information stored in the second storage area is decrypted, and the distance data of the variable information that has not been recorded and updated by the first initial update unit is determined. And an initial update check unit for determining whether or not the distance data included in the decoded variable information matches, and performing a predetermined error process when the distance data does not match.

【0009】また、本発明の第2の観点に係るプリペイ
ドカードシステムは、プリペイドカードに金額情報を含
む所定情報を記録して発行する記録装置と、前記記録装
置により発行されたプリペイドカードに記憶されている
所定情報を消費金額に応じて更新する読書装置と、を備
えるプリペイドカードシステムにおいて、前記読書装置
は、挿入されたプリペイドカードの第1の磁気記憶領域
に記憶されている2つの可変情報の記録位置に基づいて
それぞれ取得した2つの距離データを用いて暗号データ
を生成し、該暗号データが、第2の記憶領域に記憶され
ている可変情報に付与されている暗号データと一致する
か否かを判別するとともに、該プリペイドカードの前回
の使用時に記録更新されなかった方の可変情報の記録位
置に基づいて取得した距離データが、前記第2の記憶領
域における可変情報に含まれる距離データと、一致する
か否かを判別し、比較した暗号データが一致しない場
合、又は、比較した距離データが一致しない場合、カー
ドの使用を禁止する読取チェック手段と、消費金額に応
じて更新された可変情報を前記プリペイドカードに記録
する際に、前記第1の磁気記憶領域における2つの可変
情報のうち、前回のカード使用時に記録更新されなかっ
た方の可変情報を記録更新する第1更新手段と、前記第
1更新手段により記録更新されなかった方の可変情報の
記録位置に基づいて取得した距離データを、前記プリペ
イドカードの第2の記憶領域に記録すべき可変情報に含
めるとともに、該距離データと、前記第1更新手段によ
り記録更新された方の可変情報の記録位置に基づいて取
得した距離データと、を用いて暗号データを生成し、該
暗号データを、前記第2の記憶領域に記録すべき可変情
報に付与して記録更新する第2更新手段と、可変情報の
記録更新の完了後、前記プリペイドカードの第1の磁気
記憶領域における2つの可変情報の記録位置に基づいて
それぞれ距離データを取得し、取得した2つの距離デー
タを用いて暗号データを生成し、該暗号データが、前記
第2の記憶領域に記憶されている可変情報に付与されて
いる暗号データと一致するか否かを判別するとともに、
前記第1更新手段により記録更新されなかった方の可変
情報の距離データが、前記第2の記憶領域における可変
情報に含まれる距離データと、一致するか否かを判別
し、比較した暗号データが一致しない場合、又は、比較
した距離データが一致しない場合、所定のエラー処理を
行う更新チェック手段と、を備える。
A prepaid card system according to a second aspect of the present invention is a recording device for recording and issuing predetermined information including money amount information on a prepaid card, and a prepaid card stored in the prepaid card issued by the recording device. And a reading device that updates the predetermined information according to the consumption amount. The reading device reads the two variable information stored in the first magnetic storage area of the inserted prepaid card. Encrypted data is generated using the two distance data acquired based on the recording position, and whether the encrypted data matches the encrypted data added to the variable information stored in the second storage area. And obtain based on the recording position of the variable information of the prepaid card which has not been updated or updated during the previous use of the prepaid card. It is determined whether or not the distance data matches the distance data included in the variable information in the second storage area. If the compared encrypted data does not match, or if the compared distance data does not match, Reading check means for prohibiting the use of the card; and, when the variable information updated according to the consumption amount is recorded on the prepaid card, of the two variable information in the first magnetic storage area, First updating means for recording and updating the variable information which has not been updated at the time; and distance data obtained based on the recording position of the variable information which has not been updated and updated by the first updating means. Of the variable information to be recorded in the second storage area, the distance data, and the variable information recorded and updated by the first updating means. A second update unit that generates encrypted data using the distance data acquired based on the location, adds the encrypted data to variable information to be recorded in the second storage area, and records and updates the variable information. After the completion of the recording and updating of the information, the distance data are respectively obtained based on the recording positions of the two variable information in the first magnetic storage area of the prepaid card, and the encrypted data is generated using the obtained two distance data. Determining whether or not the encrypted data matches the encrypted data added to the variable information stored in the second storage area;
It is determined whether or not the distance data of the variable information that has not been recorded and updated by the first updating unit matches the distance data included in the variable information in the second storage area. Update checking means for performing a predetermined error process when the distance data does not match or when the compared distance data does not match.

【0010】このような構成によれば、カードの使用毎
に、2つの可変情報の一方のみを記録更新する。このた
め、記録更新の直前に、処理対象のカードが、例えば可
変情報等が記憶されていないカード等にすり替えられた
場合、そのカードに一方の可変情報が記録されても、記
録されているべき他方の可変情報が存在しないこととな
る。従って、一方の可変情報の記録更新後に、記録更新
されない方の可変情報について、その距離データを照合
することにより、カードのすり替え等の不正行為を容易
に検出できる。また、一般にプリペイドカードは、その
製造時においてカードを打ち抜く際に誤差が生じ、ま
た、データを記録する際にも記録位置に多少の誤差が生
じる。従って、可変情報の記録位置に基づいて取得され
た距離データは、プリペイドカード毎に一意となるた
め、これを照合に用いることにより、より安全性の高い
システムを実現できる。
According to such a configuration, each time the card is used, only one of the two pieces of variable information is recorded and updated. Therefore, immediately before the record update, if the processing target card is replaced with, for example, a card that does not store variable information and the like, even if one of the variable information is recorded on that card, it should be recorded. The other variable information does not exist. Therefore, after updating the record of one of the variable information, by comparing the distance data with respect to the variable information which is not to be updated, it is possible to easily detect an improper act such as replacement of a card. In general, an error occurs when a prepaid card is punched out at the time of its manufacture, and a slight error occurs in a recording position when data is recorded. Therefore, since the distance data acquired based on the recording position of the variable information is unique for each prepaid card, a more secure system can be realized by using the distance data for collation.

【0011】前記記録装置は、プリペイドカードの第1
の磁気記憶領域に、2つの可変情報を記録する第1記録
手段と、前記第1記録手段により記録された2つの可変
情報の記録位置に基づいてそれぞれ距離データを取得
し、取得した2つの距離データのうちの一方を、第2の
記憶領域に記録すべき可変情報に含めるとともに、2つ
の距離データを用いて暗号データを生成し、前記第2の
記憶領域に記録すべき可変情報に付与して記録する第2
記録手段と、を備えてもよく、前記読書装置は、挿入さ
れた前記プリペイドカードが未使用である場合、該プリ
ペイドカードの第1の磁気記憶領域に記憶されている2
つの可変情報の記録位置に基づいてそれぞれ取得した2
つの距離データを用いて暗号データを生成し、該暗号デ
ータが、第2の記憶領域に記憶されている可変情報に付
与されている暗号データと一致するか否かを判別すると
ともに、2つの距離データのうちの一方が、前記第2の
記憶領域における可変情報に含まれる距離データと、一
致するか否かを判別し、比較した暗号データが一致しな
い場合、又は、比較した距離データが一致しない場合、
カードの使用を禁止する初期読取チェック手段と、消費
金額に応じて更新された可変情報を前記未使用のプリペ
イドカードに記録する際に、前記第1の磁気記憶領域に
おける2つの可変情報のうちの一方を記録更新する第1
初期更新手段と、前記初期第1更新手段により記録更新
されなかった方の可変情報の距離データであり、前記初
期読取チェック手段により取得されたものを、第2の記
憶領域に記録すべき可変情報に含めるとともに、該距離
データと、前記第1初期更新手段により記録更新された
方の可変情報の記録位置に基づいて取得した距離データ
と、を用いて暗号データを生成し、該暗号データを、前
記第2の記憶領域に記録すべき可変情報に付与して記録
更新する第2初期更新手段と、可変情報の記録更新の完
了後、前記プリペイドカードの第1の磁気記憶領域にお
ける2つの可変情報の記録位置に基づいてそれぞれ距離
データを取得し、取得した2つの距離データを用いて暗
号データを生成し、該暗号データが、前記第2の記憶領
域に記憶されている可変情報に付与されている暗号デー
タと一致するか否かを判別するとともに、前記第1初期
更新手段により記録更新されなかった方の可変情報の距
離データが、前記第2の記憶領域における可変情報に含
まれる距離データと、一致するか否かを判別し、比較し
た暗号データが一致しない場合、又は、比較した距離デ
ータが一致しない場合、所定のエラー処理を行う初期更
新チェック手段と、を備えてもよい。
[0011] The recording device may be a first prepaid card.
A first recording unit for recording two pieces of variable information in the magnetic storage area, and distance data based on the recording positions of the two pieces of variable information recorded by the first recording unit. One of the data is included in the variable information to be recorded in the second storage area, and encrypted data is generated using the two distance data, and the encrypted data is added to the variable information to be recorded in the second storage area. Second to record
Recording means, wherein when the inserted prepaid card is unused, the reading device stores the stored prepaid card in the first magnetic storage area of the prepaid card.
2 obtained based on the recording positions of the two variable information
The encrypted data is generated using the two distance data, and it is determined whether the encrypted data matches the encrypted data added to the variable information stored in the second storage area. It is determined whether or not one of the data matches the distance data included in the variable information in the second storage area. If the compared encrypted data does not match, or the compared distance data does not match. If
An initial reading check unit for prohibiting use of the card, and, when the variable information updated according to the consumption amount is recorded on the unused prepaid card, of the two variable information in the first magnetic storage area. The first to record and update one
Initial update means and distance data of the variable information not recorded and updated by the initial first update means, the distance data obtained by the initial read check means being the variable information to be recorded in the second storage area. , And generates encrypted data using the distance data and the distance data obtained based on the recording position of the variable information that has been recorded and updated by the first initial updating unit, and generates the encrypted data. A second initial updating means for adding and updating the variable information to be recorded in the second storage area, and two variable information in the first magnetic storage area of the prepaid card after completion of the recording and updating of the variable information; The distance data is respectively acquired based on the recording position of, and encrypted data is generated using the two acquired distance data, and the encrypted data is stored in the second storage area. It is determined whether or not the variable information matches the encrypted data attached to the variable information, and the distance data of the variable information that has not been recorded and updated by the first initial updating means is stored in the variable information in the second storage area. And initial update check means for determining whether or not they match the distance data included in the data, and performing predetermined error processing when the compared encrypted data does not match or when the compared distance data does not match. You may.

【0012】また、本発明の第3の観点に係る読書装置
は、プリペイドカードに記憶されている金額情報を含む
可変情報を、消費金額に応じて更新する読書装置であっ
て、挿入されたプリペイドカードの第1の磁気記憶領域
に記憶されている2つの可変情報のうち、該プリペイド
カードの前回の使用時に記録更新された方の可変情報の
記録位置に基づいて距離データを取得し、該距離データ
を鍵として、第2の記憶領域に記憶されている可変情報
を復号化するとともに、前回記録更新されなかった方の
可変情報の記録位置に基づいて取得した距離データが、
前記復号化された可変情報に含まれる距離データと、一
致するか否かを判別し、一致しない場合、カードの使用
を禁止する読取チェック手段と、消費金額に応じて更新
された可変情報を前記プリペイドカードに記録する際
に、前記第1の磁気記憶領域における2つの可変情報の
うち、前回のカード使用時に記録更新されなかった方の
可変情報を記録更新する第1更新手段と、前記第1更新
手段により記録更新されなかった方の可変情報の記録位
置に基づいて取得した距離データを、前記プリペイドカ
ードの第2の記憶領域に記録すべき可変情報に含めると
ともに、前記第1更新手段により記録更新された方の可
変情報の記録位置に基づいて取得した距離データを鍵と
して、前記第2の記憶領域に記録すべき可変情報を暗号
化して記録更新する第2更新手段と、可変情報の記録更
新の完了後、前記プリペイドカードの第1の磁気記憶領
域における2つの可変情報の記録位置に基づいてそれぞ
れ距離データを取得し、前記第1更新手段により記録更
新された方の可変情報の距離データを鍵として、前記第
2の記憶領域に記憶されている可変情報を復号化すると
ともに、前記第1更新手段により記録更新されなかった
方の可変情報の距離データが、前記復号化された可変情
報に含まれる距離データと、一致するか否かを判別し、
一致しない場合、所定のエラー処理を行う更新チェック
手段と、を備える。
A reading device according to a third aspect of the present invention is a reading device for updating variable information including amount information stored in a prepaid card in accordance with a consumption amount, wherein the inserted prepaid card is updated. The distance data is obtained based on the recording position of the variable information that was recorded and updated at the time of the previous use of the prepaid card, of the two variable information stored in the first magnetic storage area of the card, Using the data as a key, the variable information stored in the second storage area is decrypted, and the distance data acquired based on the recording position of the variable information that has not been recorded and updated last time is:
The distance data included in the decrypted variable information is discriminated as to whether or not they match, and if they do not match, reading check means for prohibiting use of the card, and the variable information updated according to the amount of consumption, First recording means for recording and updating, of the two pieces of variable information in the first magnetic storage area, the variable information that has not been recorded and updated during the previous use of the card when recording on the prepaid card; The distance data acquired based on the recording position of the variable information that has not been recorded and updated by the updating means is included in the variable information to be recorded in the second storage area of the prepaid card, and is recorded by the first updating means. Using the distance data obtained based on the recording position of the updated variable information as a key, the variable information to be recorded in the second storage area is encrypted and recorded and updated. 2 updating means, and after completion of the updating of the record of the variable information, obtains distance data based on the recording positions of the two variable information in the first magnetic storage area of the prepaid card, and updates the record by the first updating means. The variable information stored in the second storage area is decrypted using the distance data of the variable information that has been set as a key, and the distance data of the variable information that has not been recorded and updated by the first updating unit. Is determined whether or not the distance data included in the decoded variable information matches,
And updating check means for performing a predetermined error process when they do not match.

【0013】また、本発明の第4の観点に係る読書装置
は、プリペイドカードに記憶されている金額情報を含む
可変情報を、消費金額に応じて更新する読書装置であっ
て、挿入されたプリペイドカードの第1の磁気記憶領域
に記憶されている2つの可変情報の記録位置に基づいて
それぞれ取得した2つの距離データを用いて暗号データ
を生成し、該暗号データが、第2の記憶領域に記憶され
ている可変情報に付与されている暗号データと一致する
か否かを判別するとともに、該プリペイドカードの前回
の使用時に記録更新されなかった方の可変情報の記録位
置に基づいて取得した距離データが、前記第2の記憶領
域における可変情報に含まれる距離データと、一致する
か否かを判別し、比較した暗号データが一致しない場
合、又は、比較した距離データが一致しない場合、カー
ドの使用を禁止する読取チェック手段と、消費金額に応
じて更新された可変情報を前記プリペイドカードに記録
する際に、前記第1の磁気記憶領域における2つの可変
情報のうち、前回のカード使用時に記録更新されなかっ
た方の可変情報を記録更新する第1更新手段と、前記第
1更新手段により記録更新されなかった方の可変情報の
記録位置に基づいて取得した距離データを、前記プリペ
イドカードの第2の記憶領域に記録すべき可変情報に含
めるとともに、該距離データと、前記第1更新手段によ
り記録更新された方の可変情報の記録位置に基づいて取
得した距離データと、を用いて暗号データを生成し、該
暗号データを、前記第2の記憶領域に記録すべき可変情
報に付与して記録更新する第2更新手段と、可変情報の
記録更新の完了後、前記プリペイドカードの第1の磁気
記憶領域における2つの可変情報の記録位置に基づいて
それぞれ距離データを取得し、取得した2つの距離デー
タを用いて暗号データを生成し、該暗号データが、前記
第2の記憶領域に記憶されている可変情報に付与されて
いる暗号データと一致するか否かを判別するとともに、
前記第1更新手段により記録更新されなかった方の可変
情報の距離データが、前記第2の記憶領域における可変
情報に含まれる距離データと、一致するか否かを判別
し、比較した暗号データが一致しない場合、又は、比較
した距離データが一致しない場合、所定のエラー処理を
行う更新チェック手段と、を備える。
[0013] A reading device according to a fourth aspect of the present invention is a reading device for updating variable information including amount information stored in a prepaid card in accordance with a consumption amount, wherein the inserted prepaid card is updated. Encrypted data is generated using the two distance data obtained based on the recording positions of the two variable information stored in the first magnetic storage area of the card, and the encrypted data is stored in the second storage area. The distance obtained based on the recording position of the variable information that has not been recorded and updated during the previous use of the prepaid card, while determining whether or not the data matches the encrypted data given to the stored variable information. It is determined whether the data matches the distance data included in the variable information in the second storage area, and if the compared encrypted data does not match, or A read check unit for prohibiting the use of the card when the separated data does not match; and two variable information in the first magnetic storage area when the variable information updated according to the consumption amount is recorded on the prepaid card. The first updating means for recording and updating the variable information which has not been updated when the card was used last time, and the variable information which has not been updated by the first updating means. The distance data is included in the variable information to be recorded in the second storage area of the prepaid card, and the distance data is obtained based on the distance data and the recording position of the variable information recorded and updated by the first updating unit. A second update method for generating encrypted data by using the distance data and adding the encrypted data to variable information to be recorded in the second storage area and recording and updating the variable information. And after completion of the recording and updating of the variable information, obtains distance data based on the recording positions of the two variable information in the first magnetic storage area of the prepaid card, and uses the obtained two distance data to encrypt data. And determines whether or not the encrypted data matches the encrypted data added to the variable information stored in the second storage area,
It is determined whether or not the distance data of the variable information that has not been recorded and updated by the first updating unit matches the distance data included in the variable information in the second storage area. Update checking means for performing a predetermined error process when the distance data does not match or when the compared distance data does not match.

【0014】また、本発明の第5の観点に係る可変情報
更新方法は、プリペイドカードに記憶されている金額情
報を含む可変情報を消費金額に応じて更新する読書装置
を備えるプリペイドカードシステムにおける可変情報更
新方法であって、前記読書装置において、消費金額に応
じて更新された可変情報を前記プリペイドカードに記録
する際に、前記第1の磁気記憶領域における2つの可変
情報のうち、前回のカード使用時に記録更新されなかっ
た方の可変情報を記録更新する第1更新ステップと、前
記第1更新ステップにより記録更新されなかった方の可
変情報の記録位置に基づいて取得した距離データを、前
記プリペイドカードの第2の記憶領域に記録すべき可変
情報に含めるとともに、前記第1更新ステップにより記
録更新された方の可変情報の記録位置に基づいて取得し
た距離データを鍵として、前記第2の記憶領域に記録す
べき可変情報を暗号化して記録更新する第2更新ステッ
プと、可変情報の記録更新の完了後、前記プリペイドカ
ードの第1の磁気記憶領域における2つの可変情報の記
録位置に基づいてそれぞれ距離データを取得し、前記第
1更新ステップにより記録更新された方の可変情報の距
離データを鍵として、前記第2の記憶領域に記憶されて
いる可変情報を復号化するとともに、前記第1更新ステ
ップにより記録更新されなかった方の可変情報の距離デ
ータが、前記復号化された可変情報に含まれる距離デー
タと、一致するか否かを判別し、一致しない場合、所定
のエラー処理を行う更新チェックステップと、を備え
る。
A variable information updating method according to a fifth aspect of the present invention is a variable information updating method in a prepaid card system including a reading device for updating variable information including amount information stored in a prepaid card in accordance with a consumption amount. In the information updating method, in the reading device, when the variable information updated according to the consumption amount is recorded on the prepaid card, when the variable information updated in the first magnetic storage area is the same as the last card information, A first update step of recording and updating the variable information that has not been updated in use, and distance data acquired based on the recording position of the variable information that has not been updated in the first updating step. In addition to the variable information to be recorded in the second storage area of the card, A second updating step of encrypting and updating the variable information to be recorded in the second storage area by using the distance data obtained based on the recording position of the variable information as a key; The distance data is respectively obtained based on the recording positions of the two variable information in the first magnetic storage area of the prepaid card, and the distance data of the variable information recorded and updated in the first updating step is used as a key, The variable information stored in the second storage area is decoded, and the distance data of the variable information that has not been recorded and updated in the first updating step is the distance data included in the decoded variable information. And an update check step of determining whether or not they match, and performing a predetermined error process if they do not match.

【0015】また、本発明の第6の観点に係る可変情報
更新方法は、プリペイドカードに記憶されている金額情
報を含む可変情報を消費金額に応じて更新する読書装置
を備えるプリペイドカードシステムにおける可変情報更
新方法であって、前記読書装置において、消費金額に応
じて更新された可変情報を前記プリペイドカードに記録
する際に、前記第1の磁気記憶領域における2つの可変
情報のうち、前回のカード使用時に記録更新されなかっ
た方の可変情報を記録更新する第1更新ステップと、前
記第1更新ステップにより記録更新されなかった方の可
変情報の記録位置に基づいて取得した距離データを、前
記プリペイドカードの第2の記憶領域に記録すべき可変
情報に含めるとともに、該距離データと、前記第1更新
ステップにより記録更新された方の可変情報の記録位置
に基づいて取得した距離データと、を用いて暗号データ
を生成し、該暗号データを、前記第2の記憶領域に記録
すべき可変情報に付与して記録更新する第2更新ステッ
プと、可変情報の記録更新の完了後、前記プリペイドカ
ードの第1の磁気記憶領域における2つの可変情報の記
録位置に基づいてそれぞれ距離データを取得し、取得し
た2つの距離データを用いて暗号データを生成し、該暗
号データが、前記第2の記憶領域に記憶されている可変
情報に付与されている暗号データと一致するか否かを判
別するとともに、前記第1更新ステップにより記録更新
されなかった方の可変情報の距離データが、前記第2の
記憶領域における可変情報に含まれる距離データと、一
致するか否かを判別し、比較した暗号データが一致しな
い場合、又は、比較した距離データが一致しない場合、
所定のエラー処理を行う更新チェックステップと、を備
える。
A variable information updating method according to a sixth aspect of the present invention is a variable information updating method in a prepaid card system including a reading device for updating variable information including amount information stored in a prepaid card in accordance with a consumption amount. In the information updating method, in the reading device, when the variable information updated according to the consumption amount is recorded on the prepaid card, when the variable information updated in the first magnetic storage area is the same as the last card information, A first update step of recording and updating the variable information that has not been updated in use, and distance data acquired based on the recording position of the variable information that has not been updated in the first updating step. It is included in the variable information to be recorded in the second storage area of the card, and the distance data is recorded by the first updating step. Generating encrypted data using the distance data acquired based on the recording position of the updated variable information, and adding the encrypted data to the variable information to be recorded in the second storage area and recording the encrypted data. A second updating step of updating, and after the completion of the recording and updating of the variable information, distance data are respectively acquired based on the recording positions of the two variable information in the first magnetic storage area of the prepaid card, and the acquired two distances are obtained. Generating encrypted data using the data; determining whether the encrypted data matches the encrypted data added to the variable information stored in the second storage area; It is determined whether or not the distance data of the variable information that has not been recorded and updated in the step matches the distance data included in the variable information in the second storage area. If the data does not match, or if the distance data comparing do not match,
An update check step of performing a predetermined error process.

【0016】[0016]

【発明の実施の形態】以下、本発明の実施の形態に係る
プリペイドカードシステムについて、図面を参照して説
明する。 (第1の実施形態)第1の実施形態に係るプリペイドカ
ードシステムは、図1に示すように、記録装置1、読書
装置3、中継装置4、センタ5等を備える。記録装置1
及びセンタ5は、カード発行元に設置されており、読書
装置3及び中継装置4は、各店舗に設置されている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS A prepaid card system according to an embodiment of the present invention will be described below with reference to the drawings. (First Embodiment) As shown in FIG. 1, a prepaid card system according to a first embodiment includes a recording device 1, a reading device 3, a relay device 4, a center 5, and the like. Recording device 1
The center 5 is installed at the card issuer, and the reading device 3 and the relay device 4 are installed at each store.

【0017】本システムで使用されるプリペイドカード
6は、図2に示すように、プリペイドカード6が使用さ
れる毎に記録更新される可変情報(残高等)を記憶する
ための可変領域EAと、記録更新されない固定情報(カ
ードID、券面金額等)を記憶するための固定領域EB
と、を有し、このうち可変領域EAは、2つの可変領域
EA1、EA2を含む。これらの記憶領域へのデータの
記録の詳細については後述する。
As shown in FIG. 2, the prepaid card 6 used in the present system includes a variable area EA for storing variable information (balance, etc.) which is recorded and updated every time the prepaid card 6 is used. Fixed area EB for storing fixed information (card ID, bill value, etc.) that is not recorded and updated
And the variable region EA includes two variable regions EA1 and EA2. Details of recording data in these storage areas will be described later.

【0018】記録装置1は、カード発行元において、プ
リペイドカード6に可変情報(初期値)と、固定情報
と、を記録するための装置である。記録装置1は、図3
に示すように、カード記録部11と、制御部13と、記
憶部15と、を備える。
The recording device 1 is a device for recording variable information (initial value) and fixed information on a prepaid card 6 at a card issuer. The recording device 1 shown in FIG.
As shown in (1), a card recording unit 11, a control unit 13, and a storage unit 15 are provided.

【0019】カード記録部11は、カードを搬送するた
めの搬送機構とカードリーダ/ライタ等を備え、制御部
13からの指示に従って、所定データをプリペイドカー
ド6に記録する。
The card recording unit 11 includes a transport mechanism for transporting the card, a card reader / writer, and the like, and records predetermined data on the prepaid card 6 in accordance with an instruction from the control unit 13.

【0020】制御部13は、カード記録部11を介し
て、可変情報を発行対象のプリペイドカード6に記録す
る。この可変情報の記録において、制御部13は、図4
(A)に示すように、まず、プリペイドカード6の可変
領域EA1に、例えば同一のデータ項目からなる2ブロ
ックの可変情報(以下、可変情報Da、Db)を記録す
る。これら可変情報DaとDbは、そのプリペイドカー
ド6が後述する読書装置3により処理される度に、どち
らか一方のみが交互に更新される。
The control unit 13 records the variable information on the prepaid card 6 to be issued via the card recording unit 11. In recording the variable information, the control unit 13
As shown in (A), first, for example, two blocks of variable information (hereinafter, variable information Da and Db) including the same data item are recorded in the variable area EA1 of the prepaid card 6. Each of the variable information Da and Db is alternately updated each time the prepaid card 6 is processed by the reading device 3 described later.

【0021】次に、制御部13は、カード記録部11を
介して、図4(B)に示すように、可変領域EA2に記
録すべき可変情報に、可変領域EA1における可変情報
Dbの終了位置からカード端までの部分(以下、特徴部
Lb)について取得した距離値である特徴データRbを
含め、その可変情報を、カードの端から可変情報Daの
開始位置までの部分(以下、特徴部La)について取得
した距離値である特徴データRaを鍵として暗号化し、
可変領域EA2に記録する。
Next, as shown in FIG. 4B, the control section 13 adds, via the card recording section 11, the end position of the variable information Db in the variable area EA1 to the variable information to be recorded in the variable area EA2. And the variable information including the characteristic data Rb, which is the distance value acquired for the portion from the card edge to the card edge (hereinafter, the characteristic portion Lb), from the end of the card to the start position of the variable information Da (hereinafter, the characteristic portion La). ) Is encrypted using the characteristic data Ra, which is the distance value acquired as a key,
Recording is performed in the variable area EA2.

【0022】また、制御部13は、カード記録部11を
介して、カードID、券面金額等を含む固定情報をプリ
ペイドカード6の固定領域EBに記録する。また、制御
部13は、記録装置1全体を制御する。
Further, the control unit 13 records the fixed information including the card ID, the bill amount, etc. in the fixed area EB of the prepaid card 6 via the card recording unit 11. Further, the control unit 13 controls the entire recording device 1.

【0023】記憶部15は、発行対象のプリペイドカー
ド6に記録するための固定情報、可変情報等を記憶す
る。
The storage unit 15 stores fixed information, variable information, and the like to be recorded on the prepaid card 6 to be issued.

【0024】読書装置3は、例えば遊技媒体の貸出等を
行う物販機(図示せず)に接続されており、挿入された
プリペイドカード6を受け付け、物販機が利用者に貸し
出した遊技媒体の対価に応じて、そのプリペイドカード
6に記録されている可変情報(金額情報等)を記録更新
するための装置である。読書装置3は、図5に示すよう
に、データ読書部31と、制御部33と、記憶部35
と、通信部37と、を備える。
The reading device 3 is connected to, for example, a vending machine (not shown) for renting out game media, receives the inserted prepaid card 6, and pays for the game media lent to the user by the vending machine. Is an apparatus for recording and updating variable information (amount information, etc.) recorded on the prepaid card 6 in accordance with the above. As shown in FIG. 5, the reading device 3 includes a data reading unit 31, a control unit 33, and a storage unit 35.
And a communication unit 37.

【0025】データ読書部31は、図示せぬカード挿入
口に挿入されたプリペイドカード6を内部に取り込み、
制御部33からの指示に従って、プリペイドカード6に
記録されるデータの読み取り/書き込み等を行う。
The data reading unit 31 takes in the prepaid card 6 inserted into a card insertion slot (not shown),
In accordance with an instruction from the control unit 33, the data reading / writing of the data recorded on the prepaid card 6 is performed.

【0026】制御部33は、挿入されたプリペイドカー
ド6について、固定領域EBに記憶されている固定情報
を読み取るとともに、その可変領域EA1、EA2に記
憶されている可変情報をチェックするための復号チェッ
ク処理を行う。この復号チェック処理では、制御部33
は、挿入されたプリペイドカード6について、その使用
が初回であるか、又は2回目以降であるか、を判別す
る。カードの使用が初回であるか、又は2回目以降であ
るかについてのチェック方法は任意である。例えば、読
書装置がカードの所定領域(未使用のカードには何も記
録しない)を読んで、そこに何も記憶されていないとき
には、その使用が初回であると判別し、所定コードを記
録するようにしてもよい。
The control unit 33 reads the fixed information stored in the fixed area EB of the inserted prepaid card 6, and checks the variable information stored in the variable areas EA1 and EA2. Perform processing. In this decryption check process, the control unit 33
Determines whether the inserted prepaid card 6 has been used for the first time or for the second time or later. The method of checking whether the use of the card is the first time or the second time or later is optional. For example, a reading device reads a predetermined area of a card (recording nothing on an unused card), and when nothing is stored therein, determines that the use is the first time and records a predetermined code. You may do so.

【0027】制御部33は、カードの使用が2回目以降
であると判別した場合、可変領域EA1に記憶されてい
る2つの可変情報DaとDbのうち、そのカードが前回
使用された時に更新された方の可変情報を特定し、その
可変情報に対応する特徴部について取得した距離値であ
る特徴データを鍵として、可変領域EA2に記憶されて
いる可変情報を復号化する。なお、上述のように、可変
情報Daには特徴部La(カードの端から可変情報Da
の開始位置までの部分)が対応し、可変情報Dbには特
徴部Lb(可変情報Dbの終了位置からカード端までの
部分)が対応する。次に、制御部33は、前回更新され
なかった方の可変情報に対応する特徴部について取得し
た距離値である特徴データが、可変領域EA2において
復号化した可変情報中に含まれている特徴データと一致
するか否かをチェックし、一致しない場合には所定のエ
ラー処理を行う。
When the controller 33 determines that the card has been used for the second time or later, the controller 33 updates the variable information Da and Db stored in the variable area EA1 when the card was used last time. This variable information is specified, and the variable information stored in the variable area EA2 is decrypted using the characteristic data which is the distance value acquired for the characteristic portion corresponding to the variable information as a key. As described above, the variable information Da includes the characteristic portion La (the variable information Da from the end of the card).
The portion from the start position of the variable information Db corresponds to the characteristic portion Lb (the portion from the end position of the variable information Db to the end of the card). Next, the control unit 33 sets the feature data included in the variable information decoded in the variable area EA2 as the feature data which is the distance value acquired for the feature corresponding to the variable information which has not been updated last time. Is checked to see if they match, and if they do not match, predetermined error processing is performed.

【0028】例えば、プリペイドカード6の使用が2回
目以降であって、可変領域EA1における可変情報Da
とDbのうち、前回更新された方が可変情報Daである
場合、制御部33は、図6に示すように、可変情報Da
に対応する特徴部Laについて取得した特徴データRa
を鍵として可変領域EA2に記憶されている可変情報を
復号化し、復号化された可変情報に含まれている特徴デ
ータが、可変情報Dbに対応する特徴部Lbについて取
得した特徴データRbと一致するか否かをチェックす
る。
For example, when the prepaid card 6 is used for the second time or later and the variable information Da in the variable area EA1 is used.
If the last updated one of the variable information Da and the variable information Db is the variable information Da, as shown in FIG.
Characteristic data Ra acquired for the characteristic portion La corresponding to
Is used to decrypt the variable information stored in the variable area EA2, and the characteristic data included in the decrypted variable information matches the characteristic data Rb obtained for the characteristic part Lb corresponding to the variable information Db. Check whether or not.

【0029】なお、挿入されたカードの使用が初回であ
る場合、制御部33は、可変領域EA2に記憶されてい
る可変情報を復号化するための鍵として、例えば可変情
報Daに対応する特徴部Laについて取得した特徴デー
タRaを使用し、また、復号化された可変領域EA2に
おける可変情報中に含まれている特徴データと比較する
データとして、例えば可変情報Dbに対応する特徴部L
bについて取得した特徴データRbを使用する。
When the inserted card is used for the first time, the control unit 33 uses, for example, a characteristic unit corresponding to the variable information Da as a key for decoding the variable information stored in the variable area EA2. Using the characteristic data Ra acquired for La and comparing the characteristic data included in the variable information in the decoded variable area EA2 with, for example, the characteristic part L corresponding to the variable information Db.
The feature data Rb acquired for b is used.

【0030】制御部33は、上記復号チェックの結果が
適正であるカードについて、例えば、残高が券面額以下
か、カードIDが不正カードのカードIDに該当する
か、等の他の所定チェックを行い、そのチェック結果も
適正である場合にカードの使用を許可し、例えば図示せ
ぬ物販機からの消費通知に応じて、カードの可変領域E
A1から読み取った可変情報Da、Dbのうち前回更新
された方の残高情報等を更新する。なお、例えば、カー
ドの使用が初回である場合には可変情報DaとDbの残
高情報が示す金額は同額であるため、いずれを更新して
もよい。
The control unit 33 performs another predetermined check on the card for which the result of the decryption check is appropriate, for example, whether the balance is equal to or less than the face value and whether the card ID corresponds to the card ID of the unauthorized card. If the check result is also appropriate, the use of the card is permitted, and for example, in response to a consumption notification from a vending machine (not shown), a variable area E of the card is used.
Of the variable information Da and Db read from A1, the balance information and the like of the previously updated one are updated. Note that, for example, when the card is used for the first time, the amounts indicated by the balance information of the variable information Da and Db are the same, and either may be updated.

【0031】そして、外部からのプリペイドカード6の
排出指示等に応じて、制御部33は、更新後の新たな可
変情報に基づいて、カードの可変領域EA1及びEA2
の可変情報を記録更新するとともに、可変情報の記録更
新が正しく行われたことを確認する暗号チェック処理を
行う。
Then, in response to an instruction to eject the prepaid card 6 from the outside or the like, the control unit 33 controls the variable areas EA1 and EA2 of the card based on the updated new variable information.
Of the variable information, and an encryption check process for confirming that the update of the variable information has been correctly performed.

【0032】この暗号チェック処理では、制御部33
は、処理対象であるプリペイドカード6について、その
使用が初回であるか、又は2回目以降であるかを判別す
る。そして、その使用が2回目以降である場合、制御部
33は、可変領域EA1における2つの可変情報Daと
Dbのうち、前回更新されなかった方の可変情報を書き
換える。可変情報を書き換えた後、制御部33は、可変
領域EA1における可変情報Da、Dbに対する特徴デ
ータRa、Rbを取得し、このうち、今回書き換えなか
った方の可変情報に対する特徴データを可変領域EA2
に記録すべき可変情報に含め、今回書き換えた方の可変
情報に対する特徴データを鍵として、可変領域EA2に
記録すべき可変情報を暗号化して記録する。
In this encryption check processing, the control unit 33
Determines whether the prepaid card 6 to be processed is used for the first time or for the second time or later. Then, when the use is performed for the second time or later, the control unit 33 rewrites the variable information that has not been updated last time among the two variable information Da and Db in the variable area EA1. After rewriting the variable information, the control unit 33 acquires the characteristic data Ra and Rb for the variable information Da and Db in the variable area EA1 and, among them, converts the characteristic data for the variable information which has not been rewritten this time into the variable area EA2.
The variable information to be recorded in the variable area EA2 is encrypted and recorded using the characteristic data for the variable information which has been rewritten this time as a key.

【0033】可変領域EA1及びEA2への可変情報の
記録更新の完了後、制御部33は、可変情報が正しく記
録されたことを確認するため、可変領域EA1における
可変情報Da、Dbに対応する特徴データRa、Rbを
取得し、今回書き換えた方の可変情報に対応する特徴デ
ータを鍵として、可変領域EA2に記憶される可変情報
を復号化する。次に、制御部33は、プリペイドカード
6において、今回書き換えなかった方の可変情報に対応
する特徴データが、可変領域EA2において復号化され
た可変情報に含まれる特徴データと、一致するか否かを
チェックし、一致しない場合には所定のエラー処理を行
う。
After the completion of the recording and updating of the variable information in the variable areas EA1 and EA2, the control unit 33 checks the variable information in the variable area EA1 corresponding to the variable information Da and Db in order to confirm that the variable information has been correctly recorded. The data Ra and Rb are acquired, and the variable information stored in the variable area EA2 is decrypted using the characteristic data corresponding to the variable information rewritten this time as a key. Next, the control unit 33 determines whether or not the feature data corresponding to the variable information not rewritten this time in the prepaid card 6 matches the feature data included in the variable information decoded in the variable area EA2. Is checked, and if they do not match, predetermined error processing is performed.

【0034】例えば、プリペイドカード6の使用が2回
目以降であって、可変領域EA1における可変情報Da
とDbのうち、前回更新された方が可変情報Daである
場合、制御部33は、図7(A)に示すように、可変情
報Daを書き換えずに、可変情報Dbを書き換える。そ
して、可変領域EA1から可変情報Da、Dbに対応す
る特徴部La、Lbについて特徴データRa、Rbを取
得し、図7(B)に示すように、今回書き換えなかった
可変情報Daの特徴データRaを可変領域EA2に記録
すべき可変情報に含め、今回書き換えた可変情報Dbの
特徴データRbを鍵として、可変領域EA2に記録すべ
き可変情報を暗号化して記録する。次に、制御部33
は、ベリファイチェックのため、可変領域EA1から可
変情報Da、Dbに対応する特徴データRa、Rbを取
得し、図7(C)に示すように、今回書き換えた可変情
報Dbの特徴データRbを鍵として、可変領域EA2に
記録されている可変情報を復号化する。そして、今回書
き換えられなかった可変情報Daの特徴データRaが、
可変領域EA2において復号化された可変情報に含まれ
る特徴データと、一致するか否かをチェックする。
For example, when the prepaid card 6 is used for the second time or later and the variable information Da in the variable area EA1 is used.
If the last updated one of the data Db and Db is the variable information Da, the control unit 33 rewrites the variable information Db without rewriting the variable information Da, as shown in FIG. Then, the characteristic data Ra and Rb of the characteristic portions La and Lb corresponding to the variable information Da and Db are acquired from the variable area EA1, and as shown in FIG. 7B, the characteristic data Ra of the variable information Da not rewritten this time is obtained. Is included in the variable information to be recorded in the variable area EA2, and the variable information to be recorded in the variable area EA2 is encrypted and recorded using the characteristic data Rb of the variable information Db rewritten this time as a key. Next, the control unit 33
Acquires the characteristic data Ra and Rb corresponding to the variable information Da and Db from the variable area EA1 for the verification check, and uses the characteristic data Rb of the rewritten variable information Db as a key as shown in FIG. To decode the variable information recorded in the variable area EA2. Then, the characteristic data Ra of the variable information Da not rewritten this time is
It is checked whether or not it matches the feature data included in the variable information decoded in the variable area EA2.

【0035】なお、挿入されたカードの使用が初回であ
る場合には、制御部33は、可変領域EA1における可
変情報DaとDbのうち、所定の可変情報Daを書き換
える。そして、今回書き換えなかった可変情報Dbにつ
いて取得した特徴データRbを可変領域EA2に記録す
べき可変情報に含め、今回書き換えた可変情報Daにつ
いて取得した特徴データRaを鍵として、可変領域EA
2に記録されるべき可変情報を暗号化して記録更新す
る。そして、可変領域EA1及びEA2への可変情報の
記録更新の完了後、制御部33は、可変情報が正しく記
録されたことを確認するため、可変領域EA1から可変
情報Da、Dbに対応する特徴データRa、Rbを取得
する。そして、今回書き換えた可変情報Daに対する特
徴データRaを鍵として、可変領域EA2に記憶されて
いる可変情報を復号化し、今回書き換えなかった可変情
報Dbに対する特徴データRbが、可変領域EA2にお
いて復号化された可変情報に含まれる特徴データと、一
致するか否かをチェックし、一致しない場合には所定の
エラー処理を行う。
When the inserted card is used for the first time, the control section 33 rewrites predetermined variable information Da among the variable information Da and Db in the variable area EA1. Then, the characteristic data Rb acquired for the variable information Db not rewritten this time is included in the variable information to be recorded in the variable area EA2, and the characteristic data Ra acquired for the variable information Da rewritten this time is used as a key to set the variable area EA
2 to encrypt and update the variable information to be recorded. After completing the update of the recording of the variable information in the variable areas EA1 and EA2, the control unit 33 checks the characteristic data corresponding to the variable information Da and Db from the variable area EA1 in order to confirm that the variable information has been correctly recorded. Obtain Ra and Rb. The variable information stored in the variable area EA2 is decrypted using the characteristic data Ra for the variable information Da rewritten this time as a key, and the characteristic data Rb for the variable information Db not rewritten this time is decrypted in the variable area EA2. It checks whether or not it matches the characteristic data included in the variable information, and if not, performs a predetermined error process.

【0036】制御部33は、上記暗号チェックの結果が
適正であるプリペイドカード6を図示せぬ排出口から排
出し、そのカードID、消費金額、使用日、等の情報を
含む売上情報を生成し、記憶部35に蓄積して記憶し、
所定のタイミング(例えば、中継装置4からの情報要求
の受信等)で中継装置4に送信する。
The control unit 33 discharges the prepaid card 6 for which the result of the above-mentioned encryption check is proper from a discharge port (not shown), and generates sales information including information on the card ID, consumption amount, date of use, and the like. , Stored and stored in the storage unit 35,
The information is transmitted to the relay device 4 at a predetermined timing (for example, reception of an information request from the relay device 4).

【0037】記憶部35は、プリペイドカード6の使用
に伴い制御部33により生成される売上情報等を記憶す
る。通信部37は、該読書装置3と中継装置4との間の
通信を制御する。
The storage unit 35 stores sales information and the like generated by the control unit 33 when the prepaid card 6 is used. The communication unit 37 controls communication between the reading device 3 and the relay device 4.

【0038】中継装置4は、店舗内の各読書装置3にお
ける売上情報等を回収して集約し、所定のタイミングで
センタ5に送信する。センタ5は、本システム全体を制
御するためのコンピュータ等から構成され、各店舗の中
継装置3から受信した売上情報等を記憶管理する。
The relay device 4 collects and aggregates sales information and the like in each reading device 3 in the store, and transmits the collected information to the center 5 at a predetermined timing. The center 5 includes a computer or the like for controlling the entire system, and stores and manages sales information and the like received from the relay device 3 of each store.

【0039】なお、本システムでは、プリペイドカード
6はその製造時に所定の大きさの型で打ち抜かれ、その
寸法が所定範囲内であるカードのみが、初期情報を記録
するために記録装置1に供給される。ここでは、所定範
囲を、例えば、プリペイドカード6の型の横幅Lを基準
とした誤差T1の範囲とする。すなわち、図8に示すよ
うに、横幅の寸法がL±T1の範囲内にあるカードが、
本システムにおいて使用可能なプリペイドカード6とし
て記録装置1に供給される。
In this system, the prepaid card 6 is punched out in a mold of a predetermined size at the time of manufacture, and only the card whose size is within a predetermined range is supplied to the recording device 1 for recording the initial information. Is done. Here, the predetermined range is, for example, a range of the error T1 based on the width L of the type of the prepaid card 6. That is, as shown in FIG. 8, a card having a width dimension in the range of L ± T1 is
It is supplied to the recording device 1 as a prepaid card 6 usable in the present system.

【0040】また、記録装置1及び読書装置3がプリペ
イドカード6の可変領域EA1へ可変情報Da、Dbを
記録する際、それぞれの記録開始位置に関する設定値X
a、Xb等に従って記録するが、上述のようにプリペイ
ドカード6の寸法が全てのカードにおいて等しいわけで
はないこともあり、記録された可変情報Da、Dbの開
始位置を設定値Xa、Xbに完全に一致させることは困
難である。このため、実際には、可変情報Da、Dbの
記録の際に多少の誤差が生じることとなり、この誤差の
上限をT2、T3とすると、設定値Xa、Xbに従って
記録された可変情報Da、Dbは、実質上、図9に示す
ように、カードの端からそれぞれXa±T2、Xb±T
3の位置から始まることとなる。
When the recording device 1 and the reading device 3 record the variable information Da and Db in the variable area EA1 of the prepaid card 6, the set values X relating to the respective recording start positions are set.
a, Xb, etc., but the dimensions of the prepaid card 6 may not be the same for all cards as described above, and the start positions of the recorded variable information Da, Db are completely set to the set values Xa, Xb. It is difficult to match. For this reason, actually, a slight error occurs when the variable information Da, Db is recorded. If the upper limit of the error is T2, T3, the variable information Da, Db recorded according to the set values Xa, Xb. Are substantially Xa ± T2 and Xb ± T from the end of the card, respectively, as shown in FIG.
It will start from position 3.

【0041】上記のような、カードの打ち抜き時に生じ
る誤差T1と、可変情報Da、Dbの記録時に生じる誤
差T2、T3は、ともに人為的に操作できるものではな
く、ランダムな値となる。よって、プリペイドカード6
に記録される可変情報Da、Dbの開始位置及び終了位
置は、結果的にプリペイドカード6毎にそれぞれ異なる
一意の値であり、また、カードが使用され、新たな可変
情報Da、Dbが記録更新される度に異なる値となる。
よって、可変情報DaとDbの位置が変動するに従って
特徴部La、Lbの距離値、すなわち特徴データRa、
Rbも、カード毎、使用毎に異なる一意のデータとな
る。このため、カード挿入時及び可変情報の更新時に、
この特徴データを用いたチェックを行うことにより、安
全性の高いシステムを実現できる。
The error T1 generated at the time of punching out a card and the errors T2 and T3 generated at the time of recording the variable information Da and Db cannot be manipulated manually, but are random values. Therefore, the prepaid card 6
As a result, the start position and the end position of the variable information Da and Db are unique values that are different for each prepaid card 6, and the card is used, and the new variable information Da and Db are recorded and updated. Each time the value is changed.
Therefore, as the positions of the variable information Da and Db change, the distance values of the characteristic portions La and Lb, that is, the characteristic data Ra,
Rb also becomes unique data that differs for each card and for each use. Therefore, when inserting the card and updating the variable information,
By performing a check using this feature data, a highly secure system can be realized.

【0042】また、このシステムでは、カードの使用毎
に、可変情報DaとDbの一方のみを更新する。このた
め、更新の直前に、処理対象のカードが、例えば可変情
報等が記憶されていないカード等にすり替えられた場
合、適正な特徴データを取得することができず、また、
可変領域EA2の可変情報中に適正な特徴データが存在
しないため、ベリファイチェックでエラーが検出される
こととなる。これにより、カードのすり替えによりプリ
ペイドカードを偽造しようとする不正行為を容易に検出
することができる。
Further, in this system, each time the card is used, only one of the variable information Da and Db is updated. Therefore, immediately before the update, if the processing target card is replaced with, for example, a card or the like in which variable information or the like is not stored, appropriate feature data cannot be obtained, and
Since proper feature data does not exist in the variable information of the variable area EA2, an error is detected by the verify check. This makes it possible to easily detect fraudulent acts that attempt to forge a prepaid card by replacing a card.

【0043】次に、本システムの主要部分である記録装
置1と読書装置3との動作について説明する。まず、記
録装置1の動作について図10のフローチャートを参照
して説明する。記録装置1の制御部13は、例えば外部
からのプリペイドカード6の発行指示に応答し、図示せ
ぬ格納部に格納されたプリペイドカード6を取り出し、
記憶部15に記憶されている固定情報(券面金額、カー
ドID等)を読み出して、発行対象のプリペイドカード
6の固定領域EBにカード記録部11を介して記録する
(ステップS11)。
Next, the operation of the recording device 1 and the reading device 3 which are main parts of the present system will be described. First, the operation of the recording apparatus 1 will be described with reference to the flowchart in FIG. The control unit 13 of the recording device 1 takes out the prepaid card 6 stored in the storage unit (not shown) in response to, for example, an instruction to issue the prepaid card 6 from outside.
The fixed information (e.g., face value, card ID, etc.) stored in the storage unit 15 is read out and recorded in the fixed area EB of the prepaid card 6 to be issued via the card recording unit 11 (step S11).

【0044】次に、制御部13は、可変情報(残高情報
等)を記憶部15から読み出し、そのうちの可変領域E
A1に記録すべきデータを2ブロックの可変情報Da、
Dbとして、カード記録部11を介して記録する(ステ
ップS12)。次に、制御部13は、可変情報Da、D
bに対応する特徴部La、Lbの距離値である特徴デー
タRa、Rb取得して(ステップS13)、その特徴デ
ータRbを、可変領域EA2に記録すべき可変情報に含
め、特徴データRaを鍵として暗号化し、可変領域EA
2に記録する(ステップS14)。これにより、固定情
報と可変情報が記録されたプリペイドカード6が発行さ
れる。発行されたプリペイドカード6は、各店舗に供給
され、店舗内の図示せぬ発券機に格納され、利用者に販
売される。
Next, the control unit 13 reads the variable information (balance information, etc.) from the storage unit 15 and stores the variable information
Data to be recorded in A1 is two blocks of variable information Da,
Db is recorded via the card recording unit 11 (step S12). Next, the control unit 13 sets the variable information Da, D
The characteristic data Ra and Rb, which are distance values of the characteristic parts La and Lb corresponding to b, are acquired (step S13), the characteristic data Rb is included in variable information to be recorded in the variable area EA2, and the characteristic data Ra is used as a key. As a variable area EA
2 (step S14). Thereby, the prepaid card 6 on which the fixed information and the variable information are recorded is issued. The issued prepaid card 6 is supplied to each store, stored in a ticketing machine (not shown) in the store, and sold to the user.

【0045】次に、プリペイドカード6を処理する読書
装置3の動作を図11のフローチャートに基づいて説明
する。読書装置3の制御部33は、挿入されたプリペイ
ドカード6を内部に取り込み、データ読書部31を介し
て、プリペイドカード6の固定領域EBに記憶されてい
る固定情報を読み取る(ステップS21)。次に、制御
部33は、挿入されたプリペイドカード6について、そ
の使用が初めてであるか(すなわち、未使用のカードで
あるか)、又は、その使用が2回目以降であるか、を判
別し(ステップS22)、初回の場合には第1の復号チ
ェック処理を行い、2回目以降の場合には第2の復号チ
ェック処理を行う。
Next, the operation of the reading device 3 for processing the prepaid card 6 will be described with reference to the flowchart of FIG. The control unit 33 of the reading device 3 takes in the inserted prepaid card 6 and reads the fixed information stored in the fixed area EB of the prepaid card 6 via the data reading unit 31 (step S21). Next, the control unit 33 determines whether the inserted prepaid card 6 has been used for the first time (ie, whether it is an unused card) or whether it has been used for the second time or later. (Step S22) In the first time, the first decryption check processing is performed, and in the second and subsequent times, the second decryption check processing is performed.

【0046】ステップS22において、例えば、カード
の使用が初回であると判別された場合、制御部33は、
図12に示す第1の復号チェック処理を行う(ステップ
S23)。この第1の復号チェック処理では、制御部3
3は、可変領域EA1に記憶されている可変情報Daと
Dbのうち、例えば所定の可変情報Daを選択し、その
可変情報Daに対応する特徴部Laについて取得した距
離値である特徴データRaを鍵として、可変領域EA2
に記憶されている可変情報を復号化する(ステップS3
1)。次に、制御部33は、可変情報Dbに対応する特
徴部Lbについて取得した距離値である特徴データRb
が、ステップS31で復号化された可変情報中に含まれ
ている特徴データと一致するか否か判別する(ステップ
S32)。ステップS32において、比較したデータが
一致しないと判別された場合、制御部33は、所定のエ
ラー処理を行う(ステップS33)。また、比較したデ
ータが一致すると判別された場合、フローは図11に示
す本処理に戻る。
In step S22, for example, when it is determined that the use of the card is the first time, the control unit 33
A first decryption check process shown in FIG. 12 is performed (step S23). In the first decryption check process, the control unit 3
3 selects, for example, predetermined variable information Da from the variable information Da and Db stored in the variable area EA1, and stores the characteristic data Ra, which is the distance value acquired for the characteristic part La corresponding to the variable information Da. Variable area EA2 as key
Is decrypted (step S3).
1). Next, the control unit 33 transmits the feature data Rb, which is the distance value acquired for the feature Lb corresponding to the variable information Db.
Is determined to match with the characteristic data included in the variable information decoded in step S31 (step S32). If it is determined in step S32 that the compared data does not match, the control unit 33 performs a predetermined error process (step S33). If it is determined that the compared data match, the flow returns to the main processing shown in FIG.

【0047】また、ステップS22において、例えば、
カードの使用が2回目以降であると判別された場合、制
御部33は、図13に示す第2の復号チェック処理を行
う(ステップS24)。この第2の復号チェック処理で
は、制御部33は、可変領域EA1に記憶されている2
つの可変情報DaとDbのうち、そのカードが前回使用
された時に書き換えられた方の可変情報を特定し、その
可変情報に対応する特徴部La又はLbについて取得し
た特徴データを鍵として、可変領域EA2に記憶されて
いる可変情報を復号化する(ステップS41)。次に、
制御部33は、2つの可変情報DaとDbのうち、前回
書き換えられなかった方の可変情報に対応する特徴部に
ついて取得した特徴データが、ステップS41で復号化
された可変情報中に含まれている特徴データと一致する
か否かを判別する(ステップS42)。ステップS42
において、比較したデータが一致しないと判別された場
合、制御部33は、所定のエラー処理を行う(ステップ
S43)。また、比較したデータが一致すると判別され
た場合、フローは図11に示す本処理に戻る。
In step S22, for example,
If it is determined that the card has been used for the second time or later, the control unit 33 performs a second decryption check process shown in FIG. 13 (step S24). In the second decryption check process, the control unit 33 stores the 2nd data stored in the variable area EA1.
Of the two pieces of variable information Da and Db, the variable information that was rewritten when the card was used last time is specified, and the characteristic data obtained for the characteristic part La or Lb corresponding to the variable information is used as a key to set the variable area. The variable information stored in the EA2 is decoded (step S41). next,
The control unit 33 includes, in the variable information decoded in step S41, the characteristic data obtained for the characteristic unit corresponding to the variable information that has not been rewritten last time out of the two variable information Da and Db. It is determined whether or not it matches the existing feature data (step S42). Step S42
In, when it is determined that the compared data does not match, the control unit 33 performs a predetermined error process (step S43). If it is determined that the compared data match, the flow returns to the main processing shown in FIG.

【0048】上記第1又は第2の復号チェック処理が完
了すると、制御部33は、プリペイドカード6から読み
取った可変情報を消費金額等に応じて更新する(ステッ
プS25)。そして、例えば利用者からのプリペイドカ
ード6の排出要求等に応じて、処理中のカードの使用が
初回であるか、又は2回目以降であるか、を判別し(ス
テップS26)、初回の場合には、第1の暗号チェック
処理を行い、2回目以降の場合には第2の暗号チェック
処理を行う。
When the first or second decryption check processing is completed, the control unit 33 updates the variable information read from the prepaid card 6 according to the consumption amount or the like (step S25). Then, for example, in response to a request from the user to eject the prepaid card 6, it is determined whether the card being processed is the first use or the second or later use (step S26). Performs a first encryption check process, and performs a second encryption check process for the second and subsequent times.

【0049】ステップS26において、例えば、カード
の使用が初回であると判別された場合、制御部33は、
図14に示す第1の暗号チェック処理を行う(ステップ
S27)。この第1の暗号チェック処理では、制御部3
3は、可変領域EA1における可変情報DaとDbのう
ち、例えば、所定の可変情報Daを書き換える(ステッ
プS51)。可変情報Daの書き換え後、制御部33
は、可変領域EA1における可変情報Da、Dbに対応
する特徴部La、Lbについて、特徴データRa、Rb
を取得する(ステップS52)。次に、制御部33は、
ステップS52で取得した、今回書き換えなかった方の
可変情報Dbに対応する特徴データRbを、可変領域E
A2に記録すべき可変情報に含める(ステップS5
3)。次に、制御部33は、今回書き換えた方の可変情
報Daに対応する特徴データRaを鍵として、可変領域
EA2に記録されるべき可変情報を暗号化して記録更新
する(ステップS54)。
In step S26, for example, if it is determined that the card has been used for the first time, the control unit 33
The first encryption check process shown in FIG. 14 is performed (step S27). In the first encryption check process, the control unit 3
3 rewrites, for example, predetermined variable information Da among the variable information Da and Db in the variable area EA1 (step S51). After rewriting the variable information Da, the control unit 33
Are the characteristic data Ra, Rb for the characteristic portions La, Lb corresponding to the variable information Da, Db in the variable area EA1.
Is acquired (step S52). Next, the control unit 33
The characteristic data Rb corresponding to the variable information Db that has not been rewritten this time and acquired in step S52 is
A2 is included in the variable information to be recorded (step S5
3). Next, the control unit 33 encrypts and updates the variable information to be recorded in the variable area EA2 using the characteristic data Ra corresponding to the variable information Da rewritten this time as a key (step S54).

【0050】可変領域EA1及びEA2への可変情報の
記録更新の完了後、制御部33は、可変領域EA1及び
EA2の可変情報が正しく記録されたことを確認するた
め、可変領域EA1における可変情報Da、Dbに対応
する特徴データRa、Rbを取得し(ステップS5
5)、このうち、今回書き換えた方の可変情報Daに対
応する特徴データRaを鍵として、可変領域EA2に記
憶されている可変情報を復号化する(ステップS5
6)。次に、制御部33は、ステップS55で取得し
た、今回書き換えなかった方の可変情報Dbに対応する
特徴データRbが、可変領域EA2において復号化され
た可変情報に含まれる特徴データと、一致するか否かを
判別する(ステップS57)。ステップS57におい
て、比較したデータが一致しないと判別された場合、制
御部33は、所定のエラー処理を行う(ステップS5
8)。また、比較したデータが一致すると判別された場
合、フローは図11に示す本処理に戻る。
After the recording and updating of the variable information in the variable areas EA1 and EA2 are completed, the control section 33 checks the variable information Da in the variable area EA1 to confirm that the variable information in the variable areas EA1 and EA2 has been correctly recorded. , Db corresponding to the feature data Ra and Rb (step S5).
5) Among these, the variable information stored in the variable area EA2 is decrypted using the characteristic data Ra corresponding to the variable information Da rewritten this time as a key (step S5).
6). Next, the control unit 33 matches the feature data Rb acquired in step S55 corresponding to the variable information Db which has not been rewritten this time with the feature data included in the variable information decoded in the variable area EA2. It is determined whether or not (step S57). If it is determined in step S57 that the compared data does not match, the control unit 33 performs a predetermined error process (step S5).
8). If it is determined that the compared data match, the flow returns to the main processing shown in FIG.

【0051】また、ステップS26において、例えば、
カードの使用が2回目以降であると判別された場合、制
御部33は、図15に示す第2の暗号チェック処理を行
う(ステップS28)。この第2の暗号チェック処理で
は、制御部33は、可変領域EA1における2つの可変
情報DaとDbのうち、前回の更新されなかった方の可
変情報を書き換える(ステップS61)。可変情報の書
き換え後、制御部33は、可変領域EA1における可変
情報Da、Dbに対応する特徴部La、Lbについて、
特徴データRa、Rbを取得する(ステップS62)。
次に、制御部33は、ステップS62で取得した、今回
書き換えなかった方の可変情報に対応する特徴部の特徴
データを、可変領域EA2に記録すべき可変情報に含め
る(ステップS63)。次に、制御部33は、今回書き
換えた方の可変情報に対応する特徴データを鍵として、
可変領域EA2に記録されるべき可変情報を暗号化して
記録更新する(ステップS64)。
In step S26, for example,
If it is determined that the card has been used for the second time or later, the control unit 33 performs a second encryption check process shown in FIG. 15 (step S28). In the second encryption check process, the control unit 33 rewrites the last variable information that has not been updated, of the two variable information Da and Db in the variable area EA1 (step S61). After rewriting the variable information, the control unit 33 sets the characteristic portions La and Lb corresponding to the variable information Da and Db in the variable area EA1 to:
The characteristic data Ra and Rb are obtained (Step S62).
Next, the control unit 33 includes the characteristic data of the characteristic unit corresponding to the variable information that has not been rewritten this time, acquired in step S62, in the variable information to be recorded in the variable area EA2 (step S63). Next, the control unit 33 uses the feature data corresponding to the variable information
The variable information to be recorded in the variable area EA2 is encrypted and updated (step S64).

【0052】可変領域EA1及びEA2への可変情報の
記録更新の完了後、制御部33は、可変情報が正しく記
録されたことを確認するため、可変領域EA1における
可変情報Da、Dbに対応する特徴データRa、Rbを
取得し(ステップS65)、このうち、今回書き換えた
方の可変情報に対応する特徴データを鍵として、可変領
域EA2に記憶される可変情報を復号化する(ステップ
S66)。次に、制御部33は、ステップS65で取得
した、今回書き換えなかった方の可変情報に対応する特
徴データが、可変領域EA2において復号化された可変
情報に含まれる特徴データと、一致するか否かを判別す
る(ステップS67)。ステップS67において、比較
したデータが一致しないと判別された場合、制御部33
は、所定のエラー処理を行う(ステップS68)。ま
た、比較したデータが一致すると判別された場合、フロ
ーは図11に示す本処理に戻る。
After the update of the recording of the variable information in the variable areas EA1 and EA2 is completed, the control unit 33 confirms that the variable information has been correctly recorded. The data Ra and Rb are obtained (step S65), and the variable information stored in the variable area EA2 is decrypted using the characteristic data corresponding to the variable information rewritten this time as a key (step S66). Next, the control unit 33 determines whether or not the characteristic data corresponding to the variable information that has not been rewritten this time and acquired in step S65 matches the characteristic data included in the variable information decoded in the variable area EA2. Is determined (step S67). If it is determined in step S67 that the compared data does not match, the control unit 33
Performs a predetermined error process (step S68). If it is determined that the compared data match, the flow returns to the main processing shown in FIG.

【0053】上記第1又は第2の暗号チェック処理が完
了すると、制御部33は、プリペイドカード6を図示せ
ぬ排出口から排出し(ステップS29)、そのカードI
D、消費金額、使用日、等の情報を含む売上情報を生成
記憶し(ステップS30)、処理を終了する。なお、読
書装置3の記憶部35に蓄積記憶された売上情報は、所
定のタイミングで中継装置4に送信される。
When the first or second encryption check processing is completed, the control unit 33 discharges the prepaid card 6 from a discharge port (not shown) (step S29), and
Sales information including information such as D, consumption amount, date of use, etc. is generated and stored (step S30), and the process ends. The sales information stored and stored in the storage unit 35 of the reading device 3 is transmitted to the relay device 4 at a predetermined timing.

【0054】このようにして、読書装置3が、プリペイ
ドカード6を使用する度に、可変領域EA1の可変情報
DaとDbの一方を書き換えるとともに、書き換えない
方の可変情報の特徴データを、可変領域EA2の可変情
報に含めて記録する。そして、ベリファイ時に、可変領
域EA1の書き換えなかった方の可変情報について特徴
データを取得し、可変領域EA2の可変情報に含めた特
徴データと一致するかをチェックする。これにより、読
書装置3に挿入されたカードに対して残高情報を含む可
変情報を記録更新する際に、プリペイドカードを偽造す
る等の目的で、処理対象のカードが例えば可変情報等が
記憶されていないカード等にすり替えられた場合、その
カードに一方の可変情報が記録されても、記録されてい
るべき他方の可変情報が存在しないため、可変領域EA
2の可変情報中に適正な可変情報が存在しないこととな
り、その不正行為を容易に検出することができる。ま
た、カード毎、使用毎に一意のデータとなる特徴データ
の照合チェックを、カード挿入時、可変情報の更新後等
に行うことにより、システムの安全性を高めることがで
きる。
In this manner, each time the reading device 3 uses the prepaid card 6, it rewrites one of the variable information Da and Db in the variable area EA1 and also replaces the characteristic data of the non-rewritten variable information with the variable area. It is recorded in the variable information of EA2. Then, at the time of verification, the characteristic data is acquired for the variable information of the variable area EA1 that has not been rewritten, and it is checked whether the variable data matches the characteristic data included in the variable information of the variable area EA2. Thereby, when recording and updating the variable information including the balance information for the card inserted into the reading apparatus 3, for example, the card to be processed is stored with the variable information for the purpose of forging a prepaid card. When the card is replaced with a non-existent card or the like, even if one of the variable information is recorded on the card, the other variable information to be recorded does not exist.
Since appropriate variable information does not exist in the variable information of No. 2, it is possible to easily detect the fraud. In addition, the security of the system can be enhanced by checking the characteristic data, which is unique data for each card and each use, when the card is inserted or after updating the variable information.

【0055】(第2の実施形態)なお、プリペイドカー
ド6に可変情報を記録更新する際、可変領域EA1に記
憶される可変情報DaとDbのうち、前回の使用で書き
換えられた方の可変情報Da又はDbに対応する特徴部
について取得した特徴データRa又はRbを、可変領域
EA2に記録されるべき可変情報に含めるとともに、そ
の可変情報に対して、特徴データRaとRbの双方を用
いて生成した所定の暗号データをさらに付与して記録す
るようにしてもよい。この場合のシステムを第2の実施
形態として以下説明する。
(Second Embodiment) When the variable information is recorded and updated on the prepaid card 6, the variable information of the variable information Da and Db stored in the variable area EA1 which has been rewritten by the previous use is changed. The feature data Ra or Rb acquired for the feature portion corresponding to Da or Db is included in the variable information to be recorded in the variable area EA2, and the variable information is generated using both the feature data Ra and Rb. The predetermined encrypted data may be further added and recorded. A system in this case will be described below as a second embodiment.

【0056】第2の実施形態に係るプリペイドカードシ
ステムは、図16に示すように、記録装置7と、読書装
置8と、第1の実施形態と同様の機能を有する中継装置
4及びセンタ5等を備える。本システムは、記録装置7
及び読書装置8が、第1の実施形態で示した処理とは異
なる処理によりプリペイドカード6の可変領域EA1及
びEA2に可変情報を記録する点以外は、第1の実施形
態とほぼ同様である。よって、以下、この第1の実施形
態と異なる部分を中心として、記録装置7と読書装置8
の機能及び構成について説明する。
As shown in FIG. 16, the prepaid card system according to the second embodiment includes a recording device 7, a reading device 8, a relay device 4 and a center 5 having the same functions as those of the first embodiment. Is provided. The present system includes a recording device 7
The second embodiment is substantially the same as the first embodiment except that the reading device 8 records variable information in the variable areas EA1 and EA2 of the prepaid card 6 by a process different from the process shown in the first embodiment. Accordingly, hereinafter, the recording device 7 and the reading device 8
Will be described.

【0057】まず、記録装置7について説明する。記録
装置7は、図17に示すように、カード記録部71と、
制御部73と、記憶部75と、を備える。
First, the recording device 7 will be described. The recording device 7 includes, as shown in FIG.
The control unit 73 includes a control unit 73 and a storage unit 75.

【0058】カード記録部71は、カードを搬送するた
めの搬送機構とカードリーダ/ライタ等を備え、制御部
73からの指示に従って、所定データをプリペイドカー
ド6に記録する。
The card recording unit 71 includes a transport mechanism for transporting the card, a card reader / writer, and the like, and records predetermined data on the prepaid card 6 in accordance with an instruction from the control unit 73.

【0059】制御部73は、カード記録部71を介し
て、可変情報を発行対象のプリペイドカード6に記録す
る。この可変情報の記録において、制御部73は、図1
8(A)に示すように、まず、プリペイドカード6の可
変領域EA1に、例えば同一のデータ項目からなる2ブ
ロックの可変情報(以下、可変情報Da、Db)を記録
する。これら可変情報DaとDbは、そのプリペイドカ
ード6が後述する読書装置8により処理される度に、ど
ちらか一方のみが交互に更新される。
The control unit 73 records the variable information on the prepaid card 6 to be issued via the card recording unit 71. In recording the variable information, the control unit 73
As shown in FIG. 8A, first, for example, two blocks of variable information (hereinafter, variable information Da and Db) including the same data item are recorded in the variable area EA1 of the prepaid card 6. Each time the prepaid card 6 is processed by the reading device 8 described later, only one of the variable information Da and Db is updated alternately.

【0060】次に、制御部73は、カード記録部71を
介して、図18(B)に示すように、可変領域EA2に
記録すべき可変情報に、可変領域EA1の可変情報Db
に対する特徴部Lbの距離値である特徴データRbを含
める。そして、その可変情報に、可変情報Daに対する
特徴部Laの距離値である特徴データRaと、特徴デー
タRbと、を用いて生成した暗号データを付与し、可変
領域EA2に記録する。なお、暗号データの生成方法
は、任意であり、例えば、特徴データRaとRbを論理
演算してもよく、また、ハッシュ関数等を使用してもよ
い。
Next, as shown in FIG. 18B, the control section 73 adds the variable information to be recorded in the variable area EA2 via the card recording section 71 to the variable information Db of the variable area EA1.
Is included in the feature data Rb, which is the distance value of the feature portion Lb to the feature data Lb. Then, to the variable information, the encrypted data generated using the characteristic data Ra and the characteristic data Rb, which are the distance values of the characteristic portion La with respect to the variable information Da, is added, and is recorded in the variable area EA2. The method of generating the encrypted data is arbitrary. For example, the characteristic data Ra and Rb may be logically operated, or a hash function may be used.

【0061】また、制御部73は、カード記録部71を
介して、カードID、券面金額等を含む固定情報をプリ
ペイドカード6の固定領域EBに記録する。また、制御
部73は、記録装置7全体を制御する。記憶部75は、
発行対象のプリペイドカード6に記録するための固定情
報、可変情報等を記憶する。
The control unit 73 records the fixed information including the card ID and the amount of money in the fixed area EB of the prepaid card 6 via the card recording unit 71. The control unit 73 controls the entire recording device 7. The storage unit 75
It stores fixed information, variable information, and the like for recording on the prepaid card 6 to be issued.

【0062】次に、読書装置8について説明する。読書
装置8は、図19に示すように、データ読書部81と、
制御部83と、記憶部85と、通信部87と、を備え
る。
Next, the reading device 8 will be described. The reading device 8 includes, as shown in FIG.
The control unit 83 includes a control unit 83, a storage unit 85, and a communication unit 87.

【0063】データ読書部81は、図示せぬカード挿入
口に挿入されたプリペイドカード6を内部に取り込み、
制御部83からの指示に従って、プリペイドカード6に
記録されるデータの読み取り/書き込み等を行う。
The data reading unit 81 takes in the prepaid card 6 inserted into a card insertion slot (not shown),
In accordance with an instruction from the control unit 83, reading / writing of data recorded on the prepaid card 6 is performed.

【0064】制御部83は、挿入されたプリペイドカー
ド6について、固定領域EBに記憶されている固定情報
を読み取るとともに、その可変領域EA1、EA2に記
憶されている可変情報をチェックするための復号チェッ
ク処理を行う。この復号チェック処理では、制御部83
は、挿入されたプリペイドカード6について、その使用
が初回であるか、又は2回目以降であるか、を判別す
る。そして、その使用が2回目以降である場合には、可
変領域EA1に記憶されている2つの可変情報DaとD
bにそれぞれ対応する特徴部LaとLbのきょりちであ
る特徴データRa、Rbを取得し、この特徴データRa
とRbを用いた所定の暗号データを生成する。なお、こ
の暗号データの生成方法は、上記記録装置7における生
成方法と同じ方法である。
The control unit 83 reads the fixed information stored in the fixed area EB of the inserted prepaid card 6 and decodes it to check the variable information stored in the variable areas EA1 and EA2. Perform processing. In this decryption check processing, the control unit 83
Determines whether the inserted prepaid card 6 has been used for the first time or for the second time or later. Then, when the use is performed for the second time or later, the two pieces of variable information Da and D stored in the variable area EA1 are used.
b, the characteristic data Ra and Rb, which are the result of the characteristic parts La and Lb respectively corresponding to the characteristic data Ra, are obtained.
And Rb to generate predetermined encrypted data. The method of generating the encrypted data is the same as the method of generating the above-described recording device 7.

【0065】次に、制御部83は、生成した暗号データ
が、可変領域EA2に記憶されている可変情報に付与さ
れている暗号データと一致するか否かを判別し、さら
に、可変領域EA1の2つの可変情報DaとDbのう
ち、そのカードが前回使用された時に更新されなかった
方の可変情報に対応する特徴部の特徴データが、可変領
域EA2の可変情報に含まれる特徴データと一致するか
否かを判別する。比較した暗号データが一致しない場
合、又は、比較した特徴データが一致しない場合、制御
部83は所定のエラー処理を行う。
Next, the control unit 83 determines whether or not the generated encrypted data matches the encrypted data added to the variable information stored in the variable area EA2. Of the two pieces of variable information Da and Db, the feature data of the feature portion corresponding to the variable information that was not updated when the card was used last time matches the feature data included in the variable information of the variable area EA2. It is determined whether or not. When the compared encrypted data does not match, or when the compared feature data does not match, the control unit 83 performs a predetermined error process.

【0066】例えば、プリペイドカード6の使用が2回
目以降であって、可変領域EA1における可変情報Da
とDbのうち、前回更新された方が可変情報Daである
場合、制御部83は、図20に示すように、可変情報D
aとDbに対応する特徴部LaとLbの距離値である特
徴データRaとRbを用いて所定の暗号データを生成
し、可変領域EA2に記憶されている可変情報に付与さ
れている暗号データと一致するか否かをチェックする。
さらに、制御部83は、そのカードの前回の使用で更新
されなかった可変情報Dbに対応する特徴部Lbについ
て取得した特徴データRbが、可変領域EA2における
可変情報に含まれる特徴データと一致するか否かをチェ
ックする。
For example, when the prepaid card 6 has been used for the second time or later and the variable information Da in the variable area EA1 has been used.
When the last updated one of the variable information Db and Db is the variable information Da, the control unit 83 sets the variable information D as shown in FIG.
A predetermined encrypted data is generated using characteristic data Ra and Rb, which are distance values between the characteristic portions La and Lb corresponding to a and Db, and encrypted data added to the variable information stored in the variable area EA2. Check if they match.
Further, the control unit 83 determines whether the characteristic data Rb acquired for the characteristic part Lb corresponding to the variable information Db not updated in the previous use of the card matches the characteristic data included in the variable information in the variable area EA2. Check if not.

【0067】なお、挿入されたカードの使用が初回であ
る場合、暗号データのチェックは上記と同様に行うが、
特徴データのチェックについては、例えば、例えば可変
情報Dbに対応する特徴部Lbについて取得した特徴デ
ータRbを、可変領域EA2における可変情報に含まれ
る特徴データと比較するデータとして使用する。
When the inserted card is used for the first time, the encrypted data is checked in the same manner as described above.
For the check of the feature data, for example, the feature data Rb obtained for the feature portion Lb corresponding to the variable information Db is used as data to be compared with the feature data included in the variable information in the variable area EA2.

【0068】制御部73は、上記復号チェックの結果が
適正であるカードについて、例えば、残高が券面額以下
か、カードIDが不正カードのカードIDに該当する
か、等の他の所定チェックを行い、そのチェック結果も
適正である場合にカードの使用を許可し、例えば図示せ
ぬ物販機からの消費通知に応じて、カードの可変領域E
A1から読み取った可変情報Da、Dbのうち前回更新
された方の残高情報等を更新する。なお、例えば、カー
ドの使用が初回である場合には可変情報DaとDbの残
高情報は同額であるため、いずれを更新してもよい。
The controller 73 performs another predetermined check on the card for which the result of the decryption check is appropriate, for example, whether the balance is equal to or less than the face value or the card ID corresponds to the card ID of the unauthorized card. If the check result is also appropriate, the use of the card is permitted, and for example, in response to a consumption notification from a vending machine (not shown), a variable area E of the card is used.
Of the variable information Da and Db read from A1, the balance information and the like of the previously updated one are updated. For example, when the card is used for the first time, the balance information of the variable information Da and the balance information of the Db are the same, and any of them may be updated.

【0069】そして、外部からのプリペイドカード6の
排出指示等に応じて、制御部83は、更新後の新たな可
変情報を、カードの可変領域EA1及びEA2に記録更
新するとともに可変情報の記録更新が正しく行われたこ
とを確認する暗号チェック処理を行う。この暗号チェッ
ク処理では、制御部83は、処理対象であるプリペイド
カード6について、その使用が初回であるか、又は2回
目以降であるかを判別する。そして、その使用が2回目
以降である場合、制御部83は、可変領域EA1におけ
る2つの可変情報DaとDbのうち、前回の使用時に更
新されなかった方の可変情報を書き換える。可変情報を
書き換えた後、制御部33は、可変領域EA1における
可変情報Da、Dbに対応する特徴部La、Lbの距離
値である特徴データRa、Rbを取得し、このうち、今
回書き換えなかった方の可変情報に対する特徴データを
可変領域EA2に記録すべき可変情報に含めるととも
に、可変領域EA1における可変情報Da、Dbについ
て取得した特徴データRa、Rbを用いて所定の暗号デ
ータを生成し、可変領域EA2に記録すべき可変情報に
付与して記録する。
The control unit 83 records and updates the updated new variable information in the variable areas EA1 and EA2 of the card and also updates and records the variable information in response to an external ejection instruction of the prepaid card 6 or the like. Performs an encryption check process to confirm that has been performed correctly. In this encryption check process, the control unit 83 determines whether the prepaid card 6 to be processed is used for the first time or for the second time or later. Then, when the use is performed for the second time or later, the control unit 83 rewrites the variable information that has not been updated during the previous use among the two variable information Da and Db in the variable area EA1. After rewriting the variable information, the control unit 33 acquires the feature data Ra and Rb which are the distance values of the feature parts La and Lb corresponding to the variable information Da and Db in the variable area EA1. The characteristic data corresponding to the variable information is included in the variable information to be recorded in the variable area EA2, and predetermined encrypted data is generated using the characteristic data Ra and Rb obtained for the variable information Da and Db in the variable area EA1. The variable information to be recorded in the area EA2 is recorded in addition to the variable information.

【0070】可変領域EA1及びEA2への可変情報の
記録更新の完了後、制御部83は、可変情報が正しく記
録されたことを確認するため、可変領域EA1における
可変情報Da、Dbに対応する特徴部La、Lbについ
て、特徴データRa、Rbを取得し、これらをを用い
て、暗号データを生成し、可変領域EA2における可変
情報に付与されている暗号データと一致するか否かをチ
ェックする。そしてさらに、制御部83は、今回書き換
えなかった方の可変情報に対応する特徴データが、可変
領域EA2における可変情報に含まれる特徴データと、
一致するか否かをチェックする。これらのチェックにお
いて、比較した暗号データが一致しない場合、又は、比
較した特徴データが一致しない場合には、所定のエラー
処理を行う。
After the completion of the recording and updating of the variable information in the variable areas EA1 and EA2, the control unit 83 confirms that the variable information has been correctly recorded, so that the characteristic corresponding to the variable information Da and Db in the variable area EA1. Characteristic data Ra and Rb are obtained for the parts La and Lb, and encrypted data is generated by using them, and it is checked whether or not the encrypted data matches the encrypted data added to the variable information in the variable area EA2. Further, the control unit 83 determines that the characteristic data corresponding to the variable information that has not been rewritten this time includes the characteristic data included in the variable information in the variable area EA2,
Check if they match. In these checks, if the compared encrypted data does not match, or if the compared characteristic data does not match, predetermined error processing is performed.

【0071】例えば、プリペイドカード6の使用が2回
目以降であって、可変領域EA1における可変情報Da
とDbのうち、前回更新された方が可変情報Daである
場合、制御部83は、図21(A)に示すように、可変
情報Daを書き換えずに、可変情報Dbを書き換える。
そして、可変領域EA1から可変情報Da、Dbに対応
する特徴部La、Lbについて特徴データRa、Rbを
取得し、図21(B)に示すように、今回書き換えなか
った可変情報Daに対する特徴データRaを可変領域E
A2に記録すべき可変情報に含めるとともに、特徴デー
タRbと特徴データRaで所定の暗号データを生成し、
可変領域EA2に記録すべき可変情報に付与して記録す
る。次に、制御部83は、ベリファイチェックのため、
可変領域EA1から可変情報Da、Dbに対応する特徴
データRa、Rbを取得し、図21(C)に示すよう
に、可変領域EA1における可変情報DaとDbについ
て取得した特徴データRaとRbを用いて、暗号データ
を生成し、可変領域EA2における可変情報に付与され
ている暗号データと一致するか否かをチェックする。そ
してさらに、制御部83は、今回書き換えなかった方の
可変情報Daに対応する特徴データRaが、可変領域E
A2における可変情報に含まれる特徴データと、一致す
るか否かをチェックする。
For example, when the prepaid card 6 is used for the second time or later and the variable information Da in the variable area EA1 is used.
When the last updated one of the variable information Db and Db is the variable information Da, the control unit 83 rewrites the variable information Db without rewriting the variable information Da as shown in FIG.
Then, feature data Ra and Rb are acquired from the variable area EA1 for the feature portions La and Lb corresponding to the variable information Da and Db, and as shown in FIG. To the variable region E
In addition to the variable information to be recorded in A2, predetermined encrypted data is generated from the characteristic data Rb and the characteristic data Ra,
The variable information is recorded by being added to the variable information to be recorded in the variable area EA2. Next, the control unit 83 performs a verification check.
The feature data Ra and Rb corresponding to the variable information Da and Db are obtained from the variable area EA1, and the feature data Ra and Rb obtained for the variable information Da and Db in the variable area EA1 are used as shown in FIG. Then, it generates encrypted data and checks whether or not it matches the encrypted data added to the variable information in the variable area EA2. Further, the control unit 83 sets the characteristic data Ra corresponding to the variable information Da which has not been rewritten this time to the variable region E.
It is checked whether or not it matches the feature data included in the variable information in A2.

【0072】なお、挿入されたカードの使用が初回であ
る場合には、制御部83は、可変領域EA1における可
変情報DaとDbのうち、所定の可変情報Daを書き換
える。そして、今回書き換えなかった方の可変情報Db
に対応する特徴データRbを可変領域EA2に記録すべ
き可変情報に含めるとともに、特徴データRaと特徴デ
ータRbで所定の暗号データを生成し、可変領域EA2
に記録されるべき可変情報に付与して記録する。そし
て、可変領域EA1及びEA2への可変情報の記録更新
の完了後、制御部83は、可変情報が正しく記録された
ことを確認するため、特徴データRaとRbを取得し、
これらを用いて暗号データを生成し、この暗号データ
が、可変領域EA2に記憶されている可変情報に付与さ
れている暗号データと一致するか否かをチェックする。
そしてさらに、制御部83は、今回書き換えなかった方
の可変情報Dbに対応する特徴データRbが、可変領域
EA2において復号化された可変情報に含まれる特徴デ
ータと、一致するか否かをチェックする。これらのチェ
ックにおいて、比較した暗号データが一致しない場合、
又は、比較した特徴データが一致しない場合には、所定
のエラー処理を行う。
When the inserted card is used for the first time, the control unit 83 rewrites predetermined variable information Da among the variable information Da and Db in the variable area EA1. Then, the variable information Db not rewritten this time
Is included in the variable information to be recorded in the variable area EA2, and predetermined encrypted data is generated using the characteristic data Ra and the characteristic data Rb.
Is added to the variable information to be recorded and recorded. After completing the update of the variable information in the variable areas EA1 and EA2, the control unit 83 acquires the characteristic data Ra and Rb in order to confirm that the variable information has been correctly recorded,
These are used to generate encrypted data, and it is checked whether or not the encrypted data matches the encrypted data added to the variable information stored in the variable area EA2.
Further, the control unit 83 checks whether or not the feature data Rb corresponding to the variable information Db that has not been rewritten this time matches the feature data included in the variable information decoded in the variable area EA2. . In these checks, if the compared encrypted data does not match,
Alternatively, if the compared feature data do not match, predetermined error processing is performed.

【0073】制御部83は、上記暗号チェックの結果が
適正であるプリペイドカード6を図示せぬ排出口から排
出し、そのカードID、消費金額、使用日、等の情報を
含む売上情報を生成し、記憶部85に蓄積して記憶し、
所定のタイミング(例えば、中継装置4からの情報要求
の受信等)で中継装置4に送信する。
The control unit 83 discharges the prepaid card 6 for which the result of the above-mentioned encryption check is proper from a discharge port (not shown), and generates sales information including information on the card ID, the consumption amount, the date of use, and the like. , Stored and stored in the storage unit 85,
The information is transmitted to the relay device 4 at a predetermined timing (for example, reception of an information request from the relay device 4).

【0074】記憶部85は、プリペイドカード6の使用
に伴い制御部83により生成される売上情報等を記憶す
る。通信部87は、該読書装置8と中継装置4との間の
通信を制御する。
The storage unit 85 stores sales information and the like generated by the control unit 83 when the prepaid card 6 is used. The communication unit 87 controls communication between the reading device 8 and the relay device 4.

【0075】このように、本システムにおいても、第1
の実施形態と同様に、カードの使用毎に可変領域EA1
の可変情報DaとDbのうちの一方のみを更新する。こ
のため、更新の直前に、処理対象のカードが、例えば可
変情報等が記憶されていないカード等にすり替えられた
場合、そのカードに一方の可変情報が記録されても、記
録されているべき他方の可変情報が存在しないため、可
変領域EA2の可変情報中に適正な特徴データが存在し
ないこととなる。従って、一方の可変情報の更新後に、
更新されない方の可変情報について、その特徴データを
照合することにより、カードのすり替えによりプリペイ
ドカードを偽造しようとする不正行為を容易に検出する
ことができる。また、カード毎、使用毎に一意のデータ
となる特徴データの照合チェックを、カード挿入時、可
変情報の更新後等に行うことにより、システムの安全性
を高めることができる。
As described above, also in this system, the first
As in the embodiment, the variable area EA1 is used every time the card is used.
Only one of the variable information Da and Db is updated. Therefore, immediately before the update, if the processing target card is replaced with, for example, a card that does not store variable information or the like, even if one of the variable information is recorded on that card, the other should be recorded Does not exist, it means that proper feature data does not exist in the variable information of the variable area EA2. Therefore, after updating one of the variable information,
By checking the characteristic data of the variable information that is not updated, fraudulent attempts to forge a prepaid card by replacing the card can be easily detected. In addition, the security of the system can be enhanced by checking the characteristic data, which is unique data for each card and each use, when the card is inserted or after updating the variable information.

【0076】なお、第1と第2の実施形態において、プ
リペイドカード6の可変領域EA1の可変情報Da、D
bにおいて、前回のカードの使用時に更新された方を判
別する方法は任意である。例えば、各可変情報に含まれ
ている残高情報を比較し、高い金額を示す方の可変情報
を前回更新された方と認識してもよい。また、読書装置
が可変情報を記録更新する際、プリペイドカード6の図
示せぬ所定記憶領域にいずれの可変情報(Da又はD
b)を更新したかを示す情報を記録するようにし、この
情報を基に判別するようにしてもよい。
In the first and second embodiments, the variable information Da, D of the variable area EA1 of the prepaid card 6 is set.
In b, the method of determining which one has been updated when the card was used last time is arbitrary. For example, the balance information included in each variable information may be compared, and the variable information indicating the higher amount may be recognized as the one updated last time. When the reading device records and updates the variable information, the variable information (Da or D) is stored in a predetermined storage area (not shown) of the prepaid card 6.
Information indicating whether b) has been updated may be recorded, and the determination may be made based on this information.

【0077】なお、上記第1と第2の実施形態では、特
徴データRaを、カードの端から可変情報Daの開始位
置までの部分である特徴部Laについて取得した距離値
とし、特徴データRbを、可変情報Dbの終了位置から
カード端までの部分である特徴部Lbについて取得した
距離値としているが、これに限定されず、可変情報の記
憶位置に基づく所定領域についての距離値であればよ
く、その決定方法は任意である。また、図22に示すよ
うに、プリペイドカード6において、可変情報と固定情
報とを同一のトラックに記憶するようにしてもよい。こ
の場合も、可変情報Da、Dbの記録位置に応じた所定
の距離値を特徴データとして、上記説明と同様に処理す
ればよい。
In the first and second embodiments, the characteristic data Ra is the distance value acquired for the characteristic part La which is a portion from the end of the card to the start position of the variable information Da, and the characteristic data Rb is The distance value obtained for the characteristic portion Lb, which is a portion from the end position of the variable information Db to the end of the card, is not limited to this, but may be any distance value for a predetermined area based on the storage position of the variable information. , The method of determination is arbitrary. Further, as shown in FIG. 22, in the prepaid card 6, the variable information and the fixed information may be stored on the same track. In this case as well, a predetermined distance value corresponding to the recording positions of the variable information Da and Db may be used as the feature data and processed in the same manner as described above.

【0078】また、上記プリペイドカードを、磁気記憶
部とICチップを備えたカードとして実現してもよい。
この場合、特徴データを抽出する可変領域EA1を磁気
記憶部に設け、可変領域EA2に記憶すべき可変情報を
ICチップのメモリに記憶するようにしてもよい。
Further, the prepaid card may be realized as a card having a magnetic storage unit and an IC chip.
In this case, the variable area EA1 for extracting the characteristic data may be provided in the magnetic storage unit, and the variable information to be stored in the variable area EA2 may be stored in the memory of the IC chip.

【0079】また、本システムで使用されるカードは、
金額情報を記憶しないノーバリューカードとしてもよ
い。この場合、例えば、各利用者についての金額情報を
センタ等で管理し、カード使用時には、カードに記憶さ
れている利用者を識別しうる情報(カードID等)をキ
ーとしてセンタ等にアクセスし、該当する利用者の金額
情報について所定金額を引き出す処理を行うようにして
もよい。
The card used in this system is
A no-value card that does not store the amount information may be used. In this case, for example, the amount information of each user is managed by a center or the like, and when the card is used, the center or the like is accessed by using information (card ID or the like) stored in the card that can identify the user as a key, A process of extracting a predetermined amount of money from the corresponding user's amount information may be performed.

【0080】また、このプリペイドカードシステムは、
プリペイドカードを、遊技媒体の貸出等の対価の支払い
に使用するシステムに限定されず、種々の用途に適用可
能である。
Further, this prepaid card system
The prepaid card is not limited to a system used for paying for a game medium or the like, and can be applied to various uses.

【0081】[0081]

【発明の効果】以上説明したように、本発明によれば、
カードの使用毎に、2つの可変情報の一方のみを更新す
る。このため、更新の直前に、処理対象のカードが、例
えば可変情報等が記憶されていないカード等にすり替え
られた場合、そのカードに一方の可変情報が記録されて
も、記録されているべき他方の可変情報が存在しないた
め、第2の記憶領域における可変情報中に適正な特徴デ
ータが存在しないこととなり、カードのすり替え等の不
正行為を容易に検出できる。
As described above, according to the present invention,
Each time the card is used, only one of the two variable information is updated. Therefore, immediately before the update, if the processing target card is replaced with, for example, a card that does not store variable information or the like, even if one of the variable information is recorded on that card, the other should be recorded Since the variable information does not exist, proper characteristic data does not exist in the variable information in the second storage area, and an illegal act such as replacement of a card can be easily detected.

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

【図1】本発明の第1の実施形態に係るプリペイドカー
ドシステムの構成を模式的に示す図である。
FIG. 1 is a diagram schematically showing a configuration of a prepaid card system according to a first embodiment of the present invention.

【図2】図1のプリペイドカードシステムで使用される
プリペイドカードの記憶領域の構造を示す図である。
FIG. 2 is a diagram showing a structure of a storage area of a prepaid card used in the prepaid card system of FIG. 1;

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

【図4】図3の記録装置がプリペイドカードに可変情報
を記録する処理を説明するための図である。
FIG. 4 is a diagram for explaining a process in which the recording device of FIG. 3 records variable information on a prepaid card.

【図5】図1のプリペイドカードシステムで使用される
読書装置の構成を模式的に示すブロック図である。
FIG. 5 is a block diagram schematically showing a configuration of a reading device used in the prepaid card system of FIG. 1;

【図6】図5の読書装置が、挿入されたプリペイドカー
ドの可変情報をチェックする処理を説明するための図で
ある。
FIG. 6 is a diagram for explaining a process in which the reading device of FIG. 5 checks variable information of an inserted prepaid card.

【図7】図5の読書装置がプリペイドカードの可変情報
を記録更新する処理を説明するための図である。
FIG. 7 is a diagram for explaining a process in which the reading apparatus of FIG. 5 records and updates variable information of a prepaid card.

【図8】図3の記録装置に供給されるプリペイドカード
の横幅の寸法を説明するための図である。
FIG. 8 is a view for explaining a width dimension of a prepaid card supplied to the recording apparatus of FIG. 3;

【図9】図3の記録装置により、プリペイドカードの可
変領域に記録される可変情報の記録位置を説明するため
の図である。
FIG. 9 is a diagram for explaining a recording position of variable information recorded in a variable area of a prepaid card by the recording device of FIG. 3;

【図10】図3の記録装置の動作を説明するためのフロ
ーチャートである。
FIG. 10 is a flowchart for explaining the operation of the printing apparatus of FIG. 3;

【図11】図5の読書装置の動作を説明するためのフロ
ーチャートである。
FIG. 11 is a flowchart for explaining the operation of the reading device of FIG. 5;

【図12】図5の読書装置に挿入されたプリペイドカー
ドについて、その使用が初回であると判別された場合に
おける第1の復号チェック処理を示すフローチャートで
ある。
12 is a flowchart showing a first decryption check process when it is determined that the prepaid card inserted into the reading apparatus of FIG. 5 is used for the first time;

【図13】図5の読書装置に挿入されたプリペイドカー
ドについて、その使用が2回目以降であると判別された
場合における第2の復号チェック処理を示すフローチャ
ートである。
13 is a flowchart showing a second decryption check process when it is determined that the prepaid card inserted into the reading apparatus of FIG. 5 has been used for the second time or later.

【図14】図5の読書装置に挿入されたプリペイドカー
ドの可変情報を記録更新する際に、その使用が初回であ
ると判別された場合の第1の暗号チェック処理を示すフ
ローチャートである。
14 is a flowchart illustrating a first encryption check process when it is determined that use of the variable information of a prepaid card inserted in the reading apparatus of FIG. 5 is the first time when the variable information is recorded and updated;

【図15】図5の読書装置に挿入されたプリペイドカー
ドの可変情報を記録更新する際に、その使用が2回目以
降であると判別された場合の第2の暗号チェック処理を
示すフローチャートである。
FIG. 15 is a flowchart showing a second encryption check process when it is determined that the use of the variable information of the prepaid card inserted in the reading apparatus of FIG. 5 is the second or later use when recording and updating the variable information; .

【図16】本発明の第2の実施形態に係るプリペイドカ
ードシステムの構成を模式的に示す図である。
FIG. 16 is a diagram schematically showing a configuration of a prepaid card system according to a second embodiment of the present invention.

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

【図18】図16の記録装置がプリペイドカードに可変
情報を記録する処理を説明するための図である。
FIG. 18 is a diagram for explaining a process in which the recording device of FIG. 16 records variable information on a prepaid card.

【図19】図17のプリペイドカードシステムで使用さ
れる読書装置の構成を模式的に示すブロック図である。
19 is a block diagram schematically showing a configuration of a reading device used in the prepaid card system of FIG.

【図20】図19の読書装置が、挿入されたプリペイド
カードの可変情報をチェックする処理を説明するための
図である。
FIG. 20 is a diagram for explaining a process in which the reading device of FIG. 19 checks variable information of an inserted prepaid card.

【図21】図19の読書装置がプリペイドカードの可変
情報を記録更新する処理を説明するための図である。
FIG. 21 is a diagram for explaining a process in which the reading device of FIG. 19 records and updates variable information of a prepaid card.

【図22】プリペイドカードの記憶領域の構造の一例を
示す図である。
FIG. 22 is a diagram showing an example of the structure of a storage area of a prepaid card.

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

1、7 記録装置 3、8 読書装置 4 中継装置 5 センタ 6 プリペイドカード 11、71 カード記録部 13、73 制御部 15、75 記憶部 31、81 データ読書部 33、83 制御部 35、85 記憶部 37、87 通信部 1,7 Recording device 3,8 Reading device 4 Relay device 5 Center 6 Prepaid card 11,71 Card recording unit 13,73 Control unit 15,75 Storage unit 31,81 Data reading unit 33,83 Control unit 35,85 Storage unit 37, 87 Communication unit

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.7 識別記号 FI テーマコート゛(参考) G11B 20/10 G07F 7/08 C Fターム(参考) 3E044 AA02 AA06 BA06 DA01 DA03 DA10 DB02 DC01 DC05 DC06 DD01 DD02 DE01 DE02 DE07 5B058 CA31 KA32 KA35 YA06 5D044 AB10 BC01 CC08 DE03 DE17 DE52 GK12 GK17 5D091 AA12 BB06 HH01 HH02 JJ21──────────────────────────────────────────────────続 き Continued on the front page (51) Int.Cl. 7 Identification symbol FI Theme coat ゛ (Reference) G11B 20/10 G07F 7/08 CF term (Reference) 3E044 AA02 AA06 BA06 DA01 DA03 DA10 DB02 DC01 DC05 DC06 DD01 DD02 DE01 DE02 DE07 5B058 CA31 KA32 KA35 YA06 5D044 AB10 BC01 CC08 DE03 DE17 DE52 GK12 GK17 5D091 AA12 BB06 HH01 HH02 JJ21

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】プリペイドカードに金額情報を含む可変情
報を記録して発行する記録装置と、前記記録装置により
発行されたプリペイドカードに記憶されている可変情報
を消費金額に応じて更新する読書装置と、を備えるプリ
ペイドカードシステムにおいて、 前記読書装置は、 挿入されたプリペイドカードの第1の磁気記憶領域に記
憶されている2つの可変情報のうち、該プリペイドカー
ドの前回の使用時に記録更新された方の可変情報の記録
位置に基づいて取得した距離データを鍵として、第2の
記憶領域に記憶されている可変情報を復号化するととも
に、前回記録更新されなかった方の可変情報の記録位置
に基づいて取得した距離データが、前記復号化された可
変情報に含まれる距離データと、一致するか否かを判別
し、一致しない場合、カードの使用を禁止する読取チェ
ック手段と、 消費金額に応じて更新された可変情報を前記プリペイド
カードに記録する際に、前記第1の磁気記憶領域におけ
る2つの可変情報のうち、前回のカード使用時に記録更
新されなかった方の可変情報を記録更新する第1更新手
段と、 前記第1更新手段により記録されなかった方の可変情報
の記録位置に基づいて取得した距離データを、前記プリ
ペイドカードの第2の記憶領域に記録すべき可変情報に
含めるとともに、前記第1更新手段により記録された方
の可変情報の記録位置に基づいて取得した距離データを
鍵として、前記第2の記憶領域に記録すべき可変情報を
暗号化して記録更新する第2更新手段と、 可変情報の記録更新の完了後、前記プリペイドカードの
第1の磁気記憶領域における2つの可変情報の記録位置
に基づいてそれぞれ距離データを取得し、前記第1更新
手段により記録更新された方の可変情報の距離データを
鍵として、前記第2の記憶領域に記憶されている可変情
報を復号化するとともに、前記第1更新手段により記録
更新されなかった方の可変情報の距離データが、前記復
号化された可変情報に含まれる距離データと、一致する
か否かを判別し、一致しない場合、所定のエラー処理を
行う更新チェック手段と、を備える、 ことを特徴とするプリペイドカードシステム。
1. A recording device for recording and issuing variable information including amount information on a prepaid card, and a reading device for updating the variable information stored on the prepaid card issued by the recording device in accordance with a consumption amount. In the prepaid card system comprising: the reading device, of the two variable information stored in the first magnetic storage area of the inserted prepaid card, was recorded and updated during the previous use of the prepaid card Using the distance data obtained based on the recording position of the variable information as a key, the variable information stored in the second storage area is decrypted, and the recording position of the variable information that has not been recorded and updated last time is recorded. It is determined whether or not the distance data acquired based on the distance data matches the distance data included in the decoded variable information. Reading check means for prohibiting the use of the card, and when the variable information updated according to the consumption amount is recorded on the prepaid card, of the two variable information in the first magnetic storage area, First updating means for recording and updating the variable information which has not been updated at the time; and distance data obtained based on the recording position of the variable information which has not been recorded by the first updating means. Included in the variable information to be recorded in the second storage area, and recorded in the second storage area using the distance data obtained based on the recording position of the variable information recorded by the first updating means as a key. Second updating means for encrypting and recording and updating the variable information to be stored; Distance data based on the recording positions of the two pieces of variable information, and using the distance data of the variable information that has been recorded and updated by the first updating means as a key, the variable information stored in the second storage area. And determines whether or not the distance data of the variable information that has not been recorded and updated by the first updating means matches the distance data included in the decoded variable information. If not, an update check means for performing a predetermined error process is provided.
【請求項2】前記記録装置は、 プリペイドカードの第1の磁気記憶領域に、2つの可変
情報を記録する第1記録手段と、 前記第1記録手段により記録された2つの可変情報のう
ち、一方の可変情報の記録位置に基づいて取得した距離
データを、第2の記憶領域に記録すべき可変情報に含め
るとともに、他方の可変情報の記録位置に基づいて取得
した距離データを鍵として、前記第2の記憶領域に記録
すべき可変情報を暗号化して記録する第2記録手段と、
を備え、 前記読書装置は、 挿入された前記プリペイドカードが未使用である場合、
該プリペイドカードの第1の磁気記憶領域に記憶されて
いる2つの可変情報のうち、一方の可変情報の記録位置
に基づいて取得した距離データを鍵として、第2の記憶
領域に記憶されている可変情報を復号化するとともに、
他方の可変情報の記録位置に基づいて取得した距離デー
タが、前記復号化された可変情報に含まれている距離デ
ータと一致するか否かを判別し、一致しない場合、カー
ドの使用を禁止する初期読取チェック手段と、 消費金額に応じて更新された可変情報を前記未使用のプ
リペイドカードに記録する際に、前記第1の磁気記憶領
域における2つの可変情報のうちの一方を記録更新する
第1初期更新手段と、 前記第1初期更新手段により記録更新されなかった方の
可変情報の記録位置に基づいて取得した距離データを、
第2の記憶領域に記録すべき可変情報に含めるととも
に、前記第1初期更新手段により記録更新された方の可
変情報の記録位置に基づいて取得した距離データを鍵と
して、前記第2の記憶領域に記録すべき可変情報を暗号
化して記録更新する第2初期更新手段と、 可変情報の記録更新の完了後、前記プリペイドカードの
第1の磁気記憶領域における2つの可変情報の記録位置
に基づいてそれぞれ距離データを取得し、前記第1初期
更新手段により記録更新された方の可変情報の距離デー
タを鍵として、前記第2の記憶領域に記憶されている可
変情報を復号化するとともに、前記第1初期更新手段に
より記録更新されなかった方の可変情報の距離データ
が、前記復号化された可変情報に含まれる距離データ
と、一致するか否かを判別し、一致しない場合、所定の
エラー処理を行う初期更新チェック手段と、を備える、 ことを特徴とする請求項1に記載のプリペイドカードシ
ステム。
2. The recording apparatus according to claim 1, wherein the first recording unit records two variable information in a first magnetic storage area of the prepaid card, and the first variable recording unit records the two variable information among the two variable information recorded by the first recording unit. The distance data acquired based on the recording position of one variable information is included in the variable information to be recorded in the second storage area, and the distance data acquired based on the recording position of the other variable information is used as a key, Second recording means for encrypting and recording variable information to be recorded in the second storage area;
The reading device, when the inserted prepaid card is unused,
Of the two variable information stored in the first magnetic storage area of the prepaid card, distance data obtained based on the recording position of one of the variable information is stored in the second storage area as a key. While decoding the variable information,
It is determined whether or not the distance data obtained based on the recording position of the other variable information matches the distance data included in the decoded variable information. If not, the use of the card is prohibited. An initial read check unit, and a second unit for recording and updating one of the two variable information in the first magnetic storage area when the variable information updated according to the consumption amount is recorded on the unused prepaid card. 1 initial updating means, and distance data acquired based on the recording position of the variable information which has not been updated by the first initial updating means,
The distance information acquired based on the recording position of the variable information which has been recorded and updated by the first initial updating means is included in the variable information to be recorded in the second storage area, and the second storage area is used as a key. A second initial updating means for encrypting and updating the variable information to be recorded on the prepaid card based on the recording positions of the two variable information in the first magnetic storage area of the prepaid card after the completion of the recording and updating of the variable information. The distance information is acquired, and the variable information stored in the second storage area is decrypted using the distance data of the variable information recorded and updated by the first initial update unit as a key, and (1) It is determined whether or not the distance data of the variable information that has not been recorded and updated by the initial updating means matches the distance data included in the decoded variable information. 2. The prepaid card system according to claim 1, further comprising: an initial update check unit that performs a predetermined error process when there is no error check.
【請求項3】プリペイドカードに金額情報を含む可変情
報を記録して発行する記録装置と、前記記録装置により
発行されたプリペイドカードに記憶されている可変情報
を消費金額に応じて更新する読書装置と、を備えるプリ
ペイドカードシステムにおいて、 前記読書装置は、 挿入されたプリペイドカードの第1の磁気記憶領域に記
憶されている2つの可変情報の記録位置に基づいてそれ
ぞれ取得した2つの距離データを用いて暗号データを生
成し、該暗号データが、第2の記憶領域に記憶されてい
る可変情報に付与されている暗号データと一致するか否
かを判別するとともに、該プリペイドカードの前回の使
用時に記録更新されなかった方の可変情報の記録位置に
基づいて取得した距離データが、前記第2の記憶領域に
おける可変情報に含まれる距離データと、一致するか否
かを判別し、比較した暗号データが一致しない場合、又
は、比較した距離データが一致しない場合、カードの使
用を禁止する読取チェック手段と、 消費金額に応じて更新された可変情報を前記プリペイド
カードに記録する際に、前記第1の磁気記憶領域におけ
る2つの可変情報のうち、前回のカード使用時に記録更
新されなかった方の可変情報を記録更新する第1更新手
段と、 前記第1更新手段により記録更新されなかった方の可変
情報の記録位置に基づいて取得した距離データを、前記
プリペイドカードの第2の記憶領域に記録すべき可変情
報に含めるとともに、該距離データと、前記第1更新手
段により記録更新された方の可変情報の記録位置に基づ
いて取得した距離データと、を用いて暗号データを生成
し、該暗号データを、前記第2の記憶領域に記録すべき
可変情報に付与して記録更新する第2更新手段と、 可変情報の記録更新の完了後、前記プリペイドカードの
第1の磁気記憶領域における2つの可変情報の記録位置
に基づいてそれぞれ距離データを取得し、取得した2つ
の距離データを用いて暗号データを生成し、該暗号デー
タが、前記第2の記憶領域に記憶されている可変情報に
付与されている暗号データと一致するか否かを判別する
とともに、前記第1更新手段により記録更新されなかっ
た方の可変情報の距離データが、前記第2の記憶領域に
おける可変情報に含まれる距離データと、一致するか否
かを判別し、比較した暗号データが一致しない場合、又
は、比較した距離データが一致しない場合、所定のエラ
ー処理を行う更新チェック手段と、を備える、 ことを特徴とするプリペイドカードシステム。
3. A recording device for recording and issuing variable information including amount information on a prepaid card, and a reading device for updating the variable information stored on the prepaid card issued by said recording device in accordance with the consumption amount. In the prepaid card system comprising the following, the reading device uses two distance data respectively acquired based on recording positions of two variable information stored in the first magnetic storage area of the inserted prepaid card. To determine whether the encrypted data matches the encrypted data added to the variable information stored in the second storage area, and to determine whether the prepaid card was used last time. The distance data obtained based on the recording position of the variable information that has not been updated is included in the variable information in the second storage area. If the encrypted data does not match, or if the compared distance data does not match, the reading check means for prohibiting the use of the card, When recording the updated variable information on the prepaid card, the first variable information of the two variable information in the first magnetic storage area which is not updated when the previous card was used is recorded and updated. Updating means, and including the distance data acquired based on the recording position of the variable information that has not been recorded and updated by the first updating means in the variable information to be recorded in the second storage area of the prepaid card, Using the distance data and the distance data acquired based on the recording position of the variable information that has been recorded and updated by the first updating means, the encrypted data is Second updating means for adding the encrypted data to the variable information to be recorded in the second storage area and recording and updating the variable information; and after completing the recording and updating of the variable information, the first magnetic means of the prepaid card. The distance data is obtained based on the recording positions of the two variable information in the storage area, and the encrypted data is generated using the obtained two distance data, and the encrypted data is stored in the second storage area. It is determined whether or not the variable data matches the encrypted data attached to the variable information, and the distance data of the variable information that has not been recorded and updated by the first updating means is stored in the variable information in the second storage area. To determine whether or not they match the distance data included in the data, and if the compared encrypted data does not match, or if the compared distance data does not match, performs predetermined error processing. Comprising a Ekku means, a prepaid card system, characterized in that.
【請求項4】前記記録装置は、 プリペイドカードの第1の磁気記憶領域に、2つの可変
情報を記録する第1記録手段と、 前記第1記録手段により記録された2つの可変情報の記
録位置に基づいてそれぞれ距離データを取得し、取得し
た2つの距離データのうちの一方を、第2の記憶領域に
記録すべき可変情報に含めるとともに、2つの距離デー
タを用いて暗号データを生成し、前記第2の記憶領域に
記録すべき可変情報に付与して記録する第2記録手段
と、を備え、 前記読書装置は、 挿入された前記プリペイドカードが未使用である場合、
該プリペイドカードの第1の磁気記憶領域に記憶されて
いる2つの可変情報の記録位置に基づいてそれぞれ取得
した2つの距離データを用いて暗号データを生成し、該
暗号データが、第2の記憶領域に記憶されている可変情
報に付与されている暗号データと一致するか否かを判別
するとともに、2つの距離データのうちの一方が、前記
第2の記憶領域における可変情報に含まれる距離データ
と、一致するか否かを判別し、比較した暗号データが一
致しない場合、又は、比較した距離データが一致しない
場合、カードの使用を禁止する初期読取チェック手段
と、 消費金額に応じて更新された可変情報を前記未使用のプ
リペイドカードに記録する際に、前記第1の磁気記憶領
域における2つの可変情報のうちの一方を記録更新する
第1初期更新手段と、 前記第1初期更新手段により記録更新されなかった方の
可変情報の記録位置に基づいて取得した距離データを、
第2の記憶領域に記録すべき可変情報に含めるととも
に、該距離データと、前記第1初期更新手段により記録
更新された方の可変情報の記録位置に基づいて取得した
距離データと、を用いて暗号データを生成し、該暗号デ
ータを、前記第2の記憶領域に記録すべき可変情報に付
与して記録更新する第2初期更新手段と、 可変情報の記録更新の完了後、前記プリペイドカードの
第1の磁気記憶領域における2つの可変情報の記録位置
に基づいてそれぞれ距離データを取得し、取得した2つ
の距離データを用いて暗号データを生成し、該暗号デー
タが、前記第2の記憶領域に記憶されている可変情報に
付与されている暗号データと一致するか否かを判別する
とともに、前記第1初期更新手段により記録更新されな
かった方の可変情報の距離データが、前記第2の記憶領
域における可変情報に含まれる距離データと、一致する
か否かを判別し、比較した暗号データが一致しない場
合、又は、比較した距離データが一致しない場合、所定
のエラー処理を行う初期更新チェック手段と、を備え
る、 ことを特徴とする請求項3に記載のプリペイドカードシ
ステム。
4. The recording device according to claim 1, wherein the first recording means records two variable information in a first magnetic storage area of the prepaid card, and a recording position of the two variable information recorded by the first recording means. , And one of the obtained two distance data is included in the variable information to be recorded in the second storage area, and the encrypted data is generated using the two distance data. A second recording unit for adding the variable information to be recorded in the second storage area and recording the variable information, wherein the reading device is configured such that when the inserted prepaid card is unused,
Encrypted data is generated using the two distance data obtained based on the recording positions of the two variable information stored in the first magnetic storage area of the prepaid card, and the encrypted data is stored in the second storage. It is determined whether or not the encrypted data matches the encrypted data assigned to the variable information stored in the area, and one of the two distance data is used as the distance data included in the variable information in the second storage area. If the compared encrypted data does not match, or if the compared distance data does not match, the initial reading check means for prohibiting the use of the card, and is updated according to the consumption amount. When recording the variable information on the unused prepaid card, a first initial updating method for recording and updating one of the two variable information in the first magnetic storage area. And distance data obtained based on the recording position of the variable information that has not been recorded and updated by the first initial updating means,
Using the distance data and the distance data acquired based on the recording position of the variable information that has been recorded and updated by the first initial updating means, while being included in the variable information to be recorded in the second storage area. Second initial updating means for generating encrypted data, adding the encrypted data to the variable information to be recorded in the second storage area, and updating and recording the variable information; Distance data is respectively obtained based on the recording positions of the two variable information in the first magnetic storage area, and encrypted data is generated using the obtained two distance data, and the encrypted data is stored in the second storage area. To determine whether or not it matches the encrypted data added to the variable information stored in the variable information, and to determine the distance data of the variable information that has not been recorded and updated by the first initial updating means. Is determined whether or not the distance data included in the variable information in the second storage area matches, if the compared encrypted data does not match, or if the compared distance data does not match, a predetermined error The prepaid card system according to claim 3, further comprising: an initial update check unit that performs processing.
【請求項5】プリペイドカードに記憶されている金額情
報を含む可変情報を、消費金額に応じて更新する読書装
置であって、 挿入されたプリペイドカードの第1の磁気記憶領域に記
憶されている2つの可変情報のうち、該プリペイドカー
ドの前回の使用時に記録更新された方の可変情報の記録
位置に基づいて距離データを取得し、該距離データを鍵
として、第2の記憶領域に記憶されている可変情報を復
号化するとともに、前回記録更新されなかった方の可変
情報の記録位置に基づいて取得した距離データが、前記
復号化された可変情報に含まれる距離データと、一致す
るか否かを判別し、一致しない場合、カードの使用を禁
止する読取チェック手段と、 消費金額に応じて更新された可変情報を前記プリペイド
カードに記録する際に、前記第1の磁気記憶領域におけ
る2つの可変情報のうち、前回のカード使用時に記録更
新されなかった方の可変情報を記録更新する第1更新手
段と、 前記第1更新手段により記録更新されなかった方の可変
情報の記録位置に基づいて取得した距離データを、前記
プリペイドカードの第2の記憶領域に記録すべき可変情
報に含めるとともに、前記第1更新手段により記録更新
された方の可変情報の記録位置に基づいて取得した距離
データを鍵として、前記第2の記憶領域に記録すべき可
変情報を暗号化して記録更新する第2更新手段と、 可変情報の記録更新の完了後、前記プリペイドカードの
第1の磁気記憶領域における2つの可変情報の記録位置
に基づいてそれぞれ距離データを取得し、前記第1更新
手段により記録更新された方の可変情報の距離データを
鍵として、前記第2の記憶領域に記憶されている可変情
報を復号化するとともに、前記第1更新手段により記録
更新されなかった方の可変情報の距離データが、前記復
号化された可変情報に含まれる距離データと、一致する
か否かを判別し、一致しない場合、所定のエラー処理を
行う更新チェック手段と、 を備えることを特徴とする読書装置。
5. A reading device for updating variable information including amount information stored in a prepaid card in accordance with a consumption amount, wherein the reading device is stored in a first magnetic storage area of the inserted prepaid card. Of the two pieces of variable information, distance data is obtained based on the recording position of the variable information that has been recorded and updated during the previous use of the prepaid card, and is stored in the second storage area using the distance data as a key. Whether or not the distance data obtained based on the recording position of the variable information that has not been recorded and updated last time matches the distance data included in the decoded variable information. Reading check means for prohibiting the use of the card if they do not match, and when the variable information updated according to the consumption amount is recorded on the prepaid card, A first updating unit that records and updates the variable information that has not been recorded and updated during the previous use of the card, of the two variable information in the one magnetic storage area; and a variable information that has not been recorded and updated by the first updating unit. The distance data obtained based on the recording position of the variable information is included in the variable information to be recorded in the second storage area of the prepaid card, and the recording position of the variable information that has been updated by the first updating means is recorded. Second updating means for encrypting and updating the variable information to be recorded in the second storage area using the distance data obtained based on the key as a key, and after completing the updating of the variable information, the second updating means of the prepaid card. The distance data is acquired based on the recording positions of the two variable information in one magnetic storage area, and the distance of the variable information recorded and updated by the first updating unit is obtained. Using the data as a key, the variable information stored in the second storage area is decrypted, and the distance data of the variable information that has not been recorded and updated by the first updating unit is converted to the decoded variable information. A reading device, comprising: update checking means for determining whether or not the distance data matches the distance data included in the information, and performing a predetermined error process when the values do not match.
【請求項6】プリペイドカードに記憶されている金額情
報を含む可変情報を、消費金額に応じて更新する読書装
置であって、 挿入されたプリペイドカードの第1の磁気記憶領域に記
憶されている2つの可変情報の記録位置に基づいてそれ
ぞれ取得した2つの距離データを用いて暗号データを生
成し、該暗号データが、第2の記憶領域に記憶されてい
る可変情報に付与されている暗号データと一致するか否
かを判別するとともに、該プリペイドカードの前回の使
用時に記録更新されなかった方の可変情報の記録位置に
基づいて取得した距離データが、前記第2の記憶領域に
おける可変情報に含まれる距離データと、一致するか否
かを判別し、比較した暗号データが一致しない場合、又
は、比較した距離データが一致しない場合、カードの使
用を禁止する読取チェック手段と、 消費金額に応じて更新された可変情報を前記プリペイド
カードに記録する際に、前記第1の磁気記憶領域におけ
る2つの可変情報のうち、前回のカード使用時に記録更
新されなかった方の可変情報を記録更新する第1更新手
段と、 前記第1更新手段により記録更新されなかった方の可変
情報の記録位置に基づいて取得した距離データを、前記
プリペイドカードの第2の記憶領域に記録すべき可変情
報に含めるとともに、該距離データと、前記第1更新手
段により記録更新された方の可変情報の記録位置に基づ
いて取得した距離データと、を用いて暗号データを生成
し、該暗号データを、前記第2の記憶領域に記録すべき
可変情報に付与して記録更新する第2更新手段と、 可変情報の記録更新の完了後、前記プリペイドカードの
第1の磁気記憶領域における2つの可変情報の記録位置
に基づいてそれぞれ距離データを取得し、取得した2つ
の距離データを用いて暗号データを生成し、該暗号デー
タが、前記第2の記憶領域に記憶されている可変情報に
付与されている暗号データと一致するか否かを判別する
とともに、前記第1更新手段により記録更新されなかっ
た方の可変情報の距離データが、前記第2の記憶領域に
おける可変情報に含まれる距離データと、一致するか否
かを判別し、比較した暗号データが一致しない場合、又
は、比較した距離データが一致しない場合、所定のエラ
ー処理を行う更新チェック手段と、 を備えることを特徴とする読書装置。
6. A reading device for updating variable information including amount information stored in a prepaid card in accordance with a consumption amount, wherein the reading device is stored in a first magnetic storage area of the inserted prepaid card. Encrypted data is generated using two distance data obtained based on the recording positions of the two variable information, and the encrypted data is assigned to the variable information stored in the second storage area. And the distance data obtained based on the recording position of the variable information that has not been recorded and updated during the previous use of the prepaid card, and the distance data obtained in the variable information in the second storage area. Judgment is made as to whether or not the included distance data matches, and if the compared encrypted data does not match, or if the compared distance data does not match, use the card. Means for prohibiting reading and checking; and when recording the variable information updated according to the consumption amount on the prepaid card, of the two variable information in the first magnetic storage area, the recording and updating are performed when the previous card is used. A first updating unit for recording and updating the variable information that has not been recorded, and a distance data acquired based on the recording position of the variable information that has not been recorded and updated by the first updating unit. Included in the variable information to be recorded in the storage area, and generate the encrypted data using the distance data and the distance data obtained based on the recording position of the variable information that has been recorded and updated by the first updating means. A second update unit that adds the encrypted data to the variable information to be recorded in the second storage area and records and updates the variable information; The distance data is respectively acquired based on the recording positions of the two variable information in the first magnetic storage area of the pay card, and the encrypted data is generated using the acquired two distance data. In addition to determining whether or not the variable information stored in the storage area of the variable information matches the encrypted data, the distance data of the variable information that has not been recorded and updated by the first updating unit is determined by the first update unit. In the storage area of No. 2, it is determined whether or not the distance data is included in the variable information, and if the compared encrypted data does not match, or if the compared distance data does not match, the predetermined error processing is performed. A reading device, comprising: checking means.
【請求項7】プリペイドカードに記憶されている金額情
報を含む可変情報を消費金額に応じて更新する読書装置
を備えるプリペイドカードシステムにおける可変情報更
新方法であって、 前記読書装置において、消費金額に応じて更新された可
変情報を前記プリペイドカードに記録する際に、前記第
1の磁気記憶領域における2つの可変情報のうち、前回
のカード使用時に記録更新されなかった方の可変情報を
記録更新する第1更新ステップと、 前記第1更新ステップにより記録更新されなかった方の
可変情報の記録位置に基づいて取得した距離データを、
前記プリペイドカードの第2の記憶領域に記録すべき可
変情報に含めるとともに、前記第1更新ステップにより
記録更新された方の可変情報の記録位置に基づいて取得
した距離データを鍵として、前記第2の記憶領域に記録
すべき可変情報を暗号化して記録更新する第2更新ステ
ップと、 可変情報の記録更新の完了後、前記プリペイドカードの
第1の磁気記憶領域における2つの可変情報の記録位置
に基づいてそれぞれ距離データを取得し、前記第1更新
ステップにより記録更新された方の可変情報の距離デー
タを鍵として、前記第2の記憶領域に記憶されている可
変情報を復号化するとともに、前記第1更新ステップに
より記録更新されなかった方の可変情報の距離データ
が、前記復号化された可変情報に含まれる距離データ
と、一致するか否かを判別し、一致しない場合、所定の
エラー処理を行う更新チェックステップと、 を備えることを特徴とする可変情報更新方法。
7. A variable information updating method in a prepaid card system comprising a reading device for updating variable information including amount information stored in a prepaid card according to a consumption amount, wherein the reading device includes When the variable information updated accordingly is recorded on the prepaid card, of the two variable information in the first magnetic storage area, the variable information which has not been recorded and updated when the card was used last time is recorded and updated. A first update step, and distance data acquired based on the recording position of the variable information that has not been recorded and updated in the first update step,
The distance data acquired based on the recording position of the variable information recorded and updated in the first updating step is included in the variable information to be recorded in the second storage area of the prepaid card, and the second data is used as a key. A second update step of encrypting and updating the variable information to be recorded in the storage area of the second storage area, and, after the completion of the recording and updating of the variable information, to the recording position of the two variable information in the first magnetic storage area of the prepaid card. Acquiring the distance data based on the distance information, decrypting the variable information stored in the second storage area using the distance data of the variable information recorded and updated in the first updating step as a key, The distance data of the variable information that has not been recorded and updated in the first update step matches the distance data included in the decoded variable information. An update check step of determining whether or not the two do not match, and performing a predetermined error process when they do not match.
【請求項8】金額情報を含み、使用毎に更新される可変
情報を記憶するプリペイドカードを処理する読書装置を
備えるプリペイドカードシステムにおける可変情報更新
方法であって、 前記読書装置において消費金額に応じて可変情報を更新
する際に、前記第1の磁気記憶領域における2つの可変
情報のうち、前回のカード使用時に更新されなかった方
の可変情報を記録更新する第1更新ステップと、 前記第1更新ステップにより更新されなかった方の可変
情報の記録位置に基づいて取得した距離データを、前記
プリペイドカードの第2の記憶領域に記録すべき可変情
報に含めるとともに、該距離データと、前記第1更新ス
テップにより更新された方の可変情報の記録位置に基づ
いて取得した距離データと、を用いて暗号データを生成
し、該暗号データを、前記第2の記憶領域に記録すべき
可変情報に付与して記録更新する第2更新ステップと、 可変情報の記録更新の完了後、前記プリペイドカードの
第1の磁気記憶領域における2つの可変情報の記録位置
に基づいてそれぞれ距離データを取得し、取得した2つ
の距離データを用いて暗号データを生成し、該暗号デー
タが、前記第2の記憶領域に記憶されている可変情報に
付与されている暗号データと一致するか否かを判別する
とともに、前記第1更新ステップにより更新されなかっ
た方の可変情報の距離データが、前記第2の記憶領域に
おける可変情報に含まれる距離データと、一致するか否
かを判別し、比較した暗号データが一致しない場合、又
は、比較した距離データが一致しない場合、所定のエラ
ー処理を行う更新チェックステップと、 を備えることを特徴とする可変情報更新方法。
8. A variable information updating method in a prepaid card system including a reading device for processing a prepaid card that stores variable information that is updated for each use, including money amount information, wherein the reading device changes the amount of money according to a consumption amount. A first updating step of recording and updating, of the two pieces of variable information in the first magnetic storage area, a piece of variable information that has not been updated when the previous card was used; The distance data acquired based on the recording position of the variable information that has not been updated in the updating step is included in the variable information to be recorded in the second storage area of the prepaid card, and the distance data and the first Generating encrypted data using the distance data acquired based on the recording position of the variable information updated in the updating step; A second update step of adding record data to variable information to be recorded in the second storage area and recording and updating the same; after the completion of the recording and updating of the variable information, a second update step is performed in the first magnetic storage area of the prepaid card. The distance data is obtained based on the recording positions of the two pieces of variable information, and encrypted data is generated using the obtained two pieces of distance data, and the encrypted data is stored in the variable information stored in the second storage area. It is determined whether or not the variable data matches the assigned encrypted data, and the distance data of the variable information that has not been updated in the first update step is stored in the distance data included in the variable information in the second storage area. Is determined, and if the compared encrypted data does not match, or if the compared distance data does not match, an update check for performing predetermined error processing is performed. Variable information update method characterized by comprising the steps, a.
JP11065770A 1999-03-12 1999-03-12 Prepaid card system, reading and writing apparatus, and method for updating variable information Pending JP2000268305A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11065770A JP2000268305A (en) 1999-03-12 1999-03-12 Prepaid card system, reading and writing apparatus, and method for updating variable information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11065770A JP2000268305A (en) 1999-03-12 1999-03-12 Prepaid card system, reading and writing apparatus, and method for updating variable information

Publications (1)

Publication Number Publication Date
JP2000268305A true JP2000268305A (en) 2000-09-29

Family

ID=13296605

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11065770A Pending JP2000268305A (en) 1999-03-12 1999-03-12 Prepaid card system, reading and writing apparatus, and method for updating variable information

Country Status (1)

Country Link
JP (1) JP2000268305A (en)

Similar Documents

Publication Publication Date Title
JP2010098367A (en) Information processor, code changeover method, and program
JP2003123032A (en) Ic card terminal and individual authentication method
JP4339994B2 (en) Storage medium authentication device for gaming facilities
JP2002172264A (en) Issuing device for recording medium for game, and management system for recording medium in parlor
JPH0822517A (en) Forgery preventing system for hybrid card
JP2000268305A (en) Prepaid card system, reading and writing apparatus, and method for updating variable information
JP2001524724A (en) Data management method for chip card
JP6270005B1 (en) Magnetic recording card and information verification system
JP3490921B2 (en) Prepaid card system, relay device and reading device
JP2002183706A (en) Card information protecting method
JP2002102525A (en) Authorization system for card-operated pachinko machine and card-operated pachinko machine
JPH11328334A (en) Prepaid card system and reader writer
JP3301988B2 (en) Prepaid card system, reading device and variable information updating method
JP3376309B2 (en) Prepaid card system, reading device, recording device, and variable information updating method
JP2000259908A (en) Prepaid card system, reading device and variable information updating method
JP3410381B2 (en) Prepaid card system, reading device and variable information updating method
JP3472179B2 (en) Prepaid card system, reading device and usage permission method
JP2000259918A (en) Prepaid card system, reading and writing device and variable information updating method
JP2000259917A (en) Prepaid card system, reading and writing device and variable information updating method
WO2006134674A1 (en) Credit card using counterfeit preventive code, or cash card counterfeit preventive system, and counterfeit preventive method
JPH11328503A (en) Prepaid card system, recorder, reader/writer, ticket issuing machine and illegal card use prevention method
JP4046918B2 (en) IC card, IC card reader and IC card system
JP2007065727A (en) Ic card use system
JP2000259794A (en) Prepaid card system, reader, and variable information updating method
JP3494568B2 (en) Prepaid card system, control device and relay device