ADAPTIVE DATA CIPHERING/DECIPHERING APPARATUS AND DATA COMMUNICATION SYSTEM EMPLOYING SAID APPARATUS

Abstract: A data communication system applicable to the transmission of ciphered data comprises a data transmission circuit (3), a data transmission apparatus (1), a data reception apparatus (5), a data ciphering apparatus (2) on the side of the data transmission apparatus, and a data deciphering apparatus (4) on the side of the data reception apparatus. The data ciphering apparatus comprises switch means (2A), circuit condition detect means (2B), control code monitoring means (2C), scramble means (2E), and drive control means (2D). The data deciphering means comprises switch means (4A), circuit condition detect means (4B), control code monitoring means (4C), descramble means (4E) and drive control means (4D).

Description: TECHNICAL FIELD The present invention relates to adaptive data ciphering / deciphering apparatuses and a data communication system using these adaptive data ciphering / deciphering apparatuses. The system according to the present invention is used, for example, for a facsimile communication in which data is transmitted in the form of ciphered data. BACKGROUND ART A data transmitting device such as a facsimile device is able to data-communicate with a destination facsimile device through a telephone transmission line. However, in a facsimile communication, if an erroneous telephone number for a destination facsimile device is called because of erroneous actuations or operations, data is caused to be transmitted to the facsimile device having such erroneous telephone number so that secret information of this data is inadvertently informed to a third party. Also, in a facsimile communication, there is a possibility of a wire tapping to obtain data from a public telephone transmission line. These situations of the inadvertent erroneous transmission of a secret information and the wire tapping to obtain data occur not only in the facsimile communication but also in personal computer communication. Not limited to the case where a public transmission line is used, in a communication system using a local area network (LAN), there is a problem that, in a facsimile communication of secret information between specific parties, a secret may leak to a third party by an inadvertent erroneous transmission, that is, an erroneous transmission or a wire tapping. No effective solution to the problem caused by erroneous actuation or operation has yet been found, since the problem arises from human error. For wire tapping, a ciphering/deciphering means has been proposed in which a secret key system, such as the data encryption standard (DES) system, or the public key system, has been used. In a secret key system, since it is necessary to transmit a ciphered secret key from a transmitting station to a receiving station, the ciphered data can be easily deciphered by the third party if the latter can obtain the ciphered secret key by wire tapping the transmission line. In the public key system, the transmission of a key for deciphering is unnecessary. However, since the public key for deciphering is open to the public, there is a problem that, once the name of the transmitting party is known, the ciphered data can be easily deciphered by the receiving station. These secret key systems also present the problem that data processing capacity needs to be increased to enhance the secret ensuring ability (security). German Auslegeschrift DE-B-1 076 732 discloses a teleprinter system with an optional encoding attachment. Switching devices are connected directly to the teleprinters carrying the clear text at both stations, which respond in known manner to specific character combination sequences not found in normal clear text, automatically to switch on, over, or off, an associated encoding or decoding attachment. United States specification US-A-4 091 423 is concerned with a system for scrambling facsimile signals, comprising first scrambling means connected between a video amplifier and a transmitter, means for generating a randomised digital keystream, means for selectively varying the randomised digital keystream, the first scrambling means including digitising circuitry for digitising the output of the video amplifier according to the randomised digital keystream and for transmitting the enciphered digitised output to a receiver, second scrambling means connected between a demodulator and a write amplifier of the receiver, the second scrambling means including deciphering means for deciphering the enciphered output of the demodulator and for applying the deciphered output to the write amplifier to provide a duplicate of the transmitted facsimile material. European specification EP-A-0 089 632 discloses a method for transmitting encoded texts in which check characters are produced from a code word associated with an authorised recipient and with a random sequence produced at the transmitter, and an actual code is produced, using the code word, for providing encoded text from clear text. The code word, the random sequence, the check character and the encoded text are transmitted to the receiver, check characters are produced thereat in the same way as in the transmitter and compared with the received check characters, and, if the check characters coincide, the text is decoded, optionally after a password is also checked. An object of the present invention is to provide an improved data transmission system using either a public transmission line or a local transmission network such as a local area network in which the secrecy of communication is secured, the adaptation of the proposed apparatus is possible both for an existing communication system and a new system to be constructed, the proposed apparatus allows flexibility of operations, the cost of construction of the proposed apparatus is not expensive, and protection against the wire tapping of the transmission line is effectively achieved. Another object of the present invention is to provide a data ciphering apparatus and a data deciphering apparatus for the above aimed improved data communication system. According to a first aspect, the present invention provides apparatus for ciphering data for use in a data communication system in which a communication control code containing a transmission/receipt approving notification and transmission data are transmitted, including switching means adapted to be coupled between a data transmitting device and a transmission line for switching the connection between said data transmitting device and said transmission line to enable insertion of said ciphering apparatus between said data transmitting device and said transmission line; and line condition detector means connected with said switching means for detecting a call from said data transmitting device; characterised in that there are provided: control code monitor means connected with said switching means for monitoring communication control codes from said data transmitting means, for providing a notification of approving the transmission/receipt of data based on the receipt of call signals in the transmitting and receiving sides, said control code monitor means monitoring a communication control code sent from the data transmitting device, transmitting a drive signal for switching the switching means after the detection of the communication control code, and transmitting a drive signal for restoring the contact of the switching means after the detection of a carrier signal following the transmission data; scramble means connected with said switching means for ciphering data transmitted from said data transmitting device after the detection of the communication control codes by said control code monitor means; and drive control means, connected with said switching means and associated with said switching means, said line condition detector means, said control code monitor means, and said scrambling means, for supplying said transmission line through said switching means with ciphered data of the data from said data transmitting device. According to a second aspect, the present invention provides apparatus for deciphering ciphered data for use in a data communication system in which a communication control code containing a transmission/receipt approving notification and transmission data are received, including switching means adapted to be coupled between a data transmission line and a data receiving device for switching the connection between said transmission line and said data receiving device to enable insertion of said ciphering apparatus between said transmission line and said data receiving device; and line condition detector means connected with said switching means for detecting a call transmitted through said transmission line; characterised in that there are provided: control code monitor means connected with said switching means for monitoring communication control codes through said transmission line, for providing a notification of approving the transmission/receipt of data based on the receipt of call signals in the transmitting and receiving sides, said control code monitor means monitoring a communication control code sent through the transmission line from a data transmitting device, transmitting a drive signal for switching the switching means after the detection of the communication control code, and transmitting a drive signal for restoring the contact of the switching means after the detection of a carrier signal following the transmission data; descramble means connected with said switching means for deciphering data transmitted through said transmission line after the detection of the communication control codes by said control code monitor means; and drive control means, connected with said switching means and associated with said switching means, said line condition detector means, said control code monitor means, and said descrambling means, for supplying said data receiving device through said switching means with deciphered data of the data from said transmission line. The invention also provides a data communication system adaptable for ciphered data communication comprising a data transmission line for transmitting ciphered or non-ciphered data between a data transmitting device and a data receiving device; a data transmitting device for transmitting data; a data receiving device for receiving data transmitted from said data transmitting device; data' ciphering apparatus according to the first aspect above coupled between said data transmitting device and said transmission line; and data deciphering apparatus according to the second aspect above coupled between said transmission line and said data receiving device. In the drawings:- Fig. 1 is a diagram of a data communication system having a data deciphering apparatus and a data deciphering apparatus according to an embodiment of the present invention; Fig. 2 is a diagram showing the structure of a data ciphering apparatus according to an embodiment of the present invention; Fig. 3 is a diagram showing the structure of a data deciphering apparatus according to an embodiment of the present invention; Fig. 4 is a flow chart of the process of data ciphering in the apparatus of Fig. 2; Fig. 5 is a flow chart of the process of data deciphering in the apparatus of Fig. 3; Fig. 6 is a diagram of a data communication system having a data ciphering apparatus and a data deciphering apparatus according to another embodiment of the present invention; and Figs. 7 and 8 are flow charts of portions of the processes of data ciphering and deciphering in the data ciphering and deciphering apparatuses of Fig. 6. BEST MODE FOR CARRYING OUT THE INVENTION A data communication system using data ciphering/deciphering apparatuses according to an embodiment of the present invention is shown in Fig. 1. In the system of Fig. 1, a data ciphering apparatus and a data deciphering apparatus are applied to a facsimile communication system as a data communication system in which a facsimile transmitter as a data transmitting device 1 and a facsimile receiver as a data receiving device 2 are used and the data transmission and receipt are carried out through the telephone transmission line as a transmission line 3. The structure of the data ciphering apparatus is shown in Fig. 2, and the structure of the data deciphering apparatus is shown in Fig. 3. In the calling side, the data ciphering apparatus (facsimile scramble adapter apparatus) 2 is arranged between the data transmitting device 1 and the telephone transmission line 3. In the called side, the data deciphering apparatus (facsimile descramble adapter apparatus) 4 is arranged between the telephone transmission line 3 and the data receiving device 5. These data ciphering apparatus and the data deciphering apparatus are adapted to be connected with the existing facsimile communication system through the terminals T1, T2, T3, and T4. These data ciphering apparatus and the data deciphering apparatus are able to be disconnected from this existing facsimile communication system. For simplifying the explanation, a "one-to-one" communication system is shown in Fig. 1. It should be noted, however, generally an "n-to-n" communication system is possible. In the case of "one to one" communication, since generally bi-directional communication is carried out, a parallel data ciphering apparatus and data deciphering apparatus or integrated data ciphering/deciphering apparatus are arranged between the telephone transmission line and the data transmitting device or the data receiving device. However, in the description here, for easy understanding, the explanations are given for the calling side and the called side separately. In the calling side, the data ciphering apparatus 2 includes a key code input device 2F of the ten-key type, and relay contacts 211, 212, and 214 and a capacitor 213 as a switching portion 2A. These relay contacts 211, 212, and 214 are relay contacts of relay (3), relay (2), and relay (1) driven by a trigger circuit 237. The capacitor 213 is for cutting of the direct current. The data ciphering apparatus 2 also includes a bell signal detector circuit 221, and an off-hook signal detector circuit 222 as the line condition detector portion 2B and a central processor unit CPU 234 which will be explained later. The data ciphering apparatus 2 further includes a carrier detection circuit 231, asynchronous communication modules 232 and 235, an input/output interface 233 and 236, a trigger circuit 237, a central processor unit CPU 234, insulation transformers 281 and 283, 2 line/4 line conversion circuit 282, 4 line/2 line conversion circuit 284, and MODEMs 29 and 285, as the control code monitor portion 2C, the drive control portion 2D, the random number generator portion 2G, and the ciphering means (scramble portion) 2E. In the called side, the data deciphering apparatus 4 has a structure similar to that of the data ciphering apparatus 2, except that a deciphering means is provided in place of the ciphering means in the data ciphering apparatus and no random number generator portion is provided. The processes of operations of the calling side and the called side will now be explained below with reference to the flow charts of Fig. 4 and Fig. 5. With regard to keys for ciphering, two kinds of keys are used, that is, an open key (public key) and a confidential key (secret key). A public key and a secret key constitute a pair of keys. The secret key is known only by the person to whom the secret key belongs. The ciphered data ciphered by a public key can be deciphered only by the secret key with which the public key constitutes a pair. Accordingly, by using the keys of this key system, a ciphered data transmitted from a specific transmitting party can be deciphered only by a designated specific receiving party, so that the secret ensuring ability (security) of communication is enhanced. The secret key codes of the transmitter party and the receiver party are denoted as T s and R s , and the public key codes of the transmitter party and the receiver party are represented as T p and R p Each of these secret key codes and public key codes is represented by a predetermined binary number. The steps S1, S2, S31, and S32 are explained next. The transmitting party informs the receiving party in advance of a transmission of a data, by telephone or the like, then, the transmitter party inputs its own secret key code T s and the public key code R p of the receiving party by the key code input device 2F (S1). The input secret key code T s and public code R p are stored temporarily in a random access memory RAM (not shown) (S2). The receiving party inputs its own secret key code R s with which the public key code R p constitutes a pair and the public key code T p of the transmitting party with which the secret key code T s constitutes a pair (S31). The input secret key code R s and public key code T p are stored temporarily in a random access memory RAM (not shown) (S32). The steps S3 and S4 are explained next. The random number generator 2G is operated under the control of the CPU 234 to generate a random number D in response to the keys T s and R p supplied from the key code input device 2F. The random number D is a predetermined sequence of numerals chosen from 0 to 9. The generated random number D which is used as a ciphering key for the data is stored temporarily in a random access memory RAM (not shown) (S3, S4). The steps S5, S6, and S7 are explained next. The random number D is ciphered by the secret key code T s . The code D ciphered by T s is expressed as T s (D). The ciphered code T s (D) is then ciphered by the public key code R p . The code T s (D) ciphered by R p is expressed as R p {T s (D)}. The ciphered code R p {T s (D)} is stored temporarily in a random access memory RAM (not shown) (S5, S6, S7). The steps S8 and S9 are explained next. When the transmitting party takes up the telephone receiver, that is, takes the telephone receiver off-hook, a telephone line loop is formed and the line voltage becomes 0 volt. In the ciphering apparatus 2, this off-hook action is detected by the off-hook signal detector circuit 222, and the detection signal is supplied through the I/O interface 233 to the CPU 234 (S8). In the off-hook dialing pulse detection circuit 222 in the ciphering apparatus 2, it is detected whether or not an off-hook dialing pulse is received within, for example, 13 sec, and the result of the detection is supplied through the I/O interface 233 to the CPU 234 (S9). When the detection of the off-hook dialing pulse does not continue for 1 sec or more, the process returns to step S8. The steps S33 and S34 are explained next. In the called side, the bell signal detection circuit 421 in the data deciphering apparatus detects the calling bell signal from the data transmitting device 1 in response to the call processing steps S8 and S9 (S33). After the detection of the calling bell signal, the continuation of the detection of the off-hook state for 1 sec or more is detected by the off-hook dialing pulse detection circuit 422 (S34). When the detection of the off-hook dialing pulse does not continue for 1 sec or more, the process returns to step S33. The steps S10 and S35 are explained next. Upon detecting the generation of a dialing pulse, the CPU 234 in the data ciphering apparatus 2 drives the relay (2) through the I/O interface 236 and the driver circuit 237 and the contact 212 of the relay (2) is closed (S10). In the called side, when the detection of the off-hook state continues for 1 sec or more, the CPU 434 of the data deciphering apparatus 4 drives the relay (5) through the I/O interface 436, and the trigger circuit 43, and the contact 412 of the relay (5) is closed (S35). The steps S11, S12, S13, S36, S37, and S38 are explained next. The monitoring of the control code is carried out by, for example, exchanging at a low frequency an acknowledgement signal between the data ciphering apparatus 2 and the data deciphering apparatus 4, so that an acknowledgement by the counter party is carried out, then the data ciphering apparatus 2 and the data deciphering apparatus 4 carry out the acknowledgement of the same mode or the receivable mode with each other (S12, S37). If it is decided that the communication between the data ciphering apparatus 2 and the data deciphering apparatus 4 is impossible, that is, that the acknowledge signal cannot be received within a predetermined time or the acknowledge signals or the continuation periods are different, the relay (2) is deenergized through the trigger circuit 237 to open the contact 212 of the relay (2) (S13). In a similar manner, in the called side, the relay (5) is driven through the trigger circuit 437 to open the contact 412 of the relay (5) (S38). The steps S14 and S39 are explained next. The control code between the data transmitting device 1 and the data receiving device 5 is monitored. The control code of the data transmitting device 1 is received through the capacitor 213, the relay contacts 212 and 211, the 2 line/4 line conversion circuit 282, the MODEM 29, the carrier signal detection circuit 231, and the communication module 232, and the received signal is signal-converted to be supplied to the CPU 234. The capacitor 213 cuts off the direct current, holds the current of the line, and prevents the hearing of the calling bell sound by the telephone receiver in the data transmitting device in the calling side from becoming impossible. For example, the speech transmission approval code (CFR code) is used for a control code of the data transmitting device 1, and this code is monitored by the CPU 234. In the data deciphering apparatus 4 in the called side, the monitoring of the control code is carried out by the CPU 434 through the transformer 481, 2 line/4 line conversion circuit 482, the MODEM 49, the carrier signal detection circuit 431, and the communication module 432 (S39). The steps S15, S13, S40, and S38 are explained next. In the data ciphering apparatus 2, the relay (2) is driven, and it is checked whether or not the control code is received within a predetermined time such as, for example, 8 sec after the closing of the contact of the relay (2) (S15). If it is checked as not received, the CPU 234 causes the relay (2) to be deenergized to turn off the contact 212 of the relay (2), and the process returns to step S13. In the called side, in the data deciphering apparatus 4, the relay (5) is driven, and it is checked whether or not the control code is received within a predetermined time such as, for example, 8 sec after the closing of the contact 412 of the relay (5) (S40). If it is checked as not received, the CPU 434 causes the relay (5) to be deenergized to turn off the contact 412 of the relay (5), and the process returns to step S38 to again carry out the detection of the dialing. During the above-described operations, a usual control process is carried out between the data transmitting device and the data receiving device through the telephone transmission line 3 independently from the data ciphering apparatus 2 and the data deciphering apparatus 4. The steps S16 and S39 are explained next. The CPU 234 in the data ciphering apparatus 2 drives the relay (1) and the relay (3) through the I/O interface 236, and causes the trigger circuit 237 to switch the contacts 214 and 211 of the relay (1) and relay (3) to close downwardly the contact 214 and close upwardly the contact 211 (S16), that is, the connection between the data transmitting device 1 and the telephone transmission line 3 is cut off, and a circuit forming the scramble portion 2E constituted by the contact 211 of the relay (3), the transformer 281, 2 line/4 line conversion circuit 282, the MODEM 29, the carrier detection circuit 231, the communication module 232, the CPU 234, the communication module 235, the MODEM 33, the 4 line/2 line conversion circuit 284, the transformer 283, and the contact 214 of the relay (1) is established. In the called side, the CPU 434 in the data deciphering apparatus 4 drives the relay (4) and the relay (6) through the I/O interface 436 and causes the trigger circuit 437 to switch the contacts 414 and 411 of the relay (4) and relay (6) to close downwardly the contact 414 and close upwardly the contact 411 (S39). Accordingly, the connection between the telephone transmission line 3 and the data receiving device 5 is cut off, and a circuit forming the descramble portion 4E constituted by the contact 411 of the relay (6), the transformer 481, the 2 line/4 line conversion circuit 482, the MODEM 49, the carrier signal detection circuit 431, the communication module 432, the CPU 434, the communication module 485, the 4 line/2 line conversion circuit 484, the transformer 483, and the contact 414 of the relay (4) is established. The steps S17, S42, S43, S44, and S45 are explained next. In the calling side, the ciphering key code temporally stored in the RAM is read, and the read ciphering ciphering key code R p {T s (D)} is transmitted to the data deciphering apparatus through the telephone transmission line 3 (S17). In the called side, the above-transmitted ciphering key code is supplied to the CPU 434 through the contact 411 of the relay (6), the transformer 481, the 2 line/4 line conversion circuit 482, the MODEM 49, the carrier signal detection circuit 431, and the communication module 432 (S42). The CPU 434 causes the secret key code R s and the public key code T p stored in the RAM to be read. First, the deciphering of R p {T s (D)} by the secret key code of the receiving party corresponding to the public key code R p is carried out. The deciphered data is expressed as T s (D) (S43). Then, the deciphering of D from the ciphering key code T s (D) by the public key code T p of the transmitting party is carried out (S44). The obtained random number D is temporarily stored in the RAM (S45). The steps S18, S19, S46, and S47 are explained next. In the calling side, in the data ciphering apparatus 2, non-ciphered data transmitted from the data transmitting device 1 is received through the MODEM 29, the received data is ciphered (scrambled) by random number D under control of the CPU 234, and the thus ciphered data is transmitted to the transmission line 3 through the MODEM 33 (S18, S19). In the called side, in the data deciphering apparatus 4, the ciphered data transmitted through the transmission line 3 is received by the CPU 434 through the MODEM 49, the received ciphered data is deciphered (descrambled), and the thus deciphered data which is the same as the data which was transmitted from the data transmitting device 1 is supplied to the data receiving device 5 through the MODEM 485 and the contact 414 of the relay (4) (S46, S47). The deciphering (descramble) is the reverse operation of the ciphering (scramble). Thus, the data transmitted from the data transmitting device 1 is reproduced in the data receiving device 5. The above-described ciphering and deciphering processes are carried out continuously for each page of the facsimile transmission. The steps S20, S21, S22, S48, S49, and S50 are explained next. In data communication such as a facsimile communication, a carrier signal of, for example, 75 ± 20 ms exists between the completion of the transmission of one page of data and the transmission of the next control code. In the calling side, in the data ciphering apparatus, the carrier signal is detected by the carrier signal detection circuit 231, and in the called side, in the data deciphering apparatus, the carrier signal is detected by the carrier signal detection circuit 431. The detections of the carrier signal are informed to the CPU 234 and CPU 434 each of which detects the completion of the transmission of one page of data (S20, S48). Upon detection of the completion of transmission of one page of data, the CPU 234 in the data ciphering apparatus 2 causes the relay (1) to deenergize to close upwardly the contact 214 of the relay (1) (S21). In a similar manner, the CPU 434 in the data deciphering apparatus 4 causes the relay (4) to deenergize to close upwardly the contact 414 of the relay (4) (S49). Thus, a circuit constituted by the data transmitting device 1, the telephone transmission line 3, and the data receiving device 5 is established. At the same time, in the calling side, a circuit constituted by the data transmitting device 1, the MODEM 29, and the CPU 234 is established, and in the called side, a circuit constituted by the telephone transmission line 3, the MODEM 49, and the CPU 434 is established. Again, the monitoring of the control code between the data transmitting device and the data receiving device becomes possible. In this monitoring of the control code, each of the CPU 234 in the data ciphering apparatus and the CPU 434 in the data deciphering apparatus 4 effects monitoring of whether a multi-page signal, i.e., MPS code, is received or a cut-off instruction instruction signal, i.e., DCN code, is received (S22, S31). If a MPS code is received, the data communication of the next page is successively carried out, and accordingly, in the calling side, the process returns through step S23 to step S18, and in the called side, the process returns through step S41 to step S45. The steps S24 and S52 are explained next. When a cut-off instruction signal is received the state of the circuit is restored to the initial state shown in Fig. 2 and Fig. 3 to make the circuit ready for the next signal transmission as described below. In the calling side, the CPU 234 causes the relay (2) and relay (3) to deenergize. Accordingly, the circuits constituting the scramble portion 2E and the control code monitor portion 2C are cut off from the circuit of the data transmitting device 1 and the telephone transmission line 3. However, the line condition detection portion 213 and the drive control portion 2D are able to operate. In the called side, the CPU 434 causes the relay (5) and the relay (6) to deenergize. Accordingly, the circuits constituting the descramble portion 4E and the control code monitor portion 4C are cut off from the circuit of the telephone transmission line 3 and the data receiving device 5. However, the line condition detection portion 413 and the drive control portion 4D are able to operate. In the above described process of operation of the system of Fig. 1, the communication of the ciphering key codes between the data ciphering apparatus and the data deciphering apparatus is carried out in step S17 and step S42. However, in order to reduce the time of the communication, the ciphering key codes may be incorporated with the control codes used in step S11 and S36. A data communication system using data ciphering/deciphering apparatuses according to a modified embodiment of the present invention is shown in Fig. 6 in which the ciphering of a random number D by a ciphering key code Id which is a specific code of the data deciphering apparatus connected between the transmission line 3 and the data receiving device 5, is carried out. The structure of the system of Fig. 6 is similar to that of Fig. 1, except that the key code inputting device 4F is replaced by a storage device 4G. The storage device 4G stores a ciphering key code Id which is a specific code preliminarily determined for the data deciphering apparatus 4. The ciphering key code Id for the data deciphering apparatus 4 is preliminarily made open to the public in correspondence with the data receiving device 5. The processes of the operations of the calling side and the called side of the system of Fig. 6 will be explained with reference to the flow charts of Fig. 7 and Fig. 8. In the explanation, only the portions which are different from the flow charts of Fig. 4 and Fig. 5 will be explained. The steps S61 and S62 are explained next. The transmitting party inputs a ciphering key code Id of the receiving party through the key code inputting device 2F (S61). The input ciphering key code Id is stored temporarily in a RAM (not shown) (S62). The steps S63 and S64 are explained next. In response to the supply of the ciphering key code Id from the key code inputting device 2F, the random number generator portion 2G is operated under control of the CPU to generate a random number D (S63). The generated random number D which is used for a ciphering key code for the communication data is stored temporarily in a RAM (not shown) (S64). The steps S65 and S66 are explained next. The random number D is ciphered by the ciphering key code Id. The ciphered random number is expressed as I d (D). The ciphered random number I d (D) is stored temporarily in a RAM (not shown). The steps S100, S101, S102, and S103 are explained next. In the calling side, the ciphered key code temporarily stored in the RAM is read, and the read ciphered random number key code I d (D) is transmitted to the data deciphering apparatus 4 through the transmission line 3 (Fig. 4, S17). In the called side, the ciphering key code I d (D) is supplied to the CPU 434 through the contact 411 of the relay (6), the transformer 481, the 2 line/4 line conversion circuit 482, the MODEM 49, the carrier signal detection circuit 431, and the communication module 432 (S100). The CPU 434 causes the ciphering key code I d preliminarily stored in the RAM (S101) to be read. The ciphered random number I d (D) is deciphered by the read ciphering key code I d to obtain the random number D (S102). The obtained random number D is temporarily stored in a RAM (S103). In the system of Fig. 1, the circuit constituted by the data transmitting device, the telephone transmission line, and the data receiving device 5 is cut off only when the by-passing is carried out by the scramble portion 2E and the descramble portion in the case of data transmission. Before this cut-off, the above-mentioned circuit is operated in parallel with the data ciphering apparatus 2 and the data deciphering apparatus 4. In this case, the transmission and the reception of the control code is carried out in a similar manner as explained before. Even if the data is ciphered by the scramble portion 2E and the data is deciphered by the descramble portion 4E during the data transmission, the data transmitting device 1 and the data receiving device 5 themselves are not affected by such ciphering and deciphering. Therefore, it is possible to apply the data ciphering apparatus 2 and the data deciphering apparatus 4 not only to a new communication system to be constructed, but also to an existing communication system. In order to apply the system of Fig. 1 to a bi-directional communication such as in a facsimile communication, a personal computer communication, and the like, a data deciphering apparatus 4' and a data ciphering apparatus 2' can be arranged in data transmitting/receiving devices 1 and 5, respectively, as shown in broken lines in Fig. 1. The systems of Fig. 1 and Fig. 6 can be applied not only to "one-to-one" data communication system but also various other data communication systems. Description of Reference Numerals in the Drawings

Claims: Apparatus (2) for ciphering data for use in a data communication system in which a communication control code containing a transmission/receipt approving notification and transmission data are transmitted, including switching means (2A) adapted to be coupled between a data transmitting device (1) and a transmission line for switching the connection between said data transmitting device and said transmission line to enable insertion of said ciphering apparatus (2) between said data transmitting device and said transmission line; and line condition detector (2B) means connected with said switching means for detecting a call from said data transmitting device; characterised in that there are provided: control code monitor means (2C) connected with said switching means for monitoring communication control codes from said data transmitting means, for providing a notification of approving the transmission/receipt of data based on the receipt of call signals in the transmitting and receiving sides, said control code monitor means monitoring a communication control code sent from the data transmitting device, transmitting a drive signal for switching the switching means after the detection of the communication control code, and transmitting a drive signal for restoring the contact of the switching means after the detection of a carrier signal following the transmission data; scramble means (2E, 2F, 2G) connected with said switching means for ciphering data transmitted from said data transmitting device after the detection of the communication control codes by said control code monitor means; and drive control means (2D), connected with said switching means and associated with said switching means, said line condition detector means, said control code monitor means, and said scrambling means, for supplying said transmission line through said switching means with ciphered data of the data from said data transmitting device. Apparatus according to claim 1 wherein said scrambling means comprises a key code inputting device (2F) for inputting key codes. Apparatus according to claim 2 wherein said scrambling means comprises a random number generator (2G) for generating a random number in response to a key code supply operation of said key code inputting device. Apparatus (4) for deciphering ciphered data for use in a data communication system in which a communication control code containing a transmission/receipt approving notification and transmission data are received, including switching means (4A) adapted to be coupled between a data transmission line and a data receiving device (5) for switching the connection between said transmission line and said data receiving device to enable insertion of said ciphering apparatus (4) between said transmission line and' said data receiving device; and line condition detector means (4B) connected with said switching means for detecting a call transmitted through said transmission line; characterised in that there are provided: control code monitor means (4C) connected with said switching means for monitoring communication control codes through said transmission line, for providing a notification of approving the transmission/receipt of data based on the receipt of call signals in the transmitting and receiving sides, said control code monitor means monitoring a communication control code sent through the transmission line from a data transmitting device (1), transmitting a drive signal for switching the switching means after the detection of the communication control code, and transmitting a drive signal for restoring the contact of the switching means after the detection of a carrier signal following the transmission data; descramble means (4E) connected with said switching means for deciphering data transmitted through said transmission line after the detection of the communication control codes by said control code monitor means; and drive control means (4D), connected with said switching means and associated with said switching means, said line condition detector means, said control code monitor means, and said descrambling means, for supplying said data receiving device through said switching means with deciphered data of the data from said transmission line. A data communication system adaptable for ciphered data communication comprising a data transmission line for transmitting ciphered or non-ciphered data between a data transmitting device and a data receiving device; a data transmitting device (1) for transmitting data; a data receiving device (5) for receiving data transmitted from said data transmitting device; data ciphering apparatus (2) according to any one of claims 1 to 3 coupled between said data transmitting device and said transmission line; and data deciphering apparatus (4) according to claim 4 coupled between said transmission line and said data receiving device.

Inventors: MATSUMOTO KENICHI, MIYASAKA TOSHIKAZU, SHIGEMITSU MINEO, MATSUMOTO, KENICHI, MIYASAKA, TOSHIKAZU, SHIGEMITSU, MINEO
Applicants: SECOM CO LTD, SECOM CO., LTD.
Application year: 1989
Main classification: H04L9
IPC codes: H04L9