JPH0638278B2 - Cash card - Google Patents
Cash cardInfo
- Publication number
- JPH0638278B2 JPH0638278B2 JP3439086A JP3439086A JPH0638278B2 JP H0638278 B2 JPH0638278 B2 JP H0638278B2 JP 3439086 A JP3439086 A JP 3439086A JP 3439086 A JP3439086 A JP 3439086A JP H0638278 B2 JPH0638278 B2 JP H0638278B2
- Authority
- JP
- Japan
- Prior art keywords
- card
- amount
- billing device
- random number
- sent
- 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 7
- 230000001131 transforming effect Effects 0.000 claims description 5
- 238000000034 method Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 238000007796 conventional method Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
Landscapes
- Control Of Vending Devices And Auxiliary Devices For Vending Devices (AREA)
- Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
- Credit Cards Or The Like (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 recognition function. IC card and billing device are secret codes
Share 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. The billing device decrypts it with KM, and if it matches RN, considers that tampering has not been made and clears the fee F.
(発明が解決しようとする問題点) 従来の方式によれば、課金装置が改ざんありと判断した
時料金額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 by the IC card, even though the billing device does not settle the fee amount F when it is determined that there is tampering. . The situation in which the RN does not appear after decrypting the one returned by the billing device with KM may be due to tampering, or it may be a simple error that is not malicious. If the malicious IC card owner falsifies the message, even if only the IC card is reduced, it is self-employed, but in many other cases, it is better not to subtract the IC card unless the billing device clears. desirable.
本発明の目的はこの欠点を除去することにある。The object of the invention is to eliminate this drawback.
(問題点を解決するための手段) 上記の問題点を解決するために、本発明は次の手段を採
用している。即ち現金に相当する金額を有し、課金装置
と金融取引を行なう現金カードにおいて、前記課金装置
から送られたあらかじめ定められたパターンKMに依存し
て符号変換された料金額と乱数VRを逆変換する第1の逆
変換手段と、前記課金装置に通知する前記乱数VRを変形
したVR1を前記パターンKMに依存して符号変換する符号
変換手段と、前記課金装置において該装置が減額したか
否かを示す情報と前記乱数VRを変形したVR2を前記パタ
ーンKMに依存して符号変換されて送られたデータを逆変
換する第2の逆変換手段と、前記の第2の逆変換手段の
出力に含まれるVR2が正しくかつ前記課金装置が減額し
なかったことを示す情報が送られている場合を除いて前
記現金に相当する金額から支払金額を減額する減額手段
と、から成ることを特徴とする現金カードである。(Means for Solving Problems) In order to solve the above problems, the present invention employs the following means. That is, in a cash card that has an amount of money equivalent to cash and conducts a financial transaction with a billing device, the charge amount and the random number VR that are code-converted depending on a predetermined pattern KM sent from the billing device are inversely converted. a first inverse transform unit, and a code converting means for code conversion of VR 1 obtained by modifying the random number VR for notifying the charging device in dependence on the pattern KM, or the apparatus has been reduced in the charging device not to Information indicating whether or not and the second inverse transforming means for inversely transforming the data transmitted after being code-transformed depending on the pattern KM of VR 2 obtained by transforming the random number VR, and the second inverse transforming means. A reduction means for reducing the payment amount from the amount equivalent to the cash except when the information indicating that the VR 2 included in the output is correct and the charging device has not been reduced is transmitted. Characteristic cash car It is.
(作用) 第2図を用いて本発明がいかに作用するかを示す。201
は課金装置、202はICカードであり、両者は秘密キーKM
を共有している。課金装置がICカードに支払って貰いた
い料金額をF、ICカードがこの時点で所有している金
額、即ち残金をCSとする。まず課金装置201は乱数VRを
発生し、料金額Fと共にキーKMで暗号化してICカード20
2に送る。ICカード202はそれをキーKMで復号化し、残金
CSからF′を引く。ここでF′は本来Fと一致すべきも
のであるが、CS<Fのときなどに一部でも支払おうとす
る場合に、実際に支払われる金額である。このF′と乱
数VRのあらかじめ定められた1部をビット反転したVR1
をキーKMで暗号化して課金装置に送る。課金装置201は
送られたメッセージをキーKMで復号化し、もし正しいVR
1が得られればエラー改ざんはないと判断してFから
F′を引き、さもなければそのままにして、VR1が正し
かったか否かの情報AとVRの1部をビット反転したVR2
をキーKMで暗号化してICカード202に送る。ICカードは
それぞれ復号化し、VR2が正しければエラーや改ざんは
なかったと判断し、さらに情報Aが課金装置はFから
F′を減額していないことを示していればCSにF′を加
えて元のCSに戻す。(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 key KM
To share. Let F be the amount of money that the billing device wants the IC card to pay, and CS be the amount that the IC card possesses at this point, that is, the balance. First, the billing device 201 generates a random number VR and encrypts it with the key amount KM together with the fee amount F, and then the IC card 20.
Send to 2. The IC card 202 decrypts it with the key KM, and the remaining money
Subtract F'from CS. Here, F'should be the same as F originally, but it is the actual amount to be paid in case of partial payment when CS <F. VR 1 This was F 'and a portion of predetermined random numbers VR bit-reversed
Is encrypted with the key KM and sent to the billing device. The billing device 201 decrypts the sent message with the key KM, and if the correct VR
If 1 is obtained, it is judged that there is no error tampering, F'is subtracted from F, otherwise it is left as it is and information A as to whether VR 1 was correct and a part of VR are bit-inverted VR 2
Is encrypted with the key KM and sent to the IC card 202. Each IC card is decrypted, and if VR 2 is correct, it is determined that there is no error or tampering, and if the information A indicates that the billing device does not reduce F'to F ', add F'to CS. Return to the original CS.
以上により従来方法の欠点が除去できることが示され
た。From the above, it was shown that the drawbacks of the conventional method can be eliminated.
(実施例) 第1図は本発明の実施例を示すブロック図である。本発
明は第2図のICカード202に関するものである。インタ
ーフェース101は課金装置105とインターフェースをと
る。暗号・復号器103は暗号化、復号化を行なう。プロ
セッサ102はメモリ104へのデータの出入力管理、四則演
算等を実行するが、詳しくは第3図のフローチャートに
示す。図において、課金装置からキーKMで暗号化された
料金額Fと乱数VRを受けとると暗号・復号器103で復号
され、もしICカードの残金CSがF以上ならばF=F′、
そうでなければF′=CSとして残金からF′を減額す
る。また、F′とVRのあらかじめ定められた一部をビッ
ト反転したVR1をKMをキーとして暗号・復号器103で暗号
化させ、課金装置に送る。一方課金装置から課金装置に
て減額したか否かを示す情報AとVRの一部をビット反転
したVR2をKMで暗号化したデータを受信すると、プロセ
ッサ102はそれを暗号・復号器103で復号化させ、もしVR
2が正しくかつ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 the figure, when the fee amount F encrypted with the key KM and the random number VR are received from the billing device, they are decrypted by the encryption / decryption device 103. If the balance CS of the IC card is F or more, F = F ',
If not, F '= CS and F'is subtracted from the balance. Further, F 'and the VR 1 that bit inversion part predetermined of VR is encrypted by the encryption and decryption unit 103 KM as a key, and sends the charging apparatus. On the other hand, when the information A indicating whether or not the bill is reduced by the billing device and the data obtained by encrypting VR 2 in which a part of VR is bit-inverted by KM are received from the billing device, the processor 102 causes the encryption / decryption device 103 to transmit the data. Decrypt, if VR
If 2 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に代用させることもできる。また本実施例においてI
Cカードがまず残額を通知するようにすれば後に支払金
額F′を通知する必要がなくなる。さらに最初課金装置
からVRが暗号化されて送られるが、暗号化せずに送って
くる場合にはVR1=VRとしてもよい。これらは本発明の
範囲に含まれる。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. In this embodiment, I
If the C card first notifies the balance, it is not necessary to notify the payment amount F ′ later. Further, the VR is first encrypted and sent from the billing device, but if it is sent without being encrypted, VR 1 = VR may be set. These are included in the scope of the present invention.
(発明の効果) 以上詳細に説明したように本発明を用いれば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.
Claims (1)
融取引を行なう現金カードにおいて、前記課金装置から
送られたあらかじめ定められたパターンKMに依存して符
号変換された料金額と乱数VRを逆変換する第1の逆変換
手段と、前記課金装置に通知する前記乱数VRを変形した
VR1を前記パターンKMに依存して符号変換する符号変換
手段と、前記課金装置において該装置が減額したか否か
を示す情報と前記乱数VRを変形したVR2を前記パターンK
Mに依存して符号変換されて送られたデータを逆変換す
る第2の逆変換手段と、前記の第2の逆変換手段の出力
に含まれるVR2が正しくかつ前記課金装置が減額しなか
ったことを示す情報が送られている場合を除いて前記現
金に相当する金額から支払金額を減額する減額手段と、
から成ることを特徴とする現金カード。1. A cash card having an amount of money equivalent to cash and performing a financial transaction with a billing device, the charge amount and a random number code-converted depending on a predetermined pattern KM sent from the billing device. The first reverse conversion means for reverse conversion of VR and the random number VR for notifying the charging device are modified.
Code conversion means for performing a code conversion of VR 1 depending on the pattern KM, information indicating whether or not the charging device has reduced the price, and VR 2 obtained by transforming the random number VR with the pattern K.
Second inverse conversion means for inversely converting the data that has been code-converted and sent depending on M, and VR 2 included in the output of the second inverse conversion means is correct and the billing device does not reduce the amount. Reducing means for reducing the payment amount from the amount equivalent to the cash except when the information indicating that it has been sent,
A cash card, which consists of:
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3439086A JPH0638278B2 (en) | 1986-02-18 | 1986-02-18 | Cash card |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3439086A JPH0638278B2 (en) | 1986-02-18 | 1986-02-18 | Cash card |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS62191199A JPS62191199A (en) | 1987-08-21 |
| JPH0638278B2 true JPH0638278B2 (en) | 1994-05-18 |
Family
ID=12412841
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP3439086A Expired - Lifetime JPH0638278B2 (en) | 1986-02-18 | 1986-02-18 | Cash card |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0638278B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH01302492A (en) * | 1988-05-31 | 1989-12-06 | Casio Comput Co Ltd | card processing equipment |
-
1986
- 1986-02-18 JP JP3439086A patent/JPH0638278B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPS62191199A (en) | 1987-08-21 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6438694B2 (en) | Apparatus for data copyright management system | |
| US5351293A (en) | System method and apparatus for authenticating an encrypted signal | |
| KR0161670B1 (en) | Money transfer system | |
| US5839119A (en) | Method of electronic payments that prevents double-spending | |
| EP1253742B1 (en) | Method and system for generation and management of secret key of public key cryptosystem | |
| JP3917679B2 (en) | High bandwidth cryptographic system with low bandwidth cryptographic module | |
| EP0002390A1 (en) | Method for cryptographic file security in multiple domain data processing systems | |
| CN109697365A (en) | Information processing method and block chain node, electronic equipment | |
| US20070168291A1 (en) | Electronic negotiable documents | |
| CN1222274A (en) | Apparatus and method for re-encrypting data | |
| JPH09319808A (en) | Hierarchical electronic cash method and device used therefor | |
| JPS619052A (en) | Communication network system | |
| JPH07505270A (en) | Encrypted communication method and system | |
| EP0440800A1 (en) | Ic card for security attestation and ic card service system using said ic card | |
| US7412725B2 (en) | Copyright protection system, digital information processing apparatus and copyright protection method | |
| CA2212457C (en) | Electronic negotiable documents | |
| JPH0638278B2 (en) | Cash card | |
| CN117874812B (en) | A method and system for realizing multi-party secure transaction of private data based on blockchain | |
| 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 | |
| JP3172398B2 (en) | Communication device and communication system | |
| JPH06101014B2 (en) | Billing device | |
| JPH06101015B2 (en) | Cash card | |
| JP2788296B2 (en) | Card usage system | |
| JP2902087B2 (en) | Electronic signature method using IC card | |
| 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 |