JPH06101015B2 - Cash card - Google Patents
Cash cardInfo
- Publication number
- JPH06101015B2 JPH06101015B2 JP25999585A JP25999585A JPH06101015B2 JP H06101015 B2 JPH06101015 B2 JP H06101015B2 JP 25999585 A JP25999585 A JP 25999585A JP 25999585 A JP25999585 A JP 25999585A JP H06101015 B2 JPH06101015 B2 JP H06101015B2
- Authority
- JP
- Japan
- Prior art keywords
- error
- code
- card
- charge amount
- inverse conversion
- 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
Links
- 238000006243 chemical reaction Methods 0.000 claims description 15
- 238000001514 detection method Methods 0.000 claims description 12
- 238000000034 method Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 238000007796 conventional method Methods 0.000 description 1
Landscapes
- Prepayment Telephone Systems (AREA)
- Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
Description
【発明の詳細な説明】 (産業上の利用分野) 本発明は課金装置との間で課金処理を行なう現金カード
に関する。TECHNICAL FIELD The present invention relates to a cash card for performing a charging process with a charging device.
(従来の技術) 演算機能を有するカード(以下、ICカードと称する)を
利用した課金方式としては、ICカードの認証機能を利用
した次の方式がある。ICカードと課金装置は秘密のコー
ドKMを共有している。課金装置は乱数RNを生成し、KMで
暗号化された料金額Fと共にICカードに送る。ICカード
は暗号化された料金額をKMで復号化してFを得、ICカー
ドに記憶されている残金からFを引く。さらにRNをKMで
暗号化して課金装置に返送する。課金装置ではそれをKM
で復号化し、RNと一致すれば改ざんがなされなかったと
見做して、料金額Fを清算する。(Prior Art) As a charging method using a card having an arithmetic function (hereinafter referred to as an IC card), there is the following method using an IC card authentication function. The IC card and the billing device share the secret code KM. The billing device generates a random number RN and sends it to the IC card together with the fee amount F encrypted with KM. The IC card decrypts the encrypted fee amount with KM to obtain F, and subtracts F from the balance stored in the IC card. Furthermore, RN is encrypted with KM and returned to the billing device. In billing devices it KM
Decryption is performed, and if it matches RN, it is considered that the tampering has not been performed, and the fee F is cleared.
(発明が解決しようとする問題点) 従来の方式によれば、課金装置が改ざんありと判断した
時料金額Fを清算しないにもかかわらず、ICカードでは
残金を減額してしまうという欠点を有する。課金装置で
返送されたものをKMで復号化してRNが現われないと事態
は改ざんによる他、悪意によらない単なるエラーの可能
性もある。悪意のICカード所有者がメッセージを改ざん
した場合にはICカードのみ減額されても自業自得である
が、それ以外の場合も多いので課金装置が清算しない場
合にはICカードも減算しない方が望ましい。(Problems to be Solved by the Invention) According to the conventional method, there is a drawback that the remaining amount is reduced with the IC card, even though the charging device determines that the tampering has not been performed and the fee amount F is not settled. . If the KM does not appear after decrypting what is returned by the billing device with KM, the situation may be tampering or it may be a simple error that is not malicious. If a malicious IC card owner falsifies the message, even if the IC card is reduced, it is self-profitable, but in many other cases, it is better not to subtract the IC card if the billing device does not settle. desirable.
本発明の目的はこの欠点を除去することにある。The object of the invention is to eliminate this drawback.
(問題点を解決するための手段) 本発明の現金カードは、現金に相当する残額CSを有し、
あらかじめ定められたパターンKM及び誤り・改ざん検出
コードCCを共有して、課金装置との間で金融取引を行う
現金カードにおいて、前記あらかじめ定められたパター
ンKMに依存して符号変換された料金額Fと乱数KWを前記
課金装置から受信した後、逆変換する第1の逆変換手段
と、前記誤り・改ざん検出コードCCを前記第1の逆変換
手段の出力に含まれる乱数KWに依存して符号変換した
後、前記課金装置に通知する符号変換手段と、前記課金
装置において該装置が料金額Fを減額したか否かを示す
情報と前記誤り・改ざん検出コードCCを、前記乱数KWに
依存して符号変換した後、受信して逆変換する第2の逆
変換手段と、前記の第2の逆変換手段の出力に含まれる
誤り・改ざん検出コードCCが共有のものか否かを判定す
る判定手段と、前記判定手段が肯定的な判定をし、かつ
前記課金装置が料金額Fを減額しなかったことを示す情
報が送られている場合には、現金に相当する残額CSから
前記料金額Fを減算せず、前記課金装置が料金額Fを減
額した情報が送られている場合には、残額CSから料金額
Fを減算する減算手段とからなることを特徴とする。(Means for Solving Problems) The cash card of the present invention has a balance CS equivalent to cash,
In a cash card which shares a predetermined pattern KM and an error / falsification detection code CC and conducts a financial transaction with a billing device, the amount of charge F code-converted depending on the predetermined pattern KM. And a random number KW are received from the billing device and then inversely converted, and the error / falsification detection code CC is coded depending on the random number KW included in the output of the first inverse converter. After conversion, the code conversion means for notifying the billing device, the information indicating whether or not the billing device has reduced the charge amount F and the error / falsification detection code CC depend on the random number KW. Second reverse conversion means for receiving and reverse conversion after receiving the code conversion, and determining whether or not the error / falsification detection code CC included in the output of the second reverse conversion means is shared. Means and the judgment hand Does not subtract the charge amount F from the balance CS corresponding to cash, when the positive determination is made and information indicating that the charging device did not reduce the charge amount F is sent. When the billing device has sent information in which the charge amount F has been reduced, it comprises subtraction means for subtracting the charge amount F from the balance CS.
(作用) 第2図を用いて本発明がどのように作用するかを示す。
201は課金装置、202はICカードであり、両者は秘密キー
KMを共有している。課金装置がICカードに支払ってもら
いたい料金額をF、ICカードが所有している金額即ち残
金をCSとする。まず課金装置201は乱数KWを発生し、料
金額Fと共にKMで暗号化してICカードに送る。ICカード
はKMで暗号化されたEKM(F,KW)を受け取り、KMで復号
化する。そして残金CSからF′を引く。F′は本来Fと
一致すべきものであるが、CS<Fのときなどに一部でも
支払おうとする場合に、実際に支払われる金額である。
このF′と誤り・改ざん検出コードCCをキーKWで暗号化
して課金装置に送る。(Operation) How the present invention works will be described with reference to FIG.
201 is a billing device and 202 is an IC card, both of which are secret keys
Share KM. Let F be the amount of money that the billing device wants the IC card to pay, and CS be the amount of money owned by the IC card, that is, the balance. First, the charging device 201 generates a random number KW, encrypts it with the fee amount F with KM, and sends it to the IC card. The IC card receives E KM (F, KW) encrypted with KM and decrypts it with KM. Then subtract F'from the balance CS. Although F'should be the same as F originally, it is the actual amount to be paid in case of partial payment when CS <F.
This F'and the error / falsification detection code CC are encrypted with the key KW and sent to the billing device.
CCは、課金装置とICカードとの間に予め設定されたビッ
トパターンである。例えば、CCが111……1のALL″1″
であるとする。このとき、ICカードはF′とCCをKWで暗
合化し課金装置に送る。課金装置は受け取った暗号文を
KWで復号化し、正しいCC(ビットパターンがALL″
1″)が検出されれば誤り・改ざんがなかったものと判
断してF′からFを引き、さもなければFをそのままに
して、CCが正しかった否かの情報AとCCをKWで暗合化し
てICカードに送る。ICカードはそれを復号化し、正しい
CCが出てくればエラーや改ざんはないと判断し、さらに
情報Aが課金装置はFからF′を減額していないことを
示していればCSにF′を加えて、元のF′を減額する前
の状態に戻す。CC is a bit pattern preset between the charging device and the IC card. For example, CC with 111 …… 1 ALL "1"
Suppose At this time, the IC card encrypts F'and CC with KW and sends them to the billing device. The billing device uses the received ciphertext
Decode with KW, correct CC (bit pattern is ALL ″
If 1 ″) is detected, it is determined that there is no error or tampering, and F is subtracted from F ′. Otherwise, F is left as it is, and the information A indicating whether CC is correct and CC are encrypted with KW. And send it to the IC card, which decrypts it and
If CC comes out, it is judged that there is no error or tampering, and if the information A indicates that the charging device does not reduce F'from F ', CS is added with F'and the original F'is added. Return to the state before the reduction.
(実施例) 第1図は本発明の実施例を示すブロック図である。本発
明は第1図のICカード202に関するものである。インタ
ーフェース101は課金装置105とインターフェースをと
る。暗号・復号器103は暗号化、復号化を行なう。プロ
セッサ102はメモリ104へのデータの出入力管理、四則演
算等を実行するが、詳しくは第3図のフローチャートに
示す。第3図において、課金装置からキーKMで暗号化さ
れた料金額Fと乱数KWを受けとると暗号・復号器103で
復号させ、ICカードの残金CSからF′を引く。F′は本
来Fと一致すべきものであるが、CS<Fのときなどに一
部でも支払おうとする場合に実際に支払われる金額であ
る。また、F′と誤り・改ざん検出コードCCをKWをキー
として暗号・復号器103で暗号化させ、課金装置に送
る。一方課金装置から課金装置にて減額したか否かを示
す情報Aと誤り・改ざん検出コードCCをKWで暗号化した
データを受信すると、プロセッサ102はそれを暗号・復
号器103で復号化させ、もし誤り・改ざん検出コードが
正しくかつAが課金装置で減額しなかったことを示して
いるならばICカードの残金CSにF′を加えて元の残金に
戻しておく。(Embodiment) FIG. 1 is a block diagram showing an embodiment of the present invention. The present invention relates to the IC card 202 shown in FIG. The interface 101 interfaces with the charging device 105. The encryption / decryption device 103 performs encryption and decryption. The processor 102 executes input / output management of data to and from the memory 104, four arithmetic operations and the like, which will be described in detail in the flowchart of FIG. In FIG. 3, when the charge amount F and the random number KW encrypted with the key KM are received from the billing device, they are decrypted by the encryption / decryption device 103, and F'is subtracted from the balance CS of the IC card. Although F'should be the same as F originally, it is the amount actually paid when a part is to be paid when CS <F. Further, F'and the error / falsification detection code CC are encrypted by the encryption / decryption device 103 using KW as a key and sent to the billing device. On the other hand, when the information A indicating whether or not the bill is reduced by the billing device and the data in which the error / falsification detection code CC is encrypted by KW is received from the billing device, the processor 102 causes the encryption / decryption device 103 to decrypt it. If the error / falsification detection code is correct and A indicates that the bill has not been reduced by the billing device, F'is added to the balance CS of the IC card to restore the balance.
本実施例において、暗号・復号器103は課金装置の暗号
・復号器と同一の働きをするものであるが、プロセッサ
102に代用させることもできる。また本実施例ではICカ
ードがまず残額を通知するようにすれば後に支払金額
F′を通知する必要がなくなる。In the present embodiment, the encryption / decryption device 103 has the same function as the encryption / decryption device of the billing device, but the processor
It is possible to substitute 102. Further, in this embodiment, if the IC card first notifies the balance, it is not necessary to notify the payment amount F'afterwards.
(発明の効果) 以上詳細に説明したように本発明を用いればICカードと
課金装置の課金処理にずれが生じないようにできるので
その効果は大きい。(Effects of the Invention) As described in detail above, the use of the present invention makes it possible to prevent a gap in the charging process between the IC card and the charging device, which is a great effect.
第1図は本発明の実施例を示す図、第2図は本発明の作
用を示すための図、第3図はプロセッサ102のなすべき
作業のフローチャートである。 図において、101はインターフェース、102はプロセッ
サ、103は暗号・復号器、104はメモリ、105,201は課金
装置、202はICカードを各々示す。FIG. 1 is a diagram showing an embodiment of the present invention, FIG. 2 is a diagram showing the operation of the present invention, and FIG. 3 is a flowchart of the work to be performed by the processor 102. In the figure, 101 is an interface, 102 is a processor, 103 is an encryption / decryptor, 104 is a memory, 105 and 201 are billing devices, and 202 is an IC card.
───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.5 識別記号 庁内整理番号 FI 技術表示箇所 H04L 9/00 9/10 9/12 ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 5 Identification code Office reference number FI technical display location H04L 9/00 9/10 9/12
Claims (1)
定められたパターンKM及び誤り・改ざん検出コードCCを
共有して、課金装置との間で金融取引を行う現金カード
において、前記あらかじめ定められたパターンKMに依存
して符号変換された料金額Fと乱数KWを前記課金装置か
ら受信した後、逆変換する第1の逆変換手段と、 前記誤り・改ざん検出コードCCを前記第1の逆変換手段
の出力に含まれる乱数KWに依存して符号変換した後、前
記課金装置に通知する符号変換手段と、 前記課金装置において該装置が料金額Fを減額したか否
かを示す情報と前記誤り・改ざん検出コードCCを、前記
乱数KWに依存して符号変換した後、受信して逆変換する
第2の逆変換手段と、 前記の第2の逆変換手段の出力に含まれる誤り・改ざん
検出コードCCが共有のものか否かを判定する判定手段
と、 前記判定手段が肯定的な判定をし、かつ前記課金装置が
料金額Fを減額しなかったことを示す情報が送られてい
る場合には、現金に相当する残額CSから前記料金額Fを
減算せず、前記課金装置が料金額Fを減額した情報が送
られている場合には、残額CSから料金額Fを減算する減
算手段 とからなることを特徴とする現金カード。1. A cash card that has a balance CS equivalent to cash, shares a predetermined pattern KM and an error / falsification detection code CC, and performs a financial transaction with a billing device, wherein the predetermined amount is set. First inverse conversion means for performing inverse conversion after receiving the charge amount F and the random number KW code-converted depending on the received pattern KM from the charging device, and the error / falsification detection code CC for the first inverse conversion means. Code conversion means for notifying the charging device after code conversion depending on the random number KW included in the output of the inverse conversion means, and information indicating whether or not the charging amount F has been reduced by the device in the charging device. Second inverse conversion means for receiving and inversely converting the error / falsification detection code CC after the code conversion depending on the random number KW; and the error / error included in the output of the second inverse conversion means. The tampering detection code CC is shared In the case where the determination means for determining whether or not the information is sent and the information indicating that the determination means makes an affirmative determination and the charging device has not reduced the charge amount F, it corresponds to cash. When the billing device does not subtract the charge amount F from the balance CS and sends the information in which the charge amount F is reduced, the subtraction means subtracts the charge amount F from the balance CS. And a cash card.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP25999585A JPH06101015B2 (en) | 1985-11-19 | 1985-11-19 | Cash card |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP25999585A JPH06101015B2 (en) | 1985-11-19 | 1985-11-19 | Cash card |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS62118472A JPS62118472A (en) | 1987-05-29 |
| JPH06101015B2 true JPH06101015B2 (en) | 1994-12-12 |
Family
ID=17341828
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP25999585A Expired - Lifetime JPH06101015B2 (en) | 1985-11-19 | 1985-11-19 | Cash card |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH06101015B2 (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO1990000781A1 (en) * | 1988-07-13 | 1990-01-25 | Matsushita Electric Industrial Co., Ltd. | Communication equipment |
| JPH10229392A (en) | 1997-02-13 | 1998-08-25 | Rohm Co Ltd | Authentication system and authentication method |
-
1985
- 1985-11-19 JP JP25999585A patent/JPH06101015B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPS62118472A (en) | 1987-05-29 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| KR100441580B1 (en) | Accounting apparatus, information receiving apparatus, and communication system | |
| EP0166541B2 (en) | Communications network using an enciphering and deciphering device | |
| EP0047285B1 (en) | A system for authenticating users and devices in on-line transaction networks | |
| KR0161670B1 (en) | Money transfer system | |
| US6539364B2 (en) | Electronic cash implementing method and equipment using user signature and recording medium recorded thereon a program for the method | |
| US6042006A (en) | Authentication system wherein definition signals of two devices are altered, communicated between the two devices, and compared | |
| US5839119A (en) | Method of electronic payments that prevents double-spending | |
| US6766306B1 (en) | Electronic cash system | |
| JPH09319808A (en) | Hierarchical electronic cash method and device used therefor | |
| US7222108B2 (en) | Electronic cash implementing method and equipment using user signature and recording medium recorded thereon a program for the method | |
| JPH0334641A (en) | Method of encrypting transmission data using special key | |
| CN105160523A (en) | Encryption switch processing | |
| EP0823820A2 (en) | Charging system and method | |
| US6662151B1 (en) | System for secured reading and processing of data on intelligent data carriers | |
| JP3365599B2 (en) | Electronic check system | |
| JPH06101014B2 (en) | Billing device | |
| JPH1020778A (en) | Encryption device and decryption device, and IC card | |
| JPH06101015B2 (en) | Cash card | |
| RU2586868C2 (en) | Method of processing data on cash calculations and/or calculations with use of payment cards during operation of control-teller machines with functions of fixation and transmitting information and operator server for fiscal data | |
| JPH11120310A (en) | IC card and IC card reader | |
| JP2788296B2 (en) | Card usage system | |
| RU2605914C1 (en) | Method of processing data on cash calculations and/or calculations with use of payment cards during control-teller machines operation with functions of fixation and transmitting information and fiscal data server operator | |
| JP2902087B2 (en) | Electronic signature method using IC card | |
| JPH0638278B2 (en) | Cash card | |
| JPH0734212B2 (en) | Billing device |