JP2000259920A - Prepaid card system, reading and writing device and variable information updating method - Google Patents

Prepaid card system, reading and writing device and variable information updating method

Info

Publication number
JP2000259920A
JP2000259920A JP11065780A JP6578099A JP2000259920A JP 2000259920 A JP2000259920 A JP 2000259920A JP 11065780 A JP11065780 A JP 11065780A JP 6578099 A JP6578099 A JP 6578099A JP 2000259920 A JP2000259920 A JP 2000259920A
Authority
JP
Japan
Prior art keywords
information
prepaid card
variable information
quantization
variable
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.)
Granted
Application number
JP11065780A
Other languages
Japanese (ja)
Other versions
JP3483792B2 (en
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 JP06578099A priority Critical patent/JP3483792B2/en
Publication of JP2000259920A publication Critical patent/JP2000259920A/en
Application granted granted Critical
Publication of JP3483792B2 publication Critical patent/JP3483792B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Control Of Vending Devices And Auxiliary Devices For Vending Devices (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

PROBLEM TO BE SOLVED: To accurately detect a prepaid card medium altered or forged by the copy of stored information. SOLUTION: When a prepaid card is set, a reading/writing device 1 detects the gradation distribution of bar code printing sites, and quantizes the detected information by different prescribed quantization systems, and decodes variable information (a) and (b) read from information areas A and B of the prepaid card by using quantized data Ra and Rb as cryptographic keys, and checks the validity/invalidity of decoding. When they are both decoded, it is judged that the prepaid card is normal, and when it is judged that at least one of them is not made correspond as the result of collation, it is judged that the prepaid card is abnormal and an illegal card.

Description

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

【0001】[0001]

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

【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の観点に係るプリペイドカードシステ
ムは、所定部位にバーコードが印刷され、金銭的価値に
対応する金額情報を含む可変情報を記憶する記憶媒体か
らなるプリペイドカードを用いて金銭的決済を行うプリ
ペイドカードシステムにおいて、プリペイドカード媒体
の前記所定部位に印刷されたバーコード部分の地色を含
む階調分布を光学的に検出し、該階調分布のばらつきに
対応する検出信号に基づく特徴情報を量子化し、該量子
化情報を暗号鍵として、該プリペイドカード媒体の複数
の記憶領域に前記可変情報を暗号化して記録して前記プ
リペイドカードとして発行する記録手段と、前記プリペ
イドカードの前記所定部位におけるバーコード部分の地
色を含む階調分布を光学的に検出し、該階調分布のばら
つきに対応する検出信号に基づく特徴情報を量子化し、
該量子化情報を暗号鍵として、当該プリペイドカードの
前記複数の記憶領域に対する読出し/書込み情報を復号
/暗号化して、前記プリペイドカードの消費金額に応じ
て前記複数の記憶領域を交互に用いて前記可変情報の読
出し/更新を行う読書手段と、を備える。
In order to achieve the above object, a prepaid card system according to a first aspect of the present invention has a variable value including a bar code printed on a predetermined portion and including money amount information corresponding to a monetary value. In a prepaid card system for performing a financial settlement using a prepaid card made of a storage medium for storing information, a gradation distribution including a ground color of a barcode portion printed on the predetermined portion of the prepaid card medium is optically detected. Then, the feature information based on the detection signal corresponding to the variation of the gradation distribution is quantized, and the variable information is encrypted and recorded in a plurality of storage areas of the prepaid card medium using the quantized information as an encryption key. Recording means for issuing as the prepaid card; and Histological detect quantizes the feature information based on the detection signal corresponding to the variation in the grayscale distribution,
The read / write information for the plurality of storage areas of the prepaid card is decrypted / encrypted using the quantization information as an encryption key, and the plurality of storage areas are alternately used in accordance with the consumption amount of the prepaid card. Reading means for reading / updating variable information.

【0007】このような構成によれば、記録手段によ
り、初期状態においては、プリペイドカードの媒体毎に
固有のバーコード印刷部位の階調分布のばらつきに対応
する特徴情報を量子化した量子化情報を暗号鍵として暗
号化して複数の記憶領域に可変情報を書き込んでおく。
そして、読書手段は、該プリペイドカードの特徴情報に
基づく量子化情報を暗号鍵として用いて、可変情報の更
新の都度、複数の記憶領域に暗号化して交互に書き込み
且つ複数の記憶領域の可変情報を復号してその可否をチ
ェックすることにより、他のプリペイドカードの可変情
報の複写による不正を的確に検出することができる。し
たがって、媒体の変造又は偽造によるプリペイドカード
の不正使用を未然に排除することができる。
According to such a configuration, in the initial state, quantized information obtained by quantizing the characteristic information corresponding to the variation in the gradation distribution of the barcode printing portion unique to each medium of the prepaid card is initially recorded. Is used as an encryption key to write variable information in a plurality of storage areas.
The reading means encrypts and alternately writes the variable information in the plurality of storage areas and updates the variable information in the plurality of storage areas each time the variable information is updated, using the quantization information based on the characteristic information of the prepaid card as an encryption key. By decrypting the variable information and checking whether it is possible or not, it is possible to accurately detect the fraud by copying the variable information of another prepaid card. Therefore, unauthorized use of the prepaid card due to falsification or forgery of the medium can be eliminated.

【0008】前記記録手段は、前記プリペイドカード媒
体における前記バーコード部分の特徴情報を各記憶領域
毎に異なる量子化方式にて量子化した量子化情報を暗号
鍵として、予め記録すべき初期可変情報を暗号化して、
該プリペイドカード媒体の前記複数の記憶領域に記録す
る手段を含み、且つ前記読書手段は、前記特徴情報を、
各記憶領域毎に前記記録手段と共通の量子化方式により
量子化した量子化情報を、暗号化/復号のための暗号鍵
とする手段を含んでいてもよい。
[0008] The recording means may be an initial variable information to be recorded in advance, using, as an encryption key, quantization information obtained by quantizing characteristic information of the bar code portion in the prepaid card medium by a different quantization method for each storage area. Encrypts
Means for recording in the plurality of storage areas of the prepaid card medium, and wherein the reading means, the characteristic information,
Each storage area may include means for using quantization information quantized by a quantization method common to the recording means as an encryption key for encryption / decryption.

【0009】前記読書手段は、前記バーコード部分の階
調分布の検出信号による特徴情報の量子化情報を暗号鍵
とする前記複数の記憶領域の前記可変情報の復号の可否
による不正検出を、前記プリペイドカードの装填時及び
前記可変情報の更新後に行う手段を含んでいてもよい。
[0009] The reading means may detect whether the variable information in the plurality of storage areas can be decrypted using the quantization information of the characteristic information based on the detection signal of the gradation distribution of the bar code portion as an encryption key. Means may be included for loading the prepaid card and after updating the variable information.

【0010】本発明の第2の観点に係る読書装置は、所
定部位にバーコードが印刷された記憶媒体からなるプリ
ペイドカードの複数の記憶領域から金額情報を含む可変
情報を読み出し、且つ該複数の記憶領域に、前記可変情
報を更新書込みするリーダ/ライタ手段と、前記プリペ
イドカードの前記バーコード部分の地色を含む階調分布
を光学的に検出する光センサと、前記光センサの検出信
号に基づいて前記バーコード部分の階調分布のばらつき
に対応する特徴情報を量子化して量子化情報を得て、該
量子化情報を暗号鍵として用いて暗号化/復号処理を行
う暗号処理手段と、前記リーダ/ライタ手段による前記
プリペイドカードの前記複数の記憶領域に対する読出し
/書込み情報を、前記暗号処理手段により復号/暗号化
して、前記プリペイドカードの消費金額に応じて前記複
数の記憶領域を交互に用いて前記可変情報の読出し/更
新を行わせるチェック制御手段と、前記プリペイドカー
ドの消費金額に応じて、前記チェック制御手段を介して
前記金額情報を更新させ、且つ該消費金額を含む売上情
報を送信する消費処理手段と、を備える。
[0010] A reading apparatus according to a second aspect of the present invention reads variable information including amount information from a plurality of storage areas of a prepaid card formed of a storage medium having a barcode printed on a predetermined portion, and reads the plurality of variable information. Reader / writer means for updating and writing the variable information in a storage area, an optical sensor for optically detecting a gradation distribution including a ground color of the barcode portion of the prepaid card, and a detection signal of the optical sensor. Encryption processing means for quantizing characteristic information corresponding to the variation of the gradation distribution of the barcode portion based on the quantization information to obtain quantization information, and performing encryption / decryption processing using the quantization information as an encryption key; The read / write information to / from the plurality of storage areas of the prepaid card by the reader / writer means is decrypted / encrypted by the encryption processing means, and Check control means for reading / updating the variable information alternately using the plurality of storage areas in accordance with the consumption amount of the prepaid card, and the check control means in accordance with the consumption amount of the prepaid card. Consumption processing means for updating the price information and transmitting sales information including the consumption amount.

【0011】このような構成によれば、読書装置は、プ
リペイドカードの媒体毎に固有のバーコード印刷部位の
階調分布のばらつきに対応する特徴情報に基づく量子化
情報を暗号鍵として用い、可変情報の更新の都度、複数
の記憶領域に暗号化して交互に書き込み且つ複数の記憶
領域の可変情報を復号してその可否をチェックすること
により、他のプリペイドカードの可変情報の複写による
不正を的確に検出することができる。したがって、媒体
の変造又は偽造によるプリペイドカードの不正使用を未
然に排除することができる。
[0011] According to such a configuration, the reading apparatus uses the quantization information based on the characteristic information corresponding to the variation in the gradation distribution of the barcode printing portion peculiar to each medium of the prepaid card as the encryption key, and Each time the information is updated, it is encrypted and written alternately in a plurality of storage areas, and the variable information in the plurality of storage areas is decrypted and checked for validity. Can be detected. Therefore, unauthorized use of the prepaid card due to falsification or forgery of the medium can be eliminated.

【0012】前記プリペイドカードは、前記バーコード
部分の特徴情報を各記憶領域毎に異なる量子化方式にて
量子化した量子化情報を暗号鍵として、初期可変情報が
暗号化されて予め記憶され、且つ前記暗号処理手段は、
前記特徴情報を各記憶領域毎に前記初期可変情報と共通
の量子化方式により量子化した量子化情報を暗号鍵とし
て用いて、暗号化/復号処理を行う手段を含んでいても
よい。
[0012] In the prepaid card, initial variable information is encrypted and stored in advance, using quantization information obtained by quantizing the characteristic information of the bar code portion by a different quantization method for each storage area as an encryption key, And the encryption processing means comprises:
A means for performing encryption / decryption processing by using, as an encryption key, quantization information obtained by quantizing the characteristic information with the initial variable information and a common quantization method for each storage area may be included.

【0013】前記チェック制御手段は、前記暗号処理手
段による前記複数の記憶領域の前記可変情報の復号の可
否による不正検出を、前記プリペイドカードの装填時及
び前記可変情報の更新後に行う手段を含んでいてもよ
い。
The check control means includes means for performing fraud detection based on whether or not the variable information in the plurality of storage areas can be decrypted by the encryption processing means when the prepaid card is loaded and after the variable information is updated. May be.

【0014】本発明の第3の観点に係るプリペイドカー
ドシステムは、所定部位にバーコードが印刷され、金銭
的価値に対応する金額情報を含む可変情報を記憶する記
憶媒体からなるプリペイドカードを用いて金銭的決済を
行うプリペイドカードシステムにおいて、プリペイドカ
ード媒体の前記所定部位に印刷されたバーコード部分の
地色を含む階調分布を光学的に検出し、該階調分布のば
らつきに対応する検出信号に基づく特徴情報を量子化
し、該量子化情報を暗号鍵とし、該量子化情報を前記可
変情報に含めて、該プリペイドカード媒体の複数の記憶
領域に前記可変情報を暗号化して記録して前記プリペイ
ドカードとして発行する記録手段と、前記プリペイドカ
ードの前記所定部位に印刷されたバーコード部分の地色
を含む階調分布を光学的に検出し、該階調分布のばらつ
きに対応する検出信号に基づく特徴情報を量子化し、該
量子化情報を暗号鍵とし、前記可変情報に前記量子化情
報を含めて、当該プリペイドカードの複数の記憶領域に
対する読出し/書込み情報を復号/暗号化して、前記プ
リペイドカードの消費金額に応じて前記複数の記憶領域
を交互に用いて該可変情報の読出し/更新を行う読書手
段と、を備える。
A prepaid card system according to a third aspect of the present invention uses a prepaid card comprising a storage medium having a barcode printed on a predetermined portion and storing variable information including amount information corresponding to a monetary value. In a prepaid card system for performing financial settlement, a gradation distribution including a ground color of a barcode portion printed on the predetermined portion of the prepaid card medium is optically detected, and a detection signal corresponding to the variation of the gradation distribution is detected. Quantizing the characteristic information based on the quantization information as an encryption key, including the quantization information in the variable information, encrypting and recording the variable information in a plurality of storage areas of the prepaid card medium, Recording means for issuing as a prepaid card, and a gradation distribution including a ground color of a barcode portion printed on the predetermined portion of the prepaid card. , Quantizes feature information based on a detection signal corresponding to the variation of the gradation distribution, uses the quantized information as an encryption key, includes the quantized information in the variable information, and Reading / writing information for decrypting / encrypting the read / write information to / from the storage area, and reading / updating the variable information using the plurality of storage areas alternately according to the consumption amount of the prepaid card.

【0015】このような構成によれば、記録手段によ
り、初期状態においては、プリペイドカードの媒体毎に
固有のバーコード印刷部位の階調分布のばらつきに対応
する特徴情報を量子化した量子化情報を、初期可変情報
に含めて、複数の記憶領域に量子化情報を暗号鍵として
暗号化して書き込んでおく。そして、読書手段は、プリ
ペイドカードの特徴情報を量子化した量子化情報を、可
変情報の更新の都度、該可変情報に含めて、複数の記憶
領域に交互に量子化情報を暗号鍵として暗号化して書き
込み、且つ複数の記憶領域に書き込まれた可変情報を量
子化情報を暗号鍵として復号の可否をチェックすること
により、他のプリペイドカードの可変情報の複写による
不正を的確に検出することができる。したがって、媒体
の変造又は偽造によるプリペイドカードの不正使用を未
然に排除することができる。
According to such a configuration, in the initial state, quantized information obtained by quantizing the characteristic information corresponding to the variation in the gradation distribution of the barcode printing portion unique to each medium of the prepaid card by the recording means. Is included in the initial variable information, and is encrypted and written in the plurality of storage areas using the quantization information as the encryption key. Then, the reading means includes the quantized information obtained by quantizing the characteristic information of the prepaid card in the variable information every time the variable information is updated, and encrypts the quantized information alternately in a plurality of storage areas using the quantized information as an encryption key. By checking whether or not variable information written in a plurality of storage areas can be decrypted using quantized information as an encryption key, fraud by copying variable information of another prepaid card can be accurately detected. . Therefore, unauthorized use of the prepaid card due to falsification or forgery of the medium can be eliminated.

【0016】前記記録手段は、前記プリペイドカード媒
体における前記バーコード部分の特徴情報を各記憶領域
毎に異なる量子化方式にて量子化した量子化情報を暗号
鍵とし、他の記憶領域に対応する量子化情報を可変情報
に含めて、予め記録すべき初期可変情報を暗号化して、
該プリペイドカード媒体の前記複数の記憶領域に記録す
る手段を含み、且つ前記読書手段は、前記特徴情報を、
各記憶領域毎に前記記録手段と共通の量子化方式により
量子化した量子化情報を、暗号化/復号のための暗号鍵
とする手段を含んでいてもよい。
[0016] The recording means uses, as an encryption key, quantization information obtained by quantizing the characteristic information of the bar code portion in the prepaid card medium by a different quantization method for each storage area, and corresponds to another storage area. Include the quantization information in the variable information, encrypt the initial variable information to be recorded in advance,
Means for recording in the plurality of storage areas of the prepaid card medium, and wherein the reading means, the characteristic information,
Each storage area may include means for using quantization information quantized by a quantization method common to the recording means as an encryption key for encryption / decryption.

【0017】前記読書手段は、前記バーコード部分の階
調分布の検出信号による特徴情報の量子化情報を暗号鍵
とする前記複数の記憶領域の前記可変情報の復号の可否
による不正検出を、前記プリペイドカードの装填時及び
前記可変情報の更新後に行う手段を含んでいてもよい。
[0017] The reading means may detect the fraud detection based on whether or not the variable information in the plurality of storage areas can be decrypted using the quantization information of the characteristic information based on the detection signal of the gradation distribution of the bar code portion as an encryption key. Means may be included for loading the prepaid card and after updating the variable information.

【0018】前記読書手段は、前記バーコード部分の階
調分布の検出信号による特徴情報の量子化情報を暗号鍵
とする前記複数の記憶領域の前記可変情報の復号の可否
による不正検出時に、前記可変情報中の量子化情報を前
記特徴情報の実測により得た対応する量子化情報と比較
照合して不正検出を行う手段をさらに含んでいてもよ
い。
The reading means may be configured to detect the unauthorized information based on whether or not the variable information in the plurality of storage areas can be decrypted using the quantization information of the characteristic information based on the detection signal of the gradation distribution of the bar code portion as an encryption key. The information processing apparatus may further include means for comparing and comparing the quantized information in the variable information with corresponding quantized information obtained by actual measurement of the feature information to perform fraud detection.

【0019】本発明の第4の観点に係るプリペイドカー
ドシステムは、所定部位にバーコードが印刷され、金銭
的価値に対応する金額情報を含む可変情報を記憶する記
憶媒体からなるプリペイドカードを用いて金銭的決済を
行うプリペイドカードシステムにおいて、プリペイドカ
ード媒体の前記所定部位に印刷されたバーコード部分の
地色を含む階調分布を光学的に検出し、該階調分布のば
らつきに対応する検出信号に基づく特徴情報を量子化
し、該量子化情報を含めて、該プリペイドカード媒体の
複数の記憶領域の一部の複数の記憶領域に初期可変情報
を記録し、且つ前記量子化情報を暗号化して前記複数の
記憶領域の他の一部の記憶領域に記録して前記プリペイ
ドカードとして発行する記録手段と、前記プリペイドカ
ードの前記所定部位に印刷されたバーコード部分の地色
を含む階調分布を光学的に検出し、該階調分布のばらつ
きに対応する検出信号に基づく特徴情報を量子化し、該
量子化情報を含めて、当該プリペイドカードの前記一部
の複数の記憶領域を交互に用いて、前記プリペイドカー
ドの消費金額に応じた可変情報の読出し/更新を行うと
ともに、該更新の都度、前記量子化情報を暗号化して前
記他の一部の記憶領域に更新記憶させる読書手段と、を
備える。
A prepaid card system according to a fourth aspect of the present invention uses a prepaid card comprising a storage medium having a barcode printed on a predetermined portion and storing variable information including money amount information corresponding to a monetary value. In a prepaid card system for performing financial settlement, a gradation distribution including a ground color of a barcode portion printed on the predetermined portion of the prepaid card medium is optically detected, and a detection signal corresponding to the variation of the gradation distribution is detected. Quantizing the characteristic information based on, including the quantized information, recording the initial variable information in some of the plurality of storage areas of the plurality of storage areas of the prepaid card medium, and encrypting the quantized information Recording means for recording in another partial storage area of the plurality of storage areas and issuing it as the prepaid card; and the predetermined portion of the prepaid card The gradation distribution including the ground color of the printed barcode portion is optically detected, the feature information based on the detection signal corresponding to the variation of the gradation distribution is quantized, and the prepaid The variable information is read / updated in accordance with the amount of consumption of the prepaid card by alternately using the plurality of storage areas of the part of the card, and the quantization information is encrypted and updated each time the update is performed. Reading means for updating and storing in a part of the storage area.

【0020】このような構成によれば、記録手段によ
り、初期状態においては、プリペイドカードの媒体毎に
固有のバーコード印刷部位の階調分布のばらつきに対応
する特徴情報を量子化した量子化情報を、複数の記憶領
域の一部の複数の記憶領域に書き込み、前記量子化情報
を暗号化した情報を前記複数の記憶領域の他の一部の記
憶領域に書き込んでおく。読書手段は、前記特徴情報を
量子化した量子化情報を、可変情報の更新の都度、該可
変情報に含めて、前記一部の複数の記憶領域に交互に書
き込むとともに、前記量子化情報を暗号化した情報を前
記他の一部の記憶領域に書き込み且つ前記一部の複数の
記憶領域に書き込まれた可変情報における前記量子化情
報を当該プリペイドカードの実測値に基づく量子化情報
と照合し、該実測値に基づく量子化情報を用いて前記他
の一部の記憶領域の可変情報の復号の可否をチェックす
ることにより、他のプリペイドカードの可変情報の複写
による不正を的確に検出することができる。したがっ
て、媒体の変造又は偽造によるプリペイドカードの不正
使用を未然に排除することができる。
According to such a configuration, in the initial state, quantized information obtained by quantizing the characteristic information corresponding to the variation in the gradation distribution of the bar code printing portion unique to each medium of the prepaid card by the recording means. Is written in some of the plurality of storage areas, and the information obtained by encrypting the quantized information is written in another of the plurality of storage areas. The reading means writes the quantized information obtained by quantizing the characteristic information into the plurality of storage areas alternately each time the variable information is updated, including the variable information, and encrypts the quantized information. The converted information is written to the other part of the storage area and the quantization information in the variable information written to the part of the plurality of storage areas is compared with the quantization information based on the measured value of the prepaid card, By using the quantized information based on the actual measurement value to check whether or not the variable information in the other part of the storage area can be decoded, it is possible to accurately detect fraud by copying the variable information of another prepaid card. it can. Therefore, unauthorized use of the prepaid card due to falsification or forgery of the medium can be eliminated.

【0021】前記記録手段は、前記プリペイドカード媒
体における前記バーコード部分の特徴情報を各記憶領域
毎に異なる量子化方式にて量子化した量子化情報を含む
初期可変情報を、前記一部の複数の記憶領域に予め記憶
する手段を含み、且つ前記読書手段は、前記特徴情報を
各記憶領域毎に前記初期可変情報と共通の量子化方式に
より量子化した量子化情報を、前記可変情報中の量子化
情報と照合するとともに、前記他の一部の記憶領域の可
変情報の復号の可否を判別することにより、不正を検出
する手段を含んでいてもよい。
The recording means stores initial variable information including quantized information obtained by quantizing characteristic information of the bar code portion on the prepaid card medium by a different quantization method for each storage area, and Means for storing in advance in the storage area, and the reading means, the variable information in the variable information, the quantization information obtained by quantizing the characteristic information by a common quantization method with the initial variable information for each storage area The information processing apparatus may include means for detecting fraud by collating with the quantization information and determining whether or not the variable information in the other part of the storage area can be decoded.

【0022】前記読書手段は、前記バーコード部分の階
調分布の検出信号による特徴情報の量子化情報と前記一
部の複数の記憶領域から読み出した前記可変情報におけ
る前記量子化情報との照合による不正検出を、前記プリ
ペイドカードの装填時及び前記可変情報の更新後に行う
手段を含んでいてもよい。
The reading means compares the quantized information of the characteristic information based on the detection signal of the gradation distribution of the bar code portion with the quantized information in the variable information read from the plurality of storage areas. A means for performing fraud detection at the time of loading the prepaid card and after updating the variable information may be included.

【0023】前記読書手段は、前記プリペイドカードの
装填時及び前記可変情報の更新後に、前記バーコード部
分の階調分布の検出信号による特徴情報の量子化情報を
用いて、た前記他の一部の記憶領域から読み出した前記
可変情報の復号の可否による不正検出を行う手段をさら
に含んでいてもよい。
The reading means uses the quantization information of the characteristic information based on the detection signal of the gradation distribution of the bar code portion when the prepaid card is loaded and after the variable information is updated, and the other part is used. Means for performing fraud detection based on whether or not the variable information read from the storage area may be decrypted.

【0024】本発明の第5の観点に係る可変情報更新方
法は、所定部位にバーコードが印刷され、金銭的価値に
対応する金額情報を含む可変情報を記憶する記憶媒体か
らなるプリペイドカードを用いて金銭的決済を行うプリ
ペイドカードシステムにおける可変情報更新方法であっ
て、プリペイドカードの発行時において、該プリペイド
カード媒体の前記所定部位に印刷されたバーコード部分
の地色を含む階調分布を光学的に検出し、該階調分布の
ばらつきに対応する検出信号に基づく特徴情報を量子化
して量子化情報を生成する生成ステップと、前記生成ス
テップにより生成された前記量子化情報を暗号鍵とし
て、前記プリペイドカード媒体の複数の記憶領域に前記
可変情報を暗号化して記録して前記プリペイドカードを
発行する発行ステップと、プリペイドカードの使用時に
おいて、該プリペイドカードの前記所定部位におけるバ
ーコード部分の地色を含む階調分布を光学的に検出し、
該階調分布のばらつきに対応する検出信号に基づく特徴
情報を量子化して量子化情報を生成する量子化情報生成
ステップと、前記量子化情報生成ステップにより生成さ
れた前記量子化情報を暗号鍵として、当該プリペイドカ
ードの前記複数の記憶領域に対する読出し/書込み情報
を復号/暗号化して、前記プリペイドカードの消費金額
に応じて前記複数の記憶領域を交互に用いて前記可変情
報の読出し/更新を行う読書ステップと、を備える。
A variable information updating method according to a fifth aspect of the present invention uses a prepaid card comprising a storage medium having a barcode printed on a predetermined portion and storing variable information including money amount information corresponding to a monetary value. A method for updating variable information in a prepaid card system for performing financial settlement by means of a method, comprising: Generation step of quantizing feature information based on a detection signal corresponding to the variation of the gradation distribution to generate quantization information, and using the quantization information generated by the generation step as an encryption key, An issuance step of encrypting and recording the variable information in a plurality of storage areas of the prepaid card medium and issuing the prepaid card; When, in use of the prepaid card, the gradation distribution including the background color of the bar code portion in said predetermined portion of said prepaid card optically detected,
A quantization information generation step of quantizing feature information based on a detection signal corresponding to the variation of the gradation distribution to generate quantization information; and using the quantization information generated by the quantization information generation step as an encryption key. Decrypting / encrypting the read / write information for the plurality of storage areas of the prepaid card, and reading / updating the variable information using the plurality of storage areas alternately in accordance with the amount of consumption of the prepaid card. A reading step.

【0025】本発明の第6の観点に係る可変情報更新方
法は、所定部位にバーコードが印刷され、金銭的価値に
対応する金額情報を含む可変情報を記憶する記憶媒体か
らなるプリペイドカードを用いて金銭的決済を行うプリ
ペイドカードシステムにおける可変情報更新方法であっ
て、プリペイドカードの発行時において、該プリペイド
カード媒体の前記所定部位に印刷されたバーコード部分
の地色を含む階調分布を光学的に検出し、該階調分布の
ばらつきに対応する検出信号に基づく特徴情報を量子化
して量子化情報を生成する生成ステップと、前記生成ス
テップにより生成された前記量子化情報を前記可変情報
に含めて、該量子化情報を暗号鍵として、前記可変情報
を該プリペイドカード媒体の複数の記憶領域に暗号化し
て記録して、前記プリペイドカードを発行する発行ステ
ップと、プリペイドカードの使用時において、該プリペ
イドカードの前記所定部位に印刷されたバーコード部分
の地色を含む階調分布を光学的に検出し、該階調分布の
ばらつきに対応する検出信号に基づく特徴情報を量子化
して量子化情報を生成する量子化情報生成ステップと、
前記量子化情報生成ステップにより生成された前記量子
化情報を前記可変情報に含めて、当該プリペイドカード
の複数の記憶領域に対する読出し/書込み情報を、前記
量子化情報を暗号鍵として復号/暗号化して、前記プリ
ペイドカードの消費金額に応じて前記複数の記憶領域を
交互に用いて該可変情報の読出し/更新を行う読書ステ
ップと、を備える。
A variable information updating method according to a sixth aspect of the present invention uses a prepaid card comprising a storage medium having a barcode printed on a predetermined portion and storing variable information including money amount information corresponding to a monetary value. A method for updating variable information in a prepaid card system for performing financial settlement by means of a method, comprising: Generating the quantized information by quantizing the feature information based on the detection signal corresponding to the variation in the gradation distribution, and generating the quantized information generated by the generating step into the variable information. The variable information is encrypted and recorded in a plurality of storage areas of the prepaid card medium using the quantization information as an encryption key, An issuance step of issuing a repaid card, and, when using the prepaid card, optically detecting a gradation distribution including a ground color of a bar code portion printed on the predetermined portion of the prepaid card, and Quantization information generating step of generating quantization information by quantizing feature information based on the detection signal corresponding to the variation of
The variable information includes the quantization information generated by the quantization information generating step, and decrypts / encrypts read / write information for a plurality of storage areas of the prepaid card using the quantization information as an encryption key. A reading step of reading / updating the variable information using the plurality of storage areas alternately in accordance with the consumption amount of the prepaid card.

【0026】[0026]

【発明の実施の形態】以下、本発明に係るプリペイドカ
ードシステムを、その実施の形態について、図面を参照
して説明する。本発明の第1の実施の形態に係るプリペ
イドカードシステムの構成を図1に示している。図1に
示すプリペイドカードシステムは、読書装置1、中継装
置2、記録装置3及び決済センタ4を備えている。記録
装置3及び決済センタ4は、カード発行会社及びカード
製造工場等のようなカード発行元Dに設置されている。
一般に、カード発行元Dに対応する店舗Sは複数存在
し、各店舗Sには、複数個の読書装置1及びこれらの読
書装置1を決済センタ4に接続する中継装置2が設置さ
れている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS A prepaid card system according to the present invention will be described below with reference to the accompanying drawings. FIG. 1 shows the configuration of the prepaid card system according to the first embodiment of the present invention. The prepaid card system shown in FIG. 1 includes a reading device 1, a relay device 2, a recording device 3, and a settlement center 4. The recording device 3 and the settlement center 4 are installed at a card issuer D such as a card issuing company and a card manufacturing factory.
In general, there are a plurality of stores S corresponding to the card issuer D, and each store S is provided with a plurality of reading devices 1 and a relay device 2 for connecting the reading devices 1 to the settlement center 4.

【0027】中継装置2は各店舗Sに1個とは限らず、
例えば店舗S内の所定の領域、例えばホール及びフロア
毎に中継装置2が1個ずつ設けられていてもよい。すな
わち、中継装置2は、店舗S毎の複数台の読書装置1、
店舗S内のホール毎の複数台の読書装置1あるいは店舗
S内のフロア毎の複数台の読書装置1と決済センタ4と
の間に設けられる。
The relay device 2 is not limited to one for each store S,
For example, one relay device 2 may be provided for each predetermined area in the store S, for example, for each hall and floor. That is, the relay device 2 includes a plurality of reading devices 1 for each store S,
The payment center 4 is provided between the plurality of reading devices 1 for each hall in the store S or the plurality of reading devices 1 for each floor in the store S.

【0028】このプリペイドカードシステムでは、カー
ド発行元Dで製造され発行されたプリペイドカードが店
舗Sに販売され、さらに店舗Sで利用者に販売される。
利用者は、店舗Sにおいて、例えば遊技媒体の貸出等の
ようなサービス提供の対価をプリペイドカードにより支
払うことができる。このサービス提供及び支払いは、店
舗Sに設置された読書装置1を用いて行われ、プリペイ
ドカードに金額情報として記憶されている金額が消費さ
れる。店舗Sは、読書装置1で消費された金額情報を中
継装置2において集計し、カード発行元Dの決済センタ
4に送信する。カード発行元は、各店舗Sから決済セン
タ4において受信した金額情報に相当する金額を売上金
として各店舗Sに支払う。
In this prepaid card system, a prepaid card manufactured and issued by the card issuer D is sold to the store S, and further sold to the user at the store S.
At the store S, the user can pay for the provision of a service such as lending of a game medium by using a prepaid card. This service provision and payment is performed using the reading device 1 installed in the store S, and the amount stored as the amount information on the prepaid card is consumed. The store S counts the amount information consumed by the reading device 1 in the relay device 2 and transmits the information to the settlement center 4 of the card issuer D. The card issuer pays each store S an amount corresponding to the amount information received from each store S at the settlement center 4 as sales.

【0029】このプリペイドカードシステムで使用する
プリペイドカードを、図2を参照して説明する。図2に
示すように、プリペイドカードPCは、磁性層を用いた
磁気的な情報記憶部DAを持ち、該情報記憶部DAは、
第1の情報領域A及び第2の情報領域Bを有する。第1
の情報領域Aには、残額等の金額情報を含む可変情報
(a)が、特徴情報に基づく量子化データRaを暗号鍵
として暗号化されて書き込まれている。暗号鍵となる量
子化データRaは、バーコードBC印刷部の所定部位の
濃度階調分布の検出信号に基づく特徴データを、所定の
第1の量子化方式により量子化した情報である。該量子
化データRaとしては、エンコード時には、記録装置3
において検出されたバーコードBC印刷部の所定部位の
階調分布情報を第1の量子化方式により量子化した情報
が用いられ、読書装置1による当該可変情報(a)の金
額情報等の更新時には、更新の都度、読書装置1におい
て検出されたバーコードBC印刷部の所定部位の階調分
布情報を第1の量子化方式により量子化した情報が用い
られる。
A prepaid card used in the prepaid card system will be described with reference to FIG. As shown in FIG. 2, the prepaid card PC has a magnetic information storage unit DA using a magnetic layer, and the information storage unit DA
It has a first information area A and a second information area B. First
In the information area A, variable information (a) including amount information such as a balance is encrypted and written using the quantized data Ra based on the characteristic information as an encryption key. The quantized data Ra serving as an encryption key is information obtained by quantizing feature data based on a detection signal of a density gradation distribution of a predetermined portion of a barcode BC printing unit by a predetermined first quantization method. As the quantized data Ra, at the time of encoding, the recording device 3
The information obtained by quantizing the gradation distribution information of the predetermined portion of the barcode BC printing unit detected in the first step by the first quantization method is used. Each time the updating is performed, information obtained by quantizing the gradation distribution information of a predetermined portion of the barcode BC printing unit detected by the reading device 1 by the first quantization method is used.

【0030】第2の情報領域Bには、残額等の金額情報
を含む可変情報(b)が、特徴情報に基づく量子化デー
タRbを暗号鍵として暗号化されて書き込まれている。
暗号鍵となる量子化データRbは、バーコードBC印刷
部の所定部位の濃度階調分布の検出信号に基づく特徴デ
ータを、前記第1の量子化方式とは異なる所定の第2の
量子化方式により量子化した情報である。該量子化デー
タRbとしては、エンコード時には、記録装置3におい
て検出されたバーコードBC印刷部の所定部位の階調分
布情報を第2の量子化方式により量子化した情報が用い
られ、読書装置1による当該可変情報(b)の金額情報
等の更新時には、更新の都度、読書装置1において検出
されたバーコードBC印刷部の所定部位の階調分布情報
を第2の量子化方式により量子化した情報が用いられ
る。
In the second information area B, variable information (b) including amount information such as the remaining amount is encrypted and written using the quantized data Rb based on the characteristic information as an encryption key.
The quantized data Rb serving as an encryption key is obtained by converting feature data based on a detection signal of a density gradation distribution at a predetermined portion of a barcode BC printing section into a predetermined second quantization scheme different from the first quantization scheme. Is information quantized by As the quantized data Rb, at the time of encoding, information obtained by quantizing the gradation distribution information of a predetermined portion of the barcode BC printing unit detected by the recording device 3 by the second quantization method is used. When the amount information or the like of the variable information (b) is updated, the tone distribution information of a predetermined portion of the barcode BC printing section detected by the reading device 1 is quantized by the second quantization method every time the updating is performed. Information is used.

【0031】読書装置1における金額情報等の更新書込
みは、第1の情報領域Aと第2の情報領域Bとに交互に
行われる。これら情報領域A及びBには、残額等の金額
情報の他に、プリペイドカードPCのカード識別情報
(カードID)、製造元を示す製造元コード、製造日
(エンコード日)情報、及びエラー発生時におけるエラ
ーコード等が記録される。
Updating and writing of price information and the like in the reading apparatus 1 are alternately performed in the first information area A and the second information area B. In these information areas A and B, in addition to the amount information such as the remaining amount, the card identification information (card ID) of the prepaid card PC, the manufacturer code indicating the manufacturer, the manufacturing date (encoding date) information, and the error at the time of error occurrence A code and the like are recorded.

【0032】記録装置3は、カード発行元Dにおいてプ
リペイドカードPCを発行するための装置である。この
記録装置3は、プリペイドカード発行時において、プリ
ペイドカードPCの情報記憶部DAの第1の情報領域A
に、量子化データRaを暗号鍵として、初期金額情報及
びその他の情報を含む可変情報(a)を暗号化して書き
込み、且つ情報記憶部DAの第2の情報領域Bに、量子
化データRbを暗号鍵として、初期金額情報及びその他
の情報を含む可変情報(b)を書き込む。初期金額情報
として、実際の初期額面金額を示す金額情報は、可変情
報(a)及び可変情報(b)の少なくとも一方、例えば
可変情報(b)に含まれていればよく、他方の初期金額
情報はダミーの金額情報であってもよい。
The recording device 3 is a device for issuing a prepaid card PC at the card issuer D. When the prepaid card is issued, the recording device 3 stores the first information area A in the information storage section DA of the prepaid card PC.
The variable information (a) including the initial amount information and other information is encrypted and written using the quantized data Ra as an encryption key, and the quantized data Rb is stored in the second information area B of the information storage unit DA. The variable information (b) including the initial amount information and other information is written as the encryption key. As the initial amount information, the amount information indicating the actual initial denomination amount may be included in at least one of the variable information (a) and the variable information (b), for example, the variable information (b). May be dummy amount information.

【0033】また、可変情報(a)及び可変情報(b)
におけるその他の情報には、例えば、プリペイドカード
PCのカード識別情報、製造元を示す製造元コード及び
製造日情報等を含み、これらが全て重複して可変情報
(a)及び可変情報(b)に含まれていてもよく、これ
らが適宜分散して可変情報(a)及び可変情報(b)に
含まれていてもよい。この場合、第1及び第2の情報領
域A及びBを、共に、残額等の更新の際に可変情報
(a)及び(b)がそれぞれ全て更新される可変情報領
域としている。
The variable information (a) and the variable information (b)
Include, for example, the card identification information of the prepaid card PC, the manufacturer code indicating the manufacturer, the date of manufacture, and the like, all of which are redundantly included in the variable information (a) and the variable information (b). They may be appropriately dispersed and included in the variable information (a) and the variable information (b). In this case, the first and second information areas A and B are both variable information areas in which all of the variable information (a) and (b) are updated when updating the balance or the like.

【0034】これら第1の情報領域A及び第2の情報領
域Bに対する可変情報(a)及び可変情報(b)の更新
は、交互に行われる。すなわち、例えば発行後最初の使
用による金額情報の更新の際には、第1の情報領域Aの
可変情報(a)のみを更新し、その次の金額情報の更新
の際には、第2の情報領域Bの可変情報(b)のみを更
新する。
The updating of the variable information (a) and the variable information (b) for the first information area A and the second information area B is performed alternately. That is, for example, at the time of updating the amount information by the first use after issuance, only the variable information (a) of the first information area A is updated, and at the time of updating the next amount information, the second information is updated. Only the variable information (b) in the information area B is updated.

【0035】量子化データRaを暗号鍵とする第1の情
報領域Aに対する可変情報(a)の暗号化書込み、及び
量子化データRbを暗号鍵とする第2の情報領域Bに対
する可変情報(b)の暗号化書込みにあたっっては、そ
れに先立って、バーコードBC部分の例えば濃淡階調分
布を検出し、該階調分布を示す検出信号に基づく特徴デ
ータを用い、それぞれ異なる量子化方式により量子化し
て量子化データRa及び量子化データRbを得る。これ
ら量子化データRa及びRbとしては、例えば、光セン
サのアナログ再生信号をPCM(パルス符号変調)によ
り量子化した情報、又はその他のA/D(アナログ−デ
ィジタル)変換により量子化した情報を用いる。
The variable information (a) is encrypted and written into the first information area A using the quantized data Ra as an encryption key, and the variable information (b) is written into the second information area B using the quantized data Rb as an encryption key. Prior to the encryption writing of (3), prior to that, for example, a gray-scale gradation distribution of the bar code BC is detected, and feature data based on a detection signal indicating the gradation distribution is used, and the quantization data is obtained by different quantization methods. The quantization is performed to obtain the quantized data Ra and the quantized data Rb. As the quantized data Ra and Rb, for example, information obtained by quantizing an analog reproduction signal of an optical sensor by PCM (pulse code modulation) or other information obtained by A / D (analog-digital) conversion is used. .

【0036】図3に示すように、読書装置1は、通信処
理部11、消費処理部12、記憶部13、リーダ/ライ
タ14、チェック制御部15、暗号処理部16及び光セ
ンサ17を備えている。
As shown in FIG. 3, the reading apparatus 1 includes a communication processing unit 11, a consumption processing unit 12, a storage unit 13, a reader / writer 14, a check control unit 15, an encryption processing unit 16, and an optical sensor 17. I have.

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

【0038】リーダ/ライタ14は、プリペイドカード
PCの挿入時には、まず、プリペイドカードPCの第1
及び第2の情報領域A及びBの可変情報を読み取って、
暗号処理部16に与える。このとき、光センサ17は、
リーダ/ライタ14に装填されたプリペイドカードPC
からバーコードBC部分の濃度の階調分布情報を読み取
って、特徴データを、暗号処理部16に供給する。
When the prepaid card PC is inserted, the reader / writer 14 first sets the first card of the prepaid card PC.
And reading the variable information in the second information areas A and B,
This is given to the encryption processing unit 16. At this time, the optical sensor 17
Prepaid card PC loaded in reader / writer 14
And reads the grayscale distribution information of the density of the barcode BC portion from the data, and supplies the characteristic data to the encryption processing section 16.

【0039】暗号処理部16は、光センサ17によりプ
リペイドカードPCから読み取ったバーコードBC部分
の濃度の階調分布に基づく特徴データを所定の量子化方
式により量子化して、量子化データRa及びRbを生成
し、該量子化データRa及びRbを暗号鍵としてプリペ
イドカードPCの第1及び第2の情報領域A及びBから
読み出される可変情報(a)及び(b)を復号する。こ
のとき、チェック制御部15は、暗号処理部16におい
て、量子化データRa及びRbを暗号鍵として、第1及
び第2の情報領域A及びBの可変情報(a)及び(b)
の両者を共に復号できたか否かを判別する。
The encryption processing unit 16 quantizes the characteristic data based on the gradation distribution of the density of the bar code BC read from the prepaid card PC by the optical sensor 17 by a predetermined quantization method, and obtains the quantized data Ra and Rb. And decrypts the variable information (a) and (b) read from the first and second information areas A and B of the prepaid card PC using the quantized data Ra and Rb as an encryption key. At this time, the check control unit 15 uses the quantized data Ra and Rb as encryption keys in the encryption processing unit 16 to change the variable information (a) and (b) of the first and second information areas A and B.
It is determined whether or not both have been successfully decoded.

【0040】すなわち、暗号処理部16は、光センサ1
7により読み取ったバーコードBC部分の濃度の階調分
布情報に基づく特徴データを、第1の量子化方式により
量子化した量子化データRaを暗号鍵として用いてプリ
ペイドカードPCの第1の情報領域Aの可変情報(a)
を復号し、第2の量子化方式により量子化した量子化デ
ータRbを暗号鍵として用いてプリペイドカードPCの
第2の情報領域Bの可変情報(b)を復号する。チェッ
ク制御部15は、暗号処理部16において、暗号鍵とし
ての量子化データRa及びRbにより、プリペイドカー
ドPCの第1及び第2の情報領域A及びBから読み出さ
れる可変情報(a)及び(b)を共に復号できるか否か
を判定する。
That is, the cryptographic processing unit 16 includes the optical sensor 1
7, the feature data based on the gradation distribution information of the density of the barcode BC portion read out by using the quantization data Ra quantized by the first quantization method as an encryption key using the first information area of the prepaid card PC. Variable information of A (a)
And the variable information (b) in the second information area B of the prepaid card PC is decoded using the quantized data Rb quantized by the second quantization method as an encryption key. The check control unit 15 controls the encryption processing unit 16 to use the quantized data Ra and Rb as encryption keys to read the variable information (a) and (b) read from the first and second information areas A and B of the prepaid card PC. ) Can be decoded together.

【0041】チェック制御部15により、暗号処理部1
6において、暗号鍵としての量子化データRa及びRb
により、プリペイドカードPCの第1及び第2の情報領
域A及びBから読み出される可変情報(a)及び(b)
の少なくとも一方が復号できないと判定されたときは、
不正なプリペイドカードが挿入されたと判定し、警告表
示を行うとともに当該プリペイドカードPCを収容し又
は排出して、その使用を阻止する。
The check controller 15 controls the encryption processor 1
6, the quantized data Ra and Rb as encryption keys
, The variable information (a) and (b) read from the first and second information areas A and B of the prepaid card PC.
When it is determined that at least one of cannot be decrypted,
It is determined that an illegal prepaid card has been inserted, a warning is displayed, and the prepaid card PC is accommodated or ejected to prevent its use.

【0042】両者が共に対応すると判定したときは、チ
ェック制御部15は、適正なプリペイドカードがセット
されたと判定して、量子化データRa又はRbを暗号鍵
として、プリペイドカードPCの第1又は第2の情報領
域A又はBから読み出される可変情報(a)又は(b)
に基づく残額情報を消費処理部12に与える。次に残額
目安パンチ孔を検出して、プリペイドカードPCに記憶
されている金額情報との間で矛盾がないかを確認する。
この金額情報は消費処理部12により処理されて残額情
報が記憶部13に書き込まれる。
When it is determined that both correspond, the check control unit 15 determines that an appropriate prepaid card has been set, and uses the quantized data Ra or Rb as an encryption key to set the first or second of the prepaid card PC. Variable information (a) or (b) read from the second information area A or B
Is provided to the consumption processing unit 12 based on the balance information. Next, the remaining amount guide punch hole is detected, and it is confirmed whether there is any inconsistency with the amount information stored in the prepaid card PC.
This amount information is processed by the consumption processing unit 12, and the remaining amount information is written to the storage unit 13.

【0043】さらに、消費処理部12は、該残額情報を
消費処理部12における消費金額情報に応じて更新し、
同様にプリペイドカードPCの残額情報を書き換える。
このとき、更新後の残額に基づき必要に応じて残額目安
パンチ孔を穿孔する。
Further, the consumption processing unit 12 updates the remaining amount information according to the consumption amount information in the consumption processing unit 12,
Similarly, the balance information of the prepaid card PC is rewritten.
At this time, a remaining amount guide punch hole is punched as needed based on the updated remaining amount.

【0044】消費処理部12によるプリペイドカードP
Cの可変情報の更新は、第1の情報領域Aの可変情報
(a)と、第2の情報領域Bの可変情報(b)とに対し
て交互に行われ、これら第1の情報領域Aの可変情報
(a)又は第2の情報領域Bの可変情報(b)の更新時
に、チェック制御部15は、暗号処理部16においてリ
ーダ/ライタ14に装填されたプリペイドカードPCの
バーコードBC部分から光センサ17により読み取った
濃度階調分布情報を量子化した量子化データRa又はR
bを暗号鍵とし、第1の情報領域Aの可変情報(a)又
は第2の情報領域Bの可変情報(b)のうちの更新すべ
きものを、暗号化して更新書込みを行う。
Prepaid card P by consumption processing unit 12
The update of the variable information of C is performed alternately on the variable information (a) of the first information area A and the variable information (b) of the second information area B, and these first information areas A are updated. When the variable information (a) of the second information area B or the variable information (b) of the second information area B is updated, the check control unit 15 uses the bar code BC part of the Quantized data Ra or R obtained by quantizing the density gradation distribution information read by the optical sensor 17 from
Using b as an encryption key, the variable information (a) in the first information area A or the variable information (b) in the second information area B to be updated is updated and written.

【0045】さらに、該更新後にもチェック制御部15
は、当該プリペイドカードPCの第1及び第2の情報領
域A及びBから読み出される可変情報(a)及び(b)
を、暗号処理部16において、光センサ17を介してプ
リペイドカードPCから読み取ったバーコードBC部分
の濃度の階調分布情報を量子化した量子化データRa及
びRbを暗号鍵として復号し、復号の可否を検出する。
なお、光センサ17は、プリペイドカードPCの残額目
安パンチ孔の検出にも共通に用いるようにしてもよい。
Further, even after the update, the check control unit 15
Are variable information (a) and (b) read from the first and second information areas A and B of the prepaid card PC.
Is decrypted by the encryption processing unit 16 using the quantized data Ra and Rb obtained by quantizing the gradation distribution information of the density of the bar code BC read from the prepaid card PC via the optical sensor 17 as an encryption key. Detect whether or not it is possible.
Note that the optical sensor 17 may be commonly used for detecting the remaining amount punch hole of the prepaid card PC.

【0046】記録装置3は、図4に示すように、エンコ
ード制御部31、記憶部32、リーダ/ライタ33、光
センサ34、暗号処理部35及びチェック情報処理部3
6を有している。エンコード制御部31は、この記録装
置3におけるプリペイドカードPCのエンコード、すな
わち初期情報の書込みを制御する。記憶部32は、エン
コード制御部31によるエンコード処理に必要な各種情
報及び処理中の一時情報を記憶する。リーダ/ライタ3
3は、エンコード制御部31により制御されて、プリペ
イドカード媒体の情報記憶部DAの第1及び第2の情報
領域A及びBに対する所定情報の書込みを行う。
As shown in FIG. 4, the recording device 3 includes an encoding control unit 31, a storage unit 32, a reader / writer 33, an optical sensor 34, an encryption processing unit 35, and a check information processing unit 3.
6. The encoding control unit 31 controls encoding of the prepaid card PC in the recording device 3, that is, writing of initial information. The storage unit 32 stores various types of information necessary for the encoding process by the encoding control unit 31 and temporary information being processed. Reader / writer 3
3 is controlled by the encoding control unit 31 to write predetermined information in the first and second information areas A and B of the information storage unit DA of the prepaid card medium.

【0047】光センサ34は、リーダ/ライタ33に装
填されたプリペイドカード媒体の所定のバーコードBC
印刷部位の階調分布を光学的に検出して特徴データを得
る。暗号処理部35は、光センサ34により検出された
特徴データを、上述した第1及び第2の量子化方式によ
り量子化して、量子化データRa及びRbを生成する。
また、暗号処理部35は、該量子化データRa及びRb
を暗号鍵として用いて、可変情報(a)及び(b)の暗
号化を行う。チェック情報処理部36は、エンコード制
御部31により制御されて、可変情報(a)及び(b)
の初期情報を第1及び第2の情報領域A及びBに対して
書込む際の暗号処理部35による暗号化を制御する。
The optical sensor 34 has a predetermined bar code BC of a prepaid card medium loaded in the reader / writer 33.
Characteristic data is obtained by optically detecting the gradation distribution of the print portion. The encryption processing unit 35 quantizes the feature data detected by the optical sensor 34 using the above-described first and second quantization methods, and generates quantized data Ra and Rb.
In addition, the encryption processing unit 35 transmits the quantized data Ra and Rb.
Is used as an encryption key to encrypt the variable information (a) and (b). The check information processing unit 36 is controlled by the encoding control unit 31 and outputs the variable information (a) and (b)
When the initial information is written into the first and second information areas A and B, the encryption by the encryption processing unit 35 is controlled.

【0048】なお、リーダ/ライタ33は、プリペイド
カードPCへの例えば磁気ヘッド(図示せず)によるデ
ータの書込みに際して、プリペイドカードPCに対して
磁気ヘッドを相対的に移動させるが、この場合、磁気ヘ
ッドを移動させても、プリペイドカードPCを移動させ
ても、あるいは両者を同時に相異なる方向に移動させて
もよい。また、光センサ34も、プリペイドカードPC
のバーコード部分の階調分布の検出に際して、プリペイ
ドカードPCに対して相対的に移動させるが、この場
合、光センサ34を移動させても、プリペイドカードP
Cを移動させても、あるいは両者を同時に相異なる方向
に移動させてもよい。
The reader / writer 33 moves the magnetic head relative to the prepaid card PC when writing data to the prepaid card PC by, for example, a magnetic head (not shown). The head may be moved, the prepaid card PC may be moved, or both may be moved simultaneously in different directions. The optical sensor 34 is also a prepaid card PC.
Is moved relative to the prepaid card PC when the gradation distribution of the bar code portion is detected. In this case, even if the optical sensor 34 is moved,
C may be moved, or both may be simultaneously moved in different directions.

【0049】光センサ34は、所定のバーコード印刷部
位の階調分布を光学的に検出し、検出信号からなる特徴
データを暗号処理部35に供給する。暗号処理部35
は、光センサ34で検出された特徴データを互いに異な
る第1及び第2の量子化方式により量子化して、それぞ
れ量子化データRa及びRbを得て、これらを暗号鍵と
して、エンコード制御部31で生成される可変情報
(a)及び(b)を暗号化する。
The optical sensor 34 optically detects a gradation distribution of a predetermined bar code printing portion, and supplies characteristic data including a detection signal to the encryption processing unit 35. Encryption processing unit 35
Quantizes the feature data detected by the optical sensor 34 using first and second quantization schemes different from each other to obtain quantized data Ra and Rb, respectively. The generated variable information (a) and (b) are encrypted.

【0050】エンコード制御部31は、チェック情報処
理部36と連係し、暗号処理部35において量子化デー
タRa及びRbを暗号鍵として暗号化された可変情報
(a)及び(b)を、リーダ/ライタ33を介してプリ
ペイドカードPCの第1及び第2の情報領域A及びBに
書込む。
The encoding control unit 31 cooperates with the check information processing unit 36 to read the variable information (a) and (b) encrypted by the encryption processing unit 35 using the quantized data Ra and Rb as encryption keys. The data is written into the first and second information areas A and B of the prepaid card PC via the writer 33.

【0051】なお、読書装置1は、例えば、遊技媒体の
貸出等を行う物販機(図示せず)に接続されており、物
販機が利用者に提供した遊技媒体等の対価をプリペイド
カードPCに記憶されている金額情報における残額から
差し引くことにより、プリペイドカードPCの消費を具
体化するための装置である。この読書装置1は、プリペ
イドカードPCがセットされると、まず、光センサ17
により、当該プリペイドカードPCのバーコード印刷部
位の階調分布を検出して、当該検出信号からなる特徴デ
ータを暗号処理部16において2種の異なる所定の量子
化方式により量子化して量子化データRa及びRbを得
る。チェック制御部15は、プリペイドカードPCの第
1及び第2の情報領域A及びBから読み出される可変情
報(a)及び(b)を暗号処理部16に与えて、量子化
データRa及びRbを暗号鍵として復号させ、復号の可
否を判別する。
The reading apparatus 1 is connected to, for example, a vending machine (not shown) for renting out game media, etc., and transfers the value of the game media and the like provided by the vending machine to the user to the prepaid card PC. This is an apparatus for embodying the consumption of the prepaid card PC by subtracting from the remaining amount in the stored amount information. When the prepaid card PC is set, the reading device 1
In this way, the gradation data of the bar code printing portion of the prepaid card PC is detected, and the characteristic data composed of the detection signal is quantized in the encryption processing unit 16 by two different predetermined quantization methods to obtain the quantized data Ra. And Rb. The check control unit 15 supplies the variable information (a) and (b) read from the first and second information areas A and B of the prepaid card PC to the encryption processing unit 16 to encrypt the quantized data Ra and Rb. The key is decrypted, and whether or not decryption is possible is determined.

【0052】読書装置1は、プリペイドカードPCの第
1及び第2の情報領域A及びBから読み出される可変情
報(a)及び(b)が、光センサ17により検出し、暗
号処理部16により量子化した量子化データRa及びR
bによって、共に正しく復号されたと、チェック制御部
15において判定された場合には、当該プリペイドカー
ドPCは正常であると判定し、該判定の結果、両者の少
なくとも一方が正しく復号されないと判定された場合に
は、当該プリペイドカードPCは異常であり、不正プリ
ペイドカードPCであると判定する。多くの場合、濃度
階調分布情報の実測値には、経時変化によるプリペイド
カード面の汚れ、バーコード印刷の劣化/変色及び光セ
ンサ17と34との検出特性の相違等が存在する可能性
があるため、量子化データRa及びRbの実測値は、厳
密に一致していなくともよく、所定の量子化精度内で一
致するなど、実質的に同一のプリペイドカード媒体とみ
なし得る程度の類似点があれば正しく復号できるように
する。
The reading device 1 detects the variable information (a) and (b) read from the first and second information areas A and B of the prepaid card PC by the optical sensor 17, and Quantized data Ra and R
b, when the check control unit 15 determines that both have been correctly decoded, it is determined that the prepaid card PC is normal, and as a result of the determination, it is determined that at least one of the two is not correctly decoded. In this case, the prepaid card PC is abnormal and is determined to be an unauthorized prepaid card PC. In many cases, the measured values of the density gradation distribution information may include stains on the surface of the prepaid card due to aging, deterioration / discoloration of barcode printing, differences in detection characteristics between the optical sensors 17 and 34, and the like. Therefore, the measured values of the quantized data Ra and Rb do not have to exactly match each other, but have similarities such that they match within a predetermined quantization accuracy and can be regarded as substantially the same prepaid card medium. If so, make sure that it can be decoded correctly.

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

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

【0055】次に、上述したプリペイドカードシステム
における処理について、図5〜図8に示すフローチャー
トを参照して説明する。まず、記録装置3におけるエン
コード処理について、図5を参照して説明する。図5に
示すエンコード処理は、記録装置3にプリペイドカード
媒体がセットされるとその都度起動される。
Next, the processing in the above-described prepaid card system will be described with reference to the flowcharts shown in FIGS. First, the encoding process in the recording device 3 will be described with reference to FIG. The encoding process shown in FIG. 5 is started each time a prepaid card medium is set in the recording device 3.

【0056】プリペイドカード媒体がリーダ/ライタ3
3にセットされると、まず、エンコード制御部31は、
該プリペイドカード媒体の所定の部位に印刷されたバー
コードの濃淡階調分布を、光センサ34により検出する
(ステップS1)。バーコードBCが印刷される所定の
部位とは、例えば、図2に示すように、プリペイドカー
ドPCの裏面の一端部近傍に存在する。当該部位近傍に
は、図示していないが、残額目安パンチ孔用の度数値列
が存在する。
The prepaid card medium is a reader / writer 3
3, first, the encoding control unit 31
The light / dark gradation distribution of the barcode printed on a predetermined portion of the prepaid card medium is detected by the optical sensor 34 (step S1). The predetermined portion on which the barcode BC is printed is, for example, as shown in FIG. Although not shown, a frequency value sequence for the remaining standard punch hole exists in the vicinity of the portion.

【0057】光センサ34により検出されたバーコード
の濃淡階調分布は、暗号処理部35において、PCM又
はその他のA/D変換等による所定の第1の量子化方式
に従って量子化され、第1の情報領域Aの可変情報
(a)の暗号化用の量子化データRaが生成され(ステ
ップS2)、さらに所定の第2の量子化方式に従って量
子化され、第2の情報領域Bの可変情報(b)の暗号化
用の量子化データRbが生成される(ステップS3)。
The grayscale distribution of the bar code detected by the optical sensor 34 is quantized by the encryption processing unit 35 in accordance with a predetermined first quantization method such as PCM or other A / D conversion. Quantized data Ra for encrypting the variable information (a) in the information area A is generated (step S2), and is further quantized according to a predetermined second quantization scheme, and the variable information in the second information area B is The quantization data Rb for encryption in (b) is generated (step S3).

【0058】エンコード制御部31は、図9に示すよう
に、所要のエンコード情報を、暗号処理部35に与え
て、量子化データRa及びRbを暗号鍵として暗号化
し、リーダ/ライタ33を介してプリペイドカードPC
の第1及び第2の情報領域A及びBにそれぞれ書込み
(ステップS4)、エンコード処理を終了する。なお、
チェック情報処理部36は、エンコード制御部31で生
成するエンコード情報に対する暗号処理部35による暗
号化における暗号鍵の組み合わせを制御する。
As shown in FIG. 9, the encoding control unit 31 supplies necessary encoding information to the encryption processing unit 35, encrypts the encoded data using the quantized data Ra and Rb as encryption keys, and transmits the encrypted data via the reader / writer 33. Prepaid card PC
Are written into the first and second information areas A and B, respectively (step S4), and the encoding process ends. In addition,
The check information processing unit 36 controls a combination of an encryption key in the encryption by the encryption processing unit 35 with respect to the encoding information generated by the encoding control unit 31.

【0059】次に、上述したプリペイドカードシステム
における消費処理について、図6〜図8に示すフローチ
ャートを参照して説明する。図6に示す消費処理は、読
書装置1のリーダ/ライタ14にプリペイドカードPC
がセットされるとその都度起動される。
Next, the consumption processing in the above-described prepaid card system will be described with reference to the flowcharts shown in FIGS. The consumption process shown in FIG. 6 is performed by the reader / writer 14 of the reading device 1
Is activated each time is set.

【0060】処理が開始されると、チェック制御部15
は、リーダ/ライタ14にセットされたプリペイドカー
ドPCが正常か否かをチェックする(ステップS1
1)。すなわち、まず、光センサ17により、リーダ/
ライタ14にセットされたプリペイドカードPCの所定
の部位に印刷されたバーコードBC部分の濃淡階調分布
を検出し、暗号処理部16において、記録装置3の暗号
処理部35における量子化方式と実質的に共通の量子化
方式により量子化して、プリペイドカードPCの第1及
び第2の情報領域A及びBの可変情報(a)及び(b)
の暗号鍵として用いる量子化データRa及びRbを生成
する。
When the processing is started, the check control unit 15
Checks whether the prepaid card PC set in the reader / writer 14 is normal (step S1).
1). That is, first, the reader /
The grayscale distribution of the barcode BC printed on a predetermined portion of the prepaid card PC set in the writer 14 is detected, and the encryption processing unit 16 determines the quantization method and the quantization method in the encryption processing unit 35 of the recording device 3. The variable information (a) and (b) of the first and second information areas A and B of the prepaid card PC are quantized by a common quantization method.
Generates quantized data Ra and Rb to be used as the encryption key of.

【0061】そして、暗号処理部16は、リーダ/ライ
タ14を介して磁気ヘッドによりプリペイドカードPC
の第1及び第2の情報領域A及びBの可変情報(a)及
び(b)を読み出し、先に当該プリペイドカードPCか
ら読み取った実測値を量子化した量子化データRa及び
Rbを暗号鍵として、それぞれ復号し、復号が正常に行
われなければ、チェック制御部15は、セットされたプ
リペイドカードPCが異常であり、不正な手段により作
成されたものであると判定する(図10参照)。
The encryption processing unit 16 uses a magnetic head via the reader / writer 14 to
The variable information (a) and (b) of the first and second information areas A and B are read out, and quantized data Ra and Rb obtained by quantizing actual measurement values read from the prepaid card PC first are used as encryption keys. If the decryption is not performed normally, the check control unit 15 determines that the set prepaid card PC is abnormal and has been created by unauthorized means (see FIG. 10).

【0062】プリペイドカードPCの情報領域A及びB
から読み取った情報が、実測値を量子化した量子化デー
タRa及びRbを暗号鍵として、共に復号できた場合に
は、チェック制御部15により、残額目安パンチ孔の位
置及び可変情報における矛盾の有無を検出する。このと
き、残額目安パンチ孔の位置及び可変情報に矛盾が検出
された場合には、当該プリペイドカードPCは異常であ
るとする。なお、残額目安パンチ孔の検出にも光センサ
17を用いることができる。また、磁気ヘッドを用いて
残額目安パンチ孔を検出するようにしてもよい。
Information areas A and B of prepaid card PC
If the information read from the data can be decrypted by using the quantized data Ra and Rb obtained by quantizing the measured values as encryption keys, the check control unit 15 determines whether there is any inconsistency in the position of the remaining standard punch hole and the variable information. Is detected. At this time, if inconsistency is detected in the position of the remaining amount guide hole and the variable information, the prepaid card PC is determined to be abnormal. It should be noted that the optical sensor 17 can also be used to detect the remaining standard punch holes. Alternatively, the remaining standard punch holes may be detected using a magnetic head.

【0063】チェック制御部15により異常が検出され
ず、正常であると判定された場合には、消費処理部12
により、リーダ/ライタ14を介してプリペイドカード
PCの残額を確認し、記憶部13に格納する(ステップ
S12)。残額があれば、利用者からの終了スイッチ
(図示せず)の押下による終了要求の有無を調べ(ステ
ップS13)、終了要求がなければ、消費スイッチ(図
示せず)による消費要求、例えば遊技媒体の貸出要求、
の有無を調べる(ステップS14)。例えば、遊技シス
テム等の場合、終了スイッチは、カードの返却を要求す
るカード返却スイッチであり、消費スイッチは、遊技媒
体の貸出を要求する貸出スイッチである。
If no abnormality is detected by the check control unit 15 and it is determined that the abnormality is normal, the consumption processing unit 12
Thus, the balance of the prepaid card PC is confirmed via the reader / writer 14 and stored in the storage unit 13 (step S12). If there is a balance, it is checked whether or not there is an end request from the user by pressing an end switch (not shown) (step S13). If there is no end request, a consumption request by a consumption switch (not shown), for example, a game medium Lending request,
Is checked (step S14). For example, in the case of a game system or the like, the end switch is a card return switch for requesting the return of a card, and the consumption switch is a lending switch for requesting lending of a game medium.

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

【0065】ステップS12において、プリペイドカー
ドPCの残額がない場合及び残額が確認できない場合に
は、直ちにステップS19にジャンプして終了処理を実
行する。ステップS13において、終了要求が認識され
た場合にも直ちにステップS19にジャンプして終了処
理を実行する。ステップS14において、消費要求がな
い場合には、ステップS13に戻り、終了要求及び消費
要求を待つ。ステップS17において、差し引き残額が
“0”にならず、残額が残っている場合にも、ステップ
S13に戻り、終了要求及び消費要求を待つ。
In step S12, if there is no remaining amount of the prepaid card PC or if the remaining amount cannot be confirmed, the process immediately jumps to step S19 to execute an end process. If the end request is recognized in step S13, the process immediately jumps to step S19 to execute the end processing. If there is no consumption request in step S14, the process returns to step S13 and waits for an end request and a consumption request. In step S17, even when the remaining balance does not become “0” and the remaining balance remains, the process returns to step S13, and waits for an end request and a consumption request.

【0066】ステップS11のカードチェック処理の詳
細を図7に示している。カードチェック処理が開始され
ると、まず、チェック制御部15は、暗号処理部16を
介して、光センサ17により、プリペイドカードPCの
所定の部位のバーコードBC部分の濃淡階調分布を特徴
データとして検出し、暗号処理部16において、記録装
置3の暗号処理部35で用いられた量子化方式と実質的
に共通の量子化方式により量子化して、プリペイドカー
ドPCの第1及び第2の情報領域A及びBの可変情報
(a)及び(b)の暗号化の際の暗号鍵として用いられ
る量子化データRa及びRbを生成する。(ステップS
21)。
FIG. 7 shows the details of the card check process in step S11. When the card check process is started, first, the check control unit 15 uses the optical sensor 17 via the encryption processing unit 16 to determine the density gradation distribution of the bar code BC portion of the predetermined portion of the prepaid card PC by using the characteristic data. And quantized in the encryption processing unit 16 by a quantization method substantially common to the quantization method used in the encryption processing unit 35 of the recording device 3, and the first and second information of the prepaid card PC. Quantized data Ra and Rb used as encryption keys for encrypting the variable information (a) and (b) in the areas A and B are generated. (Step S
21).

【0067】暗号処理部16は、リーダ/ライタ14を
介して磁気ヘッドによりプリペイドカードPCの第1及
び第2の情報領域A及びBの可変情報(a)及び(b)
を読み出し、図10に示すように、該量子化データRa
及びRbを暗号鍵として復号する(ステップS22)。
The encryption processing section 16 uses the magnetic head via the reader / writer 14 to change the variable information (a) and (b) in the first and second information areas A and B of the prepaid card PC.
And reads out the quantized data Ra as shown in FIG.
And Rb as an encryption key (step S22).

【0068】チェック制御部15は、暗号処理部16に
よる復号の可否、つまり復号に成功したか否か、を判定
し(ステップS23)、復号に成功したと判定されれ
ば、チェック制御部15は、次に、可変情報(a)及び
(b)の復号結果に基づく金額情報及びその他の情報相
互間、及びこれらと残額目安パンチ孔の穿孔状況等との
間に矛盾があるかを検出する(ステップS24)。矛盾
がなければ、チェック制御部15は、当該プリペイドカ
ードPCが正常であるとして(ステップS26)、処理
を終了して、図6の消費処理に戻る。
The check control unit 15 determines whether or not the decryption by the encryption processing unit 16 is possible, that is, whether or not the decryption is successful (step S23). If it is determined that the decryption is successful, the check control unit 15 Next, it is detected whether there is any inconsistency between the amount information and other information based on the decoding result of the variable information (a) and (b), and between these and the remaining amount punch state of the reference hole ( Step S24). If there is no inconsistency, the check control unit 15 determines that the prepaid card PC is normal (step S26), ends the process, and returns to the consumption process of FIG.

【0069】ステップS23において、復号に成功しな
かった(復号失敗)と判定された場合には、異常と判定
し(ステップS27)、プリペイドカードPCの不正を
示す警告表示及び当該プリペイドカードPCの取込み又
は排出等の所定の異常/不正処理を行う(ステップS2
8)。また、ステップS25において、矛盾が存在する
と判定した場合にも、ステップS27に移行し、所定の
異常/不正処理を行う。
If it is determined in step S23 that the decryption has not been successful (failure in decryption), it is determined that the decryption is abnormal (step S27), a warning display indicating that the prepaid card PC is illegal, and the prepaid card PC is taken in. Or, perform predetermined abnormal / illegal processing such as discharge (step S2).
8). Also, in step S25, when it is determined that there is a contradiction, the process proceeds to step S27, and predetermined abnormal / illegal processing is performed.

【0070】図6に示したステップS19の終了処理の
詳細を図8に示している。終了処理が開始されると、消
費処理部12は、再度、チェック制御部15を介して暗
号処理部16に特徴データの読取り及び量子化を行わせ
る(ステップS31)。すなわち、暗号処理部16は、
光センサ17によりプリペイドカードPCの所定の部位
のバーコードBC部分の濃淡階調分布を特徴データとし
て検出し、該特徴データを互いに異なる所定の第1及び
第2の量子化方式により量子化して、プリペイドカード
PCの第1及び第2の情報領域A及びBの可変情報
(a)及び(b)の暗号鍵として用いる量子化データR
a及びRbをそれぞれ生成する。
FIG. 8 shows details of the end processing of step S19 shown in FIG. When the end processing is started, the consumption processing unit 12 causes the encryption processing unit 16 to read and quantize the characteristic data again via the check control unit 15 (step S31). That is, the encryption processing unit 16
The light sensor 17 detects the grayscale distribution of the bar code BC portion of a predetermined portion of the prepaid card PC as feature data, and quantizes the feature data by predetermined first and second quantization schemes different from each other. Quantized data R used as an encryption key for variable information (a) and (b) in the first and second information areas A and B of the prepaid card PC
a and Rb, respectively.

【0071】次に、消費処理部12は、第1及び第2の
情報領域A及びBの先に復号された可変情報(a)及び
(b)の更新日時情報(タイムスタンプ)等に基づい
て、前回書込み時に第1及び第2の情報領域A及びBの
いずれに対して書き込みが行われたかを確認する(ステ
ップS32)。チェック制御部15は、前回書き込みが
行われたのが第2の情報領域Bであるか否かを調べ(ス
テップS33)、前回第2の情報領域Bに書き込みが行
われた場合には、第1及び第2の情報領域A及びBの両
者に書き込みが行われた初期状態又は第2の情報領域B
の可変情報(b)が更新された状態のいずれかであるの
で、図11に示すように、第1の情報領域Aに、その時
点で記憶部13に記憶されている最終残額に基づく残額
情報を含む可変情報(a)を、暗号処理部16により、
ステップS31にて生成された量子化データRaを暗号
鍵として用いて暗号化して書き込み、更新する(ステッ
プS34)。このとき、第1の情報領域Aの可変情報
(a)だけの更新を行い、第2の情報領域Bについては
全く書き換えを行わない。
Next, the consumption processing unit 12 performs processing based on the update date / time information (time stamp) of the variable information (a) and (b) decoded before the first and second information areas A and B. Then, it is checked which of the first and second information areas A and B has been written at the time of the previous writing (step S32). The check control unit 15 checks whether or not the last write was performed on the second information area B (step S33). Initial state in which writing has been performed in both the first and second information areas A and B or the second information area B
Since the variable information (b) is in one of the updated states, as shown in FIG. 11, in the first information area A, the remaining amount information based on the final remaining amount stored in the storage unit 13 at that time is stored. The variable information (a) including
The quantized data Ra generated in step S31 is encrypted using the encryption key, written, and updated (step S34). At this time, only the variable information (a) in the first information area A is updated, and no rewriting is performed on the second information area B.

【0072】ステップS34において、可変情報(a)
の更新書き込みを行った後、チェック制御部15は、ス
テップS31において再度実測した特徴データに基づく
量子化データRa及びRbを暗号鍵として用いて、図1
2に示すように、プリペイドカードPCの第1及び第2
の情報領域A及びBから読み出した可変情報(a)及び
(b)を復号し(ステップS36)、復号の可否を調べ
る(ステップS37)。
In step S34, the variable information (a)
After performing the update writing of (1), the check control unit 15 uses the quantized data Ra and Rb based on the characteristic data measured again in step S31 as encryption keys, and
As shown in FIG. 2, the first and second
The variable information (a) and (b) read from the information areas A and B are decoded (step S36), and whether or not decoding is possible is checked (step S37).

【0073】一方、ステップS33において、前回第2
の情報領域Bに書き込みが行われなかったと判定された
場合には、第1の情報領域Aの可変情報(a)が更新さ
れた状態であるので、図13に示すように、第2の情報
領域Bに、その時点で記憶部13に記憶されている最終
残額に基づく残額情報を含む可変情報(b)を、ステッ
プS31にて生成された量子化データRbを暗号鍵とし
て暗号化して書き込み、更新する(ステップS35)。
このとき、第2の情報領域Bの可変情報(b)だけの更
新を行い、第1の情報領域Aについては全く書き換えを
行わない。
On the other hand, in step S33, the second
If it is determined that writing has not been performed on the information area B of the first information area A, the variable information (a) of the first information area A has been updated, and as shown in FIG. Variable information (b) including balance information based on the final balance stored at that time in the storage unit 13 is encrypted and written in the area B using the quantized data Rb generated in step S31 as an encryption key, and Update (step S35).
At this time, only the variable information (b) in the second information area B is updated, and the first information area A is not rewritten at all.

【0074】ステップS35において、可変情報(b)
の更新書き込みを行った後も、チェック制御部15は、
ステップS36に移行し、再度実測した特徴データに基
づく量子化データRa及びRbを暗号鍵として用いて、
図14に示すように、プリペイドカードPCの第1及び
第2の情報領域A及びBから読み出した可変情報(a)
及び(b)を復号し、ステップS37において、復号の
可否を調べる。
In step S35, the variable information (b)
Even after the update writing of
Proceeding to step S36, using the quantized data Ra and Rb based on the characteristic data measured again as encryption keys,
As shown in FIG. 14, variable information (a) read from the first and second information areas A and B of the prepaid card PC
And (b) are decoded, and in step S37, it is checked whether or not decoding is possible.

【0075】ステップS37において、復号に成功した
と判定された場合には、該更新後の残額が残額目安パン
チ孔の穿孔が必要な金額か否かを調べる(ステップS3
8)。残額目安パンチ孔の穿孔が必要な金額とは、プリ
ペイドカードPCに度数値として印刷された残額領域の
うちの従前の領域とは異なる領域に新たに入る金額であ
る。このような金額であるときは、チェック制御部15
により、残額目安パンチ孔が穿孔される(ステップS3
9)。残額目安パンチ孔の穿孔後は、リーダ/ライタ1
4からプリペイドカードPCを排出する(ステップS4
0)。そして、処理を終了し、消費処理に戻る。
If it is determined in step S37 that the decryption has been successful, it is checked whether or not the updated remaining amount is a necessary amount for punching a remaining amount reference punch hole (step S3).
8). The amount of money required for punching the remaining amount guide punch hole is an amount of money newly entering an area of the remaining amount area printed on the prepaid card PC as a frequency value, which is different from the previous area. If the amount is such, the check control unit 15
, A remaining amount punch hole is punched (step S3).
9). After punching the remaining holes, the reader / writer 1
4 to discharge the prepaid card PC (step S4).
0). Then, the process ends, and returns to the consumption process.

【0076】ステップS38で、更新後の残額が残額目
安パンチ孔の穿孔が必要な金額でないと判定された場合
には、チェック制御部15は、ステップS39をスキッ
プしてステップS40に移行し、プリペイドカードを排
出する。また、ステップS37において、復号失敗と判
定された場合には、チェック制御部15は、当該プリペ
イドカードPCが異常であると判定し(ステップS4
1)、プリペイドカードPCの不正を示す警告表示及び
当該プリペイドカードPCの取込み又は排出等の所定の
異常/不正処理を行う(ステップS42)。
If it is determined in step S38 that the updated balance is not the amount required for punching the remaining standard punch hole, the check control unit 15 skips step S39 and proceeds to step S40, and proceeds to step S40. Eject the card. If it is determined in step S37 that the decryption has failed, the check control unit 15 determines that the prepaid card PC is abnormal (step S4).
1), a warning display indicating the fraud of the prepaid card PC and predetermined abnormal / illegal processing such as taking in or discharging the prepaid card PC are performed (step S42).

【0077】このようにして、読書装置1は、消費を行
う毎に、第1及び第2の情報領域A及びBの可変情報
(a)及び(b)を交互に更新する。そして、更新に際
しては、その都度、バーコードBC部から読み取った特
徴データを各情報領域A及びB毎に設定した個別の量子
化方式により量子化した量子化データRa及びRbを暗
号鍵として暗号化して、更新書込みする。そして、バー
コードBC部から読み取った特徴データを各情報領域A
及びB毎の量子化方式により量子化した量子化データR
a及びRbを暗号鍵として、各情報領域A及びBの可変
情報の復号の可否をチェックする。このため、プリペイ
ドカードPCが他のカード(例えば、可変情報等が記憶
されていないカード等)にすり替えられた場合には、更
新を行っていない側の情報領域の可変情報を、新たにプ
リペイドカードPCのバーコードBC部から読み取った
特徴データの量子化データにより復号することができな
くなるため、不正に複写されたプリペイドカードを検出
することができる。
In this way, the reading device 1 alternately updates the variable information (a) and (b) of the first and second information areas A and B every time the reading is performed. At the time of updating, each time the feature data read from the barcode BC is quantized by using the quantized data Ra and Rb obtained by quantizing the data according to the individual quantization method set for each of the information areas A and B, as an encryption key. To update and write. Then, the characteristic data read from the bar code BC is stored in each information area A.
And the quantized data R quantized by the quantization method for each B
Using a and Rb as encryption keys, it is checked whether variable information in each of the information areas A and B can be decrypted. Therefore, when the prepaid card PC is replaced with another card (for example, a card in which variable information or the like is not stored), the variable information in the information area on the non-updated side is newly added to the prepaid card. Since the quantized data of the feature data read from the bar code BC of the PC cannot be decoded, the illegally copied prepaid card can be detected.

【0078】したがって、読書装置1が、金額情報等の
更新の都度、複数の記憶領域に交互に暗号化書込みされ
た全ての可変情報を、プリペイドカードの媒体毎に固有
のバーコード印刷部位の階調分布のばらつきに対応する
特徴情報を量子化した量子化データを暗号鍵として、復
号の可否をチェックすることにより、他のプリペイドカ
ードの可変情報の複写による不正を的確に検出すること
ができ、媒体の変造又は偽造によるプリペイドカードの
不正使用を未然に排除することができる。
Therefore, every time the reading device 1 updates the amount information or the like, the reading device 1 stores all the variable information which is alternately encrypted and written in the plurality of storage areas, on the basis of the bar code printing portion unique to each medium of the prepaid card. By using the quantized data obtained by quantizing the characteristic information corresponding to the variation in the key distribution as an encryption key and checking whether decryption is possible, it is possible to accurately detect fraud by copying the variable information of another prepaid card, It is possible to prevent improper use of the prepaid card due to falsification or forgery of the medium.

【0079】なお、上述においては、第1及び第2の情
報領域A及びBの可変情報(a)及び(b)の暗号鍵と
して用いる量子化データRaとRbとの量子化方式を異
ならせるものとしたが、これらを共通の量子化方式によ
り量子化するようにしてもよい。
In the above description, the quantization schemes of the quantized data Ra and Rb used as encryption keys for the variable information (a) and (b) of the first and second information areas A and B are different. However, these may be quantized by a common quantization method.

【0080】また、上述においては、図2に示すよう
に、情報記憶部DAを1トラック構成とし、該1トラッ
クの情報記憶部DAを適宜2分割して、第1及び第2の
情報領域A及びBを形成する場合について説明したが、
図15に示すように、2トラックにより情報記憶部DA
1を構成し、各トラックをそれぞれ第1及び第2の情報
領域A1及びB1としたプリペイドカードPC1として
もよい。また、図16に示すように、2トラックにより
情報記憶部DA2を構成し、各トラックをそれぞれ第1
及び第2の情報領域A2及びB2として、これら第1及
び第2の情報領域A2及びB2にそれぞれ、固定情報
(a)と可変情報(a)及び固定情報(b)と可変情報
(b)を設ける構成とし、消費による残額等の更新の際
に書換えが行われない固定情報を記憶した構成のプリペ
イドカードPC2としてもよい。情報記憶部を、さらに
多数に分割して各分割された情報領域に交互に量子化デ
ータを含む可変情報を書き込むようにしてもよい。
In the above description, as shown in FIG. 2, the information storage section DA has a one-track configuration, and the information storage section DA of one track is appropriately divided into two sections to form the first and second information areas A. And B have been described.
As shown in FIG. 15, the information storage unit DA includes two tracks.
1 as a prepaid card PC1 in which each track has first and second information areas A1 and B1, respectively. As shown in FIG. 16, the information storage section DA2 is composed of two tracks, and each track is a first track.
And fixed information (a) and variable information (a) and fixed information (b) and variable information (b) in the first and second information areas A2 and B2, respectively, as second information areas A2 and B2. Alternatively, the prepaid card PC2 may be configured to store fixed information that is not rewritten when updating the remaining balance due to consumption. The information storage unit may be further divided into a plurality of sections, and the variable information including the quantized data may be alternately written in the divided information areas.

【0081】次に、本発明の第2の実施の形態に係るプ
リペイドカードシステムについて説明する。本発明の第
2の実施の形態に係るプリペイドカードシステムは、図
1、図3及び図4に示したのとほぼ同様に構成される
が、図3に示した消費処理部12、チェック制御部15
及び暗号処理部16、並びに図4に示したエンコード制
御部31、暗号処理部35及びチェック情報処理部36
の機能が若干相違する。
Next, a prepaid card system according to a second embodiment of the present invention will be described. The prepaid card system according to the second embodiment of the present invention is configured in substantially the same manner as shown in FIGS. 1, 3 and 4, except that the consumption processing unit 12 and the check control unit shown in FIG. Fifteen
And the encryption processing unit 16, the encoding control unit 31, the encryption processing unit 35, and the check information processing unit 36 shown in FIG.
Function is slightly different.

【0082】この第2の実施の形態に係るプリペイドカ
ードシステムは、プリペイドカードの可変情報(a)
に、可変情報(b)の暗号化の暗号鍵としての量子化デ
ータRbを含ませ、可変情報(b)に、可変情報(a)
の暗号化の暗号鍵としての量子化データRaを含ませ、
復号の可否の判定に、読出し復号の結果に含まれる量子
化データRa及びRbが実測に基づいて得た量子化デー
タRa及びRbと一致するか否かを用いる。
In the prepaid card system according to the second embodiment, the prepaid card variable information (a)
Contains quantized data Rb as an encryption key for encrypting the variable information (b), and the variable information (b) contains the variable information (a).
Including the quantized data Ra as an encryption key for the encryption of
Whether the decoding is possible or not is determined based on whether or not the quantized data Ra and Rb included in the result of the read decoding match the quantized data Ra and Rb obtained based on the actual measurement.

【0083】すなわち、この第2の実施の形態によるプ
リペイドカードシステムで使用するプリペイドカード
を、図17を参照して説明する。図17に示すように、
プリペイドカードPC3は、磁性層を用いた磁気的な情
報記憶部DA3を持ち、該情報記憶部DA3は、第1の
情報領域A3及び第2の情報領域B3を有する。
That is, a prepaid card used in the prepaid card system according to the second embodiment will be described with reference to FIG. As shown in FIG.
The prepaid card PC3 has a magnetic information storage section DA3 using a magnetic layer, and the information storage section DA3 has a first information area A3 and a second information area B3.

【0084】第1の情報領域A3には、残額等の金額情
報を含む可変情報(a)に特徴情報に基づく量子化デー
タRbを加えたものが、特徴情報に基づく量子化データ
Raを暗号鍵として暗号化されて書き込まれている。暗
号鍵となる量子化データRaは、バーコードBC印刷部
の所定部位の濃度階調分布の検出信号に基づく特徴デー
タを、所定の第1の量子化方式により量子化した情報で
ある。該量子化データRaとしては、エンコード時に
は、記録装置3において検出されたバーコードBC印刷
部の所定部位の階調分布情報を第1の量子化方式により
量子化した情報が用いられ、読書装置1による当該可変
情報(a)の金額情報等の更新時には、更新の都度、読
書装置1において検出されたバーコードBC印刷部の所
定部位の階調分布情報を第1の量子化方式により量子化
した情報が用いられる。
In the first information area A3, the variable information (a) including the amount information such as the remaining amount and the quantized data Rb based on the characteristic information are added to the quantized data Ra based on the characteristic information. It is written as encrypted. The quantized data Ra serving as an encryption key is information obtained by quantizing feature data based on a detection signal of a density gradation distribution of a predetermined portion of a barcode BC printing unit by a predetermined first quantization method. As the quantized data Ra, at the time of encoding, information obtained by quantizing gradation distribution information of a predetermined portion of a barcode BC printing unit detected by the recording device 3 by a first quantization method is used. When updating the price information of the variable information (a), the tone distribution information of a predetermined portion of the barcode BC printing portion detected by the reading device 1 is quantized by the first quantization method every time the updating is performed. Information is used.

【0085】また、可変情報(a)に含められる量子化
データRbは、バーコードBC印刷部の所定部位の検出
信号に基づく特徴データを、上述の第1の量子化方式と
は異なる所定の第2の量子化方式により量子化した情報
である。該量子化データRbとしては、エンコード時に
は、記録装置3において検出されたバーコードBC印刷
部の所定部位の階調分布情報を第2の量子化方式により
量子化した情報が用いられ、読書装置1による可変情報
(a)の金額情報等の更新時には、更新の都度、読書装
置1において検出されたバーコードBC印刷部の所定部
位の階調分布情報を第2の量子化方式により量子化した
情報が用いられる。
The quantized data Rb included in the variable information (a) is obtained by converting characteristic data based on a detection signal of a predetermined portion of the barcode BC printing section into a predetermined second data different from the above-described first quantization method. This is information quantized by the second quantization method. As the quantized data Rb, at the time of encoding, information obtained by quantizing the gradation distribution information of a predetermined portion of the barcode BC printing unit detected by the recording device 3 by the second quantization method is used. When the amount information or the like of the variable information (a) is updated, the tone distribution information of the predetermined portion of the barcode BC printing unit detected by the reading device 1 is quantized by the second quantization method every time the updating is performed. Is used.

【0086】第2の情報領域B3には、残額等の金額情
報を含む可変情報(b)に特徴情報に基づく量子化デー
タRaを加えたものが、特徴情報に基づく量子化データ
Rbを暗号鍵として暗号化されて書き込まれている。暗
号鍵となる量子化データRbは、バーコードBC印刷部
の所定部位の濃度階調分布の検出信号に基づく特徴デー
タを、上述の第1の量子化方式とは異なる所定の第2の
量子化方式により量子化した情報である。該量子化デー
タRbとしては、エンコード時には、記録装置3におい
て検出されたバーコードBC印刷部の所定部位の階調分
布情報を第2の量子化方式により量子化した情報が用い
られ、読書装置1による当該可変情報(b)の金額情報
等の更新時には、更新の都度、読書装置1において検出
されたバーコードBC印刷部の所定部位の階調分布情報
を第2の量子化方式により量子化した情報が用いられ
る。
In the second information area B3, the variable information (b) including the amount information such as the remaining amount and the quantized data Ra based on the characteristic information are added to the variable information (b). It is written as encrypted. The quantized data Rb serving as an encryption key is obtained by converting characteristic data based on a detection signal of a density gradation distribution at a predetermined portion of a barcode BC printing unit into a predetermined second quantization different from the above-described first quantization method. This is information quantized by the method. As the quantized data Rb, at the time of encoding, information obtained by quantizing the gradation distribution information of a predetermined portion of the barcode BC printing unit detected by the recording device 3 by the second quantization method is used. When the amount information or the like of the variable information (b) is updated, the tone distribution information of a predetermined portion of the barcode BC printing section detected by the reading device 1 is quantized by the second quantization method every time the updating is performed. Information is used.

【0087】また、可変情報(b)に含められる量子化
データRaは、バーコードBC印刷部の所定部位の検出
信号に基づく特徴データを、上述した所定の第1の量子
化方式により量子化した情報である。該量子化データR
aとしては、エンコード時には、記録装置3において検
出されたバーコードBC印刷部の所定部位の階調分布情
報を第1の量子化方式により量子化した情報が用いら
れ、読書装置1による可変情報(b)の金額情報等の更
新時には、更新の都度、読書装置1において検出された
バーコードBC印刷部の所定部位の階調分布情報を第1
の量子化方式により量子化した情報が用いられる。
The quantized data Ra included in the variable information (b) is obtained by quantizing characteristic data based on a detection signal of a predetermined portion of the barcode BC printing unit by the above-described predetermined first quantization method. Information. The quantized data R
At the time of encoding, information obtained by quantizing the gradation distribution information of a predetermined portion of the barcode BC printing unit detected by the recording device 3 by the first quantization method is used, and variable information ( When updating the amount information or the like in b), the tone distribution information of the predetermined portion of the barcode BC printing unit detected by the reading apparatus 1 is updated every time the updating is performed.
The information quantized by the quantization method is used.

【0088】第2の実施の形態によるプリペイドカード
システムは、図1に示す構成において第1の実施の形態
の場合とは、次の点で相違する。読書装置1における金
額情報等の更新書込みは、第1の情報領域A3と第2の
情報領域B3とに交互に行われる。これら情報領域A3
及びB3には、残額等の金額情報、量子化データRa及
びRbの他に、プリペイドカードPC3のカード識別情
報(カードID)、製造元を示す製造元コード、製造日
(エンコード日)情報、及びエラー発生時におけるエラ
ーコード等が記録される。
The prepaid card system according to the second embodiment differs from the first embodiment in the structure shown in FIG. 1 in the following point. Update writing of money amount information and the like in the reading device 1 is alternately performed in the first information area A3 and the second information area B3. These information areas A3
And B3, in addition to the amount information such as the balance, the quantized data Ra and Rb, the card identification information (card ID) of the prepaid card PC3, the manufacturer code indicating the manufacturer, the manufacturing date (encoding date) information, and the error occurrence An error code at the time is recorded.

【0089】記録装置3は、プリペイドカード発行時に
おいて、プリペイドカードPC3の情報記憶部DA3の
第1の情報領域A3に、量子化データRaを暗号鍵とし
て、量子化データRb、初期金額情報及びその他の情報
を含む可変情報(a)を暗号化して書き込み、且つ情報
記憶部DA3の第2の情報領域B3に、量子化データR
bを暗号鍵として、量子化データRa、初期金額情報及
びその他の情報を含む可変情報(b)を暗号化して書き
込む。
When the prepaid card is issued, the recording device 3 stores the quantized data Rb, the initial amount information, and other information in the first information area A3 of the information storage section DA3 of the prepaid card PC3 using the quantized data Ra as an encryption key. And writes the variable information (a) including the information of the quantized data R
Using b as an encryption key, variable information (b) including the quantized data Ra, the initial amount information, and other information is encrypted and written.

【0090】読書装置1は、プリペイドカードPC3が
セットされると、まず、光センサ17により、当該プリ
ペイドカードPC3のバーコード印刷部位の階調分布を
検出して、当該検出信号からなる特徴データを暗号処理
部16において2種の異なる所定の量子化方式により量
子化して量子化データRa及びRbを得る。チェック制
御部15は、プリペイドカードPC3の第1及び第2の
情報領域A3及びB3から読み出される可変情報(a)
及び(b)を暗号処理部16に与えて、量子化データR
a及びRbを暗号鍵として復号させ、可変情報(a)及
び(b)に含まれる量子化データRb及びRaを暗号鍵
として用いたものと比較照合して、復号の可否を判別す
る。
When the prepaid card PC3 is set, the reading device 1 first detects the gradation distribution of the bar code printing portion of the prepaid card PC3 by the optical sensor 17, and outputs the characteristic data composed of the detection signal. Quantization is performed by the encryption processing unit 16 using two different predetermined quantization methods to obtain quantized data Ra and Rb. The check control unit 15 controls the variable information (a) read from the first and second information areas A3 and B3 of the prepaid card PC3.
And (b) to the cryptographic processing unit 16 so that the quantized data R
a and Rb are decrypted as encryption keys, and the quantized data Rb and Ra included in the variable information (a) and (b) are compared with those used as encryption keys to determine whether decryption is possible.

【0091】第2の実施の形態によるプリペイドカード
システムにおける読書装置1は、図3に示すように、そ
の構成において、第1の実施の形態と次の点で相違す
る。暗号処理部16は、光センサ17によりプリペイド
カードPC3から読み取ったバーコードBC部分の濃度
の階調分布に基づく特徴データを所定の量子化方式によ
り量子化して、量子化データRa及びRbを生成し、該
量子化データRa及びRbを暗号鍵としてプリペイドカ
ードPC3の第1及び第2の情報領域A3及びB3から
読み出される可変情報(a)及び(b)を復号する。こ
のとき、チェック制御部15は、暗号処理部16におい
て、量子化データRa及びRbを暗号鍵として復号した
第1及び第2の情報領域A3及びB3の可変情報(a)
及び(b)の両者に含まれる量子化データRb及びRa
が、それぞれ、暗号鍵として用いた量子化データRb及
びRaと一致するか否かを判別する。
As shown in FIG. 3, the reading device 1 in the prepaid card system according to the second embodiment differs from the first embodiment in the configuration in the following points. The encryption processing unit 16 quantizes the characteristic data based on the gradation distribution of the density of the barcode BC portion read from the prepaid card PC3 by the optical sensor 17 by a predetermined quantization method to generate quantized data Ra and Rb. The variable information (a) and (b) read from the first and second information areas A3 and B3 of the prepaid card PC3 using the quantized data Ra and Rb as an encryption key. At this time, the check control unit 15 uses the encryption processing unit 16 to change the variable information (a) in the first and second information areas A3 and B3 obtained by decrypting the quantized data Ra and Rb using the encryption key.
Quantized data Rb and Ra included in both (b) and (b)
Are respectively matched with the quantized data Rb and Ra used as the encryption key.

【0092】すなわち、暗号処理部16は、光センサ1
7により読み取ったバーコードBC部分の濃度の階調分
布情報に基づく特徴データを、第1の量子化方式により
量子化した量子化データRaを暗号鍵として用いてプリ
ペイドカードPC3の第1の情報領域A3の可変情報
(a)を復号し、第2の量子化方式により量子化した量
子化データRbを暗号鍵として用いてプリペイドカード
PC3の第2の情報領域B3の可変情報(b)を復号す
る。チェック制御部15は、暗号処理部16において、
暗号鍵としての量子化データRb及びRaが、プリペイ
ドカードPC3の第1及び第2の情報領域A3及びB3
から読み出され、復号された可変情報(a)及び(b)
に含まれる量子化データRb及びRaとそれぞれ一致す
るか否かを確認する。
That is, the cryptographic processing unit 16 includes the optical sensor 1
7, the first data area of the prepaid card PC3 using the quantized data Ra quantized by the first quantization method as the encryption key, based on the characteristic data based on the gradation distribution information of the density of the bar code BC portion read by the computer 7 The variable information (a) of A3 is decoded, and the variable information (b) of the second information area B3 of the prepaid card PC3 is decoded using the quantized data Rb quantized by the second quantization method as an encryption key. . The check control unit 15 controls the encryption processing unit 16
The quantized data Rb and Ra as encryption keys are stored in the first and second information areas A3 and B3 of the prepaid card PC3.
And the decoded variable information (a) and (b)
It is checked whether or not they match the quantized data Rb and Ra included in.

【0093】チェック制御部15により、暗号処理部1
6において、暗号鍵としての量子化データRa及びRb
により復号された可変情報(a)及び(b)に含まれる
量子化データRb及びRaの少なくとも一方が暗号鍵と
して用いた量子化データRb及びRaと一致しないと判
定されたときは、不正なプリペイドカードが挿入された
と判定し、警告表示を行うとともに当該プリペイドカー
ドを収容し又は排出して、その使用を阻止する。
The check controller 15 controls the encryption processor 1
6, the quantized data Ra and Rb as encryption keys
If it is determined that at least one of the quantized data Rb and Ra included in the variable information (a) and (b) decrypted by the above does not match the quantized data Rb and Ra used as the encryption key, an illegal prepaid It is determined that the card has been inserted, a warning is displayed, and the prepaid card is stored or ejected to prevent its use.

【0094】両者が共に一致すると判定したときは、チ
ェック制御部15は、適正なプリペイドカードがセット
されたと判定して、量子化データRa又はRbを暗号鍵
として、プリペイドカードPC3の第1又は第2の情報
領域A3又はB3から読み出される可変情報(a)又は
(b)に基づく残額情報を消費処理部12に与える。消
費処理部12によるプリペイドカードPC3の可変情報
の更新は、第1の情報領域A3の可変情報(a)と、第
2の情報領域B3の可変情報(b)とに対して交互に行
われ、これら第1の情報領域A3の可変情報(a)又は
第2の情報領域B3の可変情報(b)の更新時に、チェ
ック制御部15は、暗号処理部16において量子化した
量子化データRa又はRbを暗号鍵とし、第1の情報領
域A3の可変情報(a)又は第2の情報領域B3の可変
情報(b)のうちの更新すべき可変情報に量子化データ
Rb又はRaを加えて、暗号化して更新書込みを行う。
When it is determined that both match, the check control unit 15 determines that an appropriate prepaid card has been set, and uses the quantized data Ra or Rb as an encryption key to set the first or second prepaid card PC3. The balance information based on the variable information (a) or (b) read from the second information area A3 or B3 is provided to the consumption processing unit 12. The updating of the variable information of the prepaid card PC3 by the consumption processing unit 12 is performed alternately on the variable information (a) of the first information area A3 and the variable information (b) of the second information area B3, When updating the variable information (a) in the first information area A3 or the variable information (b) in the second information area B3, the check control unit 15 sets the quantized data Ra or Rb Is used as an encryption key, and the variable data to be updated of the variable information (a) in the first information area A3 or the variable information (b) in the second information area B3 is added with the quantized data Rb or Ra to perform encryption. And update writing.

【0095】さらに、該更新後にもチェック制御部15
は、当該プリペイドカードPC3の第1及び第2の情報
領域A3及びB3から読み出される可変情報(a)及び
(b)を、暗号処理部16において、光センサ17を介
してプリペイドカードPC3から読み取ったバーコード
BC部分の濃度の階調分布情報を量子化した量子化デー
タRa及びRbを暗号鍵として復号し、復号された可変
情報(a)及び(b)中の量子化データRb及びRaを
暗号鍵として用いたものと照合し、復号の可否を検出す
る。
Further, after the update, the check control unit 15
Reads the variable information (a) and (b) read from the first and second information areas A3 and B3 of the prepaid card PC3 from the prepaid card PC3 via the optical sensor 17 in the encryption processing unit 16. The quantized data Ra and Rb obtained by quantizing the gradation distribution information of the density of the barcode BC are decrypted using an encryption key, and the quantized data Rb and Ra in the decrypted variable information (a) and (b) are encrypted. The key is used as a key, and whether or not decryption is possible is detected.

【0096】第2の実施の形態によるプリペイドカード
システムにおける記録装置3は、図4に示すように、そ
の構成において第1の実施の形態と次の点で相違する。
暗号処理部35は、光センサ34により検出された特徴
データを、上述した第1及び第2の量子化方式により量
子化して、量子化データRa及びRbを生成する。ま
た、暗号処理部35は、該量子化データRa及びRbを
可変情報(b)及び(a)にそれぞれ加えるとともに、
それらを暗号鍵として用いて可変情報(a)及び(b)
の暗号化を行う。
The recording device 3 in the prepaid card system according to the second embodiment differs from the first embodiment in the structure thereof as shown in FIG.
The encryption processing unit 35 quantizes the feature data detected by the optical sensor 34 using the above-described first and second quantization methods, and generates quantized data Ra and Rb. Further, the encryption processing unit 35 adds the quantized data Ra and Rb to the variable information (b) and (a), respectively,
Variable information (a) and (b) using them as encryption keys
Performs encryption.

【0097】次に、上述したプリペイドカードシステム
における処理について、図18〜図20に示すフローチ
ャートを参照して説明する。まず、記録装置3における
エンコード処理について、図18を参照して説明する。
図18に示すエンコード処理は、記録装置3にプリペイ
ドカード媒体がセットされるとその都度起動される。
Next, the processing in the above-mentioned prepaid card system will be described with reference to the flowcharts shown in FIGS. First, the encoding process in the recording device 3 will be described with reference to FIG.
The encoding process shown in FIG. 18 is started each time a prepaid card medium is set in the recording device 3.

【0098】プリペイドカード媒体がリーダ/ライタ3
3にセットされると、まず、エンコード制御部31は、
該プリペイドカード媒体の所定の部位に印刷されたバー
コードの濃淡階調分布を、光センサ34により検出する
(ステップS51)。光センサ34により検出されたバ
ーコードの濃淡階調分布は、暗号処理部35において、
PCM又はその他のA/D変換等による所定の第1の量
子化方式に従って量子化され、第1の情報領域A3の可
変情報(a)の暗号化用の量子化データRaが生成され
(ステップS52)、さらに所定の第2の量子化方式に
従って量子化され、第2の情報領域B3の可変情報
(b)の暗号化用の量子化データRbが生成される(ス
テップS53)。
The prepaid card medium is a reader / writer 3
3, first, the encoding control unit 31
The light sensor 34 detects the grayscale distribution of the barcode printed on a predetermined portion of the prepaid card medium (step S51). The gray scale distribution of the bar code detected by the optical sensor 34
Quantization is performed according to a predetermined first quantization method such as PCM or other A / D conversion to generate quantized data Ra for encrypting the variable information (a) in the first information area A3 (step S52). ), And further quantized in accordance with a predetermined second quantization method to generate quantized data Rb for encrypting the variable information (b) in the second information area B3 (step S53).

【0099】エンコード制御部31は、図21に示すよ
うに、量子化データRb及びRaを加えた所要のエンコ
ード情報を、暗号処理部35に与えて、量子化データR
a及びRbを暗号鍵として暗号化し、リーダ/ライタ3
3を介してプリペイドカードPC3の第1及び第2の情
報領域A3及びB3にそれぞれ書込み(ステップS5
4)、エンコード処理を終了する。
As shown in FIG. 21, the encoding control unit 31 gives necessary encoding information to which the quantized data Rb and Ra are added to the encryption processing unit 35, and
a and Rb are encrypted using an encryption key, and the reader / writer 3
3 in the first and second information areas A3 and B3 of the prepaid card PC3 (step S5).
4), end the encoding process.

【0100】次に、上述したプリペイドカードシステム
における消費処理について、図6、図19及び図20に
示すフローチャートを参照して説明する。このシステム
においても、図6に示す消費処理は、上述と同様に行わ
れ、読書装置1のリーダ/ライタ14にプリペイドカー
ドPC3がセットされるとその都度起動される。処理が
開始されると、ステップS11において、チェック制御
部15は、リーダ/ライタ14にセットされたプリペイ
ドカードPC3が正常か否かをチェックする。
Next, the consumption processing in the above-mentioned prepaid card system will be described with reference to the flowcharts shown in FIGS. 6, 19 and 20. In this system as well, the consumption process shown in FIG. 6 is performed in the same manner as described above, and is activated each time the prepaid card PC3 is set in the reader / writer 14 of the reading device 1. When the process is started, in step S11, the check control unit 15 checks whether the prepaid card PC3 set in the reader / writer 14 is normal.

【0101】すなわち、まず、光センサ17により、リ
ーダ/ライタ14にセットされたプリペイドカードPC
3の所定の部位に印刷されたバーコードBC部分の濃淡
階調分布を検出し、暗号処理部16において、記録装置
3の暗号処理部35における量子化方式と実質的に共通
の量子化方式、すなわち、互いに異なる所定の第1及び
第2の量子化方式により量子化して、プリペイドカード
PC3の第1及び第2の情報領域A3及びB3の可変情
報(a)及び(b)の暗号鍵として用いる量子化データ
Ra及びRbを生成する。
That is, first, the prepaid card PC set in the reader / writer 14 by the optical sensor 17
3, a gray scale distribution of a bar code BC portion printed on a predetermined portion of the recording device 3 is detected, and the encryption processing unit 16 performs substantially the same quantization method as the quantization method in the encryption processing unit 35 of the recording device 3; That is, they are quantized by predetermined first and second quantization schemes different from each other and are used as encryption keys of the variable information (a) and (b) of the first and second information areas A3 and B3 of the prepaid card PC3. Generate quantized data Ra and Rb.

【0102】そして、チェック制御部15は、リーダ/
ライタ14を介して磁気ヘッドによりプリペイドカード
PC3の第1及び第2の情報領域A3及びB3の可変情
報(a)及び(b)を読み出し、先に当該プリペイドカ
ードPC3から読み取った実測値を量子化した量子化デ
ータRa及びRbを暗号鍵として、それぞれ復号し、可
変情報(a)及び(b)中の量子化データRb及びRa
を暗号鍵として用いたものと比較して、復号の可否を判
定する。復号が正常に行われなければ、チェック制御部
15は、セットされたプリペイドカードPC3が異常で
あり、不正な手段により作成されたものであると判定す
る(図22参照)。
Then, the check control unit 15 sends the
The variable information (a) and (b) of the first and second information areas A3 and B3 of the prepaid card PC3 are read out by the magnetic head via the writer 14, and the actual measurement value previously read from the prepaid card PC3 is quantized. The decrypted quantized data Ra and Rb are used as encryption keys, respectively, and the quantized data Rb and Ra in the variable information (a) and (b) are decrypted.
Is compared with that used as an encryption key to determine whether decryption is possible. If the decryption is not performed normally, the check control unit 15 determines that the set prepaid card PC3 is abnormal and has been created by unauthorized means (see FIG. 22).

【0103】プリペイドカードPC3の情報領域A3及
びB3から読み取った情報が、実測値を量子化した量子
化データRa及びRbを暗号鍵として、共に復号できた
場合には、チェック制御部15により、残額目安パンチ
孔の位置及び可変情報における矛盾の有無を検出する。
このとき、残額目安パンチ孔の位置及び可変情報に矛盾
が検出された場合には、当該プリペイドカードPC3は
異常であるとする。上述以外の図6における処理につい
ては、第1の実施の形態に関連して既に説明した処理と
全く同様であり、ここでは、詳細には説明しない。
When the information read from the information areas A3 and B3 of the prepaid card PC3 can be decrypted together using the quantized data Ra and Rb obtained by quantizing the measured values as the encryption key, the check controller 15 Detect the presence or absence of inconsistency in the position of the guide hole and the variable information.
At this time, if inconsistency is detected in the position of the remaining amount guide punch hole and the variable information, it is determined that the prepaid card PC3 is abnormal. The processing in FIG. 6 other than the above is exactly the same as the processing already described in relation to the first embodiment, and will not be described in detail here.

【0104】ステップS11のカードチェック処理の詳
細を図19に示している。カードチェック処理が開始さ
れると、まず、チェック制御部15は、暗号処理部16
を介して、光センサ17により、プリペイドカードPC
3の所定の部位のバーコードBC部分の濃淡階調分布を
特徴データとして検出し、暗号処理部16において、記
録装置3の暗号処理部35で用いられた量子化方式と実
質的に共通の量子化方式、すなわち互いに異なる所定の
第1及び第2の量子化方式、により量子化して、プリペ
イドカードPC3の第1及び第2の情報領域A3及びB
3の可変情報(a)及び(b)の暗号化の際に用いられ
る量子化データRa及びRbを生成する。(ステップS
61)。
FIG. 19 shows details of the card check processing in step S11. When the card check process is started, first, the check control unit 15
Via a prepaid card PC by the optical sensor 17
3 is detected as characteristic data in a bar code BC portion of a predetermined portion of the recording device 3, and the encryption processing section 16 performs a quantization process substantially the same as the quantization method used in the encryption processing section 35 of the recording device 3. , The first and second information areas A3 and B of the prepaid card PC3.
3. Quantized data Ra and Rb used for encrypting the variable information (a) and (b) are generated. (Step S
61).

【0105】暗号処理部16は、リーダ/ライタ14を
介して磁気ヘッドによりプリペイドカードPC3の第1
及び第2の情報領域A3及びB3の可変情報(a)及び
(b)を読み出し、図22に示すように、該量子化デー
タRa及びRbを暗号鍵として復号する(ステップS6
2)。チェック制御部15は、暗号処理部16による復
号の可否、つまり復号に成功したか否か、を判定するた
め、可変情報(a)及び(b)に含まれる量子化データ
Rb及びRaがそれぞれ暗号鍵として用いた量子化デー
タRb及びRaと一致するか否かを判定し(ステップS
63)、復号に成功したと判定されれば、チェック制御
部15は、次に、可変情報(a)及び(b)の復号結果
に基づく金額情報及びその他の情報相互間、及びこれら
と残額目安パンチ孔の穿孔状況等との間に矛盾があるか
を検出する(ステップS64)。矛盾がなければ(ステ
ップS65)、チェック制御部15は、当該プリペイド
カードPC3が正常であるとして(ステップS66)、
処理を終了して、図6の消費処理に戻る。
The encryption processing section 16 uses the magnetic head via the reader / writer 14 to control the first payment of the prepaid card PC3.
And the variable information (a) and (b) of the second information areas A3 and B3, and decrypts the quantized data Ra and Rb as an encryption key as shown in FIG. 22 (step S6).
2). The check control unit 15 encrypts the quantized data Rb and Ra included in the variable information (a) and (b) to determine whether the decryption by the encryption processing unit 16 is possible, that is, whether the decryption is successful. It is determined whether or not the quantized data Rb and Ra used as keys match (step S
63) If it is determined that the decryption has succeeded, the check control unit 15 next determines the amount information and other information based on the decryption result of the variable information (a) and (b), and the remaining information and the remaining amount. It is detected whether there is any inconsistency between the punch holes and the like (step S64). If there is no contradiction (step S65), the check control unit 15 determines that the prepaid card PC3 is normal (step S66).
The process ends, and returns to the consumption process of FIG.

【0106】ステップS63において、量子化データR
b及びRaの少なくとも一方が一致せず、復号に成功し
なかった(復号失敗)と判定された場合には、異常と判
定し(ステップS67)、プリペイドカードPC3の不
正を示す警告表示及び当該プリペイドカードPC3の取
込み又は排出等の所定の異常/不正処理を行う(ステッ
プS68)。また、ステップS65において、矛盾が存
在すると判定した場合にも、ステップS67に移行し、
所定の異常/不正処理を行う。
In step S63, the quantized data R
If it is determined that at least one of b and Ra does not match and decoding is not successful (decoding failure), it is determined that there is an abnormality (step S67), a warning display indicating the fraud of the prepaid card PC3 and the prepaid card are displayed. A predetermined abnormal / illegal process such as taking in or ejecting the card PC3 is performed (step S68). Also, if it is determined in step S65 that there is a contradiction, the process proceeds to step S67,
Perform predetermined abnormal / illegal processing.

【0107】図6のステップS19の終了処理の詳細を
図20に示している。終了処理が開始されると、消費処
理部12は、再度、チェック制御部15を介して暗号処
理部16に特徴データの読取り及び量子化を行わせる
(ステップS71)。すなわち、暗号処理部16は、光
センサ17によりプリペイドカードPC3の所定の部位
のバーコードBC部分の濃淡階調分布を特徴データとし
て検出し、該特徴データを互いに異なる所定の第1及び
第2の量子化方式により量子化して、プリペイドカード
PC3の第1及び第2の情報領域A3及びB3の可変情
報(a)及び(b)の暗号鍵として用いる量子化データ
Ra及びRbをそれぞれ生成する。
FIG. 20 shows details of the end processing in step S19 in FIG. When the end processing is started, the consumption processing unit 12 causes the encryption processing unit 16 to read and quantize the characteristic data again via the check control unit 15 (step S71). That is, the encryption processing unit 16 detects the grayscale distribution of the bar code BC portion of the predetermined portion of the prepaid card PC3 by the optical sensor 17 as the feature data, and detects the feature data different from the first and second predetermined first and second. Quantization is performed by a quantization method to generate quantized data Ra and Rb used as encryption keys for the variable information (a) and (b) of the first and second information areas A3 and B3 of the prepaid card PC3, respectively.

【0108】次に、消費処理部12は、第1及び第2の
情報領域A3及びB3の先に復号された可変情報(a)
及び(b)の更新日時情報(タイムスタンプ)等に基づ
いて、前回書込み時に第1及び第2の情報領域A3及び
B3のいずれに対して書き込みが行われたかを確認する
(ステップS72)。チェック制御部15は、前回書き
込みが行われたのが第2の情報領域B3であるか否かを
調べ(ステップS73)、前回第2の情報領域B3に書
き込みが行われた場合には、第1及び第2の情報領域A
3及びB3の両者に書き込みが行われた初期状態又は第
2の情報領域B3の可変情報(b)が更新された状態の
いずれかであるので、図23に示すように、第1の情報
領域A3に、その時点で記憶部13に記憶されている最
終残額に基づく残額情報を含み且つステップS71にて
生成された量子化データRbを加えた可変情報(a)
を、ステップS71にて生成された量子化データRaを
暗号鍵として用いて暗号化して書き込み、更新する(ス
テップS74)。このとき、第1の情報領域A3の可変
情報(a)だけの更新を行い、第2の情報領域B3につ
いては全く書き換えを行わない。
Next, the consumption processing unit 12 outputs the variable information (a) decoded before the first and second information areas A3 and B3.
Based on the update date and time information (time stamp) of (b) and the like, it is confirmed which of the first and second information areas A3 and B3 has been written at the time of the previous writing (step S72). The check control unit 15 checks whether or not the last write was performed on the second information area B3 (step S73). 1st and 2nd information area A
23 and the variable information (b) in the second information area B3 has been updated. Therefore, as shown in FIG. 23, the first information area Variable information (a) including A3 including balance information based on the final balance stored in the storage unit 13 at that time and adding the quantized data Rb generated in step S71.
Is written using the quantized data Ra generated in step S71 as an encryption key, and is updated (step S74). At this time, only the variable information (a) in the first information area A3 is updated, and no rewriting is performed on the second information area B3.

【0109】ステップS74において、可変情報(a)
の更新書き込みを行った後、チェック制御部15は、ス
テップS71において再度実測した特徴データに基づく
量子化データRa及びRbを暗号鍵として用いて、図2
4に示すように、プリペイドカードPC3の第1及び第
2の情報領域A3及びB3から読み出した可変情報
(a)及び(b)を復号し(ステップS76)、可変情
報(a)及び(b)に含まれる量子化データRb及びR
aをステップS71で得たものと照合して復号の可否を
調べる(ステップS77)。
In step S74, the variable information (a)
After performing the update writing, the check control unit 15 uses the quantized data Ra and Rb based on the characteristic data measured again in step S71 as an encryption key, and
As shown in FIG. 4, the variable information (a) and (b) read from the first and second information areas A3 and B3 of the prepaid card PC3 are decoded (step S76), and the variable information (a) and (b) are decoded. Data Rb and R included in
a is checked against the one obtained in step S71 to determine whether or not decryption is possible (step S77).

【0110】一方、ステップS73において、前回第2
の情報領域B3に書き込みが行われなかったと判定され
た場合には、第1の情報領域A3の可変情報(a)が更
新された状態であるので、図23に破線で示すように、
第2の情報領域B3に、その時点で記憶部13に記憶さ
れている最終残額に基づく残額情報を含み且つステップ
S71にて生成された量子化データRaを加えた可変情
報(b)を、ステップS71にて生成された量子化デー
タRbを暗号鍵として暗号化して書き込み、更新する
(ステップS75)。このとき、第2の情報領域B3の
可変情報(b)だけの更新を行い、第1の情報領域A3
については全く書き換えを行わない。
On the other hand, in step S73, the second
When it is determined that writing has not been performed on the information area B3 of the first information area A3, the variable information (a) of the first information area A3 has been updated.
The variable information (b) including the balance information based on the final balance currently stored in the storage unit 13 and adding the quantized data Ra generated in step S71 is stored in the second information area B3. The quantized data Rb generated in S71 is encrypted as an encryption key, written, and updated (step S75). At this time, only the variable information (b) in the second information area B3 is updated, and the first information area A3 is updated.
Is not rewritten at all.

【0111】ステップS75において、可変情報(b)
の更新書き込みを行った後も、チェック制御部15は、
ステップS76に移行し、再度実測した特徴データに基
づく量子化データRa及びRbを暗号鍵として用いて、
図24に示すように、プリペイドカードPC3の第1及
び第2の情報領域A3及びB3から読み出した可変情報
(a)及び(b)を復号し、ステップS77において、
可変情報(a)及び(b)に含まれる量子化データRb
及びRaをステップS71で得たものと照合して復号の
可否を調べる。
In step S75, the variable information (b)
Even after the update writing of
Proceeding to step S76, using the quantized data Ra and Rb based on the characteristic data measured again as the encryption key,
As shown in FIG. 24, the variable information (a) and (b) read from the first and second information areas A3 and B3 of the prepaid card PC3 are decoded, and in step S77,
Quantized data Rb included in variable information (a) and (b)
And Ra are compared with those obtained in step S71 to check whether or not decryption is possible.

【0112】ステップS77において、復号に成功した
と判定された場合には、該更新後の残額が残額目安パン
チ孔の穿孔が必要な金額か否かを調べる(ステップS7
8)。残額目安パンチ孔の穿孔が必要な金額とは、プリ
ペイドカードPC3に度数値として印刷された残額領域
のうちの従前の領域とは異なる領域に新たに入る金額で
ある。このような金額であるときは、チェック制御部1
5により、残額目安パンチ孔が穿孔される(ステップS
79)。残額目安パンチ孔の穿孔後は、リーダ/ライタ
14からプリペイドカードPC3を排出する(ステップ
S80)。そして、処理を終了し、消費処理に戻る。
If it is determined in step S77 that decoding has been successful, it is checked whether or not the updated remaining amount is the amount required for punching the remaining amount punch hole (step S7).
8). The amount of money required for punching the remaining amount guide punch hole is the amount of money newly entering an area of the remaining amount area printed as a numerical value on the prepaid card PC3, which is different from the previous area. If the amount is such, check control unit 1
5, the remaining amount standard punch hole is punched (step S).
79). After punching the remaining standard punch holes, the prepaid card PC3 is ejected from the reader / writer 14 (step S80). Then, the process ends, and returns to the consumption process.

【0113】ステップS78で、更新後の残額が残額目
安パンチ孔の穿孔が必要な金額でないと判定された場合
には、チェック制御部15は、ステップS79をスキッ
プしてステップS80に移行し、プリペイドカードを排
出する。また、ステップS77において、復号失敗と判
定された場合には、チェック制御部15は、当該プリペ
イドカードPC3が異常であると判定し(ステップS8
1)、プリペイドカードPC3の不正を示す警告表示及
び当該プリペイドカードPC3の取込み又は排出等の所
定の異常/不正処理を行う(ステップS82)。
If it is determined in step S78 that the remaining amount after the update is not the amount required for punching the remaining amount reference punch hole, the check control unit 15 skips step S79 and shifts to step S80 to execute the prepaid. Eject the card. If it is determined in step S77 that the decoding has failed, the check control unit 15 determines that the prepaid card PC3 is abnormal (step S8).
1), a warning indicating that the prepaid card PC3 is fraudulent and a predetermined abnormal / illegal process such as taking in or discharging the prepaid card PC3 are performed (step S82).

【0114】このようにして、読書装置1は、消費を行
う毎に、第1及び第2の情報領域A3及びB3の可変情
報(a)及び(b)を交互に更新する。そして、更新に
際しては、その都度、バーコードBC部から読み取った
特徴データを各情報領域A3及びB3毎に設定した個別
の量子化方式により量子化した量子化データRa及びR
bをそれぞれ可変情報(b)及び(a)に加えるととも
に、量子化データRa及びRbを暗号鍵として暗号化し
て、更新書込みする。そして、バーコードBC部から読
み取った特徴データを量子化した量子化データRa及び
Rbを暗号鍵として用いて、各情報領域A3及びB3の
可変情報の復号の可否をチェックする。このため、プリ
ペイドカードPC3がすり替えられた場合には、更新を
行っていない側の情報領域の可変情報を、新たにプリペ
イドカードのバーコードBC部から読み取った特徴デー
タの量子化データにより復号することができなくなるた
め、不正に複写されたプリペイドカードを検出すること
ができる。
In this way, the reading device 1 alternately updates the variable information (a) and (b) of the first and second information areas A3 and B3 every time the reading is performed. At the time of updating, the quantized data Ra and R obtained by quantizing the characteristic data read from the bar code BC portion by the individual quantization method set for each of the information areas A3 and B3.
b is added to the variable information (b) and (a), and the updated data is encrypted by using the quantized data Ra and Rb as an encryption key. Then, using the quantized data Ra and Rb obtained by quantizing the characteristic data read from the bar code BC as an encryption key, it checks whether or not the variable information in each of the information areas A3 and B3 can be decrypted. For this reason, when the prepaid card PC3 is replaced, the variable information in the information area on the non-updated side is decoded with the quantized data of the characteristic data newly read from the barcode BC of the prepaid card. Therefore, the illegally copied prepaid card can be detected.

【0115】したがって、読書装置1が、金額情報等の
更新の都度、複数の記憶領域に交互に暗号化書込みされ
た全ての可変情報を、プリペイドカードの媒体毎に固有
のバーコード印刷部位の階調分布のばらつきに対応する
特徴情報を量子化した量子化データを暗号鍵として、復
号の可否をチェックすることにより、他のプリペイドカ
ードの可変情報の複写による不正を的確に検出すること
ができ、媒体の変造又は偽造によるプリペイドカードの
不正使用を未然に排除することができる。なお、上述に
おいては、第1及び第2の情報領域A3及びB3の可変
情報(a)及び(b)の暗号鍵として用いる量子化デー
タRaとRbとの量子化方式を異ならせるものとした
が、これらを共通の量子化方式により量子化するように
してもよい。
Therefore, every time the reading device 1 updates the amount information or the like, the reading device 1 stores all of the variable information alternately encrypted and written in the plurality of storage areas on the basis of the bar code printing portion unique to each medium of the prepaid card. By using the quantized data obtained by quantizing the characteristic information corresponding to the variation in the key distribution as an encryption key and checking whether decryption is possible, it is possible to accurately detect fraud by copying the variable information of another prepaid card, It is possible to prevent improper use of the prepaid card due to falsification or forgery of the medium. In the above description, the quantization method of the quantized data Ra and Rb used as the encryption key of the variable information (a) and (b) in the first and second information areas A3 and B3 is different. , May be quantized by a common quantization method.

【0116】また、上述においては、図17に示すよう
に、情報記憶部DA3を1トラック構成とし、該1トラ
ックの情報記憶部DA3を適宜2分割して、第1及び第
2の情報領域A3及びB3を形成する場合について説明
したが、図25に示すように、2トラックにより情報記
憶部DA4を構成し、各トラックをそれぞれ第1及び第
2の情報領域A4及びB4としたプリペイドカードPC
4としてもよい。また、図26に示すように、2トラッ
クにより情報記憶部DA5を構成し、各トラックをそれ
ぞれ第1及び第2の情報領域A5及びB5として、これ
ら第1及び第2の情報領域A5及びB5にそれぞれ、固
定情報(a)と可変情報(a)及び固定情報(b)と可
変情報(b)を設ける構成とし、消費による残額等の更
新の際に書換えが行われない固定情報を記憶した構成の
プリペイドカードPC5としてもよい。情報記憶部を、
さらに多数に分割して各分割された情報領域に交互に量
子化データを含む可変情報を書き込むようにしてもよ
い。
In the above description, as shown in FIG. 17, the information storage section DA3 is made up of one track, and the information storage section DA3 of the one track is divided into two sections as appropriate to form the first and second information areas A3. And B3 have been described, but as shown in FIG. 25, the information storage section DA4 is composed of two tracks, and each track has first and second information areas A4 and B4, respectively.
It may be four. As shown in FIG. 26, the information storage unit DA5 is composed of two tracks, and the tracks are respectively referred to as first and second information areas A5 and B5. A configuration in which fixed information (a) and variable information (a) and a fixed information (b) and variable information (b) are provided, and fixed information that is not rewritten when updating the remaining amount due to consumption is stored. May be used as the prepaid card PC5. Information storage unit,
Further, variable information including quantized data may be alternately written in the divided information areas by dividing the information into a plurality of pieces.

【0117】次に、本発明の第3の実施の形態に係るプ
リペイドカードシステムについて説明する。本発明の第
3の実施の形態に係るプリペイドカードシステムは、図
1、図3及び図4に示したのとほぼ同様に構成される
が、図3に示した消費処理部12、チェック制御部15
及び暗号処理部16、並びに図4に示したエンコード制
御部31、暗号処理部35及びチェック情報処理部36
の機能が若干相違する。
Next, a prepaid card system according to a third embodiment of the present invention will be described. The prepaid card system according to the third embodiment of the present invention is configured in substantially the same manner as shown in FIGS. 1, 3 and 4, except that the consumption processing unit 12 and the check control unit shown in FIG. Fifteen
And the encryption processing unit 16, the encoding control unit 31, the encryption processing unit 35, and the check information processing unit 36 shown in FIG.
Function is slightly different.

【0118】この第3の実施の形態に係るプリペイドカ
ードシステムは、プリペイドカードの情報記憶部を3以
上に分割し、可変情報(a)に量子化データRaを含ま
せ、可変情報(b)に量子化データRbを含ませ、可変
情報(c)として、量子化データRa及びRbに基づく
暗号化データRabを記憶させ、該可変情報(c)を可
変情報(a)又は(b)の更新の都度更新させて、復号
の可否の判定に、読出し復号の結果に含まれる量子化デ
ータRa及びRbが実測に基づいて得た量子化データR
a及びRbと一致するか否か、さらにはこれら量子化デ
ータRa及びRbにより生成したRabが可変情報
(c)の内容と一致するか否かを用いる。すなわち、こ
の第3の実施の形態によるプリペイドカードシステムで
使用するプリペイドカードを、図27を参照して説明す
る。図27に示すように、プリペイドカードPC6は、
磁性層を用いた磁気的な情報記憶部DA6を持ち、該情
報記憶部DA6は、第1の情報領域A6、第2の情報領
域B6及び第3の情報領域C6を有する。
In the prepaid card system according to the third embodiment, the information storage section of the prepaid card is divided into three or more parts, and the variable information (a) contains the quantized data Ra and the variable information (b) contains Quantized data Rb is included, encrypted data Rab based on quantized data Ra and Rb is stored as variable information (c), and the variable information (c) is used to update variable information (a) or (b). The quantized data Ra and Rb included in the result of the read decoding are updated each time the quantized data R and Rb obtained based on the actual measurement are determined.
a and Rb are used, and whether or not the Rab generated by the quantized data Ra and Rb matches the content of the variable information (c) is used. That is, a prepaid card used in the prepaid card system according to the third embodiment will be described with reference to FIG. As shown in FIG. 27, the prepaid card PC6
It has a magnetic information storage section DA6 using a magnetic layer, and the information storage section DA6 has a first information area A6, a second information area B6, and a third information area C6.

【0119】第1の情報領域A6には、残額等の金額情
報を含む可変情報(a)として、さらに特徴情報に基づ
く量子化データRaを加えたものが書き込まれている。
量子化データRaは、バーコードBC印刷部の所定部位
の濃度階調分布の検出信号に基づく特徴データを、所定
の第1の量子化方式により量子化した情報である。該量
子化データRaとしては、エンコード時には、記録装置
3において検出されたバーコードBC印刷部の所定部位
の階調分布情報を第1の量子化方式により量子化した情
報が用いられ、読書装置1による当該可変情報(a)の
金額情報等の更新時には、更新の都度、読書装置1にお
いて検出されたバーコードBC印刷部の所定部位の階調
分布情報を第1の量子化方式により量子化した情報が用
いられる。
In the first information area A6, the variable information (a) including the amount information such as the balance is further written with quantized data Ra based on the characteristic information.
The quantized data Ra is information obtained by quantizing feature data based on a detection signal of a density gradation distribution at a predetermined portion of the barcode BC printing section by a predetermined first quantization method. As the quantized data Ra, at the time of encoding, information obtained by quantizing gradation distribution information of a predetermined portion of a barcode BC printing unit detected by the recording device 3 by a first quantization method is used. When updating the price information of the variable information (a), the tone distribution information of a predetermined portion of the barcode BC printing portion detected by the reading device 1 is quantized by the first quantization method every time the updating is performed. Information is used.

【0120】第2の情報領域B6には、残額等の金額情
報を含む可変情報(b)として、さらに特徴情報に基づ
く量子化データRbを加えたものが書き込まれている。
量子化データRbは、バーコードBC印刷部の所定部位
の濃度階調分布の検出信号に基づく特徴データを、上述
の第1の量子化方式とは異なる所定の第2の量子化方式
により量子化した情報である。該量子化データRbとし
ては、エンコード時には、記録装置3において検出され
たバーコードBC印刷部の所定部位の階調分布情報を第
2の量子化方式により量子化した情報が用いられ、読書
装置1による当該可変情報(b)の金額情報等の更新時
には、更新の都度、読書装置1において検出されたバー
コードBC印刷部の所定部位の階調分布情報を第2の量
子化方式により量子化した情報が用いられる。
In the second information area B6, the variable information (b) including the amount information such as the remaining amount is further written with quantized data Rb based on the characteristic information.
The quantized data Rb is obtained by quantizing feature data based on a detection signal of a density gradation distribution at a predetermined portion of a barcode BC printing unit by a predetermined second quantization method different from the above-described first quantization method. Information. As the quantized data Rb, at the time of encoding, information obtained by quantizing the gradation distribution information of a predetermined portion of the barcode BC printing unit detected by the recording device 3 by the second quantization method is used. When the amount information or the like of the variable information (b) is updated, the tone distribution information of a predetermined portion of the barcode BC printing section detected by the reading device 1 is quantized by the second quantization method every time the updating is performed. Information is used.

【0121】第3の情報領域C6には、可変情報(c)
として、量子化データRaとRbとを組み合わせた暗号
データ、例えば量子化データRbを暗号鍵として量子化
データRaを暗号化したデータ、Rabが書き込まれて
いる。該量子化データRa及びRbとしては、エンコー
ド時には、記録装置3において検出されたバーコードB
C印刷部の所定部位の階調分布情報を量子化した情報が
用いられ、読書装置1による当該可変情報(a)又は
(b)の金額情報等の更新時には、更新の都度、読書装
置1において検出されたバーコードBC印刷部の所定部
位の階調分布情報を量子化した情報が用いられる。可変
情報(c)として用いられる暗号データRabとして
は、量子化データRaを暗号鍵として量子化データRb
を暗号化した情報等を用いてもよい。
In the third information area C6, the variable information (c)
Is written as encrypted data obtained by combining the quantized data Ra and Rb, for example, data Rab obtained by encrypting the quantized data Ra using the quantized data Rb as an encryption key. At the time of encoding, the quantized data Ra and Rb are bar codes B detected by the recording device 3.
The information obtained by quantizing the gradation distribution information of a predetermined portion of the C printing unit is used. When the reading device 1 updates the variable information (a) or (b), the amount information, etc., the reading device 1 Information obtained by quantizing the detected gradation distribution information of a predetermined portion of the barcode BC printing unit is used. The encrypted data Rab used as the variable information (c) is the quantized data Rb using the quantized data Ra as an encryption key.
May be used.

【0122】第3の実施の形態によるプリペイドカード
システムは、図1に示すように、その構成において、第
1の実施の形態の場合と次の点で相違する。読書装置1
における金額情報等の更新書込みは、第1の情報領域A
6及び第3の情報領域C6と第2の情報領域B6及び第
3の情報領域C6とに交互に行われる。すなわち、第3
の情報領域C6については、第1の情報領域A6の更新
の際にも、第2の情報領域B6の更新の際にも更新され
る。情報領域A6及びB6には、残額等の金額情報、量
子化データRa及びRbの他に、プリペイドカードPC
6のカード識別情報(カードID)、製造元を示す製造
元コード、製造日(エンコード日)情報、及びエラー発
生時におけるエラーコード等が記録される。
As shown in FIG. 1, the structure of the prepaid card system according to the third embodiment differs from that of the first embodiment in the following points. Reading device 1
In the first information area A
6 and the third information area C6 and the second information area B6 and the third information area C6 alternately. That is, the third
The information area C6 is updated both when the first information area A6 is updated and when the second information area B6 is updated. In the information areas A6 and B6, in addition to the amount information such as the balance, the quantized data Ra and Rb, the prepaid card PC
No. 6, card identification information (card ID), a manufacturer code indicating a manufacturer, manufacturing date (encoding date) information, an error code when an error occurs, and the like are recorded.

【0123】記録装置3は、プリペイドカード発行時に
おいて、プリペイドカードPC6の情報記憶部DA6の
第1の情報領域A6に、量子化データRa、初期金額情
報及びその他の情報を含む可変情報(a)を書き込み、
情報記憶部DA6の第2の情報領域B6に、量子化デー
タRb、初期金額情報及びその他の情報を含む可変情報
(b)を書き込み、さらに情報記憶部DA6の第3の情
報領域C6に、量子化データRa及びRbに基づく暗号
データRab、この場合量子化データRbを暗号鍵とし
て量子化データRaを暗号化した暗号データ、を書き込
む。
When the prepaid card is issued, the recording device 3 stores variable information (a) including the quantized data Ra, the initial amount information, and other information in the first information area A6 of the information storage section DA6 of the prepaid card PC6. Write
The variable information (b) including the quantized data Rb, the initial amount information and other information is written in the second information area B6 of the information storage unit DA6, and the quantum information is further written in the third information area C6 of the information storage unit DA6. The encrypted data Rab based on the quantized data Ra and Rb, in this case, the encrypted data obtained by encrypting the quantized data Ra using the quantized data Rb as an encryption key is written.

【0124】読書装置1は、プリペイドカードPC6が
セットされると、まず、光センサ17により、当該プリ
ペイドカードPC6のバーコード印刷部位の階調分布を
検出して、当該検出信号からなる特徴データを暗号処理
部16において2種の異なる所定の量子化方式により量
子化して量子化データRa及びRbを得る。チェック制
御部15は、プリペイドカードPC6の第1及び第2の
情報領域A6及びB6から読み出される可変情報(a)
及び(b)中の量子化データRa及びRbを暗号処理部
16において量子化したものと比較照合する。これら量
子化データRa及びRbが共に一致した場合、チェック
制御部15は、暗号処理部16により、量子化データR
bを暗号鍵として、量子化データRaを暗号化して求め
た暗号データを、プリペイドカードPC6の第3の情報
領域C6から読み出される暗号データRabと照合し
て、復号の可否を判別する。
When the prepaid card PC6 is set, the reading device 1 first detects the gradation distribution of the bar code printing portion of the prepaid card PC6 by the optical sensor 17, and outputs the characteristic data composed of the detection signal. Quantization is performed by the encryption processing unit 16 using two different predetermined quantization methods to obtain quantized data Ra and Rb. The check control unit 15 controls the variable information (a) read from the first and second information areas A6 and B6 of the prepaid card PC6.
And the quantized data Ra and Rb in (b) are compared with those quantized in the encryption processing unit 16. If the quantized data Ra and Rb match each other, the check control unit 15 causes the encryption processing unit 16 to execute the quantization data R
The encrypted data obtained by encrypting the quantized data Ra using b as an encryption key is collated with the encrypted data Rab read from the third information area C6 of the prepaid card PC6 to determine whether decryption is possible.

【0125】第3の実施の形態によるプリペイドカード
システムにおける読書装置1は、図3に示すように、そ
の構成において、第1の実施の形態と次の点で相違す
る。暗号処理部16は、光センサ17によりプリペイド
カードPC6から読み取ったバーコードBC部分の濃度
の階調分布に基づく特徴データを所定の量子化方式によ
り量子化して、量子化データRa及びRbを生成する。
また、暗号処理部16は、該量子化データRbを暗号鍵
として量子化データRaを暗号化して暗号データRab
を生成する。チェック制御部15は、第1及び第2の情
報領域A6及びB6の可変情報(a)及び(b)の両者
に含まれる量子化データRa及びRbが、それぞれ、暗
号処理部16において生成した量子化データRa及びR
bと一致するか否かを判別する。これらが一致した場
合、チェック制御部15は、さらに暗号処理部16によ
り量子化データRbを暗号鍵として量子化データRaを
暗号化した暗号データRabが、第3の情報領域C6の
可変情報(c)の暗号データRabと一致するか否かを
判別する。
As shown in FIG. 3, the reading device 1 in the prepaid card system according to the third embodiment differs from the first embodiment in the configuration thereof in the following points. The encryption processing unit 16 quantizes the characteristic data based on the gradation distribution of the density of the barcode BC read from the prepaid card PC6 by the optical sensor 17 by a predetermined quantization method to generate quantized data Ra and Rb. .
In addition, the encryption processing unit 16 encrypts the quantized data Ra using the quantized data Rb as an encryption key to generate the encrypted data Rab.
Generate The check control unit 15 determines that the quantized data Ra and Rb included in both the variable information (a) and (b) of the first and second information areas A6 and B6 respectively Data Ra and R
It is determined whether or not it matches b. If they match, the check control unit 15 further outputs the encrypted data Rab obtained by encrypting the quantized data Ra by the encryption processing unit 16 using the quantized data Rb as an encryption key to the variable information (c) in the third information area C6. )) To determine whether they match the encrypted data Rab.

【0126】すなわち、暗号処理部16は、光センサ1
7により読み取ったバーコードBC部分の濃度の階調分
布情報に基づく特徴データを、第1の量子化方式により
量子化して量子化データRaを生成し、第2の量子化方
式により量子化して量子化データRbを生成するととも
に、量子化データRbを暗号鍵として用いて量子化デー
タRaを暗号化して暗号データRabを生成する。チェ
ック制御部15は、暗号処理部16において生成された
量子化データRa及びRbが、プリペイドカードPC6
の第1及び第2の情報領域A6及びB6から読み出され
た可変情報(a)及び(b)に含まれる量子化データR
a及びRbとそれぞれ一致するか否かを判別し、さらに
暗号処理部16で得た暗号データRabが、プリペイド
カードPC6の第3情報領域C6から読み出された可変
情報(c)の暗号データRabと一致するか否かを判別
する。
That is, the encryption processing unit 16 is configured to
7, the characteristic data based on the gradation distribution information of the density of the barcode BC portion read by the step 7 is quantized by the first quantization method to generate quantized data Ra, and quantized by the second quantization method. The encrypted data Rb is generated by generating the encrypted data Rb and encrypting the quantized data Ra using the quantized data Rb as an encryption key. The check control unit 15 determines that the quantized data Ra and Rb generated by the encryption processing unit 16
Quantized data R included in the variable information (a) and (b) read from the first and second information areas A6 and B6 of FIG.
a and Rb, respectively, and determines whether the encrypted data Rab obtained by the encryption processing unit 16 is the encrypted data Rab of the variable information (c) read from the third information area C6 of the prepaid card PC6. It is determined whether or not they match.

【0127】チェック制御部15により、量子化データ
Ra及びRbのいずれか一方が一致せず、又はこれら両
者が一致しても暗号データRabが一致しないと判定さ
れたときは、不正なプリペイドカードが挿入されたと判
定し、警告表示を行うとともに当該プリペイドカードを
収容し又は排出して、その使用を阻止する。
If the check controller 15 determines that one of the quantized data Ra and Rb does not match, or that the two match, the encrypted data Rab does not match, the unauthorized prepaid card is detected. It is determined that the card has been inserted, a warning is displayed, and the prepaid card is stored or ejected to prevent its use.

【0128】量子化データRa及びRbが共に一致し、
暗号データも一致すると判定したときは、チェック制御
部15は、適正なプリペイドカードがセットされたと判
定して、プリペイドカードPC6の第1又は第2の情報
領域A6又はB6から読み出される可変情報(a)又は
(b)に基づく残額情報を消費処理部12に与える。
When the quantized data Ra and Rb both match,
If it is determined that the encrypted data also matches, the check control unit 15 determines that an appropriate prepaid card has been set, and the variable information (a) read from the first or second information area A6 or B6 of the prepaid card PC6. ) Or (b) is given to the consumption processing unit 12.

【0129】消費処理部12によるプリペイドカードP
C6の可変情報の更新は、第1の情報領域A6の可変情
報(a)と、第2の情報領域B6の可変情報(b)とに
対して交互に行われ、第3の情報領域C6に対しては、
両者に共通に、すなわち全ての更新の際に行われる。第
1の情報領域A6の可変情報(a)又は第2の情報領域
B6の可変情報(b)の更新時に、チェック制御部15
は、第1の情報領域A6の可変情報(a)又は第2の情
報領域B6の可変情報(b)のうちの更新すべき可変情
報にそれぞれ量子化データRa又はRbを加えて、更新
書込みを行い、さらに、暗号処理部16で生成した暗号
データRabを第3の情報領域C6の可変情報(c)と
して書き込む。
Prepaid card P by consumption processing unit 12
Updating of the variable information of C6 is performed alternately on the variable information (a) of the first information area A6 and the variable information (b) of the second information area B6, and is updated in the third information area C6. On the other hand,
This is performed in common for both, that is, for all updates. When the variable information (a) in the first information area A6 or the variable information (b) in the second information area B6 is updated, the check control unit 15
Adds the quantized data Ra or Rb to the variable information to be updated among the variable information (a) in the first information area A6 and the variable information (b) in the second information area B6, and performs update writing. Then, the encrypted data Rab generated by the encryption processing unit 16 is written as variable information (c) in the third information area C6.

【0130】さらに、該更新後にもチェック制御部15
は、当該プリペイドカードPC6の第1及び第2の情報
領域A6及びB6から読み出される可変情報(a)及び
(b)に含まれる量子化データRa及びRbを、光セン
サ17を介してプリペイドカードPC6から読み取った
バーコードBC部分の濃度の階調分布情報を暗号処理部
16において量子化した量子化データRa及びRbと比
較照合し、さらに、暗号処理部16において暗号化した
暗号データRabを第3の情報領域C6から読み出され
る可変情報(c)と比較照合し、一致するか否かを検出
する。
Further, even after the update, the check control unit 15
Converts the quantized data Ra and Rb included in the variable information (a) and (b) read from the first and second information areas A6 and B6 of the prepaid card PC6 via the optical sensor 17 into the prepaid card PC6. Is compared with the quantized data Ra and Rb quantized in the cryptographic processing unit 16 and the encrypted data Rab encrypted in the cryptographic processing unit 16 is compared with the third data. Is compared with the variable information (c) read from the information area C6, and whether or not they match is detected.

【0131】第3の実施の形態によるプリペイドカード
システムにおける記録装置3は、図4に示すように、そ
の構成において、第1の実施の形態と次の点で相違す
る。暗号処理部35は、光センサ34により検出された
特徴データを、上述した第1及び第2の量子化方式によ
り量子化して、量子化データRa及びRbを生成する。
また、暗号処理部35は、この場合、量子化データRb
を暗号鍵として用い量子化データRaを暗号化して暗号
データRabを生成する。
As shown in FIG. 4, the recording device 3 in the prepaid card system according to the third embodiment differs from the first embodiment in the following points. The encryption processing unit 35 quantizes the feature data detected by the optical sensor 34 using the above-described first and second quantization methods, and generates quantized data Ra and Rb.
Further, in this case, the encryption processing unit 35
Is used as an encryption key to encrypt the quantized data Ra to generate encrypted data Rab.

【0132】次に、上述したプリペイドカードシステム
における処理について、図28〜図30に示すフローチ
ャートを参照して説明する。まず、記録装置3における
エンコード処理について、図28を参照して説明する。
図28に示すエンコード処理は、記録装置3にプリペイ
ドカード媒体がセットされるとその都度起動される。プ
リペイドカード媒体がリーダ/ライタ33にセットされ
ると、まず、エンコード制御部31は、該プリペイドカ
ード媒体の所定の部位に印刷されたバーコードの濃淡階
調分布を、光センサ34により検出する(ステップS1
01)。光センサ34により検出されたバーコードの濃
淡階調分布は、暗号処理部35において、PCM又はそ
の他のA/D変換等による所定の第1の量子化方式に従
って量子化され量子化データRaが生成され(ステップ
S102)、さらに所定の第2の量子化方式に従って量
子化されて量子化データRbが生成される(ステップS
103)。
Next, the processing in the above-described prepaid card system will be described with reference to the flowcharts shown in FIGS. First, the encoding process in the recording device 3 will be described with reference to FIG.
The encoding process shown in FIG. 28 is started each time a prepaid card medium is set in the recording device 3. When the prepaid card medium is set in the reader / writer 33, first, the encode control unit 31 detects the light and shade gradation distribution of the barcode printed on a predetermined portion of the prepaid card medium by the optical sensor 34 ( Step S1
01). The grayscale distribution of the barcode detected by the optical sensor 34 is quantized by a cryptographic processing unit 35 in accordance with a predetermined first quantization method such as PCM or other A / D conversion to generate quantized data Ra. (Step S102), and is further quantized according to a predetermined second quantization method to generate quantized data Rb (step S102).
103).

【0133】エンコード制御部31は、図31に示すよ
うに、量子化データRa及びRbを加えた所要のエンコ
ード情報を、リーダ/ライタ33を介してプリペイドカ
ードPC6の第1及び第2の情報領域A6及びB6にそ
れぞれ書込み、さらに量子化データRbを暗号鍵として
量子化データRaを暗号化した暗号データRabを、リ
ーダ/ライタ33を介してプリペイドカードPC6の第
3の情報領域C6に書き込んで(ステップS104)、
エンコード処理を終了する。次に、上述したプリペイド
カードシステムにおける消費処理について、図6、図2
9及び図30に示すフローチャートを参照して説明す
る。このシステムにおいても、図6に示す消費処理は、
上述と同様に行われ、読書装置1のリーダ/ライタ14
にプリペイドカードPC6がセットされるとその都度起
動される。処理が開始されると、ステップS11におい
て、チェック制御部15は、リーダ/ライタ14にセッ
トされたプリペイドカードPC6が正常か否かをチェッ
クする。
As shown in FIG. 31, the encode control section 31 transfers required encode information to which the quantized data Ra and Rb have been added, via the reader / writer 33 to the first and second information areas of the prepaid card PC6. A6 and B6 are respectively written, and the encrypted data Rab obtained by encrypting the quantized data Ra using the quantized data Rb as an encryption key is written to the third information area C6 of the prepaid card PC6 via the reader / writer 33 ( Step S104),
The encoding process ends. Next, the consumption processing in the above-described prepaid card system will be described with reference to FIGS.
9 and the flowchart shown in FIG. Also in this system, the consumption process shown in FIG.
This is performed in the same manner as described above, and the reader / writer 14 of the reading device 1
Is activated each time the prepaid card PC6 is set. When the process is started, in step S11, the check control unit 15 checks whether the prepaid card PC6 set in the reader / writer 14 is normal.

【0134】すなわち、まず、光センサ17により、リ
ーダ/ライタ14にセットされたプリペイドカードPC
6の所定の部位に印刷されたバーコードBC部分の濃淡
階調分布を検出し、暗号処理部16において、記録装置
3の暗号処理部35における量子化方式と実質的に共通
の量子化方式、すなわち、互いに異なる所定の第1及び
第2の量子化方式により量子化して、プリペイドカード
PC6の第1及び第2の情報領域A6及びB6の可変情
報(a)及び(b)に対応する量子化データRa及びR
bを生成する。
First, the prepaid card PC set in the reader / writer 14 by the optical sensor 17
6, a gray scale distribution of a bar code BC portion printed on a predetermined portion of the recording device 3 is detected, and the encryption processing unit 16 performs substantially the same quantization method as the quantization method in the encryption processing unit 35 of the recording device 3; That is, quantization is performed using predetermined first and second quantization schemes different from each other, and quantization corresponding to the variable information (a) and (b) in the first and second information areas A6 and B6 of the prepaid card PC6. Data Ra and R
Generate b.

【0135】そして、チェック制御部15は、リーダ/
ライタ14を介して磁気ヘッドによりプリペイドカード
PC6の第1及び第2の情報領域A6及びB6の可変情
報(a)及び(b)を読み出し、可変情報(a)及び
(b)中の量子化データRa及びRbを、先に暗号処理
部16において生成した量子化データRa及びRbと比
較照合する。これら量子化データRa及びRbが共に一
致した場合、チェック制御部15は、さらに暗号処理部
16により、量子化データRbを暗号鍵として、量子化
データRaを暗号化し、暗号データRabを生成させ、
該暗号データRabをプリペイドカードPC6の第3の
情報領域C6の可変情報(c)の暗号データRabと比較
照合して、復号の可否をチェックする。復号が正常に行
われなければ、チェック制御部15は、セットされたプ
リペイドカードPC6が異常であり、不正な手段により
作成されたものであると判定する(図32参照)。
Then, the check control section 15 sends the
The variable information (a) and (b) of the first and second information areas A6 and B6 of the prepaid card PC6 are read by the magnetic head via the writer 14, and the quantized data in the variable information (a) and (b) is read. Ra and Rb are compared with the quantized data Ra and Rb previously generated in the encryption processing unit 16. If the quantized data Ra and Rb match each other, the check control unit 15 further causes the encryption processing unit 16 to encrypt the quantized data Ra using the quantized data Rb as an encryption key and generate encrypted data Rab.
The encrypted data Rab is compared with the encrypted data Rab of the variable information (c) in the third information area C6 of the prepaid card PC6 to check whether decryption is possible. If the decryption is not performed normally, the check control unit 15 determines that the set prepaid card PC6 is abnormal and has been created by unauthorized means (see FIG. 32).

【0136】プリペイドカードPC6の情報領域A6、
B6及びC6から読み取った情報の全てが、実測値を量
子化した量子化データRa及びRbに適正に対応した場
合には、チェック制御部15により、残額目安パンチ孔
の位置及び可変情報における矛盾の有無を検出する。こ
のとき、残額目安パンチ孔の位置及び可変情報に矛盾が
検出された場合には、当該プリペイドカードは異常であ
るとする。上述以外の図6における処理については、第
1の実施の形態に関連して既に説明した処理と全く同様
であり、ここでは、詳細には説明しない。
Information area A6 of prepaid card PC6,
When all of the information read from B6 and C6 properly correspond to the quantized data Ra and Rb obtained by quantizing the actual measurement values, the check control unit 15 uses Detect presence / absence. At this time, if inconsistency is detected in the position of the remaining amount guide punch hole and the variable information, the prepaid card is determined to be abnormal. The processing in FIG. 6 other than the above is exactly the same as the processing already described in relation to the first embodiment, and will not be described in detail here.

【0137】ステップS11のカードチェック処理の詳
細を図29に示している。カードチェック処理が開始さ
れると、まず、チェック制御部15は、暗号処理部16
を介して、光センサ17により、プリペイドカードPC
6の所定の部位のバーコードBC部分の濃淡階調分布を
特徴データとして検出し、暗号処理部16において、記
録装置3の暗号処理部35で用いられた量子化方式と実
質的に共通の量子化方式、すなわち互いに異なる所定の
第1及び第2の量子化方式、により量子化して、プリペ
イドカードPC6の第1及び第2の情報領域A6及びB
6の可変情報(a)及び(b)に対応する量子化データ
Ra及びRbを生成する。(ステップS111)。
FIG. 29 shows details of the card check process in step S11. When the card check process is started, first, the check control unit 15
Via a prepaid card PC by the optical sensor 17
6 is detected as feature data in the bar code BC portion of the predetermined portion of the recording device 3, and the encryption processing section 16 performs a quantization process substantially the same as the quantization method used in the encryption processing section 35 of the recording device 3. , Ie, the first and second information areas A6 and B of the prepaid card PC6 are quantized by different predetermined first and second quantization schemes.
Then, quantized data Ra and Rb corresponding to variable information (a) and (b) of No. 6 are generated. (Step S111).

【0138】チェック制御部15は、リーダ/ライタ1
4を介して磁気ヘッドによりプリペイドカードPC6の
第1及び第2の情報領域A6及びB6の可変情報(a)
及び(b)を読み出し、量子化データRa及びRbを抽
出して、図32に示すように、ステップS111で生成
した量子化データRa及びRbと比較照合する(ステッ
プS112)。
The check control unit 15 is provided with the reader / writer 1
4, variable information (a) in the first and second information areas A6 and B6 of the prepaid card PC6 by the magnetic head.
And (b) are read out, and the quantized data Ra and Rb are extracted and compared with the quantized data Ra and Rb generated in step S111 as shown in FIG. 32 (step S112).

【0139】チェック制御部15は、ステップS112
において、量子化データRa及びRbが一致したと判定
すれば、暗号処理部16により、量子化データRbを暗
号鍵として量子化データRaを暗号化し、暗号データR
abを生成する(ステップS113)。そして、チェッ
ク制御部15は、暗号データRabを、リーダ/ライタ
14を介して磁気ヘッドによりプリペイドカードPC6
の第3の情報領域C6から読み出した可変情報(c)と
比較照合する(ステップS114)。チェック制御部1
5は、暗号データRabが一致すれば、次に、可変情報
(a)及び(b)の復号結果に基づく金額情報及びその
他の情報相互間、及びこれらと残額目安パンチ孔の穿孔
状況等との間に矛盾があるかを検出する(ステップS1
15)。矛盾がなければ(ステップS116)、チェッ
ク制御部15は、当該プリペイドカードPC6が正常で
あるとして(ステップS117)、処理を終了して、図
6の消費処理に戻る。
The check control unit 15 determines in step S112
, If it is determined that the quantized data Ra and Rb match, the encryption processing unit 16 encrypts the quantized data Ra using the quantized data Rb as an encryption key, and
ab is generated (step S113). Then, the check control unit 15 transmits the encrypted data Rab to the prepaid card PC6 by the magnetic head via the reader / writer 14.
Is compared with the variable information (c) read from the third information area C6 (step S114). Check control unit 1
5 indicates that if the encrypted data Rabs match, then the amount information and other information based on the decryption result of the variable information (a) and (b), and the amount of the remaining information, It is detected whether there is a contradiction between them (step S1).
15). If there is no inconsistency (step S116), the check control unit 15 determines that the prepaid card PC6 is normal (step S117), ends the process, and returns to the consumption process in FIG.

【0140】ステップS112において、量子化データ
Rb及びRaの少なくとも一方が一致しない場合、又は
ステップS114において、暗号データRabが一致し
ない場合には、その時点で直ちに異常と判定し(ステッ
プS118)、プリペイドカードPC6の不正を示す警
告表示及び当該プリペイドカードPC6の取込み又は排
出等の所定の異常/不正処理を行う(ステップS11
9)。また、ステップS116において、矛盾が存在す
ると判定した場合にも、ステップS118に移行し、所
定の異常/不正処理を行う。
If it is determined in step S112 that at least one of the quantized data Rb and Ra does not match, or if the encrypted data Rab does not match in step S114, it is immediately determined to be abnormal (step S118), and the prepaid A warning display indicating that the card PC 6 is fraudulent and a predetermined abnormal / illegal process such as taking in or ejecting the prepaid card PC 6 are performed (step S11).
9). Also, in step S116, when it is determined that there is a contradiction, the process proceeds to step S118, and predetermined abnormal / illegal processing is performed.

【0141】図6のステップS19の終了処理の詳細を
図30に示している。終了処理が開始されると、消費処
理部12は、再度、チェック制御部15を介して暗号処
理部16に特徴データの読取り及び量子化を行わせる
(ステップS131)。すなわち、暗号処理部16は、
光センサによりプリペイドカードPC6の所定の部位の
バーコードBC部分の濃淡階調分布を特徴データとして
検出し、該特徴データを互いに異なる所定の第1及び第
2の量子化方式により量子化して、プリペイドカードP
C6の第1及び第2の情報領域A6及びB6の可変情報
(a)及び(b)の暗号鍵として用いる量子化データR
a及びRbをそれぞれ生成する。
FIG. 30 shows details of the end processing in step S19 in FIG. When the end processing is started, the consumption processing unit 12 causes the encryption processing unit 16 to read and quantize the characteristic data again via the check control unit 15 (step S131). That is, the encryption processing unit 16
The light sensor detects the grayscale distribution of the bar code BC portion of the predetermined portion of the prepaid card PC6 as characteristic data, and quantizes the characteristic data by predetermined first and second quantization systems different from each other, and Card P
Quantized data R used as encryption keys for the variable information (a) and (b) of the first and second information areas A6 and B6 of C6
a and Rb, respectively.

【0142】次に、消費処理部12は、第1及び第2の
情報領域A6及びB6の先に復号された可変情報(a)
及び(b)の更新日時情報(タイムスタンプ)等に基づ
いて、前回書込み時に第1及び第2の情報領域A6及び
B6のいずれに対して書き込みが行われたかを確認する
(ステップS132)。チェック制御部15は、前回書
き込みが行われたのが第2の情報領域B6であるか否か
を調べ(ステップS133)、前回第2の情報領域B6
に書き込みが行われた場合には、第1及び第2の情報領
域A6及びB6の両者に書き込みが行われた初期状態又
は第2の情報領域B6の可変情報(b)が更新された状
態のいずれかであるので、図33に示すように、第1の
情報領域A6に、その時点で記憶部13に記憶されてい
る最終残額に基づく残額情報を含み且つステップS13
1にて生成された量子化データRaを加えた可変情報
(a)を書き込んで更新し、さらに暗号処理部16によ
り量子化データRbを暗号鍵として量子化データRaを
暗号化して暗号データRabを生成させ、該暗号データ
Rabを、第3の情報領域C6の可変情報(c)に書き
込んで更新する(ステップS134)。このとき、第2
の情報領域B6については全く書き換えを行わない。
Next, the consumption processing section 12 outputs the variable information (a) decoded before the first and second information areas A6 and B6.
Based on the update date and time information (time stamp) of (b) and the like, it is confirmed which of the first and second information areas A6 and B6 has been written at the time of the previous writing (step S132). The check control unit 15 checks whether or not the previous writing has been performed on the second information area B6 (step S133).
Is written in both the first and second information areas A6 and B6 in the initial state or when the variable information (b) in the second information area B6 is updated. 33, the first information area A6 includes the balance information based on the final balance stored in the storage unit 13 at that time, as shown in FIG.
The variable information (a) to which the quantized data Ra generated in step 1 is added is written and updated, and the encryption processing unit 16 encrypts the quantized data Ra using the quantized data Rb as an encryption key to generate the encrypted data Rab. Then, the encrypted data Rab is written and updated in the variable information (c) in the third information area C6 (step S134). At this time, the second
Is not rewritten at all for the information area B6.

【0143】ステップS134において、可変情報
(a)の更新書き込みを行った後、チェック制御部15
は、ステップS131において再度実測した特徴データ
に基づく量子化データRa及びRbを、図34に示すよ
うに、プリペイドカードPC6の第1及び第2の情報領
域A6及びB6から読み出した可変情報(a)及び
(b)に含まれる量子化データRa及びRbと照合し
て、一致するか否かを調べる(ステップS136)。
In step S134, after the variable information (a) is updated and written, the check control unit 15
The variable information (a) read out from the first and second information areas A6 and B6 of the prepaid card PC6 with the quantized data Ra and Rb based on the feature data measured again in step S131 as shown in FIG. Then, it is checked with the quantized data Ra and Rb included in (b) to see if they match (step S136).

【0144】一方、ステップS133において、前回第
2の情報領域B6に書き込みが行われなかったと判定さ
れた場合には、第1の情報領域A6の可変情報(a)が
更新された状態であるので、図33に破線で示すよう
に、第2の情報領域B6に、その時点で記憶部13に記
憶されている最終残額に基づく残額情報を含み且つステ
ップS131にて生成された量子化データRbを加えた
可変情報(b)を書き込んで更新し、さらに暗号処理部
16により量子化データRbを暗号鍵として量子化デー
タRaを暗号化して暗号データRabを生成させ、該暗
号データRabを、第3の情報領域C6の可変情報
(c)に書き込んで更新する(ステップS135)。こ
のとき、第1の情報領域A6については全く書き換えを
行わない。
On the other hand, in step S133, when it is determined that no writing has been performed in the second information area B6 last time, the variable information (a) in the first information area A6 has been updated. As shown by the broken line in FIG. 33, the second information area B6 contains the remaining amount information based on the final remaining amount stored in the storage unit 13 at that time and stores the quantized data Rb generated in step S131. The added variable information (b) is written and updated, and the encryption processing unit 16 encrypts the quantized data Ra using the quantized data Rb as an encryption key to generate encrypted data Rab. Is written and updated in the variable information (c) in the information area C6 (step S135). At this time, the first information area A6 is not rewritten at all.

【0145】ステップS135において、可変情報
(b)の更新書き込みを行った後も、チェック制御部1
5は、ステップS136に移行し、量子化データRa及
びRbを、図34に示すように、プリペイドカードPC
6の第1及び第2の情報領域A6及びB6から読み出し
た可変情報(a)及び(b)に含まれる量子化データR
a及びRbと照合して、一致するか否かを調べる。
In step S135, even after the variable information (b) is updated and written, the check control unit 1
In step S136, the quantized data Ra and Rb are stored in the prepaid card PC as shown in FIG.
6 and the quantized data R included in the variable information (a) and (b) read from the first and second information areas A6 and B6.
Check with a and Rb to see if they match.

【0146】さらに、ステップS136において、量子
化データRa及びRbが一致すると判定された場合に
は、これら量子化データRa及びRbから暗号処理部1
6により暗号データRabを再度生成させ(ステップS
137)、プリペイドカードPC6の第3の情報領域C
6から読み出した可変情報(c)に含まれる暗号データ
Rabと照合して、一致するか否かを調べる(ステップ
S138)。
Further, if it is determined in step S136 that the quantized data Ra and Rb match, the encryption processing unit 1 determines the quantized data Ra and Rb.
6 to generate the encrypted data Rab again (Step S
137), third information area C of prepaid card PC6
Then, it checks with the encrypted data Rab included in the variable information (c) read from No. 6 to see if they match (step S138).

【0147】ステップS138において、暗号データR
abが一致すると判定された場合には、該更新後の残額
が残額目安パンチ孔の穿孔が必要な金額か否かを調べる
(ステップS139)。残額目安パンチ孔の穿孔が必要
な金額とは、プリペイドカードPC6に度数値として印
刷された残額領域のうちの従前の領域とは異なる領域に
新たに入る金額である。このような金額であるときは、
チェック制御部15により、残額目安パンチ孔が穿孔さ
れる(ステップS140)。残額目安パンチ孔の穿孔後
は、リーダ/ライタ14からプリペイドカードPC6を
排出する(ステップS141)。そして、処理を終了
し、消費処理に戻る。
At step S138, the encrypted data R
If it is determined that a and b match, it is checked whether or not the remaining amount after the update is a necessary amount for punching the remaining amount target punch hole (step S139). The amount of money required for punching the remaining amount guide punch hole is an amount of money newly entering an area of the remaining amount area printed on the prepaid card PC6 as a frequency value, which is different from the previous area. When these amounts are
The check controller 15 punches the remaining standard punch holes (step S140). After punching the remaining standard punch holes, the prepaid card PC6 is ejected from the reader / writer 14 (step S141). Then, the process ends, and returns to the consumption process.

【0148】ステップS139で、更新後の残額が残額
目安パンチ孔の穿孔が必要な金額でないと判定された場
合には、チェック制御部15は、ステップS140をス
キップしてステップS141に移行し、プリペイドカー
ドを排出する。また、ステップS136において、量子
化データRa及びRbが不一致と判定された場合、又は
ステップS138において暗号データRabが不一致と
判定された場合には、チェック制御部15は、当該プリ
ペイドカードPC6が異常であると判定し(ステップS
142)、プリペイドカードPC6の不正を示す警告表
示及び当該プリペイドカードPC6の取込み又は排出等
の所定の異常/不正処理を行う(ステップS143)。
If it is determined in step S139 that the remaining amount after the update is not the amount required for punching the remaining amount guide hole, the check control unit 15 skips step S140 and proceeds to step S141 to execute the prepaid. Eject the card. If it is determined in step S136 that the quantized data Ra and Rb do not match, or if it is determined in step S138 that the encrypted data Rab does not match, the check control unit 15 determines that the prepaid card PC6 is abnormal. It is determined that there is (step S
142), a warning display indicating the fraud of the prepaid card PC6 and a predetermined abnormal / illegal process such as taking in or discharging the prepaid card PC6 are performed (step S143).

【0149】このようにして、読書装置1は、消費を行
う毎に第1及び第2の情報領域A6及びB6の可変情報
(a)及び(b)を交互に更新し、且つ消費を行う都
度、第3の情報領域C6を更新する。そして、更新に際
しては、その都度、バーコードBC部から読み取った特
徴データを、個別の量子化方式により量子化した量子化
データRa及びRbをそれぞれ可変情報(b)及び
(a)に加え、且つ量子化データRa及びRbに基づく
暗号データRabを可変情報(c)として、更新書込み
し、随時、バーコードBC部から読み取った特徴データ
を量子化した量子化データRa、Rb及びこれらに基づ
く暗号データRabを用いて、各情報領域A6、B6及
びC6の可変情報の復号の可否をチェックする。このよ
うにして、不正に複写されたプリペイドカードを検出す
ることができる。
In this way, the reading apparatus 1 alternately updates the variable information (a) and (b) of the first and second information areas A6 and B6 each time consumption is performed, and every time consumption is performed. , The third information area C6 is updated. At the time of updating, the characteristic data read from the barcode BC is added to the variable information (b) and (a), respectively, by adding the quantized data Ra and Rb obtained by quantizing the characteristic data by the individual quantization method, respectively, and The encrypted data Rab based on the quantized data Ra and Rb is updated and written as variable information (c), and the quantized data Ra and Rb obtained by quantizing the characteristic data read from the barcode BC as needed, and the encrypted data based on these. Using Rab, it is checked whether variable information in each of the information areas A6, B6 and C6 can be decoded. In this way, a prepaid card that has been illegally copied can be detected.

【0150】したがって、他のプリペイドカードの可変
情報の複写による不正を的確に検出することができ、媒
体の変造又は偽造によるプリペイドカードの不正使用を
未然に排除することができる。なお、上述においては、
第1及び第2の情報領域A6及びB6の可変情報(a)
及び(b)に含ませる量子化データRaとRbとの量子
化方式を異ならせるものとしたが、これらを共通の量子
化方式により量子化するようにしてもよい。
Therefore, fraudulent use of the variable information of another prepaid card due to copying can be accurately detected, and improper use of the prepaid card due to falsification or forgery of a medium can be eliminated. In the above,
Variable information (a) of the first and second information areas A6 and B6
Although the quantization schemes of the quantized data Ra and Rb included in (b) and (b) are made different, they may be quantized by a common quantization scheme.

【0151】また、上述においては、図27に示すよう
に、情報記憶部DA6を1トラック構成とし、該1トラ
ックの情報記憶部DA6を適宜3分割して、情報領域A
6、B6及びC6を形成する場合について説明したが、
図35に示すように、3トラックにより情報記憶部DA
7を構成し、各トラックをそれぞれ第1、第2及び第3
の情報領域A7、B7及びC7としたプリペイドカード
PC7としてもよい。また、図36に示すように、3ト
ラックにより情報記憶部DA8を構成し、各トラックを
それぞれ第1、第2及び第3の情報領域A8、B8及び
C8として、これら第1、第2及び第3の情報領域A
8、B8及びC8にそれぞれ、固定情報(a)と可変情
報(a)、固定情報(b)と可変情報(b)及び固定情
報(c)と可変情報(c)を設ける構成とし、消費によ
る残額等の更新の際に書換えが行われない固定情報を記
憶した構成のプリペイドカードPC8としてもよい。情
報記憶部を、さらに多数に分割して各分割された情報領
域に交互に量子化データを含む可変情報を書き込むよう
にしてもよい。
In the above description, as shown in FIG. 27, the information storage section DA6 is made up of one track, and the information storage section DA6 for one track is appropriately divided into three sections to form the information area A
6, B6 and C6 have been described.
As shown in FIG. 35, the information storage unit DA includes three tracks.
7, each track being first, second and third, respectively.
The information area A7, B7, and C7 may be a prepaid card PC7. As shown in FIG. 36, the information storage unit DA8 is composed of three tracks, and the first, second, and third information areas A8, B8, and C8 are respectively defined as first, second, and third information areas. Information area A of 3
8, B8 and C8 are provided with fixed information (a) and variable information (a), fixed information (b) and variable information (b), and fixed information (c) and variable information (c), respectively. The prepaid card PC8 may be configured to store fixed information that is not rewritten when updating the remaining amount or the like. The information storage unit may be further divided into a plurality of sections, and the variable information including the quantized data may be alternately written in the divided information areas.

【0152】なお、上述においては、プリペイドカード
媒体として、金額情報等の情報を全面磁性層に磁気記録
する磁気カード媒体を用いるプリペイドカードを例にと
って説明したが、プリペイドカード媒体はこのような磁
気カード媒体に限定されるものではない。例えば、カー
ド上に貼設した磁気ストライプに情報を磁気記録するカ
ード媒体、カード上にメモリ等のIC(集積回路)チッ
プを埋設して該ICチップに情報を記憶させるいわゆる
ICカード媒体、あるいはこれらを適宜組合わせたカー
ド媒体等をプリペイドカード媒体として用いるプリペイ
ドカードについても上述と同様にして本発明を実施する
ことができる。
In the above description, a prepaid card using a magnetic card medium for magnetically recording information such as amount information on the entire magnetic layer has been described as an example of a prepaid card medium. It is not limited to a medium. For example, a card medium for magnetically recording information on a magnetic stripe attached to a card, a so-called IC card medium for embedding an IC (integrated circuit) chip such as a memory on the card and storing information on the IC chip, or The present invention can also be carried out in the same manner as described above for a prepaid card using a card medium or the like as a prepaid card medium in which is appropriately combined.

【0153】また、本システムで使用されるカードは、
金額情報を記憶しないノーバリューカードとしてもよ
い。この場合、例えば、各利用者についての金額情報を
センタ等で管理し、カード使用時には、カードに記憶さ
れている利用者を識別しうる情報(カード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.

【0154】本発明のプリペイドカードシステムは、専
用のプリペイドカードシステムとして構成することな
く、通常のコンピュータシステムを用いて実現すること
ができる。例えば、コンピュータシステムに上述の動作
を実行するためのプログラムを格納した媒体(フロッピ
ーディスク、CD−ROM等)から該プログラムをイン
ストールすることにより、上述の処理を実行するシステ
ムを構築することができる。インストールによって、当
該プログラムは、コンピュータシステム内のハードディ
スク等の媒体に格納されて、システムを構成し、実行に
供される。
The prepaid card system of the present invention can be realized by using an ordinary computer system without configuring as a dedicated prepaid card system. For example, by installing a computer system from a medium (floppy disk, CD-ROM, or the like) storing a program for executing the above-described operation, a system for executing the above-described processing can be constructed. By the installation, the program is stored in a medium such as a hard disk in the computer system, configures the system, and is provided for execution.

【0155】また、コンピュータにプログラムを供給す
るための媒体は、狭義の記憶媒体に限らず、通信回線、
通信ネットワーク及び通信システムのように、一時的且
つ流動的にプログラム等の情報を保持する通信媒体等を
含む広義の記憶媒体であってもよい。例えば、インター
ネット等の通信ネットワーク上に設けたFTP(File T
ransfer Protocol)サーバに当該プログラムを登録し、
FTPクライアントにネットワークを介して配信しても
よく、通信ネットワークの電子掲示板(BBS:Bullet
in Board System)等に該プログラムを登録し、これを
ネットワークを介して配信してもよい。そして、このプ
ログラムを起動し、OS(Operating System)の制御下
において実行することにより、上述の処理を達成するこ
とができる。さらに、通信ネットワークを介してプログ
ラムを転送しながら起動実行することによっても、上述
の処理を達成することができる。
The medium for supplying the program to the computer is not limited to a storage medium in a narrow sense, but may be a communication line,
Like a communication network and a communication system, it may be a storage medium in a broad sense including a communication medium that temporarily and fluidly stores information such as a program. For example, FTP (File T) provided on a communication network such as the Internet
ransfer Protocol) Register the program on the server,
It may be distributed to an FTP client via a network, and an electronic bulletin board (BBS: Bullet) of a communication network
The program may be registered in, for example, an in-board system, and distributed via a network. Then, by starting this program and executing it under the control of the OS (Operating System), the above-described processing can be achieved. Furthermore, the above-described processing can also be achieved by starting and executing the program while transferring the program via the communication network.

【0156】[0156]

【発明の効果】以上説明したように、本発明によれば、
変造又は偽造したプリペイドカード媒体に正規のプリペ
イドカードの可変情報を複写して使用しようとする不正
を的確に検出し、変造又は偽造によるプリペイドカード
の不正使用を未然に排除することを可能とするプリペイ
ドカードシステム及び読書装置を提供することができ
る。
As described above, according to the present invention,
Prepaid that enables accurate detection of fraudulent attempts to copy and use the valid information of a legitimate prepaid card on a falsified or forged prepaid card medium, thereby eliminating improper use of the prepaid card due to falsification or forgery. A card system and a reading device can be provided.

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

【図1】本発明の第1の実施の形態に係るプリペイドカ
ードシステムの構成を模式的に示すブロック図である。
FIG. 1 is a block 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 schematically showing stored contents of a prepaid card used in the prepaid card system of FIG. 1;

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

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

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

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

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

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

【図9】図1のプリペイドカードシステムのエンコード
処理を説明するための図である。
FIG. 9 is a diagram for explaining an encoding process of the prepaid card system of FIG. 1;

【図10】図1のプリペイドカードシステムのプリペイ
ドカード挿入時における処理を説明するための図であ
る。
FIG. 10 is a diagram for explaining processing when a prepaid card is inserted in the prepaid card system of FIG. 1;

【図11】図1のプリペイドカードシステムのプリペイ
ドカードの消費時における処理を説明するための図であ
る。
FIG. 11 is a diagram for explaining processing when the prepaid card is consumed in the prepaid card system of FIG. 1;

【図12】図1のプリペイドカードシステムのプリペイ
ドカードの消費時における処理を説明するための図であ
る。
FIG. 12 is a diagram for explaining processing when the prepaid card is consumed in the prepaid card system of FIG. 1;

【図13】図1のプリペイドカードシステムのプリペイ
ドカードの消費時における処理を説明するための図であ
る。
FIG. 13 is a diagram for explaining processing when the prepaid card is consumed in the prepaid card system of FIG. 1;

【図14】図1のプリペイドカードシステムのプリペイ
ドカードの消費時における処理を説明するための図であ
る。
FIG. 14 is a diagram for explaining processing when the prepaid card is consumed in the prepaid card system of FIG. 1;

【図15】プリペイドカードの記憶形態の一例を模式的
に説明する図である。
FIG. 15 is a diagram schematically illustrating an example of a storage form of a prepaid card.

【図16】プリペイドカードの記憶形態の一例を模式的
に説明する図である。
FIG. 16 is a diagram schematically illustrating an example of a storage form of a prepaid card.

【図17】本発明の第2の実施の形態に係るプリペイド
カードシステムで使用されるプリペイドカードの記憶内
容を模式的に示す図である。
FIG. 17 is a diagram schematically showing stored contents of a prepaid card used in a prepaid card system according to a second embodiment of the present invention.

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

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

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

【図21】図17のプリペイドカードシステムのエンコ
ード時における処理を説明するための図である。
FIG. 21 is a diagram for explaining processing at the time of encoding of the prepaid card system of FIG. 17;

【図22】図17のプリペイドカードシステムのプリペ
イドカード挿入時における処理を説明するための図であ
る。
FIG. 22 is a diagram for explaining processing when a prepaid card is inserted in the prepaid card system of FIG. 17;

【図23】図17のプリペイドカードシステムのプリペ
イドカードの消費時における処理を説明するための図で
ある。
FIG. 23 is a diagram for describing processing when the prepaid card is consumed in the prepaid card system of FIG. 17;

【図24】図17のプリペイドカードシステムのプリペ
イドカードの消費時における処理を説明するための図で
ある。
FIG. 24 is a diagram for explaining processing when the prepaid card is consumed in the prepaid card system of FIG. 17;

【図25】プリペイドカードの記憶形態の一例を模式的
に説明する図である。
FIG. 25 is a diagram schematically illustrating an example of a storage form of a prepaid card.

【図26】プリペイドカードの記憶形態の一例を模式的
に説明する図である。
FIG. 26 is a diagram schematically illustrating an example of a storage form of a prepaid card.

【図27】本発明の第3の実施の形態に係るプリペイド
カードシステムで使用されるプリペイドカードの記憶内
容を模式的に示す図である。
FIG. 27 is a diagram schematically showing stored contents of a prepaid card used in a prepaid card system according to a third embodiment of the present invention.

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

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

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

【図31】図27のプリペイドカードシステムのエンコ
ード時における処理を説明するための図である。
FIG. 31 is a diagram for explaining processing at the time of encoding of the prepaid card system of FIG. 27;

【図32】図27のプリペイドカードシステムのプリペ
イドカード挿入時における処理を説明するための図であ
る。
FIG. 32 is a view for explaining processing when a prepaid card is inserted in the prepaid card system of FIG. 27;

【図33】図27のプリペイドカードシステムの消費時
における処理を説明するための図である。
FIG. 33 is a view for explaining processing when the prepaid card system of FIG. 27 is consumed.

【図34】図27のプリペイドカードシステムの消費時
における処理を説明するための図である。
FIG. 34 is a diagram for describing processing when the prepaid card system of FIG. 27 is consumed.

【図35】プリペイドカードの記憶形態の一例を模式的
に説明する図である。
FIG. 35 is a diagram schematically illustrating an example of a storage form of a prepaid card.

【図36】プリペイドカードの記憶形態の一例を模式的
に説明する図である。
FIG. 36 is a diagram schematically illustrating an example of a storage form of a prepaid card.

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

1 読書装置 2 中継装置 3 記録装置 4 決済センタ 11 通信処理部 12 消費処理部 13 記憶部 14 リーダ/ライタ 15 チェック制御部 16 暗号処理部 17 光センサ 31 エンコード制御部 32 記憶部 33 リーダ/ライタ 34 光センサ 35 暗号処理部 36 チェック情報処理部 PC,PC1〜PC8 プリペイドカード D カード発行元 S 店舗 REFERENCE SIGNS LIST 1 reading device 2 relay device 3 recording device 4 settlement center 11 communication processing unit 12 consumption processing unit 13 storage unit 14 reader / writer 15 check control unit 16 encryption processing unit 17 optical sensor 31 encoding control unit 32 storage unit 33 reader / writer 34 Optical sensor 35 Encryption processing unit 36 Check information processing unit PC, PC1 to PC8 Prepaid card D Card issuer S Store

───────────────────────────────────────────────────── フロントページの続き Fターム(参考) 3E044 AA05 BA06 CA04 CC10 DA03 DA06 DC05 DD02 DE01 5B058 CA40 KA32 KA35 YA06 5D044 BC02 CC08 GK17  ──────────────────────────────────────────────────続 き Continued on the front page F term (reference) 3E044 AA05 BA06 CA04 CC10 DA03 DA06 DC05 DD02 DE01 5B058 CA40 KA32 KA35 YA06 5D044 BC02 CC08 GK17

Claims (16)

【特許請求の範囲】[Claims] 【請求項1】所定部位にバーコードが印刷され、金銭的
価値に対応する金額情報を含む可変情報を記憶する記憶
媒体からなるプリペイドカードを用いて金銭的決済を行
うプリペイドカードシステムにおいて、 プリペイドカード媒体の前記所定部位に印刷されたバー
コード部分の地色を含む階調分布を光学的に検出し、該
階調分布のばらつきに対応する検出信号に基づく特徴情
報を量子化し、該量子化情報を暗号鍵として、該プリペ
イドカード媒体の複数の記憶領域に前記可変情報を暗号
化して記録して前記プリペイドカードとして発行する記
録手段と、 前記プリペイドカードの前記所定部位におけるバーコー
ド部分の地色を含む階調分布を光学的に検出し、該階調
分布のばらつきに対応する検出信号に基づく特徴情報を
量子化し、該量子化情報を暗号鍵として、当該プリペイ
ドカードの前記複数の記憶領域に対する読出し/書込み
情報を復号/暗号化して、前記プリペイドカードの消費
金額に応じて前記複数の記憶領域を交互に用いて前記可
変情報の読出し/更新を行う読書手段と、 を備えることを特徴とするプリペイドカードシステム。
1. A prepaid card system in which a barcode is printed on a predetermined portion and a monetary settlement is performed using a prepaid card comprising a storage medium storing variable information including money amount information corresponding to a monetary value. Optically detecting a gradation distribution including a ground color of a bar code portion printed on the predetermined portion of the medium, quantizing feature information based on a detection signal corresponding to the variation of the gradation distribution, and Recording means for encrypting and recording the variable information in a plurality of storage areas of the prepaid card medium and issuing the prepaid card as an encryption key, and setting a ground color of a barcode portion in the predetermined portion of the prepaid card. Optically detects a gradation distribution including the gradation distribution, and quantizes feature information based on a detection signal corresponding to the variation of the gradation distribution. The information is used as an encryption key to decrypt / encrypt the read / write information for the plurality of storage areas of the prepaid card, and the variable information of the variable information is alternately used by using the plurality of storage areas in accordance with the consumption amount of the prepaid card. A prepaid card system, comprising: reading means for performing reading / updating.
【請求項2】前記記録手段は、前記プリペイドカード媒
体における前記バーコード部分の特徴情報を各記憶領域
毎に異なる量子化方式にて量子化した量子化情報を暗号
鍵として、予め記録すべき初期可変情報を暗号化して、
該プリペイドカード媒体の前記複数の記憶領域に記録す
る手段を含み、且つ前記読書手段は、前記特徴情報を、
各記憶領域毎に前記記録手段と共通の量子化方式により
量子化した量子化情報を、暗号化/復号のための暗号鍵
とする手段を含むことを特徴とする請求項1に記載のプ
リペイドカードシステム。
2. An apparatus according to claim 1, wherein said recording means includes an initial key to be pre-recorded, using, as an encryption key, quantization information obtained by quantizing characteristic information of said bar code portion in said prepaid card medium by a different quantization method for each storage area. Encrypt variable information,
Means for recording in the plurality of storage areas of the prepaid card medium, and wherein the reading means, the characteristic information,
2. The prepaid card according to claim 1, further comprising means for using, as a cryptographic key for encryption / decryption, quantization information quantized by a common quantization method with the recording means for each storage area. system.
【請求項3】前記読書手段は、前記バーコード部分の階
調分布の検出信号による特徴情報の量子化情報を暗号鍵
とする前記複数の記憶領域の前記可変情報の復号の可否
による不正検出を、前記プリペイドカードの装填時及び
前記可変情報の更新後に行う手段を含むことを特徴とす
る請求項1又は2に記載のプリペイドカードシステム。
3. The method according to claim 2, wherein the reading means performs an unauthorized detection based on whether or not the variable information in the plurality of storage areas can be decrypted using the quantization information of the characteristic information based on the detection signal of the gradation distribution of the bar code portion as an encryption key. 3. The prepaid card system according to claim 1, further comprising means for performing the loading of the prepaid card and after updating the variable information.
【請求項4】所定部位にバーコードが印刷された記憶媒
体からなるプリペイドカードの複数の記憶領域から金額
情報を含む可変情報を読み出し、且つ該複数の記憶領域
に、前記可変情報を更新書込みするリーダ/ライタ手段
と、 前記プリペイドカードの前記バーコード部分の地色を含
む階調分布を光学的に検出する光センサと、 前記光センサの検出信号に基づいて前記バーコード部分
の階調分布のばらつきに対応する特徴情報を量子化して
量子化情報を得て、該量子化情報を暗号鍵として用いて
暗号化/復号処理を行う暗号処理手段と、 前記リーダ/ライタ手段による前記プリペイドカードの
前記複数の記憶領域に対する読出し/書込み情報を、前
記暗号処理手段により復号/暗号化して、前記プリペイ
ドカードの消費金額に応じて前記複数の記憶領域を交互
に用いて前記可変情報の読出し/更新を行わせるチェッ
ク制御手段と、 前記プリペイドカードの消費金額に応じて、前記チェッ
ク制御手段を介して前記金額情報を更新させる消費処理
手段と、を備えることを特徴とする読書装置。
4. A variable information including money amount information is read from a plurality of storage areas of a prepaid card formed of a storage medium having a barcode printed on a predetermined portion, and the variable information is updated and written to the plurality of storage areas. Reader / writer means, an optical sensor that optically detects a gradation distribution including a ground color of the barcode portion of the prepaid card, and a gradation distribution of the barcode portion based on a detection signal of the optical sensor. Cryptographic processing means for quantizing characteristic information corresponding to the variation to obtain quantized information, and performing encryption / decryption processing using the quantized information as an encryption key; The read / write information for a plurality of storage areas is decrypted / encrypted by the encryption processing means, and the decryption / encryption is performed according to the consumption amount of the prepaid card. Check control means for reading / updating the variable information by alternately using the storage areas of the above, and consumption processing means for updating the money amount information via the check control means in accordance with the consumption amount of the prepaid card. A reading device.
【請求項5】前記プリペイドカードは、前記バーコード
部分の特徴情報を各記憶領域毎に異なる量子化方式にて
量子化した量子化情報を暗号鍵として、初期可変情報が
暗号化されて予め記憶され、且つ前記暗号処理手段は、
前記特徴情報を各記憶領域毎に前記初期可変情報と共通
の量子化方式により量子化した量子化情報を暗号鍵とし
て用いて、暗号化/復号処理を行う手段を含むことを特
徴とする請求項4に記載の読書装置。
5. The prepaid card is characterized in that initial variable information is encrypted and stored in advance by using, as an encryption key, quantization information obtained by quantizing the characteristic information of the bar code portion by a different quantization method for each storage area. And the cryptographic processing means comprises:
The image processing apparatus according to claim 1, further comprising means for performing an encryption / decryption process using, as an encryption key, quantization information obtained by quantizing the characteristic information with the initial variable information and a common quantization method for each storage area. 5. The reading device according to 4.
【請求項6】前記チェック制御手段は、前記暗号処理手
段による前記複数の記憶領域の前記可変情報の復号の可
否による不正検出を、前記プリペイドカードの装填時及
び前記可変情報の更新後に行う手段を含むことを特徴と
する請求項4又は5に記載の読書装置。
6. The means for performing the fraud detection based on whether or not the variable information in the plurality of storage areas can be decrypted by the encryption processing means when the prepaid card is loaded and after the variable information is updated. The reading device according to claim 4, wherein the reading device includes a reading device.
【請求項7】所定部位にバーコードが印刷され、金銭的
価値に対応する金額情報を含む可変情報を記憶する記憶
媒体からなるプリペイドカードを用いて金銭的決済を行
うプリペイドカードシステムにおいて、 プリペイドカード媒体の前記所定部位に印刷されたバー
コード部分の地色を含む階調分布を光学的に検出し、該
階調分布のばらつきに対応する検出信号に基づく特徴情
報を量子化し、該量子化情報を暗号鍵とし、該量子化情
報を前記可変情報に含めて、該プリペイドカード媒体の
複数の記憶領域に前記可変情報を暗号化して記録して前
記プリペイドカードとして発行する記録手段と、 前記プリペイドカードの前記所定部位に印刷されたバー
コード部分の地色を含む階調分布を光学的に検出し、該
階調分布のばらつきに対応する検出信号に基づく特徴情
報を量子化し、該量子化情報を暗号鍵とし、前記可変情
報に前記量子化情報を含めて、当該プリペイドカードの
複数の記憶領域に対する読出し/書込み情報を復号/暗
号化して、前記プリペイドカードの消費金額に応じて前
記複数の記憶領域を交互に用いて該可変情報の読出し/
更新を行う読書手段と、を備えることを特徴とするプリ
ペイドカードシステム。
7. A prepaid card system in which a barcode is printed on a predetermined portion and a monetary settlement is made using a prepaid card comprising a storage medium storing variable information including money amount information corresponding to a monetary value. Optically detecting a gradation distribution including a ground color of a bar code portion printed on the predetermined portion of the medium, quantizing feature information based on a detection signal corresponding to the variation of the gradation distribution, and Recording means for encrypting the variable information in a plurality of storage areas of the prepaid card medium, recording the variable information in a plurality of storage areas and issuing the prepaid card as a prepaid card; Optically detects the gradation distribution including the ground color of the bar code portion printed on the predetermined portion of the image, and detects a detection signal corresponding to the variation of the gradation distribution. The variable information includes the quantization information, and decrypts / encrypts the read / write information with respect to the plurality of storage areas of the prepaid card. The variable information is read / used by alternately using the plurality of storage areas in accordance with the amount of consumption of the prepaid card.
A prepaid card system comprising: a reading means for updating.
【請求項8】前記記録手段は、前記プリペイドカード媒
体における前記バーコード部分の特徴情報を各記憶領域
毎に異なる量子化方式にて量子化した量子化情報を暗号
鍵とし、他の記憶領域に対応する量子化情報を可変情報
に含めて、予め記録すべき初期可変情報を暗号化して、
該プリペイドカード媒体の前記複数の記憶領域に記録す
る手段を含み、且つ前記読書手段は、前記特徴情報を、
各記憶領域毎に前記記録手段と共通の量子化方式により
量子化した量子化情報を、暗号化/復号のための暗号鍵
とする手段を含むことを特徴とする請求項7に記載のプ
リペイドカードシステム。
8. The recording means according to claim 1, wherein said storage means stores, in another storage area, quantization information obtained by quantizing characteristic information of said bar code portion in said prepaid card medium by a different quantization method for each storage area. Include the corresponding quantization information in the variable information, encrypt the initial variable information to be recorded in advance,
Means for recording in the plurality of storage areas of the prepaid card medium, and wherein the reading means, the characteristic information,
8. The prepaid card according to claim 7, further comprising means for using, as the encryption key for encryption / decryption, quantization information quantized by a common quantization method with the recording means for each storage area. system.
【請求項9】前記読書手段は、前記バーコード部分の階
調分布の検出信号による特徴情報の量子化情報を暗号鍵
とする前記複数の記憶領域の前記可変情報の復号の可否
による不正検出を、前記プリペイドカードの装填時及び
前記可変情報の更新後に行う手段を含むことを特徴とす
る請求項7又は8に記載のプリペイドカードシステム。
9. The system according to claim 1, wherein said reading means performs fraud detection based on whether the variable information in said plurality of storage areas can be decrypted using quantization information of characteristic information based on a detection signal of a gradation distribution of said bar code portion as an encryption key. 9. The prepaid card system according to claim 7, further comprising means for performing the loading of the prepaid card and after updating the variable information.
【請求項10】前記読書手段は、前記バーコード部分の
階調分布の検出信号による特徴情報の量子化情報を暗号
鍵とする前記複数の記憶領域の前記可変情報の復号の可
否による不正検出時に、前記可変情報中の量子化情報を
前記特徴情報の実測により得た対応する量子化情報と比
較照合して不正検出を行う手段をさらに含むことを特徴
とする請求項7乃至9のうちのいずれか1項に記載のプ
リペイドカードシステム。
10. The method according to claim 1, wherein said reading means is adapted to detect a fraudulent detection based on whether or not said variable information in said plurality of storage areas can be decrypted by using quantization information of characteristic information by a detection signal of a gradation distribution of said bar code portion as an encryption key. 10. The apparatus according to claim 7, further comprising: means for comparing and matching the quantized information in the variable information with corresponding quantized information obtained by actually measuring the feature information to perform fraud detection. 2. The prepaid card system according to claim 1.
【請求項11】所定部位にバーコードが印刷され、金銭
的価値に対応する金額情報を含む可変情報を記憶する記
憶媒体からなるプリペイドカードを用いて金銭的決済を
行うプリペイドカードシステムにおいて、 プリペイドカード媒体の前記所定部位に印刷されたバー
コード部分の地色を含む階調分布を光学的に検出し、該
階調分布のばらつきに対応する検出信号に基づく特徴情
報を量子化し、該量子化情報を含めて、該プリペイドカ
ード媒体の複数の記憶領域の一部の複数の記憶領域に初
期可変情報を記録し、且つ前記量子化情報を暗号化して
前記複数の記憶領域の他の一部の記憶領域に記録して前
記プリペイドカードとして発行する記録手段と、 前記プリペイドカードの前記所定部位に印刷されたバー
コード部分の地色を含む階調分布を光学的に検出し、該
階調分布のばらつきに対応する検出信号に基づく特徴情
報を量子化し、該量子化情報を含めて、当該プリペイド
カードの前記一部の複数の記憶領域を交互に用いて、前
記プリペイドカードの消費金額に応じた可変情報の読出
し/更新を行うとともに、該更新の都度、前記量子化情
報を暗号化して前記他の一部の記憶領域に更新記憶させ
る読書手段と、を備えることを特徴とするプリペイドカ
ードシステム。
11. A prepaid card system in which a barcode is printed on a predetermined portion and a monetary settlement is made using a prepaid card comprising a storage medium storing variable information including money amount information corresponding to a monetary value. Optically detecting a gradation distribution including a ground color of a bar code portion printed on the predetermined portion of the medium, quantizing feature information based on a detection signal corresponding to the variation of the gradation distribution, and And storing the initial variable information in some of the plurality of storage areas of the prepaid card medium, and encrypting the quantized information to store another part of the plurality of storage areas. Recording means for recording in an area and issuing as a prepaid card; and a gradation distribution including a ground color of a barcode portion printed on the predetermined portion of the prepaid card. , And quantizes the feature information based on the detection signal corresponding to the variation of the gradation distribution, including the quantization information, and alternately using the plurality of storage areas of the part of the prepaid card. Reading means for reading / updating the variable information according to the consumption amount of the prepaid card, encrypting the quantization information and updating and storing it in the other partial storage area each time the update is performed, A prepaid card system comprising:
【請求項12】前記記録手段は、前記プリペイドカード
媒体における前記バーコード部分の特徴情報を各記憶領
域毎に異なる量子化方式にて量子化した量子化情報を含
む初期可変情報を、前記一部の複数の記憶領域に予め記
憶する手段を含み、且つ前記読書手段は、前記特徴情報
を各記憶領域毎に前記初期可変情報と共通の量子化方式
により量子化した量子化情報を、前記可変情報中の量子
化情報と照合するとともに、前記他の一部の記憶領域の
可変情報の復号の可否を判別することにより、不正を検
出する手段を含むことを特徴とする請求項11に記載の
プリペイドカードシステム。
12. The recording means according to claim 1, wherein said variable information includes initial variable information including quantization information obtained by quantizing characteristic information of said bar code portion on said prepaid card medium by a different quantization method for each storage area. Means for pre-storing the characteristic information in each of the plurality of storage areas, and the reading means, for each of the storage areas, quantization information obtained by quantizing the initial variable information and a common quantization method, into the variable information 12. The prepaid device according to claim 11, further comprising means for detecting fraud by collating with the quantized information therein and determining whether or not the variable information in the other part of the storage area can be decoded. Card system.
【請求項13】前記読書手段は、前記バーコード部分の
階調分布の検出信号による特徴情報の量子化情報と前記
一部の複数の記憶領域から読み出した前記可変情報にお
ける前記量子化情報との照合による不正検出を、前記プ
リペイドカードの装填時及び前記可変情報の更新後に行
う手段を含むことを特徴とする請求項11又は12に記
載のプリペイドカードシステム。
13. The reading means according to claim 1, further comprising: a quantized information of characteristic information based on a detection signal of a gradation distribution of said bar code portion and said quantized information in said variable information read from said plurality of storage areas. 13. The prepaid card system according to claim 11, further comprising means for performing fraud detection by collation at the time of loading the prepaid card and after updating the variable information.
【請求項14】前記読書手段は、前記プリペイドカード
の装填時及び前記可変情報の更新後に、前記バーコード
部分の階調分布の検出信号による特徴情報の量子化情報
を用いて、前記他の一部の記憶領域から読み出した前記
可変情報の復号の可否による不正検出を行う手段をさら
に含むことを特徴とする請求項11乃至13のうちのい
ずれか1項に記載のプリペイドカードシステム。
14. The reading means, when the prepaid card is loaded and after the variable information is updated, uses the quantization information of the characteristic information by the detection signal of the gradation distribution of the bar code portion, and uses the quantization information of the other one. 14. The prepaid card system according to claim 11, further comprising: means for performing fraud detection based on whether the variable information read from the storage area of the unit is decryptable.
【請求項15】所定部位にバーコードが印刷され、金銭
的価値に対応する金額情報を含む可変情報を記憶する記
憶媒体からなるプリペイドカードを用いて金銭的決済を
行うプリペイドカードシステムにおける可変情報更新方
法であって、 プリペイドカードの発行時において、該プリペイドカー
ド媒体の前記所定部位に印刷されたバーコード部分の地
色を含む階調分布を光学的に検出し、該階調分布のばら
つきに対応する検出信号に基づく特徴情報を量子化して
量子化情報を生成する生成ステップと、 前記生成ステップにより生成された前記量子化情報を暗
号鍵として、前記プリペイドカード媒体の複数の記憶領
域に前記可変情報を暗号化して記録して前記プリペイド
カードを発行する発行ステップと、 プリペイドカードの使用時において、該プリペイドカー
ドの前記所定部位におけるバーコード部分の地色を含む
階調分布を光学的に検出し、該階調分布のばらつきに対
応する検出信号に基づく特徴情報を量子化して量子化情
報を生成する量子化情報生成ステップと、 前記量子化情報生成ステップにより生成された前記量子
化情報を暗号鍵として、当該プリペイドカードの前記複
数の記憶領域に対する読出し/書込み情報を復号/暗号
化して、前記プリペイドカードの消費金額に応じて前記
複数の記憶領域を交互に用いて前記可変情報の読出し/
更新を行う読書ステップと、を備えることを特徴とする
可変情報更新方法。
15. A variable information update in a prepaid card system in which a barcode is printed on a predetermined portion and a monetary settlement is performed using a prepaid card comprising a storage medium for storing variable information including amount information corresponding to a monetary value. A method for optically detecting a gradation distribution including a ground color of a barcode portion printed on the predetermined portion of the prepaid card medium at the time of issuing the prepaid card, and coping with the variation of the gradation distribution. Generating the quantized information by quantizing the characteristic information based on the detection signal to be generated; and using the quantized information generated in the generating step as an encryption key, the variable information in a plurality of storage areas of the prepaid card medium. Issuance step of encrypting and recording and issuing the prepaid card, and at the time of using the prepaid card, A gradation distribution including a ground color of a bar code portion in the predetermined portion of the prepaid card is optically detected, and feature information based on a detection signal corresponding to the variation of the gradation distribution is quantized to generate quantization information. A quantization information generation step; and decrypting / encrypting read / write information for the plurality of storage areas of the prepaid card using the quantization information generated in the quantization information generation step as an encryption key, Reading / reading the variable information using the plurality of storage areas alternately in accordance with the consumption amount of
A variable information updating method, comprising: a reading step of performing updating.
【請求項16】所定部位にバーコードが印刷され、金銭
的価値に対応する金額情報を含む可変情報を記憶する記
憶媒体からなるプリペイドカードを用いて金銭的決済を
行うプリペイドカードシステムにおける可変情報更新方
法であって、 プリペイドカードの発行時において、該プリペイドカー
ド媒体の前記所定部位に印刷されたバーコード部分の地
色を含む階調分布を光学的に検出し、該階調分布のばら
つきに対応する検出信号に基づく特徴情報を量子化して
量子化情報を生成する生成ステップと、 前記生成ステップにより生成された前記量子化情報を前
記可変情報に含めて、該量子化情報を暗号鍵として、前
記可変情報を該プリペイドカード媒体の複数の記憶領域
に暗号化して記録して、前記プリペイドカードを発行す
る発行ステップと、 プリペイドカードの使用時において、該プリペイドカー
ドの前記所定部位に印刷されたバーコード部分の地色を
含む階調分布を光学的に検出し、該階調分布のばらつき
に対応する検出信号に基づく特徴情報を量子化して量子
化情報を生成する量子化情報生成ステップと、 前記量子化情報生成ステップにより生成された前記量子
化情報を前記可変情報に含めて、当該プリペイドカード
の複数の記憶領域に対する読出し/書込み情報を、前記
量子化情報を暗号鍵として復号/暗号化して、前記プリ
ペイドカードの消費金額に応じて前記複数の記憶領域を
交互に用いて該可変情報の読出し/更新を行う読書ステ
ップと、を備えることを特徴とする可変情報更新方法。
16. A variable information update in a prepaid card system in which a barcode is printed on a predetermined portion and a monetary settlement is performed using a prepaid card comprising a storage medium storing variable information including money amount information corresponding to a monetary value. A method for optically detecting a gradation distribution including a ground color of a barcode portion printed on the predetermined portion of the prepaid card medium at the time of issuing the prepaid card, and coping with the variation of the gradation distribution. Generating the quantization information by quantizing the characteristic information based on the detection signal to be generated, including the quantization information generated by the generation step in the variable information, and using the quantization information as an encryption key, An issuing step of encrypting and recording the variable information in a plurality of storage areas of the prepaid card medium, and issuing the prepaid card; When the prepaid card is used, a gradation distribution including a ground color of a barcode portion printed on the predetermined portion of the prepaid card is optically detected, and a characteristic based on a detection signal corresponding to the variation of the gradation distribution is used. A quantization information generation step of quantizing information to generate quantization information; and reading the plurality of storage areas of the prepaid card by including the quantization information generated by the quantization information generation step in the variable information. A reading / writing step of decrypting / encrypting / writing information using the quantization information as an encryption key, and reading / updating the variable information using the plurality of storage areas alternately in accordance with the amount of consumption of the prepaid card; And a variable information updating method comprising:
JP06578099A 1999-03-12 1999-03-12 Prepaid card system, reading device and variable information updating method Expired - Lifetime JP3483792B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP06578099A JP3483792B2 (en) 1999-03-12 1999-03-12 Prepaid card system, reading device and variable information updating method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP06578099A JP3483792B2 (en) 1999-03-12 1999-03-12 Prepaid card system, reading device and variable information updating method

Publications (2)

Publication Number Publication Date
JP2000259920A true JP2000259920A (en) 2000-09-22
JP3483792B2 JP3483792B2 (en) 2004-01-06

Family

ID=13296906

Family Applications (1)

Application Number Title Priority Date Filing Date
JP06578099A Expired - Lifetime JP3483792B2 (en) 1999-03-12 1999-03-12 Prepaid card system, reading device and variable information updating method

Country Status (1)

Country Link
JP (1) JP3483792B2 (en)

Also Published As

Publication number Publication date
JP3483792B2 (en) 2004-01-06

Similar Documents

Publication Publication Date Title
JP3483792B2 (en) Prepaid card system, reading device and variable information updating method
JPH11328334A (en) Prepaid card system and reader writer
JP3467205B2 (en) Prepaid card system, reading device and variable information updating method
JP3486746B2 (en) Prepaid card system, reading device and card identification method
JP3490921B2 (en) Prepaid card system, relay device and reading device
JP2000268308A (en) Prepaid card system, reading and writing apparatus, and method for identifying card
JP3472179B2 (en) Prepaid card system, reading device and usage permission method
JPH11328333A (en) Prepaid card system and reader writer
JPH11328505A (en) Prepaid card system and reader/writer
JP2000259922A (en) Prepaid card system, reading and writing device and variable information updating method
JP3410381B2 (en) Prepaid card system, reading device and variable information updating method
KR100436234B1 (en) The prevention method of program's illegal reproduction and the apparatus for thereof
JPH11102468A (en) Prepaid card system, card reader and card unauthorized use preventing method
JPH11328503A (en) Prepaid card system, recorder, reader/writer, ticket issuing machine and illegal card use prevention method
JP2000259909A (en) Prepaid card system, recording device, reading device and card discriminating method
JP3572214B2 (en) Prepaid card system, initial recording device and settlement device
JP3376309B2 (en) Prepaid card system, reading device, recording device, and variable information updating method
JP2000030126A (en) Prepaid card system, reader, writer and illegal card use preventing method
JP2000030124A (en) Prepaid card system, reader and password transaction method
JP3301988B2 (en) Prepaid card system, reading device and variable information updating method
JP2000030125A (en) Prepaid card system, reader, writer and illegal card use preventing method
JP2000030130A (en) Prepaid card system, reader and illegal card use preventing method
JP2000242841A (en) Prepaid card system and method for permitting use
JP2000259908A (en) Prepaid card system, reading device and variable information updating method
JP2000259916A (en) Prepaid card system, reading and writing device and variable information updating method

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20071017

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081017

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091017

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101017

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111017

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121017

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20131017

Year of fee payment: 10

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

EXPY Cancellation because of completion of term