JP2703957B2 - Recording device and recording method for portable medium - Google Patents

Recording device and recording method for portable medium

Info

Publication number
JP2703957B2
JP2703957B2 JP63300756A JP30075688A JP2703957B2 JP 2703957 B2 JP2703957 B2 JP 2703957B2 JP 63300756 A JP63300756 A JP 63300756A JP 30075688 A JP30075688 A JP 30075688A JP 2703957 B2 JP2703957 B2 JP 2703957B2
Authority
JP
Japan
Prior art keywords
data
issued
issuance
card
portable medium
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 - Fee Related
Application number
JP63300756A
Other languages
Japanese (ja)
Other versions
JPH02148085A (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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP63300756A priority Critical patent/JP2703957B2/en
Publication of JPH02148085A publication Critical patent/JPH02148085A/en
Application granted granted Critical
Publication of JP2703957B2 publication Critical patent/JP2703957B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】 [発明の目的] (産業上の利用分野) この発明は、メモリカードの如き携帯可能媒体に例え
ば発行者に関する情報或いはカード所持者毎の情報等の
発行データを書込むための携帯可能媒体への記録装置に
関する。
DETAILED DESCRIPTION OF THE INVENTION [Purpose of the Invention] (Industrial application field) The present invention writes, for example, issuance data such as information on an issuer or information for each card holder on a portable medium such as a memory card. For recording on a portable medium for recording.

(従来の技術) メモリカードの如き携帯可能媒体は、発行の際に、例
えば発行データファイル内に納められている発行データ
が発行システムにより書込まれる。このとき、発行デー
タが秘密性を要するものである場合は、その発行データ
は暗号化された状態で発行データファイル内に納められ
ており、発行の際に復号化されてメモリカードに書込ま
れる。
(Prior Art) On a portable medium such as a memory card, when issued, for example, issuance data stored in an issuance data file is written by an issuance system. At this time, if the issued data requires confidentiality, the issued data is stored in the issued data file in an encrypted state, and is decrypted at the time of issuance and written to the memory card. .

このような従来の発行システムでは、発行の際に復号
化の必要な発行データをその発行システムにおいて予め
定めておくか、又は全ての発行データを暗号化した状態
で発行データファイル内に納めておき発行の際には全て
の発行データを復号化の対象とすることが行われてい
た。
In such a conventional issuance system, issuance data that needs to be decrypted at the time of issuance is predetermined in the issuance system, or all issuance data is stored in an issuance data file in an encrypted state. At the time of issuance, all issuance data is subject to decryption.

(発明が解決しようとする課題) 従来は、発行の際に復号化の必要な発行データをその
発行システムにおいて予め定めておくか、又は全ての発
行データを暗号化して発行データファイル内に納めてお
き発行の際に全ての発行データを復号化の対象としてい
たため、発行システムが汎用性を欠いたものとなってし
まうという問題があった。
(Problems to be Solved by the Invention) Conventionally, issuance data that needs to be decrypted at the time of issuance is determined in advance in the issuance system, or all issuance data is encrypted and stored in an issuance data file. Since all issuance data is to be decrypted at the time of every issuance, there is a problem that the issuance system lacks versatility.

この発明は上記事情に基づいてなされたもので、発行
データの復号化処理の要否の判定に汎用性を持たせるこ
とのできる携帯可能媒体への記録装置及び記録方法を提
供することを目的とする。
The present invention has been made based on the above circumstances, and it is an object of the present invention to provide a recording apparatus and a recording method for a portable medium capable of providing versatility in determining whether or not decryption processing of issued data is necessary. I do.

[発明の構成] (課題を解決するための手段) この発明は上記課題を解決するために、発行対象とな
る複数のカードの各カード識別情報に対応して複数の発
行データが対応して格納されるとともに各発行データの
各々に発行データが暗号化されている発行データである
か否かを示す暗号化符号を付与されている発行データフ
ァイルと、前記カード識別情報に基づいて前記発行デー
タファイルから発行対象カードの各発行データを読出す
読出手段と、この読出手段にて読み出した各発行データ
について前記暗号化符号に基づき暗号化された発行デー
タであるか否かを識別する識別手段と、この識別手段の
識別結果に基づき暗号化されている発行データについて
は復号化を行う復号化手段と、前記識別手段にて暗号化
されていないと識別された発行データをそのまま携帯可
能媒体に書込むとともに前記復号化手段により復号化さ
れた発行データを携帯可能媒体に書込む書き込み手段を
有することを要旨とする。
[Structure of the Invention] (Means for Solving the Problems) In order to solve the above problems, the present invention stores a plurality of issued data corresponding to each card identification information of a plurality of cards to be issued. And an issuance data file to which each of the issuance data is provided with an encryption code indicating whether or not the issuance data is encrypted, and the issuance data file based on the card identification information. Reading means for reading each issue data of the issuance target card from; and identification means for identifying whether each issue data read by this read means is issued data encrypted based on the encryption code, The decryption means for decrypting the issuance data encrypted based on the identification result of the identification means, and the decryption means identifies that the data is not encrypted by the identification means. And summarized in that with a writing write means in a portable medium issuing data decoded by said decoding means with writing line data as it is to the portable medium.

また、発行対象となる複数のカードの各カード識別情
報に対応して複数の発行データが対応して格納されると
ともに各発行データの各々に発行データが暗号化された
発行データであるか否かを示す暗号化符号を付与して発
行データファイルを構成し、前記カード識別情報に基づ
いて前記発行データファイルから発行対象カードの各発
行データを読出し、この読み出した各発行データについ
て前記暗号化符号に基づき暗号化された発行データであ
るか否かを識別し、暗号化された発行データについては
復号化して復号化した発行データを携帯可能媒体に書き
込み、暗号化されていない発行データについては発行デ
ータをそのまま携帯可能媒体に書込むことを特徴とする
携帯可能媒体への記録方法である。
Also, a plurality of issue data is stored corresponding to each card identification information of a plurality of cards to be issued, and whether or not each issue data is encrypted issue data in each of the issue data An issuance data file is configured by adding an encryption code indicating the issuance data file, and each of the issuance data of the card to be issued is read from the issuance data file based on the card identification information. Identify whether the issued data is encrypted based on the data, decrypt the encrypted issued data and write the decrypted issued data to a portable medium, and issue the unencrypted issued data for the issued data. Is written in the portable medium as it is.

(作用) 上記構成において、本発明では暗号化されていない各
カード識別情報に基づいて発行対象となるカードの発行
データを読み出すことが可能となり、しかも秘密性を有
するデータのみに対して暗号化して格納しておき、発行
時に復号化して記録するので、全ての発行データを復号
化して記録する場合よりも処理速度が向上する。
(Operation) In the configuration described above, according to the present invention, it is possible to read out the issued data of the card to be issued based on the unencrypted card identification information, and to encrypt only the confidential data. Since it is stored and decrypted and recorded at the time of issuance, the processing speed is improved as compared with the case where all the issued data is decrypted and recorded.

又、本願発明によれば、復号化の必要なデータを予め
決めておくことなく、発行データファイルの内容により
判断するため、装置の汎用性が向上する。
Further, according to the present invention, since the data that needs to be decrypted is determined based on the contents of the issued data file without previously determining the data, the versatility of the apparatus is improved.

(実施例) 以下、この発明の実施例を第1図ないし第3図に基づ
いて説明する。
Embodiment An embodiment of the present invention will be described below with reference to FIGS. 1 to 3.

まず、第1図は記録装置としての発行システムの全体
を概略的に示す図である。同図中、1は制御手段として
のホストコンピュータ、2は記憶手段としての補助記憶
装置であり、ホストコンピュータ1には、制御部と一時
的にデータを保存するメモリ部が備えられている。ま
た、補助記憶装置2には、発行システムを制御する制御
プログラム及びシステムの処理内容である発行データフ
ァイル等が格納されている。
First, FIG. 1 is a diagram schematically showing an entire issuing system as a recording device. In FIG. 1, reference numeral 1 denotes a host computer as control means, and 2 denotes an auxiliary storage device as storage means. The host computer 1 includes a control unit and a memory unit for temporarily storing data. Further, the auxiliary storage device 2 stores a control program for controlling the issuing system, an issuance data file which is a processing content of the system, and the like.

ホストコンピュータ1には、発行システムの操作手順
や状態をオペレータに示すためのディスプレイ3と、操
作を行うための入力装置としてのキーボード4が取付け
られて発行システムの操作が可能になっている。さら
に、ホストコンピュータ1には、携帯可能媒体としての
メモリカード7の発行記録を残すために、日時、発行デ
ータファイル名、カード番号及び発行枚数等を出力する
ためのプリンタ5が接続されている。カード発行時に
は、ホストコンピュータ1に取付けられた書込手段とし
てのリーダ・ライタ6を介して所要の発行データがメモ
リカード7に書込まれるようになっている。
The host computer 1 is provided with a display 3 for indicating the operating procedure and status of the issuing system to the operator, and a keyboard 4 as an input device for performing the operation so that the issuing system can be operated. Further, the host computer 1 is connected to a printer 5 for outputting the date and time, the issued data file name, the card number, the number of issued cards, and the like in order to leave the issued record of the memory card 7 as a portable medium. When a card is issued, required issue data is written to a memory card 7 via a reader / writer 6 as a writing means attached to the host computer 1.

第2図は、前述した発行データファイル10のフォーマ
ットを示している。発行データファイル10は、6バイト
のカード番号11を先頭にして、各発行データ13群が並ん
だ構造になっている。発行データ13は、図の例では、Da
ta1、Data2、…のように名付けられている。各々の発行
データ13の前には1バイトの暗号化符号としての暗号化
フラグ12が位置されており、この値が“A"のときは、そ
の後に続く発行データ13は暗号化されたデータであり、
メモリカード7に書込む際に復号化してから書込む必要
があることを示している。暗号化フラグ12の値が“0"の
場合は、発行データ13はそのままメモリカード7に書込
んでよいことを示している。上記の発行データ13の復号
化処理は、補助記憶装置2内にファイルの形で格納され
ている復号化のためのキーと、予め定められた復号化ル
ーチンを用いて行われるようになっている。
FIG. 2 shows the format of the issuance data file 10 described above. The issue data file 10 has a structure in which groups of issue data 13 are arranged with a 6-byte card number 11 at the top. In the example of the figure, the issue data 13 is Da
Named like ta1, Data2, ... An encryption flag 12 as a 1-byte encryption code is located before each issue data 13, and when this value is “A”, the subsequent issue data 13 is encrypted data. Yes,
This indicates that when writing to the memory card 7, it is necessary to decrypt and then write. When the value of the encryption flag 12 is “0”, it indicates that the issued data 13 can be written to the memory card 7 as it is. The decryption processing of the issuance data 13 is performed using a decryption key stored in the auxiliary storage device 2 in the form of a file and a predetermined decryption routine. .

次に、第3図のフローチャートを用いてカード発行処
理を説明する。
Next, the card issuing process will be described with reference to the flowchart of FIG.

まず、ディスプレイ3に表示される指示に従って発行
するデータファイル名、開始カード番号、発行枚数及び
発行者暗証がオペレータによりキーボード4から入力さ
れる(ステップ15)。これらの入力情報は、ホストコン
ピュータ1のメモリ部に記憶される。ホストコンピュー
タ1は、入力された発行データファイルが補助記憶装置
2の中に格納されていることをチェックし(ステップ1
6)、これが存在すれば(同ステップのYes)、その発行
データファイルをメモリ部に読込み、入力された開始カ
ード番号から発行枚数分のカード番号までが当該発行デ
ータファイル内に存在することをチェックする(ステッ
プ17)。
First, an operator inputs a data file name, a starting card number, a number of issued cards, and an issuer password from the keyboard 4 in accordance with an instruction displayed on the display 3 (step 15). These pieces of input information are stored in the memory unit of the host computer 1. The host computer 1 checks that the input issued data file is stored in the auxiliary storage device 2 (step 1).
6) If this is present (Yes in the same step), the issued data file is read into the memory unit, and it is checked that from the input start card number to the issued card number are present in the issued data file. (Step 17).

これが存在すれば(ステップ17のYes)、ディスプレ
イ3への表示によりメモリカード7の挿入を要求する。
この要求により、オペレータがリーダ・ライタ6にメモ
リカード7を挿入した後に(ステップ18)、前記ステッ
プ15で入力された発行者暗証と挿入されたメモリカード
7内のメモリ部に予め記憶されている発行者暗証とを照
合し、オペレータが発行者であることの確認を行う(ス
テップ19)。照合が成立すれば(ステップ20のYes)、
ホストコンピュータ1は、開始カード番号11(例えば
“000001"とする)に属する1番目の発行データ13(Dat
a1等)の暗号化フラグ12が“0"であるか“A"であるかを
調べる(ステップ21)。なお、ステップ21に示した記号
nは、n=1、2、…、m(mは発行データの個数)を
示している。
If this exists (Yes in step 17), the display on the display 3 requests insertion of the memory card 7.
In response to this request, after the operator inserts the memory card 7 into the reader / writer 6 (step 18), the issuer password input in step 15 and the memory unit in the inserted memory card 7 are stored in advance. The password is compared with the issuer password to confirm that the operator is the issuer (step 19). If the verification is successful (Yes in step 20),
The host computer 1 sends the first issue data 13 (Dat data) belonging to the start card number 11 (for example, “000001”).
It is checked whether the encryption flag 12 of “a1 etc.” is “0” or “A” (step 21). .., M (m is the number of issued data).

ステップ21で調べた暗号化フラグ12が“A"の場合は
(同ステップのYes)、補助記憶装置2内にファイルの
形で記憶されている復号化のためのキーを読出してホス
トコンピュータ1のメモリ部に格納し、Data1をこのキ
ーを用いて復号化処理する(ステップ22)。そして復号
化されたData1をメモリカード7にリーダ・ライタ6を
介して書込む(ステップ23)。一方、ステップ21で調べ
た暗号化フラグ12が“0"の場合は(同ステップのNo)、
Data1は、そのままメモリカード7に書込む。
If the encryption flag 12 checked in step 21 is "A" (Yes in the same step), the decryption key stored in the auxiliary storage device 2 in the form of a file is read out and the host computer 1 The data is stored in the memory unit, and Data1 is decrypted using this key (step 22). Then, the decrypted Data1 is written to the memory card 7 via the reader / writer 6 (step 23). On the other hand, if the encryption flag 12 checked in step 21 is “0” (No in the same step),
Data1 is written to the memory card 7 as it is.

そして、例えば1人分の発行データの個数をm個とす
ると、Data1に続いてData mまでの各発行データを上
記と同様の手順を経てメモリカード7に書込む(ステッ
プ21〜25)。
For example, assuming that the number of pieces of issued data for one person is m, each piece of issued data up to Data m following Data1 is written to the memory card 7 through the same procedure as described above (steps 21 to 25).

開始カード番号に属する全発行データの書込みが終了
すると、メモリカード7はリーダ・ライタ6から排出さ
れ(ステップ26)、ディスプレイ3上には次のカード番
号(“000002")のメモリカード7の挿入が要求され
る。以下、同様にして、前記ステップ15で入力された発
行枚数分の書込みを終了した後(ステップ18〜27)。プ
リンタ5から発行記録表として、発行年月日、発行デー
タファイル名、発行されたデータのカード番号及び発行
枚数等が出力される(ステップ29)。
When the writing of all the issued data belonging to the start card number is completed, the memory card 7 is ejected from the reader / writer 6 (step 26), and the memory card 7 of the next card number (“000002”) is inserted on the display 3. Is required. Thereafter, similarly, after the writing for the number of issued sheets input in step 15 is completed (steps 18 to 27). The issuance record table outputs the issuance date, issuance data file name, issued data card number, issued number, and the like (step 29).

以上のカード発行処理の中で、エラーが発生したとき
は(第3図フローチャート中のE)、ディスプレイ3上
にエラーメッセージが表示されて処理が終了或いは中断
される。
If an error occurs during the above card issuing process (E in the flowchart of FIG. 3), an error message is displayed on the display 3 and the process is terminated or interrupted.

[発明の効果] 以上説明したように、この発明によれば、記憶手段に
格納された複数の発行データの各々に暗号化された発行
データであるか否かを示す暗号化符号が付いているの
で、携帯可能媒体の発行時には、発行データ毎にこの暗
号化符号をチェックすることで復号化処理の要否の判定
を行うことができて記録装置に汎用性を持たせることが
できるという利点がある。
[Effects of the Invention] As described above, according to the present invention, each of a plurality of pieces of issue data stored in the storage means is provided with an encryption code indicating whether or not the data is encrypted issue data. Therefore, when a portable medium is issued, it is possible to determine whether or not a decryption process is necessary by checking this encryption code for each issued data, thereby giving an advantage that the recording apparatus can be made versatile. is there.

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

第1図ないし第3図はこの発明に係る携帯可能媒体への
記録装置の実施例を示すもので、第1図は装置構成を示
すブロック図、第2図は発行データファイルのフォーマ
ットを示す図、第3図はカード発行処理を説明するため
のフローチャートである。 1:ホストコンピュータ(制御手段)、 2:補助記憶装置(記憶手段)、 6:リーダ・ライタ(書込み手段)、 7:メモリカード(携帯可能媒体)。
1 to 3 show an embodiment of a recording apparatus for recording data on a portable medium according to the present invention. FIG. 1 is a block diagram showing an apparatus configuration, and FIG. 2 is a view showing a format of an issued data file. FIG. 3 is a flowchart for explaining the card issuing process. 1: host computer (control means), 2: auxiliary storage device (storage means), 6: reader / writer (writing means), 7: memory card (portable medium).

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】発行対象となる複数のカードの各カード識
別情報に対応して複数の発行データが対応して格納され
るとともに各発行データの各々に発行データが暗号化さ
れている発行データであるか否かを示す暗号化符号を付
与されている発行データファイルと、 前記カード識別情報に基づいて前記発行データファイル
から発行対象カードの各発行データを読出す読出手段
と、 この読出手段にて読み出した各発行データについて前記
暗号化符号に基づき暗号化された発行データであるか否
かを識別する識別手段と、 この識別手段の識別結果に基づき暗号化されている発行
データについては復号化を行う復号化手段と、 前記識別手段にて暗号化されていないと識別された発行
データをそのまま携帯可能媒体に書込むとともに前記復
号化手段により復号化された発行データを携帯可能媒体
に書込む書き込み手段を有することを特徴とする携帯可
能媒体への記録装置。
A plurality of issuance data in which a plurality of issuance data are stored corresponding to each card identification information of a plurality of cards to be issued and each of the issuance data is encrypted. An issuance data file to which an encryption code indicating whether or not the card is present is provided; reading means for reading each issue data of the card to be issued from the issuance data file based on the card identification information; Identification means for identifying whether or not each read issue data is the issue data encrypted based on the encryption code; and decrypting the issue data encrypted based on the identification result of the identification means. Decryption means for performing, and the issuance data identified as not being encrypted by the identification means is written to a portable medium as it is, and the decryption means A recording device for a portable medium, comprising: a writing unit for writing the decrypted issued data to the portable medium.
【請求項2】発行対象となる複数のカードの各カード識
別情報に対応して複数の発行データが対応して格納され
るとともに各発行データの各々に発行データが暗号化さ
れた発行データであるか否かを示す暗号化符号を付与し
て発行データファイルを構成し、 前記カード識別情報に基づいて前記発行データファイル
から発行対象カードの各発行データを読出し、 この読み出した各発行データについて前記暗号化符号に
基づき暗号化された発行データであるか否かを識別し、 暗号化された発行データについては復号化して復号化し
た発行データを携帯可能媒体に書き込み、 暗号化されていない発行データについては発行データを
そのまま携帯可能媒体に書込むことを特徴とする携帯可
能媒体への記録方法。
2. A plurality of issued data are stored correspondingly to respective card identification information of a plurality of cards to be issued, and the issued data is encrypted for each of the issued data. An issuance data file is configured by adding an encryption code indicating whether or not the issuance data file is read, and the issuance data of the card to be issued is read from the issuance data file based on the card identification information. Identifies whether or not the issued data is encrypted based on the encryption code, decrypts the encrypted issued data and writes the decrypted issued data to a portable medium, and issues unencrypted issued data. Is a method for recording on a portable medium, wherein the issuance data is directly written on the portable medium.
JP63300756A 1988-11-30 1988-11-30 Recording device and recording method for portable medium Expired - Fee Related JP2703957B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63300756A JP2703957B2 (en) 1988-11-30 1988-11-30 Recording device and recording method for portable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63300756A JP2703957B2 (en) 1988-11-30 1988-11-30 Recording device and recording method for portable medium

Publications (2)

Publication Number Publication Date
JPH02148085A JPH02148085A (en) 1990-06-06
JP2703957B2 true JP2703957B2 (en) 1998-01-26

Family

ID=17888719

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63300756A Expired - Fee Related JP2703957B2 (en) 1988-11-30 1988-11-30 Recording device and recording method for portable medium

Country Status (1)

Country Link
JP (1) JP2703957B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5889941A (en) 1996-04-15 1999-03-30 Ubiq Inc. System and apparatus for smart card personalization
JP4539240B2 (en) * 2004-09-01 2010-09-08 日本電気株式会社 File management system and file management server

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5555641A (en) * 1978-10-18 1980-04-23 Fujitsu Ltd Cryptogram delivery system
JPS63197293A (en) * 1987-02-12 1988-08-16 Toshiba Corp Ic card issuing system

Also Published As

Publication number Publication date
JPH02148085A (en) 1990-06-06

Similar Documents

Publication Publication Date Title
US4588991A (en) File access security method and means
US6378071B1 (en) File access system for efficiently accessing a file having encrypted data within a storage device
CN100552690C (en) Data managing method
US20230289428A1 (en) Method for implementing dongle, and dongle
JP2002245427A (en) Ic card, ic card terminal device and method for duplicating ic card
JP2943924B2 (en) Portable electronic devices
JP2592856B2 (en) IC card issuing system
JP2703957B2 (en) Recording device and recording method for portable medium
JPH09237228A (en) Access control method
JPH09161024A (en) Information recording and reproducing system
JPH0744464A (en) Medium security management device
JP2001067268A (en) Method for managing contents, and storage medium
JPS60160492A (en) Ic card
JPH0334084A (en) Recording device for portable storage medium
JPH07161172A (en) Data recording medium
JP3231466B2 (en) Information recording medium storing keys
JP2003203207A (en) Ic card issuing device and ic card issuing method
JPS63184853A (en) Portable electronic apparatus
JP2588201B2 (en) Method for issuing portable storage medium and apparatus for issuing portable storage medium
JP2919507B2 (en) Card operation device
JP2742067B2 (en) Data secret protection method
JP2001291064A (en) Method and system for issuing ic card
JP3023788U (en) Information storage medium with PIN and memory destruction device, and read / write device
JPH06161901A (en) Information processor
JPS63211046A (en) Portable electronic equipment

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees