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

Prepaid card system, reading device and variable information updating method

Info

Publication number
JP3483792B2
JP3483792B2 JP06578099A JP6578099A JP3483792B2 JP 3483792 B2 JP3483792 B2 JP 3483792B2 JP 06578099 A JP06578099 A JP 06578099A JP 6578099 A JP6578099 A JP 6578099A JP 3483792 B2 JP3483792 B2 JP 3483792B2
Authority
JP
Japan
Prior art keywords
information
prepaid card
quantized
variable information
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.)
Expired - Lifetime
Application number
JP06578099A
Other languages
Japanese (ja)
Other versions
JP2000259920A (en
Inventor
秀男 高島
隆之 鎌田
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 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)

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 according to the amount of money consumed, and more particularly to a prepaid card system, a reading device 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 monetary amount information is used for payment of a loan for a game medium or the like. The prepaid card system includes, for example, a recording device installed in the card issuer, a ticket issuing machine installed in each store, a reading device, and the like. The recording device records (encodes) fixed information such as a card ID and a face amount, and variable information such as a balance on each prepaid card. The prepaid card in which the variable information and the fixed information are recorded is sold, for example, by the card issuer to each store.

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

【0004】[0004]

【発明が解決しようとする課題】しかし、上記のような
システムでは、例えば、プリペイドカードの可変情報を
他のカードにコピーする等して不正カードが偽造される
可能性がある。例えば、読書装置は、挿入されたカード
について種々のチェックを行い、それらのチェック結果
が適正である場合に、可変情報の記録更新を行うが、チ
ェックが適正に完了した後で、可変情報を記録更新する
前に、処理対象のカードを他のカード(例えば、残高情
報等の可変情報が記録されていないカード)にすり替え
られると、すり替えられた他のカードに、可変情報が記
録されてしまう。これにより、例えば残高の多いカード
を挿入し、挿入時のチェックが完了した後、可変情報が
記憶されていないカードにすり替えて、残高の高いカー
ドのデータを記録させることにより、カードの偽造がな
される虞がある。
However, in the system as described above, there is a possibility that a fraudulent card is forged by, for example, copying the variable information of the 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 check results are proper, 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 in which variable information such as balance information is not recorded) before the update, the variable information will be recorded in the other replaced card. As a result, for example, a card with a large balance is inserted, and after the check at the time of insertion is completed, it is replaced with a card that does not store variable information and the data of the card with a high balance is recorded, so that the card is forged. May occur.

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

【0006】[0006]

【課題を解決するための手段】上記目的を達成するた
め、本発明の第1の観点に係るプリペイドカードシステ
ムは、所定部位にバーコードが印刷され、金銭的価値に
対応する金額情報を含む可変情報を記憶する記憶媒体か
らなるプリペイドカードを用いて金銭的決済を行うプリ
ペイドカードシステムにおいて、プリペイドカード媒体
の前記所定部位に印刷されたバーコード部分の地色を含
む階調分布を光学的に検出し、該階調分布のばらつきに
対応する検出信号に基づく特徴情報を量子化し、該量子
化情報を暗号鍵として、該プリペイドカード媒体の二箇
の記憶領域に前記可変情報を暗号化して記録して前記
プリペイドカードとして発行する記録手段と、前記プリ
ペイドカードの前記所定部位におけるバーコード部分の
地色を含む階調分布を光学的に検出し、該階調分布のば
らつきに対応する検出信号に基づく特徴情報を量子化
し、該量子化情報を暗号鍵として、当該プリペイドカー
ドの前記二箇所の記憶領域からの読出し情報を復号する
手段と、前記二箇所の記憶領域の一方について、復号さ
れた可変情報を前記プリペイドカードの消費金額に応じ
更新し、更新された可変情報を前記暗号鍵で暗号化し
て他方の記憶領域に記録する処理を、前記二箇所の記憶
領域について交互に行う手段と、を備える読書手段と、
を備える。
In order to achieve the above object, in a prepaid card system according to a first aspect of the present invention, a bar code is printed on a predetermined portion, and a variable amount information including a monetary value corresponding to a monetary value is included. In a prepaid card system for making a financial settlement using a prepaid card composed of a storage medium for storing information, a gradation distribution including a background color of a bar code portion printed on the predetermined portion of the prepaid card medium is optically detected. and quantizes the feature information based on the detection signal corresponding to the variation of the gray scale distribution, the quantization information as an encryption key, Nica of the prepaid card medium
A recording means for issuing as the prepaid card and recorded by encrypting the variable information in the storage area of the place, the tone distribution optically detecting including the background color of the bar code portion in the predetermined portion of the prepaid card quantizes the feature information based on the detection signal corresponding to the variation of the gray scale distribution, the quantization information as an encryption key, decrypts the read information from the storage area of the two portions of the prepaid card
Means and one of the two storage areas is decrypted.
The updated variable information according to the amount of consumption of the prepaid card, and the updated variable information is encrypted with the encryption key.
And a recording means that alternately performs the process of recording in the other storage area with respect to the two storage areas,
Equipped with.

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

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

【0009】前記読書手段は、前記バーコード部分の階
調分布の検出信号による特徴情報の量子化情報を暗号鍵
とする前記二箇所の記憶領域の前記可変情報の復号の可
否による不正検出を、前記プリペイドカードの装填時及
び前記可変情報の更新後に行う手段を含んでいてもよ
い。
The reading means performs fraudulent detection based on whether or not the variable information can be decrypted in the two storage areas using the quantized information of the characteristic information by 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] Reading device according to a second aspect of the present invention, the storage area of the two portions of the prepaid card comprising a storage medium on which a barcode is printed on a predetermined portion, the reading and writing of the variable information including the amount information Reader / writer means for performing, an optical sensor for optically detecting a gradation distribution including the background color of the bar code part of the prepaid card, and a gradation distribution of the bar code part based on a detection signal of the optical sensor. obtaining quantization information characteristic information corresponding to the variation in the quantization, and encryption processing means for performing encryption and decryption processing using the quantization information as an encryption key, the said prepaid card by the reader-writer means two Means for decrypting the read information from the storage area of the location by the encryption processing means and one of the storage areas of the two locations.
Then, the decrypted variable information is updated according to the consumption amount of the prepaid card, and the updated variable information is encrypted.
It is encrypted by the processing means and is read by the reader / writer means.
Ri processing for the other stored in the storage area, and a control unit intends row alternately for the storage area of the two places.

【0011】このような構成によれば、読書装置は、プ
リペイドカードの媒体毎に固有のバーコード印刷部位の
階調分布のばらつきに対応する特徴情報に基づく量子化
情報を暗号鍵として用い、可変情報の更新の都度、二箇
の記憶領域に暗号化して交互に書き込み且つ二箇所
記憶領域の可変情報を復号してその可否をチェックする
ことにより、他のプリペイドカードの可変情報の複写に
よる不正を的確に検出することができる。したがって、
媒体の変造又は偽造によるプリペイドカードの不正使用
を未然に排除することができる。
According to such a configuration, the reading device uses the quantized information based on the characteristic information corresponding to the variation in the gradation distribution of the bar code printed portion peculiar to each medium of the prepaid card as the encryption key, and the variable. Two times each time information is updated
By checking its propriety by decoding the variable information of the storage area of alternately writing and two positions is encrypted in the storage area of the place, that accurately detecting fraudulent by the copying of variable information other prepaid cards it can. Therefore,
Unauthorized use of the prepaid card due to alteration or forgery of the medium can be eliminated in advance.

【0012】前記プリペイドカードは、前記バーコード
部分の特徴情報を各記憶領域毎に異なる量子化方式にて
量子化した量子化情報を暗号鍵として、初期可変情報が
暗号化されて予め記憶され、且つ前記暗号処理手段は、
前記特徴情報を各記憶領域毎に前記初期可変情報と共通
の量子化方式により量子化した量子化情報を暗号鍵とし
て用いて、暗号化及び復号処理を行う手段を含んでいて
もよい。
In the prepaid card, the initial variable information is encrypted and stored in advance by using the quantized 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 is
A unit for performing encryption and decryption processing may be included by using, as an encryption key, the quantized information obtained by quantizing the feature information in each storage area by the same quantization method as the initial variable information.

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

【0014】本発明の第3の観点に係るプリペイドカー
ドシステムは、所定部位にバーコードが印刷され、金銭
的価値に対応する金額情報を含む可変情報を記憶する記
憶媒体からなるプリペイドカードを用いて金銭的決済を
行うプリペイドカードシステムにおいて、プリペイドカ
ード媒体の前記所定部位に印刷されたバーコード部分の
地色を含む階調分布を光学的に検出し、該階調分布のば
らつきに対応する検出信号に基づく特徴情報を量子化
し、該量子化情報を暗号鍵とし、該量子化情報を前記可
変情報に含めて、該プリペイドカード媒体の二箇所の記
憶領域に前記可変情報を暗号化して記録して前記プリペ
イドカードとして発行する記録手段と、前記プリペイド
カードの前記所定部位に印刷されたバーコード部分の地
色を含む階調分布を光学的に検出し、該階調分布のばら
つきに対応する検出信号に基づく特徴情報を量子化し、
該量子化情報を暗号鍵とし、前記二箇所の記憶領域から
の読出し情報を復号する手段と、前記二箇所の記憶領域
の一方について、復号された可変情報を前記プリペイド
カードの消費金額に応じて更新し、更新された可変情報
に前記量子化情報を含め、前記暗号鍵で暗号化して他方
の記憶領域に記録する処理を、前記二箇所の記憶領域
ついて交互に行う手段と、を備える読書手段と、を備え
る。
A prepaid card system according to a third aspect of the present invention uses a prepaid card including a storage medium in which a bar code is printed on a predetermined portion and variable information including money amount information corresponding to a monetary value is stored. In a prepaid card system for financial settlement, a gradation distribution including a ground color of a bar code portion printed on the predetermined portion of a prepaid card medium is optically detected, and a detection signal corresponding to the dispersion of the gradation distribution. Quantize the feature information based on the above, use the quantized information as an encryption key, include the quantized information in the variable information, and encrypt and record the variable information in two storage areas of the prepaid card medium. Recording means for issuing as the prepaid card, and a gradation distribution including the background color of the bar code portion printed on the predetermined portion of the prepaid card. Histological detect quantizes the feature information based on the detection signal corresponding to the variation in the grayscale distribution,
Using the quantized information as an encryption key, the two storage areas
Means for decoding the read information of the above, and the two storage areas
For one of the two, the decoded variable information is
Update according to the amount of money consumed by the card, include the quantized information in the updated variable information , encrypt with the encryption key, and
The process of recording in the storage area, the storage area of the two portions
And a reading means and means for performing alternately with.

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

【0016】前記記録手段は、前記プリペイドカード媒
体における前記バーコード部分の特徴情報を各記憶領域
毎に異なる量子化方式にて量子化した量子化情報を暗号
鍵とし、他の記憶領域に対応する量子化情報を可変情報
に含めて、予め記録すべき初期可変情報を暗号化して、
該プリペイドカード媒体の前記二箇所の記憶領域に記録
する手段を含み、且つ前記読書手段は、前記特徴情報
を、各記憶領域毎に前記記録手段と共通の量子化方式に
より量子化した量子化情報を、暗号化及び復号のための
暗号鍵とする手段を含んでいてもよい。
The recording means uses the quantized 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 as an encryption key and corresponds to other storage areas. Includes quantization information in variable information, encrypts initial variable information to be recorded in advance,
Quantized information including means for recording in the two storage areas of the prepaid card medium, and the reading means quantized the characteristic information for each storage area by a quantization method common to the recording means. May be a cryptographic key for encryption and decryption.

【0017】前記読書手段は、前記バーコード部分の階
調分布の検出信号による特徴情報の量子化情報を暗号鍵
とする前記二箇所の記憶領域の前記可変情報の復号の可
否による不正検出を、前記プリペイドカードの装填時及
び前記可変情報の更新後に行う手段を含んでいてもよ
い。
The reading means performs fraudulent detection based on whether or not the variable information can be decrypted in the two storage areas using the quantized information of the characteristic information by 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 detect fraud by detecting whether or not the variable information can be decrypted in the two storage areas using the quantized information of the characteristic information by the detection signal of the gradation distribution of the bar code portion as an encryption key. It may further include a unit for performing fraud detection by comparing and comparing the quantized information in the variable information with corresponding quantized information obtained by actually measuring the characteristic information.

【0019】本発明の第4の観点に係るプリペイドカー
ドシステムは、所定部位にバーコードが印刷され、金銭
的価値に対応する金額情報を含む可変情報を記憶する記
憶媒体からなるプリペイドカードを用いて金銭的決済を
行うプリペイドカードシステムにおいて、プリペイドカ
ード媒体の前記所定部位に印刷されたバーコード部分の
地色を含む階調分布を光学的に検出し、該階調分布のば
らつきに対応する検出信号に基づく特徴情報を量子化
し、該量子化情報を含めて、該プリペイドカード媒体の
複数の記憶領域のうちの二箇所の記憶領域に初期可変情
報を記録し、且つ前記量子化情報を暗号化して前記複数
の記憶領域の他の記憶領域に記録して前記プリペイドカ
ードとして発行する記録手段と、前記プリペイドカード
の前記所定部位に印刷されたバーコード部分の地色を含
む階調分布を光学的に検出し、該階調分布のばらつきに
対応する検出信号に基づく特徴情報を量子化して量子化
情報を取得し、前記二箇所の記憶領域を読み取る手段
と、前記二箇所の記憶領域の一方について、読み取られ
た可変情報を前記プリペイドカードの消費金額に応じて
更新し、更新された可変情報に前記量子化情報を含め
て、他方の記憶領域に記憶する処理を、前記二箇所の記
憶領域について交互に行うとともに、前記可変情報の
新の都度、前記量子化情報を暗号化して前記他の記憶領
域に更新記憶させる手段と、を備える読書手段と、を備
える。
A prepaid card system according to a fourth aspect of the present invention uses a prepaid card including a storage medium in which a bar code is printed on a predetermined portion and variable information including money amount information corresponding to a monetary value is stored. In a prepaid card system for financial settlement, a gradation distribution including a ground color of a bar code portion printed on the predetermined portion of a prepaid card medium is optically detected, and a detection signal corresponding to the dispersion of the gradation distribution. Quantize the feature information based on the above, and include the quantized information, the initial variable information is recorded in two storage areas of the plurality of storage areas of the prepaid card medium, and the quantized information is encrypted. Recording means for recording in another storage area of the plurality of storage areas and issuing it as the prepaid card, and a marking part on the predetermined part of the prepaid card. Has been the tone distribution including the background color of the bar code portion optically detects quantization quantizes the feature information based on the detection signal corresponding to the variation of the gradation distribution
Means for acquiring information and reading the two storage areas
And one of the two storage areas is read
Variable information according to the amount of consumption of the prepaid card
The processing of updating and including the quantized information in the updated variable information and storing the updated variable information in the other storage area is described in the above two locations.
It carries out alternately for憶領region, wherein the variable information each further <br/> Xin of, and a reading means and means for updating stored in the other storage area to encrypt the quantization information.

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

【0021】前記記録手段は、前記プリペイドカード媒
体における前記バーコード部分の特徴情報を各記憶領域
毎に異なる量子化方式にて量子化した量子化情報を含む
初期可変情報を、前記二箇所の記憶領域に予め記憶する
手段を含み、且つ前記読書手段は、前記特徴情報を各記
憶領域毎に前記初期可変情報と共通の量子化方式により
量子化した量子化情報を、前記可変情報中の量子化情報
と照合するとともに、前記可変情報の復号の可否を判別
することにより、不正を検出する手段を含んでいてもよ
い。
The recording means stores the initial variable information including the quantized 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 at the two locations. The reading means includes means for pre-storing in a region, and the reading device quantizes the quantized information in the variable information, the quantized information being quantized by the quantization method common to the initial variable information for each storage region. It may include means for detecting fraud by collating the information and determining whether or not the variable information can be decrypted.

【0022】前記読書手段は、前記バーコード部分の階
調分布の検出信号による特徴情報の量子化情報と前記
箇所の記憶領域から読み出した前記可変情報における前
記量子化情報との照合による不正検出を、前記プリペイ
ドカードの装填時及び前記可変情報の更新後に行う手段
を含んでいてもよい。
The reading means stores the quantization information of the characteristic information based on the detection signal of the gradation distribution of the bar code portion and the two pieces of information.
It may include means for performing fraud detection by collating with the quantized information in the variable information read out from the storage area at a place, when the prepaid card is loaded and after the variable information is updated.

【0023】前記読書手段は、前記プリペイドカードの
装填時及び前記可変情報の更新後に、前記バーコード部
分の階調分布の検出信号による特徴情報の量子化情報を
用いて、前記他の記憶領域から読み出した前記量子化情
の復号の可否による不正検出を行う手段をさらに含ん
でいてもよい。
The reading means uses the quantized 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, from the other storage area. The read quantization information
It may further include means for performing fraud detection based on whether or not the information can be decrypted.

【0024】本発明の第5の観点に係るプリペイドカー
ドシステムは、所定部位にバーコードが印刷され、金銭
的価値に対応する金額情報を含む可変情報を記憶する記
憶媒体からなるプリペイドカードを用いて金銭的決済を
行うプリペイドカードシステムにおいて、プリペイドカ
ード媒体の前記所定部位に印刷されたバーコード部分の
地色を含む階調分布を光学的に検出し、該階調分布のば
らつきに対応する検出信号に基づく特徴情報を量子化
し、該量子化情報を暗号鍵として、該プリペイドカード
媒体の複数の記憶領域に前記可変情報を暗号化して記録
して前記プリペイドカードとして発行する記録手段と、
前記プリペイドカードの前記所定部位におけるバーコー
ド部分の地色を含む階調分布を光学的に検出し、該階調
分布のばらつきに対応する検出信号に基づく特徴情報を
量子化し、該量子化情報を暗号鍵として、当該プリペイ
ドカードの前記複数の記憶領域からの読出し情報を復号
する手段と、前記複数の記憶領域の一つから読み出して
復号した可変情報を前記プリペイドカードの消費金額に
応じて更新し、更新された可変情報を前記暗号鍵で暗号
化して他の記憶領域に記録する手段と、を備える読書手
段と、を備える。本発明の第6の観点に係るプリペイド
カードシステムは、所定部位にバーコードが印刷され、
金銭的価値に対応する金額情報を含む可変情報を記憶す
る記憶媒体からなるプリペイドカードを用いて金銭的決
済を行うプリペイドカードシステムにおいて、プリペイ
ドカード媒体の前記所定部位に印刷されたバーコード部
分の地色を含む階調分布を光学的に検出し、該階調分布
のばらつきに対応する検出信号に基づく特徴情報を量子
化し、該量子化情報を暗号鍵とし、該量子化情報を前記
可変情報に含めて、該プリペイドカード媒体の複数の記
憶領域に前記可変情報を暗号化して記録して前記プリペ
イドカードとして発行する記録手段と、前記プリペイド
カードの前記所定部位に印刷されたバーコード部分の地
色を含む階調分布を光学的に検出し、該階調分布のばら
つきに対応する検出信号に基づ く特徴情報を量子化し、
該量子化情報を暗号鍵とし、前記複数の記憶領域からの
読出し情報を復号する手段と、前記複数の記憶領域の一
つから読み出して復号した可変情報を前記プリペイドカ
ードの消費金額に応じて更新し、更新された可変情報に
前記量子化情報を含め、前記暗号鍵で暗号化して他の記
憶領域に記録する手段と、を備える読書手段と、を備え
る。本発明の第7の観点に係るプリペイドカードシステ
ムは、所定部位にバーコードが印刷され、金銭的価値に
対応する金額情報を含む可変情報を記憶する記憶媒体か
らなるプリペイドカードを用いて金銭的決済を行うプリ
ペイドカードシステムにおいて、プリペイドカード媒体
の前記所定部位に印刷されたバーコード部分の地色を含
む階調分布を光学的に検出し、該階調分布のばらつきに
対応する検出信号に基づく特徴情報を量子化し、該量子
化情報を含めて、該プリペイドカード媒体の複数の記憶
領域に初期可変情報を記録し、且つ前記量子化情報を暗
号化して他の所定の記憶領域に記録して前記プリペイド
カードとして発行する記録手段と、前記プリペイドカー
ドの前記所定部位に印刷されたバーコード部分の地色を
含む階調分布を光学的に検出し、該階調分布のばらつき
に対応する検出信号に基づく特徴情報を量子化して量子
化情報を取得し、前記複数の記憶領域を読み取る手段
と、前記複数の記憶領域の一つから読み取られた可変情
報を前記プリペイドカードの消費金額に応じて更新し、
更新された可変情報に前記量子化情報を含めて、前記複
数の記憶領域における他の記憶領域に記憶し、前記可変
情報の更新の都度、前記量子化情報を暗号化して前記他
の所定の記憶領域に更新記憶させる手段と、を備える読
書手段と、を備える。本発明の第の観点に係る可変情
報更新方法は、所定部位にバーコードが印刷され、金銭
的価値に対応する金額情報を含む可変情報を記憶する記
憶媒体からなるプリペイドカードを用いて金銭的決済を
行うプリペイドカードシステムにおける可変情報更新方
法であって、プリペイドカードの発行時において、該プ
リペイドカード媒体の前記所定部位に印刷されたバーコ
ード部分の地色を含む階調分布を光学的に検出し、該階
調分布のばらつきに対応する検出信号に基づく特徴情報
を量子化して量子化情報を生成する生成ステップと、前
記生成ステップにより生成された前記量子化情報を暗号
鍵として、前記プリペイドカード媒体の二箇所の記憶領
域に前記可変情報を暗号化して記録して前記プリペイド
カードを発行する発行ステップと、プリペイドカードの
使用時において、該プリペイドカードの前記所定部位に
おけるバーコード部分の地色を含む階調分布を光学的に
検出し、該階調分布のばらつきに対応する検出信号に基
づく特徴情報を量子化して量子化情報を生成する量子化
情報生成ステップと、前記量子化情報生成ステップによ
り生成された前記量子化情報を暗号鍵として、当該プリ
ペイドカードの前記二箇所の記憶領域からの読出し情報
を復号するステップと前記二箇所の記憶領域のうちの
一方について、復号された可変情報を前記プリペイドカ
ードの消費金額に応じて更新し、更新された可変情報を
前記暗号鍵で暗号化して他方の記憶領域に記録する処理
を、前記二箇所の記憶領域について交互に行うステップ
と、を備える。
A prepaid car according to a fifth aspect of the present invention
The bar code is printed on the specified area of the
To store variable information including monetary amount information corresponding to the intellectual value
Make a financial payment using a prepaid card consisting of a storage medium
The prepaid card system
Of the bar code part printed on the predetermined part of the card medium.
The gradation distribution including the background color is optically detected and the gradation distribution is detected.
Quantize feature information based on detection signal corresponding to wobble
The prepaid card using the quantized information as an encryption key.
The variable information is encrypted and recorded in a plurality of storage areas of the medium.
And recording means for issuing as the prepaid card,
Bar code at the predetermined portion of the prepaid card
The gradation distribution including the background color of the
Feature information based on the detection signal corresponding to the variation in distribution
Quantize and use the quantized information as an encryption key to
Decoding information read from the storage areas of the card
Means for reading and reading from one of the plurality of storage areas
The decrypted variable information is used as the consumption amount of the prepaid card.
The encrypted variable information is encrypted with the encryption key.
And a means for recording in another storage area
And a step. Prepaid according to a sixth aspect of the present invention
The card system has a bar code printed on a specified area,
Store variable information including monetary amount information corresponding to monetary value
Monetary decision using a prepaid card consisting of a storage medium
In the prepaid card system that performs payment,
Barcode part printed on the predetermined part of the card medium
The gradation distribution including the background color is detected optically, and the gradation distribution is detected.
Feature information based on the detection signal corresponding to the variation of
The quantized information as an encryption key, and the quantized information is
Included in the variable information are multiple entries of the prepaid card medium.
The variable information is encrypted and recorded in a storage area, and
Recording means issued as an id card, and the prepaid
The area of the bar code printed on the specified area of the card
The gradation distribution including colors is optically detected and the gradation distribution is
The based rather feature information detection signal corresponding to the per quantized,
Using the quantization information as an encryption key,
A means for decoding the read information and one of the plurality of storage areas.
The variable information read from one of the
Updated according to the consumption amount of the card, and the updated variable information
Including the quantized information, it is encrypted with the encryption key and other information is recorded.
A reading means having a recording means in the memory area;
It A prepaid card system according to a seventh aspect of the present invention
A bar code is printed on a specified part of the
Is it a storage medium that stores variable information including corresponding amount information?
A prepaid card that uses a prepaid card
Prepaid card medium in the pay card system
Including the background color of the bar code part printed on the predetermined part of
The gradation distribution is optically detected, and variations in the gradation distribution are detected.
Quantize the feature information based on the corresponding detection signal,
Storage of the prepaid card medium, including activation information
Initial variable information is recorded in the area, and the quantization information is hidden.
It is encoded and recorded in another predetermined storage area, and the prepaid
Recording means issued as a card, and the prepaid car
The background color of the bar code printed on the specified area of the
Variation of the gradation distribution is detected by optically detecting the included gradation distribution.
Quantize the feature information based on the detection signal corresponding to
Means for acquiring activation information and reading the plurality of storage areas
And variable information read from one of the plurality of storage areas.
Update the information according to the amount of consumption of the prepaid card,
By including the quantization information in the updated variable information,
The number of storage areas to other storage areas, the variable
Each time the information is updated, the quantized information is encrypted and
Means for updating and storing in a predetermined storage area of
And a writing means. A variable information updating method according to an eighth aspect of the present invention uses a prepaid card which is a storage medium in which a barcode is printed on a predetermined portion and which stores variable information including amount information corresponding to a financial value. A method for updating variable information in a prepaid card system for payment, comprising optically detecting a gradation distribution including a background color of a bar code portion printed on the predetermined portion of the prepaid card medium when the prepaid card is issued. Then, a generating step of quantizing the characteristic information based on the detection signal corresponding to the variation of the gradation distribution to generate the quantized information, and the prepaid card using the quantized information generated by the generating step as an encryption key. an issuing step of issuing the prepaid card the variable information in the storage area of the two portions of the media and recorded encrypted, pre When using the id card, the gradation distribution including the background color of the bar code portion in the predetermined portion of the prepaid card is optically detected, and the characteristic information based on the detection signal corresponding to the dispersion of the gradation distribution is quantized. decoding quantization information generating step of generating quantization information, the quantization information generated by the quantization information generating step as the encryption key, reading information from the storage area of the two portions of the prepaid card Te Of the steps and the two storage areas
For one, the decrypted variable information is updated according to the consumption amount of the prepaid card, and the updated variable information is updated.
Processing for encrypting with the encryption key and recording in the other storage area
And comprises the steps are executed alternately for the storage area of the two places.

【0025】本発明の第の観点に係る可変情報更新方
法は、所定部位にバーコードが印刷され、金銭的価値に
対応する金額情報を含む可変情報を記憶する記憶媒体か
らなるプリペイドカードを用いて金銭的決済を行うプリ
ペイドカードシステムにおける可変情報更新方法であっ
て、プリペイドカードの発行時において、該プリペイド
カード媒体の前記所定部位に印刷されたバーコード部分
の地色を含む階調分布を光学的に検出し、該階調分布の
ばらつきに対応する検出信号に基づく特徴情報を量子化
して量子化情報を生成する生成ステップと、前記生成ス
テップにより生成された前記量子化情報を前記可変情報
に含めて、該量子化情報を暗号鍵として、前記可変情報
を該プリペイドカード媒体の二箇所の記憶領域に暗号化
して記録して、前記プリペイドカードを発行する発行ス
テップと、プリペイドカードの使用時において、該プリ
ペイドカードの前記所定部位に印刷されたバーコード部
分の地色を含む階調分布を光学的に検出し、該階調分布
のばらつきに対応する検出信号に基づく特徴情報を量子
化して量子化情報を生成する量子化情報生成ステップ
と、前記量子化情報生成ステップにより生成された前記
量子化情報を暗号鍵として、前記二箇所の記憶領域から
の読出し情報を復号するステップと、 前記二箇所の記憶
領域の一方について、復号された可変情報を前記プリペ
イドカードの消費金額に応じて更新し、更新された可変
情報に前記量子化情報を含めて、前記暗号鍵で暗号化し
て他方の記憶領域に記録する処理を、前記二箇所の記憶
領域について交互に行うステップと、を備える。
A variable information updating method according to a ninth aspect of the present invention uses a prepaid card which is a storage medium in which a bar code is printed on a predetermined portion and which stores 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 an optical system, wherein when a prepaid card is issued, a gradation distribution including a background color of a bar code part printed on the predetermined portion of the prepaid card medium is optically detected. Of the characteristic information based on the detection signal corresponding to the variation of the gradation distribution to generate the quantized information, and the quantized information generated by the generating step into the variable information. including by the quantization information as an encryption key, and recording the variable information is encrypted in the storage area of the two portions of the prepaid card medium, before An issuance step of issuing a prepaid card, and when using the prepaid card, optically detects a gradation distribution including the background color of the bar code portion printed on the predetermined portion of the prepaid card, and detects the gradation distribution. Quantization information generation step of generating the quantization information by quantizing the characteristic information based on the detection signal corresponding to the variation, and the quantization information generated by the quantization information generation step as an encryption key, the two locations From storage area
Decrypting the read information of the memory, and storing the two locations
For one of the areas, the decoded variable information is
It is updated according to the consumption amount of the id card, and the updated variable information includes the quantization information and is encrypted with the encryption key.
And recording in the other storage area are alternately performed for the two storage areas.

【0026】[0026]

【発明の実施の形態】以下、本発明に係るプリペイドカ
ードシステムを、その実施の形態について、図面を参照
して説明する。本発明の第1の実施の形態に係るプリペ
イドカードシステムの構成を図1に示している。図1に
示すプリペイドカードシステムは、読書装置1、中継装
置2、記録装置3及び決済センタ4を備えている。記録
装置3及び決済センタ4は、カード発行会社及びカード
製造工場等のようなカード発行元Dに設置されている。
一般に、カード発行元Dに対応する店舗Sは複数存在
し、各店舗Sには、複数個の読書装置1及びこれらの読
書装置1を決済センタ4に接続する中継装置2が設置さ
れている。
BEST MODE FOR CARRYING OUT THE INVENTION Hereinafter, a prepaid card system according to the present invention will be described with reference to the drawings for its embodiments. FIG. 1 shows the configuration of a 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 in a card issuer D such as a card issuing company and a card manufacturing factory.
Generally, there are a plurality of stores S corresponding to the card issuer D, and each store S is provided with a plurality of reading devices 1 and a relay device 2 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 at 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,
It is provided between the plurality of reading devices 1 for each hall in the store S or between the plurality of reading devices 1 for each floor in the store S and the settlement center 4.

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

【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の量子化方式により量子化した情報が用い
られる。
The prepaid card used in this 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 is
It has a first information area A and a second information area B. First
In the information area A, variable information (a) including money amount information such as the remaining amount is encrypted and written using the quantized data Ra based on the characteristic information as the encryption key. The quantized data Ra serving as the encryption key is information obtained by quantizing the characteristic data based on the detection signal of the density gradation distribution of the predetermined portion of the barcode BC printing unit by the predetermined first quantization method. The quantized data Ra is recorded in the recording device 3 at the time of encoding.
The information obtained by quantizing the gradation distribution information of the predetermined portion of the barcode BC printing portion detected by the first quantizing method is used when the reading device 1 updates the amount information of the variable information (a). Each time the information is updated, the information obtained by quantizing the gradation distribution information of the 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 money amount information such as balance 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 characteristic data based on a detection signal of a density gradation distribution of a predetermined portion of the barcode BC printing unit, and a predetermined second quantization method different from the first quantization method. Is the 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 of the variable information (b) is updated by the method, the gradation 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 each time the updating is performed. Information is used.

【0031】読書装置1における金額情報等の更新書込
みは、第1の情報領域Aと第2の情報領域Bとに交互に
行われる。これら情報領域A及びBには、残額等の金額
情報の他に、プリペイドカードPCのカード識別情報
(カードID)、製造元を示す製造元コード、製造日
(エンコード日)情報、及びエラー発生時におけるエラ
ーコード等が記録される。
The update writing of the amount information and the like in the reading device 1 is alternately performed in the first information area A and the second information area B. In the information areas A and B, in addition to the amount information such as the balance, the card identification information (card ID) of the prepaid card PC, the manufacturer code indicating the manufacturer, the manufacturing date (encoding date) information, and an error when an error occurs Codes etc. 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. This recording device 3 has a first information area A of the information storage unit DA of the prepaid card PC when the prepaid card is issued.
, The variable information (a) including the initial amount information and other information is encrypted and written with the quantized data Ra as an encryption key, and the quantized data Rb is written in the second information area B of the information storage unit DA. Variable information (b) including initial amount information and other information is written as an encryption key. As the initial amount information, the amount information indicating the actual initial face value may be included in at least one of the variable information (a) and the variable information (b), for example, the variable information (b), and the other initial amount information. May be dummy amount information.

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

【0034】これら第1の情報領域A及び第2の情報領
域Bに対する可変情報(a)及び可変情報(b)の更新
は、交互に行われる。すなわち、例えば発行後最初の使
用による金額情報の更新の際には、第1の情報領域Aの
可変情報(a)のみを更新し、その次の金額情報の更新
の際には、第2の情報領域Bの可変情報(b)のみを更
新する。
The variable information (a) and the variable information (b) for the first information area A and the second information area B are updated alternately. That is, for example, only the variable information (a) in the first information area A is updated at the time of updating the amount information by the first use after issuance, and the second information is updated at the time of the next updating of the amount information. 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(アナログ−デ
ィジタル)変換により量子化した情報を用いる。
Encrypted writing of the variable information (a) into the first information area A using the quantized data Ra as an encryption key, and variable information (b) into the second information area B using the quantized data Rb as an encryption key. In the encrypted writing of), prior to that, for example, the grayscale gradation distribution of the bar code BC portion is detected, the characteristic data based on the detection signal indicating the gradation distribution is used, and the different quantization methods are used. Quantization is performed to obtain quantized data Ra and quantized data Rb. As the quantized data Ra and Rb, for example, information obtained by quantizing the analog reproduction signal of the optical sensor by PCM (pulse code modulation) or other information quantized 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 device 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. There is.

【0037】通信処理部11は、消費処理部12と中継
装置2との間の通信を行う。通信処理部11は、例え
ば、中継装置2からの要求コマンドに対するレスポンス
として、読書装置1におけるプリペイドカードPCの消
費金額情報を含む売上情報を記憶部13から読み出して
中継装置2に送信する。消費処理部12は、遊技媒体等
の物品を提供するなどして消費操作を実行する物販機
(図示していない)等に連動し、遊技媒体等の提供に対
応するプリペイドカードの消費に基づき、リーダ/ライ
タ14を介してプリペイドカードPCの金額情報等の可
変情報を更新するとともに、消費金額情報を含む売上情
報を記憶部13に蓄積する。記憶部13は、日常の消費
処理部12における消費金額の処理に基づく売上情報を
格納蓄積する。
The communication processing unit 11 communicates between the consumption processing unit 12 and the relay device 2. For example, as a response to the request command from the relay device 2, the communication processing unit 11 reads 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 it to the relay device 2. The consumption processing unit 12 works in conjunction with a vending machine (not shown) that executes a consumption operation by providing an item such as a game medium, and based on the consumption of the prepaid card corresponding to the provision of the game medium, The variable information such as the amount information of the prepaid card PC is updated via the reader / writer 14, and the sales information including the consumption amount information is accumulated in the storage unit 13. The storage unit 13 stores and accumulates sales information based on the daily processing of consumption amount by the 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 of the prepaid card PC.
And reading the variable information in the second information areas A and B,
It is given to the encryption processing unit 16. At this time, the optical sensor 17
Prepaid card PC loaded in reader / writer 14
The gradation distribution information of the density of the barcode BC portion is read from and the characteristic data is supplied to the encryption processing unit 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 cryptographic processing section 16 quantizes the characteristic data based on the gradation distribution of the density of the bar code BC portion read from the prepaid card PC by the optical sensor 17 by a predetermined quantization method and 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 encryption keys. At this time, the check control unit 15 causes the encryption processing unit 16 to use the quantized data Ra and Rb as encryption keys, and the variable information (a) and (b) of the first and second information areas A and B.
It is determined whether or not both can be decrypted.

【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 section 16 is provided with the optical sensor 1
7. The first data area of the prepaid card PC is obtained by using the quantized data Ra quantized by the first quantization method as the encryption key for the characteristic data based on the density distribution information of the density of the barcode BC read by Variable information of A (a)
And the variable information (b) in the second information area B of the prepaid card PC is decrypted by using the quantized data Rb quantized by the second quantization method as an encryption key. The check control unit 15 causes the cryptographic processing unit 16 to read the variable information (a) and (b) read from the first and second information areas A and B of the prepaid card PC by the quantized data Ra and Rb as the encryption keys. ) Can be decoded together.

【0041】チェック制御部15により、暗号処理部1
6において、暗号鍵としての量子化データRa及びRb
により、プリペイドカードPCの第1及び第2の情報領
域A及びBから読み出される可変情報(a)及び(b)
の少なくとも一方が復号できないと判定されたときは、
不正なプリペイドカードが挿入されたと判定し、警告表
示を行うとともに当該プリペイドカードPCを収容し又
は排出して、その使用を阻止する。
The check control unit 15 controls the cryptographic processing unit 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 by
When it is determined that at least one of the
It is determined that an unauthorized 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 are compatible, the check control unit 15 determines that an appropriate prepaid card has been set, and the quantized data Ra or Rb is used as an encryption key to determine whether the prepaid card PC is the first or the first. Variable information (a) or (b) read from two information areas A or B
The balance information based on is given to the consumption processing unit 12. Next, the remaining amount standard punch hole is detected to confirm whether or not there is a contradiction with the amount information stored in the prepaid card PC.
The money amount information is processed by the consumption processing unit 12, and the balance information is written in the storage unit 13.

【0043】さらに、消費処理部12は、該残額情報を
消費処理部12における消費金額情報に応じて更新し、
同様にプリペイドカードPCの残額情報を書き換える。
このとき、更新後の残額に基づき必要に応じて残額目安
パンチ孔を穿孔する。
Further, the consumption processing unit 12 updates the balance information in accordance with the consumption amount information in the consumption processing unit 12,
Similarly, the balance information of the prepaid card PC is rewritten.
At this time, the remaining amount standard punch holes are punched as necessary 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 the consumption processing unit 12
The variable information of C is updated alternately for the variable information (a) of the first information area A and the variable information (b) of the second information area B. Of the variable information (a) of the second information area B or the variable information (b) of the second information area B, the check control unit 15 causes the encryption processing unit 16 to read the barcode BC portion of the prepaid card PC loaded in the reader / writer 14. 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 encrypted and updated and written.

【0045】さらに、該更新後にもチェック制御部15
は、当該プリペイドカードPCの第1及び第2の情報領
域A及びBから読み出される可変情報(a)及び(b)
を、暗号処理部16において、光センサ17を介してプ
リペイドカードPCから読み取ったバーコードBC部分
の濃度の階調分布情報を量子化した量子化データRa及
びRbを暗号鍵として復号し、復号の可否を検出する。
なお、光センサ17は、プリペイドカードPCの残額目
安パンチ孔の検出にも共通に用いるようにしてもよい。
Furthermore, the check control unit 15 also operates after the update.
Is variable information (a) and (b) read from the first and second information areas A and B of the prepaid card PC.
In the cryptographic processing unit 16, the quantized data Ra and Rb obtained by quantizing the gradation distribution information of the density of the barcode BC portion read from the prepaid card PC via the optical sensor 17 are decrypted as the cryptographic keys, and the decryption is performed. Detect the propriety.
The optical sensor 17 may be commonly used to detect the remaining amount standard 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.
Have six. 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 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 is a predetermined bar code BC of the prepaid card medium loaded in the reader / writer 33.
Characteristic data is obtained by optically detecting the gradation distribution of the printed portion. The cryptographic processing unit 35 quantizes the feature data detected by the optical sensor 34 by the above-described first and second quantization methods to generate quantized data Ra and Rb.
Further, the cryptographic processing unit 35 uses the quantized data Ra and Rb.
Is used as an encryption key to encrypt the variable information (a) and variable information (b). The check information processing unit 36 is controlled by the encoding control unit 31 to change the variable information (a) and (b).
The encryption by the encryption processing unit 35 at the time of writing the initial information of the above into the first and second information areas A and B is controlled.

【0048】なお、リーダ/ライタ33は、プリペイド
カードPCへの例えば磁気ヘッド(図示せず)によるデ
ータの書込みに際して、プリペイドカードPCに対して
磁気ヘッドを相対的に移動させるが、この場合、磁気ヘ
ッドを移動させても、プリペイドカードPCを移動させ
ても、あるいは両者を同時に相異なる方向に移動させて
もよい。また、光センサ34も、プリペイドカードPC
のバーコード部分の階調分布の検出に際して、プリペイ
ドカードPCに対して相対的に移動させるが、この場
合、光センサ34を移動させても、プリペイドカードP
Cを移動させても、あるいは両者を同時に相異なる方向
に移動させてもよい。
Note that 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.
When detecting the gradation distribution of the bar code portion of the prepaid card P, the prepaid card P is moved relative to the prepaid card PC.
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 the gradation distribution of a predetermined bar code printed portion, and supplies the characteristic data consisting of the detection signal to the encryption processing section 35. Cryptographic processing unit 35
Quantizes the feature data detected by the optical sensor 34 by the first and second quantization methods different from each other to obtain quantized data Ra and Rb, respectively. The generated variable information (a) and (b) is 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, and sends the variable information (a) and (b) encrypted by the encryption processing unit 35 using the quantized data Ra and Rb as encryption keys to the reader / writer. Writing is performed in 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 device 1 is connected to, for example, a vending machine (not shown) for lending a game medium, and the price of the game medium provided to the user by the vending machine is transferred to the prepaid card PC. It is a device for embodying the consumption of the prepaid card PC by subtracting it from the remaining amount in the stored amount information. In the reading device 1, when the prepaid card PC is set, first, the optical sensor 17
Thus, the gradation distribution of the bar code printed 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 are obtained. The check control unit 15 gives 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. It is decrypted as a key and it is determined whether or not decryption is possible.

【0052】読書装置1は、プリペイドカードPCの第
1及び第2の情報領域A及びBから読み出される可変情
報(a)及び(b)が、光センサ17により検出し、暗
号処理部16により量子化した量子化データRa及びR
bによって、共に正しく復号されたと、チェック制御部
15において判定された場合には、当該プリペイドカー
ドPCは正常であると判定し、該判定の結果、両者の少
なくとも一方が正しく復号されないと判定された場合に
は、当該プリペイドカードPCは異常であり、不正プリ
ペイドカードPCであると判定する。多くの場合、濃度
階調分布情報の実測値には、経時変化によるプリペイド
カード面の汚れ、バーコード印刷の劣化/変色及び光セ
ンサ17と34との検出特性の相違等が存在する可能性
があるため、量子化データRa及びRbの実測値は、厳
密に一致していなくともよく、所定の量子化精度内で一
致するなど、実質的に同一のプリペイドカード媒体とみ
なし得る程度の類似点があれば正しく復号できるように
する。
In the reading device 1, the variable information (a) and (b) read from the first and second information areas A and B of the prepaid card PC are detected by the optical sensor 17, and the cryptographic processing unit 16 performs quantum processing. Quantized data Ra and R
When the check control unit 15 determines that both are correctly decrypted by b, 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 them is not properly decrypted. In this case, the prepaid card PC is abnormal, and it is determined that the prepaid card PC is an illegal 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 bar code printing, and differences in detection characteristics between the optical sensors 17 and 34. Therefore, the measured values of the quantized data Ra and Rb do not have to be exactly the same, and there are similarities that can be regarded as substantially the same prepaid card medium, such as matching within a predetermined quantization accuracy. If so, enable correct decryption.

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

【0054】中継装置2は、店舗S内の各読書装置1に
おいて消費金額として処理された金額情報を集約して、
決済センタ4に送信する。
The relay device 2 collects the amount information processed as the amount of consumption 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-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. 5 is activated 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 the reader / writer 3
When set to 3, first, the encoding control unit 31
The light and shade gradation distribution of the barcode printed on the 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. 2, near the one end of the back surface of the prepaid card PC. Although not shown, a degree value sequence for the remaining amount standard punch hole exists near the relevant portion.

【0057】光センサ34により検出されたバーコード
の濃淡階調分布は、暗号処理部35において、PCM又
はその他のA/D変換等による所定の第1の量子化方式
に従って量子化され、第1の情報領域Aの可変情報
(a)の暗号化用の量子化データRaが生成され(ステ
ップS2)、さらに所定の第2の量子化方式に従って量
子化され、第2の情報領域Bの可変情報(b)の暗号化
用の量子化データRbが生成される(ステップS3)。
The density gradation distribution of the bar code detected by the optical sensor 34 is quantized by the encryption processing unit 35 according to a predetermined first quantization method such as PCM or other A / D conversion, and the first density is obtained. Quantized data Ra for encryption of the variable information (a) in the information area A of the second information area B is generated (step S2) and further quantized in accordance with the predetermined second quantization method. The quantized data Rb for encryption of (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 required encoding information to the encryption processing unit 35 to encrypt the quantized data Ra and Rb as an encryption key, and through the reader / writer 33. Prepaid card PC
Are written in 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 encryption keys 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 process in the above 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 using the prepaid card PC.
When is set, it is activated each time.

【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 controller 15
Checks whether the prepaid card PC set in the reader / writer 14 is normal (step S1).
1). That is, first, the optical sensor 17
The density gradation distribution of the bar code BC portion printed on the predetermined portion of the prepaid card PC set in the writer 14 is detected, and the encryption processing unit 16 uses the quantization method in the encryption processing unit 35 of the recording device 3 and the actual method. 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.
The quantized data Ra and Rb used as the encryption key of are generated.

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

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

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

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

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

【0066】ステップS11のカードチェック処理の詳
細を図7に示している。カードチェック処理が開始され
ると、まず、チェック制御部15は、暗号処理部16を
介して、光センサ17により、プリペイドカードPCの
所定の部位のバーコードBC部分の濃淡階調分布を特徴
データとして検出し、暗号処理部16において、記録装
置3の暗号処理部35で用いられた量子化方式と実質的
に共通の量子化方式により量子化して、プリペイドカー
ドPCの第1及び第2の情報領域A及びBの可変情報
(a)及び(b)の暗号化の際の暗号鍵として用いられ
る量子化データRa及びRbを生成する。(ステップS
21)。
Details of the card check processing in step S11 are shown in FIG. 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 grayscale distribution of the bar code BC portion of the predetermined portion of the prepaid card PC as the characteristic data. As the first and second information of the prepaid card PC, which is quantized by 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. Quantized data Ra and Rb used as encryption keys when encrypting the variable information (a) and (b) of 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 unit 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.
Of the quantized data Ra as shown in FIG.
And Rb as decryption keys (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 determines that the decryption is successful. Then, it is detected whether or not there is a contradiction between the amount information and the other information based on the decoding result of the variable information (a) and (b), and between these information and the punching status of the remaining amount standard punch hole ( Step S24). If there is no contradiction, 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 succeeded (decryption failure), it is determined to be abnormal (step S27), a warning display indicating the injustice of the prepaid card PC and the incorporation of the prepaid card PC are taken. Alternatively, a predetermined abnormality / illegal process such as discharge is performed (step S2).
8). Further, if it is determined in step S25 that there is a contradiction, the process proceeds to step S27, and a predetermined abnormality / illegal process 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 ending process 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 optical sensor 17 detects the grayscale gradation distribution of the bar code BC portion of the predetermined portion of the prepaid card PC as characteristic data, and the characteristic data is quantized by predetermined first and second different quantization methods, Quantized data R used as encryption keys for variable information (a) and (b) in the first and second information areas A and B of the prepaid card PC
a and Rb are generated 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 is based on the update date / time information (time stamp) of the variable information (a) and (b) previously decoded in the first and second information areas A and B. Then, it is confirmed which of the first and second information areas A and B was written at the time of the previous writing (step S32). The check control unit 15 checks whether or not the previous writing was performed in the second information area B (step S33), and if writing was previously performed in the second information area B, Initial state in which data has been written in both the first and second information areas A and B or the second information area B
Since the variable information (b) is in any one of the updated states, the balance information based on the final balance stored in the storage unit 13 at that time in the first information area A as shown in FIG. The variable information (a) including the
The quantized data Ra generated in step S31 is encrypted as an encryption key, written, and updated (step S34). At this time, only the variable information (a) in the first information area A is updated, and the second information area B is not rewritten at all.

【0072】ステップS34において、可変情報(a)
の更新書き込みを行った後、チェック制御部15は、ス
テップS31において再度実測した特徴データに基づく
量子化データRa及びRbを暗号鍵として用いて、図1
2に示すように、プリペイドカードPCの第1及び第2
の情報領域A及びBから読み出した可変情報(a)及び
(b)を復号し(ステップS36)、復号の可否を調べ
る(ステップS37)。
In step S34, variable information (a)
After performing the update writing of FIG. 1, the check control unit 15 uses the quantized data Ra and Rb based on the feature data measured again in step S31 as the encryption key.
As shown in FIG. 2, the first and second of the prepaid card PC
The variable information (a) and (b) read from the information areas A and B of (1) and (2) are decoded (step S36), and the possibility of decoding 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 the information has not been written in the information area B, the variable information (a) in the first information area A is in the updated state, and therefore, as shown in FIG. In the area B, the variable information (b) including the remaining amount information based on the final remaining amount stored in the storage unit 13 at that time is encrypted and written using the quantized data Rb generated in step S31 as an encryption key, Update (step S35).
At this time, only the variable information (b) of 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, variable information (b)
Even after performing the update writing of the check control unit 15,
The process proceeds to step S36, and the quantized data Ra and Rb based on the actually measured characteristic data are used 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 the 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 succeeded, it is checked whether or not the updated remaining amount is the amount required to punch the remaining amount reference punch holes (step S3).
8). The amount of money required to be punched for the remaining amount guide punch hole is an amount of money that is newly entered in a region different from the previous region of the remaining amount region printed as a frequency value on the prepaid card PC. When the amount is such, the check control unit 15
Due to this, a balance amount punch hole is punched (step S3).
9). Remaining amount guide After the punch holes are punched, the reader / writer 1
The prepaid card PC is discharged from 4 (step S4
0). Then, the processing is ended and the processing returns to the consumption processing.

【0076】ステップS38で、更新後の残額が残額目
安パンチ孔の穿孔が必要な金額でないと判定された場合
には、チェック制御部15は、ステップS39をスキッ
プしてステップS40に移行し、プリペイドカードを排
出する。また、ステップS37において、復号失敗と判
定された場合には、チェック制御部15は、当該プリペ
イドカードPCが異常であると判定し(ステップS4
1)、プリペイドカードPCの不正を示す警告表示及び
当該プリペイドカードPCの取込み又は排出等の所定の
異常/不正処理を行う(ステップS42)。
When it is determined in step S38 that the balance after the update is not the amount required to punch the balance guide punch hole, the check control unit 15 skips step S39 and proceeds to step S40 to perform the prepaid. 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 fraud of the prepaid card PC and a predetermined abnormality / illegal process such as taking in or ejecting the prepaid card PC is 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. When updating, each time, the characteristic data read from the barcode BC section is quantized by the individual quantization method set for each information area A and B, and the quantized data Ra and Rb are encrypted as the encryption key. And update and write. Then, the characteristic data read from the bar code BC section is set to the information area A.
And quantized data R quantized by the B-based quantization method
Whether or not the variable information in each of the information areas A and B can be decrypted is checked using a and Rb as encryption keys. 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 side not updated is newly added to the prepaid card. Since it cannot be decoded by the quantized data of the characteristic data read from the barcode BC section of the PC, it is possible to detect an illegally copied prepaid card.

【0078】したがって、読書装置1が、金額情報等の
更新の都度、複数の記憶領域に交互に暗号化書込みされ
た全ての可変情報を、プリペイドカードの媒体毎に固有
のバーコード印刷部位の階調分布のばらつきに対応する
特徴情報を量子化した量子化データを暗号鍵として、復
号の可否をチェックすることにより、他のプリペイドカ
ードの可変情報の複写による不正を的確に検出すること
ができ、媒体の変造又は偽造によるプリペイドカードの
不正使用を未然に排除することができる。
Therefore, every time the reading device 1 updates the amount information or the like, all the variable information alternately encrypted and written in the plurality of storage areas is stored in the bar code print 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 the encryption key and checking whether or not the data can be decrypted, it is possible to accurately detect fraud by copying the variable information of the other prepaid card, Unauthorized use of the prepaid card due to alteration or forgery of the medium can be eliminated in advance.

【0079】なお、上述においては、第1及び第2の情
報領域A及びBの可変情報(a)及び(b)の暗号鍵と
して用いる量子化データRaとRbとの量子化方式を異
ならせるものとしたが、これらを共通の量子化方式によ
り量子化するようにしてもよい。
In the above description, different quantization methods are used for the quantized data Ra and Rb used as the encryption keys for the variable information (a) and (b) of the first and second information areas A and B. 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としてもよい。情報記憶部を、さらに
多数に分割して各分割された情報領域に交互に量子化デ
ータを含む可変情報を書き込むようにしてもよい。
Further, in the above description, as shown in FIG. 2, the information storage unit DA has a one-track configuration, and the information storage unit DA of the one track is appropriately divided into two parts to form the first and second information areas A. The case of forming B and B has been described.
As shown in FIG. 15, the information storage unit DA is composed of two tracks.
1 may be used, and each track may be a prepaid card PC1 having first and second information areas A1 and B1, respectively. Further, as shown in FIG. 16, the information storage unit DA2 is composed of two tracks, and each track is a first track.
And as the second information areas A2 and B2, the fixed information (a) and the variable information (a) and the fixed information (b) and the variable information (b) are respectively provided in these first and second information areas A2 and B2. The prepaid card PC2 may be configured to be provided and to store fixed information that is not rewritten when updating the balance due to consumption. The information storage unit may be further divided into a large number, and the variable information containing the quantized data may be written alternately in each of 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 the second embodiment of the present invention will be described. The prepaid card system according to the second embodiment of the present invention is configured almost the same as that shown in FIGS. 1, 3 and 4, but the consumption processing unit 12 and the check control unit shown in FIG. 15
And the encryption processing unit 16, and the encoding control unit 31, the encryption processing unit 35, and the check information processing unit 36 illustrated in FIG.
The functions of are 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 variable information (a) of the prepaid card is used.
To the variable information (b), the quantized data Rb as an encryption key for encryption of the variable information (b) is included in the variable information (b).
Including the quantized data Ra as the encryption key for the encryption of
Whether or not the decoding is possible is determined based on whether or not the quantized data Ra and Rb included in the read and decoded result 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 unit DA3 using a magnetic layer, and the information storage unit 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 quantized data Ra based on the characteristic information is added to the variable information (a) including the amount information such as the balance, and the quantized data Ra based on the characteristic information is used as an encryption key. Is written as encrypted. The quantized data Ra serving as the encryption key is information obtained by quantizing the characteristic data based on the detection signal of the density gradation distribution of the predetermined portion of the barcode BC printing unit by the predetermined first quantization method. As the quantized data Ra, 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. When updating the amount information and the like of the variable information (a), the gradation distribution information of a predetermined portion of the barcode BC printing unit detected by the reading device 1 is quantized by the first quantization method each 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 the characteristic data based on the detection signal of the predetermined portion of the barcode BC printing unit, which is the predetermined quantized data different from the first quantized 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 of the variable information (a) is updated by, the gradation distribution information of a predetermined portion of the barcode BC printing unit detected by the reading device 1 is quantized by the second quantization method each time the information is updated. 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 balance and the quantized data Ra based on the characteristic information is added to the quantized data Rb based on the characteristic information. Is written as encrypted. The quantized data Rb serving as an encryption key is characteristic data based on a detection signal of the density gradation distribution of a predetermined portion of the barcode BC printing unit, and a predetermined second quantization different from the above-mentioned 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 of the variable information (b) is updated by the method, the gradation 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 each time the updating is performed. Information is used.

【0087】また、可変情報(b)に含められる量子化
データRaは、バーコードBC印刷部の所定部位の検出
信号に基づく特徴データを、上述した所定の第1の量子
化方式により量子化した情報である。該量子化データR
aとしては、エンコード時には、記録装置3において検
出されたバーコードBC印刷部の所定部位の階調分布情
報を第1の量子化方式により量子化した情報が用いら
れ、読書装置1による可変情報(b)の金額情報等の更
新時には、更新の都度、読書装置1において検出された
バーコードBC印刷部の所定部位の階調分布情報を第1
の量子化方式により量子化した情報が用いられる。
As the quantized data Ra included in the variable information (b), the characteristic data based on the detection signal of the predetermined portion of the bar code BC printing section is quantized by the above-mentioned predetermined first quantization method. Information. The quantized data R
As a, at the time of encoding, information obtained by quantizing the gradation distribution information of the predetermined portion of the barcode BC printing unit detected by the recording device 3 by the first quantization method is used. When updating the amount information and the like in b), the gradation distribution information of a predetermined portion of the barcode BC printing unit detected by the reading device 1 is first updated every time the updating is performed.
Information quantized by the quantization method of 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 that of the first embodiment in the configuration shown in FIG. 1 in the following points. The update writing of the 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
In B3 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. The 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 uses the quantized data Ra as an encryption key in the first information area A3 of the information storage unit DA3 of the prepaid card PC3, the quantized data Rb, the initial amount information, and others. Variable information (a) including the information of encrypted data is encrypted and written, and the quantized data R is written in the second information area B3 of the information storage unit DA3.
The variable information (b) including the quantized data Ra, the initial amount information and other information is encrypted and written with b as an encryption key.

【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を暗号鍵
として用いたものと比較照合して、復号の可否を判別す
る。
In the reading apparatus 1, when the prepaid card PC3 is set, first, the optical sensor 17 detects the gradation distribution of the bar code printed portion of the prepaid card PC3, and the characteristic data including the detection signal is detected. In the encryption processing unit 16, the quantization data Ra and Rb are quantized by two different predetermined quantization methods. The check control unit 15 reads the variable information (a) read from the first and second information areas A3 and B3 of the prepaid card PC3.
And (b) are given to the encryption processing unit 16, and 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 and collated with those used as encryption keys to determine whether or not 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 following points in its configuration. The cryptographic 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 are decrypted by using the quantized data Ra and Rb as encryption keys. At this time, the check control unit 15 causes the encryption processing unit 16 to decrypt the quantized data Ra and Rb as encryption keys, and the variable information (a) of the first and second information areas A3 and B3.
And quantized data Rb and Ra included in both (b)
, Respectively, determine whether or not they match the quantized data Rb and Ra used as the encryption keys.

【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とそれぞれ一致す
るか否かを確認する。
In other words, the cryptographic processing unit 16 uses the optical sensor 1
7. The first data area of the prepaid card PC3 is obtained by using the quantized data Ra quantized by the first quantization method for the characteristic data based on the density distribution information of the density of the bar code BC read by 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 by using the quantized data Rb quantized by the second quantization method as an encryption key. . The check control unit 15 uses the encryption processing unit 16 to
The quantized data Rb and Ra as the encryption keys are stored in the first and second information areas A3 and B3 of the prepaid card PC3.
Variable information (a) and (b) read from and decoded
It is confirmed whether or not they match the quantized data Rb and Ra included in the above.

【0093】チェック制御部15により、暗号処理部1
6において、暗号鍵としての量子化データRa及びRb
により復号された可変情報(a)及び(b)に含まれる
量子化データRb及びRaの少なくとも一方が暗号鍵と
して用いた量子化データRb及びRaと一致しないと判
定されたときは、不正なプリペイドカードが挿入された
と判定し、警告表示を行うとともに当該プリペイドカー
ドを収容し又は排出して、その使用を阻止する。
By the check control unit 15, the cryptographic processing unit 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 contained 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 invalid 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 are the same, the check control unit 15 determines that a proper prepaid card has been set, and uses the quantized data Ra or Rb as the encryption key to determine whether the prepaid card PC3 is the first or the first. The balance information based on the variable information (a) or (b) read from the second information area A3 or B3 is given to the consumption processing unit 12. The variable information of the prepaid card PC3 is updated by the consumption processing unit 12 alternately with respect to 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) of the first information area A3 or the variable information (b) of the second information area B3, the check control unit 15 quantizes the quantized data Ra or Rb quantized by the encryption processing unit 16. Is used as an encryption key, and the quantized data Rb or Ra is added to the variable information to be updated in the variable information (a) of the first information area A3 or the variable information (b) of the second information area B3 to obtain the encryption code. Write and update.

【0095】さらに、該更新後にもチェック制御部15
は、当該プリペイドカードPC3の第1及び第2の情報
領域A3及びB3から読み出される可変情報(a)及び
(b)を、暗号処理部16において、光センサ17を介
してプリペイドカードPC3から読み取ったバーコード
BC部分の濃度の階調分布情報を量子化した量子化デー
タRa及びRbを暗号鍵として復号し、復号された可変
情報(a)及び(b)中の量子化データRb及びRaを
暗号鍵として用いたものと照合し、復号の可否を検出す
る。
Further, the check control unit 15 also operates after the update.
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 cryptographic processing unit 16. The quantized data Ra and Rb obtained by quantizing the gradation distribution information of the density of the barcode BC portion is decrypted as an encryption key, and the quantized data Rb and Ra in the decrypted variable information (a) and (b) are encrypted. It is checked whether it can be decrypted by collating with the one used as the key.

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

【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 activated 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 the reader / writer 3
When set to 3, first, the encoding control unit 31
The light and shade gradation distribution of the barcode printed on the predetermined portion of the prepaid card medium is detected by the optical sensor 34 (step S51). The density gradation distribution of the barcode detected by the optical sensor 34 is
Quantization is performed according to a predetermined first quantization method such as PCM or other A / D conversion to generate quantized data Ra for encryption of the variable information (a) in the first information area A3 (step S52). ) Is further quantized according to a predetermined second quantization method, and quantized data Rb for encryption of the variable information (b) in the second information area B3 is generated (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 the required encoding information including the quantized data Rb and Ra to the encryption processing unit 35 to make the quantized data R
The reader / writer 3 encrypts with a and Rb as encryption keys.
Write to the first and second information areas A3 and B3 of the prepaid card PC3 via the A3 (step S5).
4), the encoding process ends.

【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 flow charts shown in FIGS. 6, 19 and 20. Also in this system, the consumption process shown in FIG. 6 is performed in the same manner as described above, and is started each time the prepaid card PC3 is set in the reader / writer 14 of the reading device 1. When the processing 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, the grayscale gradation distribution of the barcode BC portion printed on the predetermined portion of 3 is detected, and in the encryption processing unit 16, a quantization method substantially common to the quantization method in the encryption processing unit 35 of the recording device 3, That is, it is used as an encryption key for variable information (a) and (b) of the first and second information areas A3 and B3 of the prepaid card PC3, which are quantized by different first and second quantization methods. Quantized data Ra and Rb are generated.

【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 is
The variable information (a) and (b) of the first and second information areas A3 and B3 of the prepaid card PC3 is read by the magnetic head via the writer 14, and the measured value previously read from the prepaid card PC3 is quantized. The quantized data Ra and Rb are decrypted as encryption keys, and the quantized data Rb and Ra in the variable information (a) and (b) are decrypted.
Is used as an encryption key to determine whether or not decryption is possible. If the decryption is not normally performed, the check control unit 15 determines that the set prepaid card PC3 is abnormal and was created by an 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 with the quantized data Ra and Rb obtained by quantizing the measured values as the encryption keys, the check control unit 15 causes the remaining amount. The presence or absence of contradiction in the standard punch hole position and variable information is detected.
At this time, if a contradiction is detected in the position and the variable information of the balance guide punch hole, it is determined that the prepaid card PC3 is abnormal. Other than the above, the process in FIG. 6 is exactly the same as the process already described in connection with 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)。
The details of the card check processing in step S11 are shown in FIG. When the card check process is started, first, the check control unit 15 causes the encryption processing unit 16 to
Through the optical sensor 17, the prepaid card PC
The grayscale gradation distribution of the bar code BC portion of the predetermined portion of 3 is detected as the characteristic data, and the cryptographic processing unit 16 uses substantially the same quantum as the quantization method used in the cryptographic processing unit 35 of the recording device 3. Of the pre-paid card PC3 by quantizing them by a predetermined method, that is, a predetermined first and second quantization method different from each other.
The quantized data Ra and Rb used in the encryption of the variable information (a) and (b) of No. 3 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 unit 16 uses the magnetic head via the reader / writer 14 to detect the first data of the prepaid card PC3.
22 and the variable information (a) and (b) of the second information areas A3 and B3 are read, and as shown in FIG. 22, the quantized data Ra and Rb are decrypted as encryption keys (step S6).
2). 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. Therefore, the quantized data Rb and Ra included in the variable information (a) and (b) are encrypted respectively. It is determined whether or not the quantized data Rb and Ra used as the key match (step S
63), if it is determined that the decryption is successful, the check control unit 15 then determines whether or not the amount information and other information based on the decryption result of the variable information (a) and (b) are mutual, and these and the remaining amount standard. It is detected whether or not there is a contradiction with the punching status of the punch holes (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 processing is ended and the processing returns to the consumption processing of FIG.

【0106】ステップS63において、量子化データR
b及びRaの少なくとも一方が一致せず、復号に成功し
なかった(復号失敗)と判定された場合には、異常と判
定し(ステップS67)、プリペイドカードPC3の不
正を示す警告表示及び当該プリペイドカードPC3の取
込み又は排出等の所定の異常/不正処理を行う(ステッ
プS68)。また、ステップS65において、矛盾が存
在すると判定した場合にも、ステップS67に移行し、
所定の異常/不正処理を行う。
At step S63, the quantized data R
If at least one of b and Ra does not match and it is determined that the decryption has not succeeded (decryption failure), it is determined to be abnormal (step S67), a warning display indicating the injustice of the prepaid card PC3 and the prepaid A predetermined abnormality / illegal process such as taking in or ejecting the card PC3 is performed (step S68). If it is determined in step S65 that there is a contradiction, the process proceeds to step S67,
Perform predetermined abnormality / 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 the details of the termination processing in step S19 of FIG. When the end processing is started, the consumption processing section 12 causes the encryption processing section 16 to read and quantize the characteristic data again via the check control section 15 (step S71). That is, the cryptographic processing unit 16 detects the light and shade gradation distribution of the bar code BC portion of the predetermined portion of the prepaid card PC3 by the optical sensor 17 as the characteristic data, and the characteristic data is different from the predetermined first and second predetermined data. Quantization is performed by the 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 section 12 decodes the variable information (a) before the first and second information areas A3 and B3.
Based on the update date / time information (time stamp) in (b) and (b), it is confirmed which of the first and second information areas A3 and B3 was written at the time of the previous writing (step S72). The check control unit 15 checks whether or not the previous writing was performed in the second information area B3 (step S73). If the previous writing was performed in the second information area B3, First and second information area A
3 and B3 are both in the initial state in which writing has been performed or in the state in which the variable information (b) in the second information area B3 has been updated, so as shown in FIG. Variable information (a) including the remaining amount information based on the final remaining amount stored in the storage unit 13 at that time and the quantized data Rb generated in step S71 added to A3.
Is encrypted, written and updated using the quantized data Ra generated in step S71 as an encryption key (step S74). At this time, only the variable information (a) in the first information area A3 is updated, and the second information area B3 is not rewritten at all.

【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 of FIG.
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 decrypted (step S76), and the variable information (a) and (b) are decrypted. Quantized data Rb and R included in
The a is collated with the one obtained in step S71 to check whether the 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 the writing has not been performed in the information area B3 of No. 3, since the variable information (a) of the first information area A3 has been updated, as shown by the broken line in FIG.
The variable information (b) including the balance information based on the final balance stored in the storage unit 13 at that time and including the quantized data Ra generated in step S71 is added to 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, variable information (b)
Even after performing the update writing of the check control unit 15,
The process proceeds to step S76, and the quantized data Ra and Rb based on the actually measured characteristic data are used as encryption keys,
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 decrypted, 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)。そして、処理を終了し、消費処理に戻る。
When it is determined in step S77 that the decryption is successful, it is checked whether or not the updated remaining amount is the amount required to punch the remaining amount reference punch hole (step S7).
8). The amount of money required to be punched for the remaining amount standard punch hole is an amount of money newly entered in a region different from the previous region of the remaining amount region printed as a frequency value on the prepaid card PC3. When the amount of money is such a value, the check control unit 1
By 5, the balance amount punch hole is punched (step S
79). After punching the remaining amount guide punch hole, the prepaid card PC3 is ejected from the reader / writer 14 (step S80). Then, the processing is ended and the processing returns to the consumption processing.

【0113】ステップS78で、更新後の残額が残額目
安パンチ孔の穿孔が必要な金額でないと判定された場合
には、チェック制御部15は、ステップS79をスキッ
プしてステップS80に移行し、プリペイドカードを排
出する。また、ステップS77において、復号失敗と判
定された場合には、チェック制御部15は、当該プリペ
イドカードPC3が異常であると判定し(ステップS8
1)、プリペイドカードPC3の不正を示す警告表示及
び当該プリペイドカードPC3の取込み又は排出等の所
定の異常/不正処理を行う(ステップS82)。
If it is determined in step S78 that the balance after the update is not the amount required to punch the residual amount guide punch hole, the check control unit 15 skips step S79 and proceeds to step S80 to perform prepaid. Eject the card. If it is determined in step S77 that the decryption has failed, the check control unit 15 determines that the prepaid card PC3 is abnormal (step S8).
1) A warning display indicating fraud of the prepaid card PC3 and a predetermined abnormality / illegal process such as taking in or ejecting the prepaid card PC3 is 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 section 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), respectively, and the quantized data Ra and Rb are encrypted as encryption keys and updated and written. Then, by using the quantized data Ra and Rb obtained by quantizing the characteristic data read from the bar code BC section as an encryption key, it is checked whether or not the variable information in each of the information areas A3 and B3 can be decoded. Therefore, when the prepaid card PC3 is replaced, the variable information in the information area on the side not updated is newly decoded by the quantized data of the characteristic data read from the barcode BC section of the prepaid card. Therefore, it is possible to detect an illegally copied prepaid card.

【0115】したがって、読書装置1が、金額情報等の
更新の都度、複数の記憶領域に交互に暗号化書込みされ
た全ての可変情報を、プリペイドカードの媒体毎に固有
のバーコード印刷部位の階調分布のばらつきに対応する
特徴情報を量子化した量子化データを暗号鍵として、復
号の可否をチェックすることにより、他のプリペイドカ
ードの可変情報の複写による不正を的確に検出すること
ができ、媒体の変造又は偽造によるプリペイドカードの
不正使用を未然に排除することができる。なお、上述に
おいては、第1及び第2の情報領域A3及びB3の可変
情報(a)及び(b)の暗号鍵として用いる量子化デー
タRaとRbとの量子化方式を異ならせるものとした
が、これらを共通の量子化方式により量子化するように
してもよい。
Therefore, every time the reading device 1 updates the amount information or the like, all the variable information encrypted and written alternately in the plurality of storage areas is stored in 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 the encryption key and checking whether or not the data can be decrypted, it is possible to accurately detect fraud by copying the variable information of the other prepaid card, Unauthorized use of the prepaid card due to alteration or forgery of the medium can be eliminated in advance. In the above description, the quantization method of the quantized data Ra and Rb used as the encryption keys of the variable information (a) and (b) of the first and second information areas A3 and B3 is different. Alternatively, these 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としてもよい。情報記憶部を、
さらに多数に分割して各分割された情報領域に交互に量
子化データを含む可変情報を書き込むようにしてもよ
い。
Further, in the above description, as shown in FIG. 17, the information storage unit DA3 has a one-track configuration, and the one-track information storage unit DA3 is appropriately divided into two sections to form the first and second information areas A3. Although the case of forming B3 and B3 has been described, as shown in FIG. 25, the information storage unit DA4 is composed of two tracks, and each track is the first and second information areas A4 and B4, respectively.
It may be 4. Further, as shown in FIG. 26, the information storage unit DA5 is composed of two tracks, and each track is defined as the first and second information areas A5 and B5, respectively. A configuration in which fixed information (a) and variable information (a), fixed information (b) and variable information (b) are provided respectively, and fixed information that is not rewritten when updating the balance due to consumption is stored. The prepaid card PC5 may be used. Information storage,
Furthermore, the variable information including the quantized data may be written alternately in each of the divided information areas.

【0117】次に、本発明の第3の実施の形態に係るプ
リペイドカードシステムについて説明する。本発明の第
3の実施の形態に係るプリペイドカードシステムは、図
1、図3及び図4に示したのとほぼ同様に構成される
が、図3に示した消費処理部12、チェック制御部15
及び暗号処理部16、並びに図4に示したエンコード制
御部31、暗号処理部35及びチェック情報処理部36
の機能が若干相違する。
Next, a prepaid card system according to the third embodiment of the present invention will be described. The prepaid card system according to the third embodiment of the present invention has substantially the same configuration as that shown in FIGS. 1, 3 and 4, but the consumption processing unit 12 and the check control unit shown in FIG. 15
And the encryption processing unit 16, and the encoding control unit 31, the encryption processing unit 35, and the check information processing unit 36 illustrated in FIG.
The functions of are 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, the variable information (a) includes the quantized data Ra, and the variable information (b) contains the quantized data Ra. 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 updated as variable information (a) or (b). The quantized data R a and R b included in the read / decode result is updated based on actual measurement to determine whether or not decoding is possible.
Whether or not it matches with a and Rb, and further whether or not the Rab generated by these quantized data Ra and Rb matches with 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 is
It has a magnetic information storage unit DA6 using a magnetic layer, and the information storage unit 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, variable information (a) including money amount information such as the balance is further added with quantized data Ra based on the characteristic information.
The quantized data Ra is information obtained by quantizing the characteristic data based on the detection signal of the density gradation distribution of the predetermined portion of the barcode BC printing unit by the predetermined first quantization method. As the quantized data Ra, 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. When updating the amount information and the like of the variable information (a), the gradation distribution information of a predetermined portion of the barcode BC printing unit detected by the reading device 1 is quantized by the first quantization method each 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, variable information (b) including money amount information such as the balance is further added with quantized data Rb based on the characteristic information.
The quantized data Rb is obtained by quantizing the characteristic data based on the detection signal of the density gradation distribution of the predetermined portion of the barcode BC printing unit by a predetermined second quantization method different from the above-mentioned first quantization method. This is the 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 of the variable information (b) is updated by the method, the gradation 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 each 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
を暗号化した情報等を用いてもよい。
The variable information (c) is stored in the third information area C6.
As the encrypted data, a combination of the quantized data Ra and Rb, for example, the encrypted data of the quantized data Ra with the quantized data Rb as an encryption key, Rab is written. As the quantized data Ra and Rb, the barcode B detected by the recording device 3 at the time of encoding is used.
Information obtained by quantizing the gradation distribution information of a predetermined portion of the C printing unit is used, and when the reading device 1 updates the amount information of the variable information (a) or (b), the reading device 1 updates each time. Information obtained by quantizing the gradation distribution information of the predetermined portion of the detected barcode BC printing portion is used. The encrypted data Rab used as the variable information (c) is quantized data Rb using the quantized data Ra as an encryption key.
You may use the information etc. which encrypted.

【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 prepaid card system according to the third embodiment is different in the configuration from the case 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 and third information areas B6 and C6 are alternately performed. That is, the third
The information area C6 is updated both when updating the first information area A6 and when updating the second information area B6. 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
6, card identification information (card ID), manufacturer code indicating the manufacturer, manufacturing date (encoding date) information, 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 has variable information (a) containing the quantized data Ra, the initial amount information and other information in the first information area A6 of the information storage unit 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 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と照合し
て、復号の可否を判別する。
In the reading device 1, when the prepaid card PC6 is set, first, the optical sensor 17 detects the gradation distribution of the bar code printed portion of the prepaid card PC6, and the characteristic data including the detection signal is detected. In the encryption processing unit 16, the quantization data Ra and Rb are quantized by two different predetermined quantization methods. The check control unit 15 reads 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 and collated with the quantized data in the encryption processing unit 16. When the quantized data Ra and Rb both match, the check control unit 15 causes the encryption processing unit 16 to perform the quantized data R
The encryption data obtained by encrypting the quantized data Ra with b as the encryption key is collated with the encryption data Rab read from the third information area C6 of the prepaid card PC6 to determine whether the 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 following points in its configuration. 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 PC6 by the optical sensor 17 by a predetermined quantization method to generate quantized data Ra and Rb. .
The cryptographic processing unit 16 also encrypts the quantized data Ra by using the quantized data Rb as an encryption key to generate the encrypted data Rab.
To generate. In the check control unit 15, 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 are generated in the cryptographic processing unit 16, respectively. Data Ra and R
It is determined whether or not it matches b. If they match, the check control unit 15 further determines that the encrypted data Rab obtained by encrypting the quantized data Ra by the encryption processing unit 16 using the quantized data Rb as the encryption key is the variable information (c) of the third information area C6. It is determined whether or not it matches 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と一致するか否かを判別
する。
In other words, the cryptographic processing unit 16 is the optical sensor 1
Characteristic data based on the gradation distribution information of the density of the barcode BC portion read by the method 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, and the quantized data Ra is encrypted using the quantized data Rb as an encryption key to generate the encrypted data Rab. The check control unit 15 determines that the quantized data Ra and Rb generated by the encryption processing unit 16 are the prepaid card PC6.
Of the variable information (a) and (b) read from the first and second information areas A6 and B6 of
It is determined whether or not they match with a and Rb, respectively, and 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

【0127】チェック制御部15により、量子化データ
Ra及びRbのいずれか一方が一致せず、又はこれら両
者が一致しても暗号データRabが一致しないと判定さ
れたときは、不正なプリペイドカードが挿入されたと判
定し、警告表示を行うとともに当該プリペイドカードを
収容し又は排出して、その使用を阻止する。
When the check control unit 15 determines that either one of the quantized data Ra and Rb does not match, or that the encrypted data Rab does not match even if both match, an 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に与える。
Both the quantized data Ra and Rb match,
When it is determined that the encrypted data also match, the check control unit 15 determines that a proper prepaid card is set, and the variable information (a) read from the first or second information area A6 or B6 of the prepaid card PC6. ) Or (b), the balance information 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 the consumption processing unit 12
The variable information of C6 is updated alternately with respect to 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,
It is common to both, that is, at the time of all updates. At the time of updating the variable information (a) of the first information area A6 or the variable information (b) of the second information area B6, the check control unit 15
Adds the quantized data Ra or Rb to the variable information to be updated of the variable information (a) of the first information area A6 or the variable information (b) of the second information area B6, and performs update writing. Then, the cryptographic data Rab generated by the cryptographic processing unit 16 is written as the 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
The quantized data Ra and Rb contained in the variable information (a) and (b) read from the first and second information areas A6 and B6 of the prepaid card PC6 are transmitted via the optical sensor 17 to the prepaid card PC6. The gradation distribution information of the density of the barcode BC portion read from the above is compared and collated with the quantized data Ra and Rb quantized in the encryption processing unit 16, and the encrypted data Rab encrypted in the encryption processing unit 16 is compared to the third data. The variable information (c) read out from the information area C6 is compared and collated to detect whether they match.

【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 is different from that of the first embodiment in the following structure. The cryptographic processing unit 35 quantizes the feature data detected by the optical sensor 34 by the above-described first and second quantization methods to generate quantized data Ra and Rb.
Further, in this case, the encryption processing unit 35 determines that the quantized data Rb
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 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 activated 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 encoding control unit 31 detects the light and shade gradation distribution of the barcode printed on the predetermined portion of the prepaid card medium by the optical sensor 34 ( Step S1
01). The grayscale gradation distribution of the barcode detected by the optical sensor 34 is quantized by the cryptographic processing unit 35 according to a predetermined first quantization method such as PCM or other A / D conversion to generate quantized data Ra. (Step S102), and 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 encoding control unit 31 sends required encoding information including the quantized data Ra and Rb to the first and second information areas of the prepaid card PC 6 via the reader / writer 33. A6 and B6 are written respectively, and the encrypted data Rab obtained by encrypting the quantized data Ra using the quantized data Rb as an encryption key is written in 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-mentioned prepaid card system will be described with reference to FIGS.
9 and the flow chart shown in FIG. 30. Also in this system, the consumption process shown in FIG.
The reader / writer 14 of the reading device 1 is performed in the same manner as described above.
Each time the prepaid card PC6 is set, it is activated. 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を生成する。
That is, first, the prepaid card PC set in the reader / writer 14 by the optical sensor 17.
6, the grayscale gradation distribution of the bar code BC portion printed on the predetermined portion of 6 is detected, and in the encryption processing unit 16, a quantization method substantially the same as the quantization method in the encryption processing unit 35 of the recording device 3, That is, quantization is performed by predetermined first and second quantization methods different from each other, and quantization is performed corresponding to the variable information (a) and (b) of the first and second information areas A6 and B6 of the prepaid card PC6. Data Ra and R
produces 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 unit 15 is
The variable heads (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 heads (a) and (b) is read. Ra and Rb are compared and collated with the quantized data Ra and Rb previously generated in the encryption processing unit 16. When the quantized data Ra and Rb both match, 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 to generate the 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 the 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 was created by an unauthorized means (see FIG. 32).

【0136】プリペイドカードPC6の情報領域A6、
B6及びC6から読み取った情報の全てが、実測値を量
子化した量子化データRa及びRbに適正に対応した場
合には、チェック制御部15により、残額目安パンチ孔
の位置及び可変情報における矛盾の有無を検出する。こ
のとき、残額目安パンチ孔の位置及び可変情報に矛盾が
検出された場合には、当該プリペイドカードは異常であ
るとする。上述以外の図6における処理については、第
1の実施の形態に関連して既に説明した処理と全く同様
であり、ここでは、詳細には説明しない。
The information area A6 of the 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 measured values, the check control unit 15 causes the discrepancy in the position of the remaining amount standard punch hole and the variable information. Detect the presence or absence. At this time, if a contradiction is detected in the position of the balance guide punch hole and the variable information, the prepaid card is determined to be abnormal. Other than the above, the process in FIG. 6 is exactly the same as the process already described in connection with 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)。
Details of the card check processing in step S11 are shown in FIG. When the card check process is started, first, the check control unit 15 causes the encryption processing unit 16 to
Through the optical sensor 17, the prepaid card PC
6, the grayscale gradation distribution of the bar code BC portion of the predetermined portion of 6 is detected as the characteristic data, and the cryptographic processing unit 16 has substantially the same quantum as the quantization method used in the cryptographic processing unit 35 of the recording device 3. Of the first and second information areas A6 and B of the prepaid card PC6 after being quantized by a predetermined method, that is, a predetermined first and second quantization method different from each other.
The quantized data Ra and Rb corresponding to the variable information (a) and (b) of 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 controller 15 uses the reader / writer 1
Variable information (a) in the first and second information areas A6 and B6 of the prepaid card PC6 by the magnetic head via
And (b) are read, the quantized data Ra and Rb are extracted, and as shown in FIG. 32, the quantized data Ra and Rb are compared and collated with the quantized data Ra and Rb generated in step S111 (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 controller 15 operates in step S112.
When 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,
ab is generated (step S113). Then, the check control unit 15 sends the encrypted data Rab to the prepaid card PC 6 by the magnetic head via the reader / writer 14.
The variable information (c) read from the third information area C6 is compared and collated (step S114). Check control unit 1
5, if the encrypted data Rab match, then next, the amount information and other information based on the decryption result of the variable information (a) and (b), and these and the remaining amount reference punch hole It is detected whether there is a contradiction (step S1)
15). If there is no contradiction (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 of FIG.

【0140】ステップS112において、量子化データ
Rb及びRaの少なくとも一方が一致しない場合、又は
ステップS114において、暗号データRabが一致し
ない場合には、その時点で直ちに異常と判定し(ステッ
プS118)、プリペイドカードPC6の不正を示す警
告表示及び当該プリペイドカードPC6の取込み又は排
出等の所定の異常/不正処理を行う(ステップS11
9)。また、ステップS116において、矛盾が存在す
ると判定した場合にも、ステップS118に移行し、所
定の異常/不正処理を行う。
If at least one of the quantized data Rb and Ra does not match in step S112, 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 fraud of the card PC 6 and a predetermined abnormality / illegal process such as taking in or ejecting the prepaid card PC 6 is performed (step S11).
9). Further, when it is determined in step S116 that there is a contradiction, the process proceeds to step S118, and a predetermined abnormality / illegal process 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 the details of the termination processing in step S19 of FIG. When the end processing is started, the consumption processing unit 12 again causes the encryption processing unit 16 to read and quantize the characteristic data via the check control unit 15 (step S131). That is, the encryption processing unit 16
An optical sensor detects a grayscale gradation distribution of a bar code BC portion of a predetermined portion of the prepaid card PC6 as characteristic data, and the characteristic data is quantized by different predetermined first and second quantization methods, and the prepaid card is quantized. Card P
Quantized data R used as encryption keys for variable information (a) and (b) in the first and second information areas A6 and B6 of C6
a and Rb are generated 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 decodes the variable information (a) before the first and second information areas A6 and B6.
Based on the update date / time information (time stamp) of (b) and (b), it is confirmed which of the first and second information areas A6 and B6 was written at the time of the previous writing (step S132). The check control unit 15 checks whether or not the previous writing was performed in the second information area B6 (step S133), and the previous second information area B6 was checked.
Is written in the first information area A6 and the second information area B6 in the initial state or the variable information (b) in the second information area B6 is updated. Therefore, as shown in FIG. 33, the first information area A6 includes the balance information based on the final balance stored in the storage unit 13 at that time, and step S13.
The variable information (a) added with the quantized data Ra generated in 1 is written and updated, and further, the quantized data Ra is encrypted by the encryption processing unit 16 using the quantized data Rb as an encryption key to obtain the encrypted data Rab. The encrypted data Rab is generated and written in the variable information (c) of the third information area C6 to be updated (step S134). At this time, the second
The information area B6 is not rewritten at all.

【0143】ステップS134において、可変情報
(a)の更新書き込みを行った後、チェック制御部15
は、ステップS131において再度実測した特徴データ
に基づく量子化データRa及びRbを、図34に示すよ
うに、プリペイドカードPC6の第1及び第2の情報領
域A6及びB6から読み出した可変情報(a)及び
(b)に含まれる量子化データRa及びRbと照合し
て、一致するか否かを調べる(ステップS136)。
After the variable information (a) is updated and written in step S134, the check controller 15
34, variable information (a) obtained by reading the quantized data Ra and Rb based on the characteristic data measured again in step S131 from the first and second information areas A6 and B6 of the prepaid card PC6 as shown in FIG. And (b) are compared with the quantized data Ra and Rb to check whether 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, if it is determined in step S133 that the second information area B6 was not previously written, it means that 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 includes the quantized data Rb including the balance information based on the final balance stored in the storage unit 13 at that time and generated in step S131. The added variable information (b) is written and updated, and the quantized data Rb is encrypted by the encryption processing unit 16 using the quantized data Rb as an encryption key to generate the encrypted data Rab. The variable information (c) in the information area C6 is written and updated (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 controller 1
5, the process proceeds to step S136, and the quantized data Ra and Rb are stored in the prepaid card PC as shown in FIG.
Quantized data R included in the variable information (a) and (b) read from the first and second information areas A6 and B6
It is compared with a and Rb to check whether they match.

【0146】さらに、ステップS136において、量子
化データRa及びRbが一致すると判定された場合に
は、これら量子化データRa及びRbから暗号処理部1
6により暗号データRabを再度生成させ(ステップS
137)、プリペイドカードPC6の第3の情報領域C
6から読み出した可変情報(c)に含まれる暗号データ
Rabと照合して、一致するか否かを調べる(ステップ
S138)。
Furthermore, when it is determined in step S136 that the quantized data Ra and Rb match, the encryption processing unit 1 determines from these quantized data Ra and Rb.
6, the encrypted data Rab is generated again (step S
137), the third information area C of the prepaid card PC6
The encrypted data Rab included in the variable information (c) read out from No. 6 is collated to check whether 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 the abs match, it is checked whether or not the updated remaining amount is the amount required to punch the remaining amount guide punch holes (step S139). The amount of money required to be punched for the remaining amount standard punch hole is an amount of money newly entered in a region different from the previous region of the remaining amount region printed as a numerical value on the prepaid card PC6. When the amount is like this,
The check control unit 15 punches a balance amount punch hole (step S140). After punching the balance amount punch holes, the prepaid card PC6 is ejected from the reader / writer 14 (step S141). Then, the processing is ended and the processing returns to the consumption processing.

【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 to punch the remaining amount guide punch holes, the check control unit 15 skips step S140 and proceeds to step S141 to perform prepaid. Eject the card. If it is determined in step S136 that the quantized data Ra and Rb do not match, or if the encrypted data Rab does not match in step S138, the check control unit 15 determines that the prepaid card PC6 is abnormal. It is determined that there is (step S
142), warning display indicating fraud of the prepaid card PC6 and predetermined abnormality / illegal processing such as taking in or ejecting 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 device 1 alternately updates the variable information (a) and (b) of the first and second information areas A6 and B6 every time it consumes, and each time it consumes. , And updates the third information area C6. Then, at the time of updating, the quantized data Ra and Rb obtained by quantizing the feature data read from the bar code BC section by the individual quantization method are added to the variable information (b) and (a), respectively, and The encrypted data Rab based on the quantized data Ra and Rb is updated and written as the variable information (c), and the quantized data Ra and Rb obtained by quantizing the characteristic data read from the barcode BC section at any time and the encrypted data based on these are written. Using the Rab, it is checked whether or not the variable information in each of the information areas A6, B6 and C6 can be decoded. In this way, an illegally copied prepaid card can be detected.

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

【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としてもよい。情
報記憶部を、さらに多数に分割して各分割された情報領
域に交互に量子化データを含む可変情報を書き込むよう
にしてもよい。
Further, in the above description, as shown in FIG. 27, the information storage unit DA6 has a one-track configuration, and the information storage unit DA6 of the one track is appropriately divided into three sections to form the information area A.
The case of forming 6, B6 and C6 has been described,
As shown in FIG. 35, the information storage unit DA is composed of three tracks.
7, each track is assigned to the first, second and third tracks, respectively.
The information area A7, B7 and C7 may be used as the prepaid card PC7. Further, as shown in FIG. 36, the information storage unit DA8 is composed of three tracks, and each track is defined as the first, second and third information areas A8, B8 and C8, respectively. 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, depending on consumption. The prepaid card PC 8 may be configured to store fixed information that is not rewritten when updating the balance or the like. The information storage unit may be further divided into a large number, and the variable information containing the quantized data may be written alternately in each of 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 money amount information on the entire magnetic layer is explained as an example of the prepaid card medium. It is not limited to the medium. For example, a card medium for magnetically recording information on a magnetic stripe pasted on a card, a so-called IC card medium in which an IC (integrated circuit) chip such as a memory is embedded on the card and information is stored in the IC chip, or these The present invention can be implemented in the same manner as described above for a prepaid card using a card medium or the like, which is appropriately combined, as a prepaid card medium.

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

【0154】本発明のプリペイドカードシステムは、専
用のプリペイドカードシステムとして構成することな
く、通常のコンピュータシステムを用いて実現すること
ができる。例えば、コンピュータシステムに上述の動作
を実行するためのプログラムを格納した媒体(フロッピ
ーディスク、CD−ROM等)から該プログラムをイン
ストールすることにより、上述の処理を実行するシステ
ムを構築することができる。インストールによって、当
該プログラムは、コンピュータシステム内のハードディ
スク等の媒体に格納されて、システムを構成し、実行に
供される。
The prepaid card system of the present invention can be realized by using an ordinary computer system without being constructed as a dedicated prepaid card system. For example, by installing the program in a computer system from a medium (a floppy disk, a CD-ROM, etc.) storing the program for executing the above operation, a system for executing the above 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 used 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 a communication line,
It may be a storage medium in a broad sense including a communication medium that temporarily and fluidly holds information such as programs, such as a communication network and a communication system. 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 the FTP client via the network, and may be distributed on the electronic bulletin board (BBS: Bullet) of the communication network.
In Board System) or the like and the program may be 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. Further, the above-described processing can be achieved by activating and executing the program while transferring the program through the communication network.

【0156】[0156]

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

【図面の簡単な説明】[Brief description of 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.

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

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

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

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

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

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

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

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

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

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

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

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

【図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 the prepaid card system according to the second embodiment of the present invention.

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

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

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

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

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

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

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

【図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 the prepaid card system according to the third embodiment of the present invention.

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

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

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

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

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

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

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

【図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 店舗 1 reading device 2 relay devices 3 recording devices 4 settlement center 11 Communication processing unit 12 Consumption processing unit 13 Storage 14 Reader / Writer 15 Check control unit 16 Cryptographic processing unit 17 Optical sensor 31 Encoding control unit 32 memory 33 Reader / Writer 34 Optical sensor 35 Cryptographic processing unit 36 Check Information Processing Department PC, PC1-PC8 Prepaid card D card issuer S store

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 平9−245135(JP,A) 特開 平11−102463(JP,A) 特開 平2−220898(JP,A) 特開 平7−220141(JP,A) (58)調査した分野(Int.Cl.7,DB名) G07F 7/00 - 7/12 G06K 7/00 - 7/14 G11B 20/00 ─────────────────────────────────────────────────── ─── Continuation of the front page (56) Reference JP-A-9-245135 (JP, A) JP-A-11-102463 (JP, A) JP-A-2-220898 (JP, A) JP-A-7- 220141 (JP, A) (58) Fields surveyed (Int.Cl. 7 , DB name) G07F 7/ 00-7/12 G06K 7 /00-7/14 G11B 20/00

Claims (19)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】所定部位にバーコードが印刷され、金銭的
価値に対応する金額情報を含む可変情報を記憶する記憶
媒体からなるプリペイドカードを用いて金銭的決済を行
うプリペイドカードシステムにおいて、 プリペイドカード媒体の前記所定部位に印刷されたバー
コード部分の地色を含む階調分布を光学的に検出し、該
階調分布のばらつきに対応する検出信号に基づく特徴情
報を量子化し、該量子化情報を暗号鍵として、該プリペ
イドカード媒体の二箇所の記憶領域に前記可変情報を暗
号化して記録して前記プリペイドカードとして発行する
記録手段と、 前記プリペイドカードの前記所定部位におけるバーコー
ド部分の地色を含む階調分布を光学的に検出し、該階調
分布のばらつきに対応する検出信号に基づく特徴情報を
量子化し、該量子化情報を暗号鍵として、当該プリペイ
ドカードの前記二箇所の記憶領域からの読出し情報を復
する手段と、前記二箇所の記憶領域の一方について、
復号された可変情報を前記プリペイドカードの消費金額
に応じて更新し、更新された可変情報を前記暗号鍵で暗
号化して他方の記憶領域に記録する処理を、前記二箇所
の記憶領域について交互に行う手段と、を備える読書手
段と、 を備えることを特徴とするプリペイドカードシステム。
1. A prepaid card system for performing financial settlement using a prepaid card, which comprises a storage medium in which a bar code is printed on a predetermined portion and variable information including monetary amount information corresponding to monetary value is stored. The gradation distribution including the background color of the bar code portion printed on the predetermined portion of the medium is optically detected, the characteristic information based on the detection signal corresponding to the variation of the gradation distribution is quantized, and the quantized information is quantized. Recording means for encrypting and recording the variable information in two storage areas of the prepaid card medium by using as an encryption key and issuing it as the prepaid card; and a background color of a bar code portion at the predetermined portion of the prepaid card. Is detected optically, and the characteristic information based on the detection signal corresponding to the variation of the gradation distribution is quantized, Information as an encryption key, and means for decoding the read information from the storage area of the two portions of the prepaid card, one for the storage area of the two locations,
The decrypted variable information is updated according to the consumption amount of the prepaid card, and the updated variable information is encrypted with the encryption key.
A prepaid card system, comprising: a reading unit that includes a unit that alternately performs a process of encoding and recording in the other storage region on the two storage regions.
【請求項2】前記記録手段は、前記プリペイドカード媒
体における前記バーコード部分の特徴情報を各記憶領域
毎に異なる量子化方式にて量子化した量子化情報を暗号
鍵として、予め記録すべき初期可変情報を暗号化して、
該プリペイドカード媒体の前記二箇所の記憶領域に記録
する手段を含み、且つ 前記読書手段は、前記特徴情報を、各記憶領域毎に前記
記録手段と共通の量子化方式により量子化した量子化情
報を、暗号化及び復号のための暗号鍵とする手段を含む
ことを特徴とする請求項1に記載のプリペイドカードシ
ステム。
2. The recording means preliminarily records the characteristic information of the bar code portion in the prepaid card medium as quantization key by using different quantization method for each storage area. Encrypt variable information,
Quantization information including means for recording in the two storage areas of the prepaid card medium, and the reading means quantized the characteristic information for each storage area by a quantization method common to the recording means. 2. The prepaid card system according to claim 1, further comprising means for making an encryption key for encryption and decryption.
【請求項3】前記読書手段は、前記バーコード部分の階
調分布の検出信号による特徴情報の量子化情報を暗号鍵
とする前記二箇所の記憶領域の前記可変情報の復号の可
否による不正検出を、前記プリペイドカードの装填時及
び前記可変情報の更新後に行う手段を含むことを特徴と
する請求項1又は2に記載のプリペイドカードシステ
ム。
3. The fraudulent detection based on whether or not the variable information can be decrypted in the two storage areas using the quantized information of the characteristic information by 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 or 2, further comprising means for performing the operation when the prepaid card is loaded and after the variable information is updated.
【請求項4】所定部位にバーコードが印刷された記憶媒
体からなるプリペイドカードの二箇所の記憶領域につい
、金額情報を含む可変情報読み出しと書き込みを行
リーダライタ手段と、 前記プリペイドカードの前記バーコード部分の地色を含
む階調分布を光学的に検出する光センサと、 前記光センサの検出信号に基づいて前記バーコード部分
の階調分布のばらつきに対応する特徴情報を量子化して
量子化情報を得て、該量子化情報を暗号鍵として用いて
暗号化及び復号処理を行う暗号処理手段と、 前記リーダライタ手段による前記プリペイドカードの前
二箇所の記憶領域からの読出し情報を、前記暗号処理
手段により復号する手段と前記二箇所の記憶領域のうちの一方について、復号され
た可変情報を 前記プリペイドカードの消費金額に応じて
更新し、更新された可変情報を前記暗号処理手段により
暗号化して、前記リーダライタ手段により他方の記憶領
域に記録する処理を、前記二箇所の記憶領域について
互に行制御手段と、を備えることを特徴とする読書装
置。
4. A storage area at two locations of a prepaid card comprising a storage medium having a bar code printed at a predetermined location.
Te, line the reading and writing of variable information, including the amount of money information
A reader / writer means, an optical sensor for optically detecting a gradation distribution including the background color of the bar code part of the prepaid card, and a gradation distribution of the bar code part based on a detection signal of the optical sensor. obtaining quantization information characteristic information corresponding to the variation in the quantization, and encryption processing means for performing encryption and decryption processing using the quantization information as an encryption key, the said prepaid card by the reader-writer means two The information read out from the storage area of the location is decrypted by the means for decrypting by the encryption processing means and by the one of the storage areas of the two locations.
Variable information according to the amount of consumption of the prepaid card
The updated variable information is updated by the encryption processing means.
It is encrypted and the other storage area is read by the reader / writer means.
The process for recording the frequency, reading apparatus characterized by comprising: a exchange <br/> each other row intends control means for the storage area of the two places.
【請求項5】前記プリペイドカードは、前記バーコード
部分の特徴情報を各記憶領域毎に異なる量子化方式にて
量子化した量子化情報を暗号鍵として、初期可変情報が
暗号化されて予め記憶され、且つ前記暗号処理手段は、
前記特徴情報を各記憶領域毎に前記初期可変情報と共通
の量子化方式により量子化した量子化情報を暗号鍵とし
て用いて、暗号化及び復号処理を行う手段を含むことを
特徴とする請求項4に記載の読書装置。
5. The prepaid card stores the initial variable information encrypted in advance by using the quantized 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 is
A means for performing encryption and decryption processing by using, as an encryption key, the quantized information obtained by quantizing the characteristic information in each storage area by the same quantization method as the initial variable information. The reading device according to item 4.
【請求項6】前記チェック制御手段は、前記暗号処理手
段による前記二箇所の記憶領域の前記可変情報の復号の
可否による不正検出を、前記プリペイドカードの装填時
及び前記可変情報の更新後に行う手段を含むことを特徴
とする請求項4又は5に記載の読書装置。
6. The check control means carries out fraudulent detection based on whether or not the variable information can be decrypted in the two storage areas by the cryptographic processing means when the prepaid card is loaded and after the variable information is updated. The reading device according to claim 4, further comprising:
【請求項7】所定部位にバーコードが印刷され、金銭的
価値に対応する金額情報を含む可変情報を記憶する記憶
媒体からなるプリペイドカードを用いて金銭的決済を行
うプリペイドカードシステムにおいて、 プリペイドカード媒体の前記所定部位に印刷されたバー
コード部分の地色を含む階調分布を光学的に検出し、該
階調分布のばらつきに対応する検出信号に基づく特徴情
報を量子化し、該量子化情報を暗号鍵とし、該量子化情
報を前記可変情報に含めて、該プリペイドカード媒体の
二箇所の記憶領域に前記可変情報を暗号化して記録して
前記プリペイドカードとして発行する記録手段と、 前記プリペイドカードの前記所定部位に印刷されたバー
コード部分の地色を含む階調分布を光学的に検出し、該
階調分布のばらつきに対応する検出信号に基づく特徴情
報を量子化し、該量子化情報を暗号鍵とし、前記二箇所
の記憶領域からの読出し情報を復号する手段と、前記二
箇所の記憶領域の一方について、復号された可変情報を
前記プリペイドカードの消費金額に応じて更新し、更新
された可変情報に前記量子化情報を含め、前記暗号鍵で
暗号化して他方の記憶領域に記録する処理を、前記二箇
の記憶領域について交互に行う手段と、を備える読書
手段と、を備えることを特徴とするプリペイドカードシ
ステム。
7. A prepaid card system for making a financial settlement using a prepaid card comprising a storage medium in which a bar code is printed on a predetermined portion and variable information including money amount information corresponding to monetary value is stored. The gradation distribution including the background color of the bar code portion printed on the predetermined portion of the medium is optically detected, the characteristic information based on the detection signal corresponding to the variation of the gradation distribution is quantized, and the quantized information is quantized. Is used as an encryption key, and the quantized information is included in the variable information.
Recording means for encrypting and recording the variable information in two storage areas and issuing it as the prepaid card; and an optical gradation distribution including a background color of a bar code portion printed on the predetermined portion of the prepaid card. to detect quantizes the feature information based on the detection signal corresponding to the variation of the gradation distribution, the quantization information and the encryption key, said two portions
Means for decoding the read information from the storage area of
Decoded variable information for one of the storage areas
Update and update according to the amount of consumption of the prepaid card
Including the quantized information into variable information, with the encryption key
The process of encrypting and recording the other storage area, said Nica
Prepaid card system characterized in that it comprises a reading means and means for performing alternately for the storage area of the place.
【請求項8】前記記録手段は、前記プリペイドカード媒
体における前記バーコード部分の特徴情報を各記憶領域
毎に異なる量子化方式にて量子化した量子化情報を暗号
鍵とし、他の記憶領域に対応する量子化情報を可変情報
に含めて、予め記録すべき初期可変情報を暗号化して、
該プリペイドカード媒体の前記二箇所の記憶領域に記録
する手段を含み、且つ 前記読書手段は、前記特徴情報を、各記憶領域毎に前記
記録手段と共通の量子化方式により量子化した量子化情
報を、暗号化及び復号のための暗号鍵とする手段を含む
ことを特徴とする請求項7に記載のプリペイドカードシ
ステム。
8. The recording means uses, as an encryption key, quantized information obtained by quantizing the characteristic information of the bar code portion in the prepaid card medium by a different quantization method for each memory area, and using the quantized information in another memory area. Include the corresponding quantized information in the variable information, encrypt the initial variable information to be recorded in advance,
Quantization information including means for recording in the two storage areas of the prepaid card medium, and the reading means quantized the characteristic information for each storage area by a quantization method common to the recording means. 8. The prepaid card system according to claim 7, further comprising means for using as an encryption key for encryption and decryption.
【請求項9】前記読書手段は、前記バーコード部分の階
調分布の検出信号による特徴情報の量子化情報を暗号鍵
とする前記二箇所の記憶領域の前記可変情報の復号の可
否による不正検出を、前記プリペイドカードの装填時及
び前記可変情報の更新後に行う手段を含むことを特徴と
する請求項7又は8に記載のプリペイドカードシステ
ム。
9. The fraudulent detection based on whether or not the variable information can be decrypted in the two storage areas using the quantized information of the characteristic information obtained by the detection signal of the gradation distribution of the bar code portion as an encryption key. 9. The prepaid card system according to claim 7, further comprising means for performing the operation when the prepaid card is loaded and after the variable information is updated.
【請求項10】前記読書手段は、前記バーコード部分の
階調分布の検出信号による特徴情報の量子化情報を暗号
鍵とする前記二箇所の記憶領域の前記可変情報の復号の
可否による不正検出時に、前記可変情報中の量子化情報
を前記特徴情報の実測により得た対応する量子化情報と
比較照合して不正検出を行う手段をさらに含むことを特
徴とする請求項7乃至9のうちのいずれか1項に記載の
プリペイドカードシステム。
10. The fraudulent detection by the reading means based on whether or not the variable information can be decrypted in the two storage areas using the quantized information of the characteristic information by the detection signal of the gradation distribution of the bar code portion as an encryption key. 10. The method according to claim 7, further comprising a unit for performing fraud detection by comparing and comparing the quantized information in the variable information with corresponding quantized information obtained by actually measuring the characteristic information. The prepaid card system according to any one of items.
【請求項11】所定部位にバーコードが印刷され、金銭
的価値に対応する金額情報を含む可変情報を記憶する記
憶媒体からなるプリペイドカードを用いて金銭的決済を
行うプリペイドカードシステムにおいて、 プリペイドカード媒体の前記所定部位に印刷されたバー
コード部分の地色を含む階調分布を光学的に検出し、該
階調分布のばらつきに対応する検出信号に基づく特徴情
報を量子化し、該量子化情報を含めて、該プリペイドカ
ード媒体の複数の記憶領域のうちの二箇所の記憶領域に
初期可変情報を記録し、且つ前記量子化情報を暗号化し
て前記複数の記憶領域の他の記憶領域に記録して前記プ
リペイドカードとして発行する記録手段と、 前記プリペイドカードの前記所定部位に印刷されたバー
コード部分の地色を含む階調分布を光学的に検出し、該
階調分布のばらつきに対応する検出信号に基づく特徴情
報を量子化して量子化情報を取得し、前記二箇所の記憶
領域を読み取る手段と、前記二箇所の記憶領域の一方に
ついて、読み取られた可変情報を前記プリペイドカード
の消費金額に応じて更新し、更新された可変情報に前記
量子化情報を含めて、他方の記憶領域に記憶する処理
を、前記二箇所の記憶領域について交互に行うととも
に、前記可変情報の更新の都度、前記量子化情報を暗号
化して前記他の記憶領域に更新記憶させる手段と、を備
える読書手段と、を備えることを特徴とするプリペイド
カードシステム。
11. A prepaid card system for performing a financial settlement using a prepaid card comprising a storage medium in which a bar code is printed on a predetermined portion and variable information including money amount information corresponding to a monetary value is stored. The gradation distribution including the background color of the bar code portion printed on the predetermined portion of the medium is optically detected, the characteristic information based on the detection signal corresponding to the variation of the gradation distribution is quantized, and the quantized information is quantized. Including the above, initial variable information is recorded in two storage areas of the plurality of storage areas of the prepaid card medium, and the quantized information is encrypted and recorded in another storage area of the plurality of storage areas. Recording means for issuing as the prepaid card, and an optical gradation distribution including the background color of the bar code portion printed on the predetermined portion of the prepaid card. It detected, the acquired quantization information by quantizing the feature information based on the detection signal corresponding to the variation of the gradation distribution, storage of the two portions
Area reading means and one of the two storage areas
About the read variable information, the prepaid card
Processing for updating in accordance with the consumption amount, and including the quantized information in the updated variable information and storing it in the other storage area.
And Bei performs alternately for the storage area of the two places, each time updating of the variable information, and means for updating stored in the other storage area to encrypt the quantization information, the
Prepaid card system comprising: the obtaining reading means.
【請求項12】前記記録手段は、前記プリペイドカード
媒体における前記バーコード部分の特徴情報を各記憶領
域毎に異なる量子化方式にて量子化した量子化情報を含
む初期可変情報を、前記二箇所の記憶領域に予め記憶す
る手段を含み、且つ前記読書手段は、前記特徴情報を各
記憶領域毎に前記初期可変情報と共通の量子化方式によ
り量子化した量子化情報を、前記可変情報中の量子化情
報と照合するとともに、前記可変情報の復号の可否を判
別することにより、不正を検出する手段を含むことを特
徴とする請求項11に記載のプリペイドカードシステ
ム。
12. The recording means stores initial variable information including quantized information obtained by quantizing characteristic information of the bar code portion of the prepaid card medium by a different quantization method for each storage area at the two locations. Of the variable information, the reading means quantizes the quantized information obtained by quantizing the characteristic information for each memory area by the same quantization method as the initial variable information in the variable information. 12. The prepaid card system according to claim 11, further comprising means for detecting fraud by matching the quantized information and determining whether or not the variable information can be decoded.
【請求項13】前記読書手段は、前記バーコード部分の
階調分布の検出信号による特徴情報の量子化情報と前記
二箇所の記憶領域から読み出した前記可変情報における
前記量子化情報との照合による不正検出を、前記プリペ
イドカードの装填時及び前記可変情報の更新後に行う手
段を含むことを特徴とする請求項11又は12に記載の
プリペイドカードシステム。
13. The reading means includes the quantized information of the characteristic information based on the detection signal of the gradation distribution of the bar code portion and the quantized information.
The means for performing fraud detection by collating with the quantized information in the variable information read from two storage areas when the prepaid card is loaded and after the variable information is updated. The prepaid card system according to item 12.
【請求項14】前記読書手段は、前記プリペイドカード
の装填時及び前記可変情報の更新後に、前記バーコード
部分の階調分布の検出信号による特徴情報の量子化情報
を用いて、前記他の記憶領域から読み出した前記量子化
情報の復号の可否による不正検出を行う手段をさらに含
むことを特徴とする請求項11乃至13のうちのいずれ
か1項に記載のプリペイドカードシステム。
14. The reading means uses the quantized information of the characteristic information by 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 stores the other information. Quantization read from region
The prepaid card system according to any one of claims 11 to 13, further comprising means for performing fraud detection based on whether or not information can be decrypted.
【請求項15】所定部位にバーコードが印刷され、金銭15. A bar code is printed on a predetermined portion to make money.
的価値に対応する金額情報を含む可変情報を記憶する記To store variable information including monetary amount information corresponding to the intellectual value
憶媒体からなるプリペイドカードを用いて金銭的決済をMake a financial payment using a prepaid card consisting of a storage medium
行うプリペイドカードシステムにおいて、In the prepaid card system to do, プリペイドカード媒体の前記所定部位に印刷されたバーA bar printed on the predetermined portion of the prepaid card medium
コード部分の地色を含Including the ground color of the code part む階調分布を光学的に検出し、該The gradation distribution is optically detected and
階調分布のばらつきに対応する検出信号に基づく特徴情Feature information based on detection signals corresponding to variations in gradation distribution
報を量子化し、該量子化情報を暗号鍵として、該プリペInformation is quantized and the quantized information is used as an encryption key to
イドカード媒体の複数の記憶領域に前記可変情報を暗号The variable information is encrypted in a plurality of storage areas of the id card medium.
化して記録して前記プリペイドカードとして発行する記A note that is converted and recorded and issued as the prepaid card
録手段と、Recording means, 前記プリペイドカードの前記所定部位におけるバーコーBar code at the predetermined portion of the prepaid card
ド部分の地色を含む階調分布を光学的に検出し、該階調The gradation distribution including the background color of the
分布のばらつきに対応する検出信号に基づく特徴情報をFeature information based on the detection signal corresponding to the variation in distribution
量子化し、該量子化情報を暗号鍵として、当該プリペイQuantize and use the quantized information as an encryption key to
ドカードの前記複数の記憶領域からの読出し情報を復号Decoding information read from the storage areas of the card
する手段と、前記複数の記憶領域の一つから読み出してMeans for reading and reading from one of the plurality of storage areas
復号した可変情報を前記プリペイドカードの消費金額にThe decrypted variable information is used as the consumption amount of the prepaid card.
応じて更新し、更新された可変情報を前記暗号鍵で暗号The encrypted variable information is encrypted with the encryption key.
化して他の記憶領域に記録する手段と、を備える読書手And a means for recording in another storage area
段と、Dan, を備えることを特徴とするプリペイドカードシステム。A prepaid card system comprising:
【請求項16】所定部位にバーコードが印刷され、金銭16. A bar code is printed on a predetermined portion to make money.
的価値に対応する金額情報を含む可変情報を記憶する記To store variable information including monetary amount information corresponding to the intellectual value
憶媒体からなるプリペイドカードを用いて金銭的決済をMake a financial payment using a prepaid card consisting of a storage medium
行うプリペイドカードシステムにおいて、In the prepaid card system to do, プリペイドカード媒体の前記所定部位に印刷されたバーA bar printed on the predetermined portion of the prepaid card medium
コード部分の地色を含む階調分布を光学的に検出し、該The gradation distribution including the background color of the code part is optically detected,
階調分布のばらつきに対応する検出信号に基づく特徴情Feature information based on detection signals corresponding to variations in gradation distribution
報を量子化し、該量子化情報を暗号鍵とし、該量子化情Information is quantized, and the quantized information is used as an encryption key.
報を前記可変情報に含めて、該プリペイドカード媒体のOf the prepaid card medium by including the information in the variable information.
複数の記憶領域に前記可変情報を暗号化して記録して前Before encrypting and recording the variable information in multiple storage areas
記プリペイドカードとして発行する記録手段と、Recording means issued as a prepaid card, 前記プリペイドカードの前記所定部位に印刷されたバーA bar printed on the predetermined part of the prepaid card
コード部分の地色を含む階調分布を光学的に検出し、該The gradation distribution including the background color of the code part is optically detected,
階調分布のばらつきに対応する検出信号に基づく特徴情Feature information based on detection signals corresponding to variations in gradation distribution
報を量子化し、該量子化情報を暗号鍵とし、前記複数のInformation is quantized, and the quantized information is used as an encryption key.
記憶領域からの読出し情報を復号する手段と、前記複数Means for decoding information read from the storage area,
の記憶領域の一つから読み出して復号した可変情報を前The variable information read from one of the storage areas of
記プリペイドカードの消費金額に応じて更新し、更新さIt is updated and updated according to the consumption amount of the prepaid card.
れた可変情報に前記量子化情報を含め、前記暗号鍵で暗The quantized information is included in the stored variable information and encrypted with the encryption key.
号化して他の記憶領域に記録する手段と、を備える読書And a means for encoding and recording in another storage area
手段と、を備えることを特徴とするプリペイドカードシAnd a means for prepaid card payment
ステム。Stem.
【請求項17】所定部位にバーコードが印刷され、金銭17. A bar code is printed on a predetermined portion to make money.
的価値に対応する金額情報を含む可変情報を記憶する記To store variable information including monetary amount information corresponding to the intellectual value
憶媒体からなるプリペイドカードを用いて金銭的決済をMake a financial payment using a prepaid card consisting of a storage medium
行うプリペイドカードシステムにおいて、In the prepaid card system to do, プリペイドカード媒体の前記所定部位に印刷されたバーA bar printed on the predetermined portion of the prepaid card medium
コード部分の地色を含む階調分布を光学的に検出し、該The gradation distribution including the background color of the code part is optically detected,
階調分布のばらつきに対応する検出信号に基づく特徴情Feature information based on detection signals corresponding to variations in gradation distribution
報を量子化し、該量子化情報を含めて、該プリペイドカInformation is quantized, and the prepaid card
ード媒体の複数の記憶領域に初期可変情報を記録し、且Initial variable information is recorded in a plurality of storage areas of the hard disk, and
つ前記量子化情報を暗号化して他の所定の記憶領域に記The above quantized information is encrypted and recorded in another predetermined storage area.
録して前記プリペイドカードとして発行する記録手段Recording means for recording and issuing as the prepaid card
と、When, 前記プリペイドカードの前記所定部位に印刷されたバーA bar printed on the predetermined part of the prepaid card
コード部分の地色を含む階調分布を光学的に検出し、該The gradation distribution including the background color of the code part is optically detected,
階調分布のばらつきに対応する検出信号に基づく特徴情Feature information based on detection signals corresponding to variations in gradation distribution
報を量子化して量子化情報を取得し、前記複数の記憶領Information is quantized to obtain quantized information, and
域を読み取る手段と、前記複数の記憶領域の一つから読Area reading means and reading from one of the plurality of storage areas
み取られた可変情報を前記プリペイドカードの消費金額The variable information captured is the consumption amount of the prepaid card.
に応じて更新し、更新された可変情報に前記量子化情報The quantized information is updated according to the updated variable information.
を含めて、前記複数の記憶領域における他の記憶領域にTo other storage areas in the plurality of storage areas including
記憶し、前記可変情報の更新の都度、前記量子化情報をThe quantization information is stored every time the variable information is updated.
暗号化して前記他の所定の記憶領域に更新記憶させる手A method of encrypting and updating and storing in another predetermined storage area.
段と、を備える読書手段と、を備えることを特徴とするA reading means including a step, and
プリペイドカードシステム。Prepaid card system.
【請求項18】所定部位にバーコードが印刷され、金銭
的価値に対応する金額情報を含む可変情報を記憶する記
憶媒体からなるプリペイドカードを用いて金銭的決済を
行うプリペイドカードシステムにおける可変情報更新方
法であって、 プリペイドカードの発行時において、該プリペイドカー
ド媒体の前記所定部位に印刷されたバーコード部分の地
色を含む階調分布を光学的に検出し、該階調分布のばら
つきに対応する検出信号に基づく特徴情報を量子化して
量子化情報を生成する生成ステップと、 前記生成ステップにより生成された前記量子化情報を暗
号鍵として、前記プリペイドカード媒体の二箇所の記憶
領域に前記可変情報を暗号化して記録して前記プリペイ
ドカードを発行する発行ステップと、 プリペイドカードの使用時において、該プリペイドカー
ドの前記所定部位におけるバーコード部分の地色を含む
階調分布を光学的に検出し、該階調分布のばらつきに対
応する検出信号に基づく特徴情報を量子化して量子化情
報を生成する量子化情報生成ステップと、 前記量子化情報生成ステップにより生成された前記量子
化情報を暗号鍵として、当該プリペイドカードの前記
箇所の記憶領域からの読出し情報を復号するステップ
前記二箇所の記憶領域のうちの一方について、復号され
た可変情報を 前記プリペイドカードの消費金額に応じて
更新し、更新された可変情報を前記暗号鍵で暗号化して
他方の記憶領域に記録する処理を、前記二箇所の記憶領
について交互に行うステップと、を備えることを特徴
とする可変情報更新方法。
18. A variable information update in a prepaid card system for performing financial settlement using a prepaid card which is a storage medium in which a bar code is printed on a predetermined portion and variable information including amount information corresponding to monetary value is stored. A method of optically detecting a gradation distribution including a background color of a bar code portion printed on the predetermined portion of the prepaid card medium when issuing a prepaid card, and responding to variations in the gradation distribution. Generating step of quantizing the characteristic information based on the detection signal to generate the quantized information, and the quantized information generated by the generating step as an encryption key, in the two storage areas of the prepaid card medium. At the issuing step of issuing the prepaid card by encrypting and recording the information, and when using the prepaid card Quantized information is generated by optically detecting a gradation distribution including the background color of the bar code portion in the predetermined portion of the prepaid card, and quantizing the characteristic information based on the detection signal corresponding to the variation in the gradation distribution. a quantization information generating step, the quantization information generated by the quantization information generating step as the encryption key, said of the prepaid card two to
Step of decoding the read information from the storage area locations
And one of the two storage areas is decrypted.
Variable information according to the amount of consumption of the prepaid card
Update the encrypted variable information using the encryption key
And a step of alternately performing the process of recording in the other storage area with respect to the two storage areas.
【請求項19】所定部位にバーコードが印刷され、金銭
的価値に対応する金額情報を含む可変情報を記憶する記
憶媒体からなるプリペイドカードを用いて金銭的決済を
行うプリペイドカードシステムにおける可変情報更新方
法であって、 プリペイドカードの発行時において、該プリペイドカー
ド媒体の前記所定部位に印刷されたバーコード部分の地
色を含む階調分布を光学的に検出し、該階調分布のばら
つきに対応する検出信号に基づく特徴情報を量子化して
量子化情報を生成する生成ステップと、 前記生成ステップにより生成された前記量子化情報を前
記可変情報に含めて、該量子化情報を暗号鍵として、前
記可変情報を該プリペイドカード媒体の二箇所の記憶領
域に暗号化して記録して、前記プリペイドカードを発行
する発行ステップと、 プリペイドカードの使用時において、該プリペイドカー
ドの前記所定部位に印刷されたバーコード部分の地色を
含む階調分布を光学的に検出し、該階調分布のばらつき
に対応する検出信号に基づく特徴情報を量子化して量子
化情報を生成する量子化情報生成ステップと、 前記量子化情報生成ステップにより生成された前記量子
化情報を暗号鍵として 、前記二箇所の記憶領域からの読
出し情報を復号するステップと、 前記二箇所の記憶領域の一方について、復号された可変
情報を前記プリペイドカードの消費金額に応じて更新
し、更新された 可変情報に前記量子化情報を含めて、
記暗号鍵で暗号化して他方の記憶領域に記録する処理
、前記二箇所の記憶領域について交互に行うステップ
と、を備えることを特徴とする可変情報更新方法。
19. A variable information update in a prepaid card system for performing financial settlement using a prepaid card which is a storage medium in which a bar code is printed on a predetermined portion and variable information including amount information corresponding to monetary value is stored. A method of optically detecting a gradation distribution including a background color of a bar code portion printed on the predetermined portion of the prepaid card medium when issuing a prepaid card, and responding to variations in the gradation distribution. A generating step of quantizing the characteristic information based on the detection signal to generate quantized information, and including the quantized information generated by the generating step in the variable information, and using the quantized information as an encryption key, issuing step of the variable information recorded encrypted in a storage area of the two portions of the prepaid card medium, to issue the prepaid card When a prepaid card is used, a gradation distribution including a background color of a bar code portion printed on the predetermined portion of the prepaid card is optically detected, and based on a detection signal corresponding to the variation in the gradation distribution. A quantization information generating step of quantizing the characteristic information to generate quantization information; and a reading from the two storage areas using the quantization information generated by the quantization information generating step as an encryption key.
The step of decrypting the output information, and the decrypted variable for one of the two storage areas.
Update information according to the consumption amount of the prepaid card
And, including the quantization information on the updated variable information, before
Processing to encrypt with the encryption key and record in the other storage area
And a step of alternately performing the above two storage areas, the variable information updating method.
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 JP2000259920A (en) 2000-09-22
JP3483792B2 true 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
JP2000259920A (en) 2000-09-22

Similar Documents

Publication Publication Date Title
US20060174136A1 (en) Recording transactional information relating to an object
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
JP3472179B2 (en) Prepaid card system, reading device and usage permission method
JP3490921B2 (en) Prepaid card system, relay device and reading device
JPH11191173A (en) Prepaid card system, controller, repeater, center and reader/writer
JP2000268308A (en) Prepaid card system, reading and writing apparatus, and method for identifying card
JP3410381B2 (en) Prepaid card system, reading device and variable information updating method
JPH11328333A (en) Prepaid card system and reader writer
JP3572214B2 (en) Prepaid card system, initial recording device and settlement device
JPH11328505A (en) Prepaid card system and reader/writer
JPH11102468A (en) Prepaid card system, card reader and card unauthorized use preventing method
JP3376309B2 (en) Prepaid card system, reading device, recording device, and variable information updating method
JP2000259922A (en) Prepaid card system, reading and writing device and variable information updating method
JP2000030124A (en) Prepaid card system, reader and password transaction method
JP3467204B2 (en) Prepaid card system, reading device and card identification method
KR100436234B1 (en) The prevention method of program&#39;s illegal reproduction and the apparatus for thereof
JPH11328503A (en) Prepaid card system, recorder, reader/writer, ticket issuing machine and illegal card use prevention method
JP2000030126A (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
JP2000268306A (en) Prepaid card system, reading and writing apparatus, and method for discriminating card
JP2000259909A (en) Prepaid card system, recording device, reading device and card discriminating 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