CN103441841A - Automatic encrypting and decrypting system and method for welding data - Google Patents

Automatic encrypting and decrypting system and method for welding data Download PDF

Info

Publication number
CN103441841A
CN103441841A CN2013103436450A CN201310343645A CN103441841A CN 103441841 A CN103441841 A CN 103441841A CN 2013103436450 A CN2013103436450 A CN 2013103436450A CN 201310343645 A CN201310343645 A CN 201310343645A CN 103441841 A CN103441841 A CN 103441841A
Authority
CN
China
Prior art keywords
data
random number
encrypt data
encrypting
function
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.)
Granted
Application number
CN2013103436450A
Other languages
Chinese (zh)
Other versions
CN103441841B (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.)
Panasonic Welding Systems Tangshan Co Ltd
Original Assignee
Tangshan Matsushita Industrial Equipment Co Ltd
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 Tangshan Matsushita Industrial Equipment Co Ltd filed Critical Tangshan Matsushita Industrial Equipment Co Ltd
Priority to CN201310343645.0A priority Critical patent/CN103441841B/en
Publication of CN103441841A publication Critical patent/CN103441841A/en
Application granted granted Critical
Publication of CN103441841B publication Critical patent/CN103441841B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Storage Device Security (AREA)

Abstract

The invention provides an automatic encrypting and decrypting system and method for welding data, and belongs to the technical field of welding. The system comprises an encrypting device and a decrypting device. The encrypting device comprises a random number generating unit, a data encrypting unit, a random number inserting unit and a transmitting unit, wherein the random number generating unit is used for generating random numbers, the data encrypting unit is used for carrying out encryption on plaintext data to be encrypted to obtain primary cryptograph data, the random number inserting unit is used for inserting the random numbers into the primary cryptograph data to obtain ultimate cryptograph data, and the transmitting unit is used for transmitting the ultimate cryptograph data to the decrypting device. The decrypting device comprises a receiving unit, an extracting unit and a data decrypting unit, wherein the receiving unit is used for receiving the ultimate cryptograph data, the extracting unit is used for extracting the random numbers and the primary cryptograph data from the ultimate cryptograph data, and the data decrypting unit is used for carrying out decryption on the primary cryptograph data through the random numbers to obtain the plaintext data. The automatic encrypting and decrypting system and method for the welding data can effectively prevent the welding data from being revealed in the transmitting process.

Description

A kind of welding data is from encrypting and decrypting system and method
[technical field]
The present invention relates to a kind of welding data from encrypting and decrypting system and method.
[background technology]
Along with the development of solder technology, the transmission of carrying out welding data by wired or wireless mode becomes more and more frequent.From the carrier wave welding machine to the welding machine tele-control system, then, to the control system of using handheld terminal to be controlled, all can relate to the transmission of welding data.Welding data can be various welding parameters, for example, and welding current, weldingvoltage etc.
As shown in Figure 7, the carrier wave welding machine generally includes the source of welding current 91 and the wire-feed motor 92 connected by power line.The source of welding current 91 sends welding data by the mode of power line carrier to wire-feed motor 92.As shown in Figure 8, the tele-control system of welding machine generally includes: a plurality of clients 93 (normally computer), server 94 and a plurality of welding machine 95.In control procedure, client 93 sends to server 94 by wired or wireless mode by welding data, and server 94 sends to welding data by wired or wireless mode the source of welding current of welding machine 95 again, and welding machine 95 is welded according to welding data.
Fig. 9 shows another welding control system, and this system generally includes computer 96, handheld terminal 97 and welding machine 98.During use, at first in computer 96 1 sides, by wired or wireless mode from computer 96 to handheld terminal 97 transmission welding procedures, then to welding machine 98 1 sides, the welding procedure in handheld terminal 97 is transferred to the source of welding current of welding machine 98 by wired or wireless mode.Like this, welding machine 98 just can be welded according to welding procedure.
At present, in the process of above three kinds of welding data transmission, all adopt plaintext transmission, therefore may cause the leakage of information.In order to address this problem, need in the process of transmission, to welding data, be encrypted.
Now, common data encryption mode comprises mode and the random mode that generates key of artificial setting key.The mode fail safe of artificial setting key is poor, if the cipher key setting people has been leaked key, can cause the leakage of data.The random mode that generates key is automatically to generate key by random number generator, and concrete grammar can be referring to Chinese invention patent application prospectus CN96111260.3.But, for this mode, the transmission method of key remains needs the problem solved, if adopt the clear-text way transmission security key, still likely causes the leakage of data.
In addition, for welding field, the data volume of the welding data that need to transmit is usually larger, and transmitting procedure is a dynamic process, data sending terminal need to constantly send various welding data, and data receiver need to receive these data in time, and is processed.And, for welding field, usually only need transmitting procedure is encrypted, and only need cleartext information at data sending terminal and data receiver.Therefore at welding field, need welding data can encrypt voluntarily before sending, and can momentarily carry out from deciphering after receiving.
[summary of the invention]
[technical problem]
The present invention is intended to for the problems referred to above of the prior art, provides a kind of welding data from encrypting and decrypting system and method.
[solution]
Provided by the inventionly from encrypting and decrypting system, comprise: the encryption device that is connected to each other to communicate and decryption device.This encryption device comprises: the random number generation unit, and it is for generating random number K; DEU data encryption unit, it is for utilizing predefined encryption function F by this random number K, clear data P to be encrypted to be encrypted, thereby obtains elementary encrypt data Cp; The random number plug-in unit, it is for according to the regular Ri of predefined insertion, this random number K being inserted to this elementary encrypt data Cp, thereby obtains final encrypt data Cf; And transmitting element, it is for sending to this decryption device by this final encrypt data Cf.
This decryption device comprises: receiving element, and it is for receiving this final encrypt data Cf; Extraction unit, it extracts this random number K and this elementary encrypt data Cp for insert regular Ri according to this from this final encrypt data Cf; And data decryption unit, it is for utilizing predefined decryption function G by this random number K, this elementary encrypt data Cp to be decrypted, thereby obtains this clear data P, and this decryption function G is the inverse function of this encryption function F.
Another kind provided by the invention comprises from encrypting and decrypting system: an encryption device, and superencipher equipment and decryption device, this superencipher equipment is connected to each other to communicate with this encryption device and this decryption device respectively.
This encryption device comprises: the random number generation unit, and it is for generating random number K; A DEU data encryption unit, it is for utilizing a predefined encryption function F1 by this random number K, clear data P to be encrypted to be encrypted, thereby obtains elementary encrypt data Cp; A plug-in unit, it is for according to predefined, once insert regular R1 this random number K is inserted to this elementary encrypt data Cp, thereby obtains encrypt data C1 one time; And a transmitting element, it is for sending to this superencipher equipment by this encrypt data C1.
This superencipher equipment comprises: the secondary receiving element, and it is for receiving this encrypt data C1; The second extraction unit, it extracts this random number K and this elementary encrypt data Cp for once insert regular R1 according to this from this encrypt data C1; The secondary data ciphering unit, it is for utilizing predefined superencipher function F 2 by this random number K, this elementary encrypt data Cp to be encrypted, thus acquisition secondary encrypt data C2; The secondary plug-in unit, it inserts this secondary encrypt data C2 for insert regular R2 according to predefined secondary by this random number K, thereby obtains final encrypt data Cf; And transmitting element, it is for sending to this decryption device by this final encrypt data Cf.
This decryption device comprises: receiving element, and it is for receiving this final encrypt data Cf; Extraction unit, it extracts this random number K and this secondary encrypt data C2 for insert regular R2 according to this secondary from this final encrypt data Cf; And data decryption unit, it is for utilizing predefined decryption function G by this random number K, this secondary encrypt data C2 to be decrypted, thereby obtain this clear data P, this decryption function G is the inverse function of this encryption function F1 and superencipher function F 2.
Provided by the inventionly from encrypting and decrypting method, comprise: encrypting step and decryption step.This encrypting step comprises: random number generates step: generate random number K; Data encryption step: utilize predefined encryption function F by this random number K, clear data P to be encrypted to be encrypted, thereby obtain elementary encrypt data Cp; Random number inserting step: according to the regular Ri of predefined insertion, this random number K is inserted in this elementary encrypt data Cp, thereby obtain final encrypt data Cf; And forwarding step: send this final encrypt data Cf.
This decryption step comprises: receiving step: receive this final encrypt data Cf; Extraction step: insert regular Ri according to this and extract this random number K and this elementary encrypt data Cp from this final encrypt data Cf; And data deciphering step: utilize predefined decryption function G by this random number K, this elementary encrypt data Cp to be decrypted, thereby obtain this clear data P, this decryption function G is the inverse function of this encryption function F.
Another kind provided by the invention comprises from encrypting and decrypting method: an encrypting step, superencipher step and decryption step.This encrypting step comprises: random number generates step: generate random number K; A data encryption step: utilize a predefined encryption function F1 by this random number K, clear data P to be encrypted to be encrypted, thereby obtain elementary encrypt data Cp; An inserting step: once insert regular R1 this random number K is inserted in this elementary encrypt data Cp according to predefined, thereby obtain encrypt data C1 one time; An and forwarding step: send this encrypt data C1.
This superencipher step comprises: the secondary receiving step: receive this encrypt data C1; Second extraction step: once insert regular R1 according to this and extract this random number K and this elementary encrypt data Cp from this encrypt data C1; Secondary data encrypting step: utilize predefined superencipher function F 2 by this random number K, this elementary encrypt data Cp to be encrypted, thereby obtain secondary encrypt data C2; Secondary inserting step: insert regular R2 according to predefined secondary this random number K is inserted in this secondary encrypt data C2, thereby obtain final encrypt data Cf; And forwarding step: send this final encrypt data Cf.
This decryption step comprises: receiving step: receive this final encrypt data Cf; Extraction step: insert regular R2 according to this secondary and extract this random number K and this secondary encrypt data C2 from this final encrypt data Cf; And data deciphering step: utilize predefined decryption function G by this random number K, this secondary encrypt data C2 to be decrypted, thereby obtain this clear data P, this decryption function G is the inverse function of this encryption function F1 and superencipher function F 2.
[invention beneficial effect]
From encrypting and decrypting system and method, can effectively prevent leakage of information when welding data is transmitted by welding data of the present invention.Because key information can generate automatically, so can effectively reduce the problem of data safety that human factor causes.And by automatically being encrypted deciphering, greatly promoted the efficiency of encrypting and decrypting, be applicable to the encrypting and decrypting of mass data.
[accompanying drawing explanation]
Fig. 1 is the structured flowchart of the welding data of first embodiment of the invention from encrypting and decrypting system;
Fig. 2 is the hardware schematic diagram of the welding data of first embodiment of the invention from encrypting and decrypting system;
Fig. 3 is the flow chart of the welding data of first embodiment of the invention from encrypting and decrypting method;
Fig. 4 is the structured flowchart of the welding data of second embodiment of the invention from encrypting and decrypting system;
Fig. 5 is the hardware schematic diagram of the welding data of second embodiment of the invention from encrypting and decrypting system;
Fig. 6 is the flow chart of the welding data of second embodiment of the invention from encrypting and decrypting method;
Fig. 7 is the schematic diagram of the carrier wave welding machine of prior art;
Fig. 8 is the schematic diagram of the welding machine tele-control system of prior art; And
Fig. 9 is the schematic diagram of the another kind of welding control system of prior art.
[embodiment]
Core concept of the present invention is, during encryption, first by randomizer, automatically generate a random number K, the recycling encryption function is encrypted clear data P to be encrypted by random number K, obtain elementary encrypt data Cp, then random number K is inserted to elementary encrypt data Cp, obtain final encrypt data Cf.During deciphering, first from final encrypt data Cf, extract random number K and elementary encrypt data Cp, the recycling decryption function is decrypted elementary encrypt data Cp by random number K, obtains clear data P.
Below in conjunction with accompanying drawing, the specific embodiment of the present invention is described.
[the first embodiment]
Below with reference to Fig. 1 and Fig. 2, the first embodiment of the present invention is described.
As shown in Figure 1, the welding data of first embodiment of the invention comprises encryption device 10 and the decryption device 20 that is connected to each other to communicate from encrypting and decrypting system.Encryption device 10 comprises: random number generation unit 11, DEU data encryption unit 12, random number plug-in unit 13, and transmitting element 14.Decryption device 20 comprises: receiving element 21, extraction unit 22, and data decryption unit 23.
In the present embodiment, encryption device 10 is sources of welding current, and decryption device 20 is wire-feed motor.As shown in Figure 2, encryption device 10 comprises CPU, and the RAM be connected with CPU respectively, Flash and data transmit circuit.Decryption device 20 comprises CPU, and the RAM be connected with CPU respectively, Flash and data receiver circuit.CPU can adopt the C2000 of Texas Instrument, also can adopt CPU, Programmable Logic Controller of other type etc.
Random number generation unit 11, DEU data encryption unit 12 and random number plug-in unit 13 can be realized by the program module of storing in the operation of the CPU in source of welding current Flash.Extraction unit 22 and data decryption unit 23 can realize by the program module of storing in the operation of the CPU in wire-feed motor Flash.Transmitting element 14 and receiving element 21 can be realized by data transmit circuit and data receiver circuit.
In addition, random number generation unit 11, DEU data encryption unit 12, random number plug-in unit 13, the function of extraction unit 22 and data decryption unit 23 also can adopt hardware circuit to realize.
[from encrypting and decrypting method]
The welding data of first embodiment of the invention is described from encrypting and decrypting method below with reference to Fig. 3.
As shown in Figure 3, the welding data of first embodiment of the invention comprises encrypting step S10 and decryption step S20 from encrypting and decrypting method.Wherein, encrypting step S10 comprises the following steps:
S11, random number generates step: random number generation unit 11 generates random number K.The method that random number generates belongs to prior art, does not repeat them here.In the present embodiment, random number K is 3 bits: 111.
S12, the data encryption step: DEU data encryption unit 12 utilizes predefined encryption function F by random number K, clear data P to be encrypted to be encrypted, thereby forms elementary encrypt data Cp.In the present embodiment, encryption function F is XOR function Xor, that is, and and Cp=K Xor P, clear data P=101010.Therefore random number K and clear data P carry out XOR, obtain elementary encrypt data Cp=101101.
S13, the random number inserting step: random number plug-in unit 13 inserts random number K in elementary encrypt data Cp according to the regular Ri of predefined insertion, thereby forms final encrypt data Cf.In the present embodiment, inserting regular Ri is that random number K is inserted to the ad-hoc location in elementary encrypt data Cp.
Specifically, the 1st bit digital " 1 " that the 1st bit digital " 1 " of random number K is inserted to elementary encrypt data Cp afterwards, as the 2nd bit digital of final encrypt data Cf.The 2nd bit digital " 0 " that the 2nd bit digital " 1 " of random number K is inserted to elementary encrypt data Cp afterwards, as the 4th bit digital of final encrypt data Cf.The 3rd bit digital " 1 " that the 3rd bit digital " 1 " of random number K is inserted to elementary encrypt data Cp afterwards, as the 6th bit digital of final encrypt data Cf.Thereby obtain final encrypt data Cf=110111101.
S14, forwarding step: transmitting element 14 sends to decryption device 20 by final encrypt data Cf.
Decryption step S20 comprises the following steps:
S21, receiving step: receiving element 21 receives final encrypt data Cf.
S22, extraction step: extraction unit 22 extracts random number K and elementary encrypt data Cp according to inserting regular Ri from final encrypt data Cf.In the present embodiment, the 2nd bit digital " 1 " of final encrypt data Cf is extracted, as the 1st bit digital of random number K.The 4th bit digital " 1 " of final encrypt data Cf is extracted, as the 2nd bit digital of random number K.The 6th bit digital " 1 " of final encrypt data Cf is extracted, as the 3rd bit digital of random number K.Thereby obtain random number K=111.Other bit digital is extracted, thereby obtain elementary encrypt data Cp=101101.
S23, the data deciphering step: data decryption unit 23 utilizes predefined decryption function G by random number K, elementary encrypt data Cp to be decrypted, thereby obtains clear data P.Decryption function G is the inverse function of encryption function F.In the present embodiment, decryption function G is XOR function Xor.Since random number K=111, elementary encrypt data Cp=101101.So random number K and clear data P carry out XOR, thereby obtain clear data P=101010.
Welding data by first embodiment of the invention is from encrypting and decrypting system, the leakage of information in the time of can effectively preventing the welding data transmission.Because key information can generate automatically, so can effectively reduce the problem of data safety that human factor causes.And by automatically being encrypted deciphering, greatly promoted the efficiency of encrypting and decrypting, be applicable to the encrypting and decrypting of mass data.
In order to obtain better cipher round results, insert regular Ri and can also be: first utilize predefined random number encryption function Z to be encrypted random number K, then the encrypted random number Kc after encrypting is inserted to the ad-hoc location in elementary encrypt data Cp.
Specifically, in random number inserting step S13, can first utilize random number encryption function Z to be encrypted random number K, thereby obtain encrypted random number Kc.Random number encryption function Z can be, for example: Kc=K+101.Because K=111, so Kc=111+101=1100.And then encrypted random number Kc is inserted to the ad-hoc location of elementary encrypt data Cp=101101.For example,, after the 1st to 4 bit digital of encrypted random number Kc being inserted respectively to the 1st to 4 bit digital of elementary encrypt data Cp, as the 2nd, 4,6,8 bit digital of final encrypt data Cf.Thereby obtain final encrypt data Cf=1101101001.
In extraction step S22, first the 2nd, 4,6,8 bit digital of final encrypt data Cf are extracted, as the 1st to 4 bit digital of encrypted random number Kc, thereby obtain encrypted random number Kc=1100.Other bit digital is extracted, as elementary encrypt data Cp, thereby obtain elementary encrypt data Cp=101101.Obtain random number K according to random number encryption function Z again, because Kc=K+101, so K=Kc-101=1100-101=111.Thereby obtain random number K=111.
From encrypting and decrypting method, can obtain better cipher round results by above-mentioned.
In the present embodiment, encryption function F and deciphering function G can comprise a plurality of parameters.For example, encryption function F can be Cp=aK+bP, and decryption function G is P=(Cp-aK)/b.Parameter a, b can be predefined, can be also automatically to generate.
For the situation of automatic generation parameter a, b, encryption device 10 also comprises: the parameter generating unit (not shown), and it is for generating parameter a, the b of encryption function F and deciphering function G; And parameter transmitting element (not shown), it is for sending parameter a, b.Decryption device 20 also comprises parameter receiving element (not shown), and it is for receiving parameter a, b.
Specifically, in data encryption step S12, the predefined encryption function F of parameter a, b substitution that DEU data encryption unit 12 first generates parameter generating unit, recycling encryption function F is encrypted clear data P to be encrypted by random number K, thereby forms elementary encrypt data Cp.In data deciphering step S23, parameter a, the predefined decryption function G of b substitution that data decryption unit 23 first receives the parameter receiving element, recycling decryption function G is decrypted elementary encrypt data Cp by random number K, thereby obtains clear data P.
From encrypting and decrypting method, can obtain better cipher round results by above-mentioned.
[the second embodiment]
Below with reference to Fig. 4 and Fig. 5, the second embodiment of the present invention is described.
As shown in Figure 4, welding data of the present invention comprises encryption device 30 one time from encrypting and decrypting system, superencipher equipment 40 and decryption device 50, and superencipher equipment 40 is connected to each other to communicate with encryption device 30 and decryption device 50 respectively.In the present embodiment, an encryption device 30 can be client, for example: computer, panel computer, mobile phone etc.Superencipher equipment 40 can be server.Decryption device 50 can be welding machine.In addition, an encryption device 30 can also be computer.Superencipher equipment 40 can also be handheld terminal, for example: panel computer, mobile phone etc.
One time encryption device 30 comprises: 32, plug-in units 33 of 11, DEU data encryption units of random number generation unit, and a transmitting element 34.Superencipher equipment 40 comprises: secondary receiving element 41, second extraction unit 42, secondary data ciphering unit 43, secondary plug-in unit 44, and transmitting element 14.Decryption device 50 comprises: receiving element 21, extraction unit 52, and data decryption unit 53.
As shown in Figure 5, one time encryption device 30 comprises CPU, and the RAM be connected with CPU respectively, Flash and data transmit circuit.Superencipher equipment 40 comprises CPU, and the RAM be connected with CPU respectively, Flash, data transmit circuit and data receiver circuit.Decryption device 50 comprises CPU, and the RAM be connected with CPU respectively, Flash and data receiver circuit.CPU can adopt the C2000 of Texas Instrument, also can adopt CPU, Programmable Logic Controller of other type etc.
11, DEU data encryption units 32 of random number generation unit and a plug-in unit 33 can be realized by the program module of storing in the operation of the CPU in client or computer Flash.Second extraction unit 42, secondary data ciphering unit 43 and secondary plug-in unit 44 can be realized by the program module of storing in the operation of the CPU in server or handheld terminal Flash.Extraction unit 52 and data decryption unit 53 can realize by the program module of storing in the operation of the CPU in welding machine Flash.A transmitting element 34, secondary receiving element 41, receiving element 21 and transmitting element 14 can be realized by data transmit circuit and the data receiver circuit of CPU periphery.
In addition, 11, DEU data encryption units 32 of random number generation unit, a plug-in unit 33, second extraction unit 42, secondary data ciphering unit 43, secondary plug-in unit 44, the function of extraction unit 52 and data decryption unit 53 also can adopt hardware circuit to realize.
[from encrypting and decrypting method]
The welding data of second embodiment of the invention is described from encrypting and decrypting method below with reference to Fig. 6.
As shown in Figure 6, the welding data of second embodiment of the invention comprises encrypting step S30 one time from encrypting and decrypting method, superencipher step S40 and decryption step S50.Wherein, an encrypting step S30 comprises the following steps:
S31, random number generates step: random number generation unit 11 generates random number K.In the present embodiment, random number K is 4 bits: 1111.
S32, a data encryption step: one time DEU data encryption unit 32 utilizes a predefined encryption function F1 by random number K, clear data P to be encrypted to be encrypted, thereby obtains elementary encrypt data Cp.In the present embodiment, one time encryption function F1 is Cp=KP, and clear data P is 1010.Random number K and clear data P multiply each other, and obtain elementary encrypt data Cp=10010110.
S33, an inserting step: plug-in unit 33 once inserts regular R1 random number K is inserted in elementary encrypt data Cp according to predefined, thereby obtains encrypt data C1 one time.
In the present embodiment, once inserting regular R1 is that random number K is inserted to the ad-hoc location in elementary encrypt data Cp.Specifically, once insert regular R1 and be, before 4 bit digital of random number K are all inserted to elementary encrypt data Cp, as front 4 bit digital of an encrypt data C1.Thereby obtain encrypt data C1=111110010110 one time.
S34, a forwarding step: one time transmitting element 34 sends to superencipher equipment 40 by an encrypt data C1.
Superencipher step S40 comprises the following steps:
S41, the secondary receiving step: secondary receiving element 41 receives an encrypt data C1.
S42, the second extraction step: second extraction unit 42 extracts random number K and elementary encrypt data Cp according to once inserting regular R1 from an encrypt data C1.In the present embodiment, second extraction unit 42 extracts front 4 bit digital of an encrypt data C1=111110010110, thereby obtains random number K=1111.Other bit digital of an encrypt data C1 is extracted, thereby obtain elementary encrypt data Cp=10010110.
S43, the secondary data encrypting step: secondary data ciphering unit 43 utilizes predefined superencipher function F 2 by random number K, elementary encrypt data Cp to be encrypted, thereby obtains secondary encrypt data C2.In the present embodiment, superencipher function F 2 is C2=K+Cp.Because random number K=1111, elementary encrypt data Cp=10010110, random number K and elementary encrypt data Cp addition, thus secondary encrypt data C2=10100101 obtained.
S44, secondary inserting step: insert regular R2 according to predefined secondary random number K is inserted in secondary encrypt data C2, thereby obtain final encrypt data Cf.In the present embodiment, secondary inserts regular R2 and is, random number K is inserted to the ad-hoc location in secondary encrypt data C2.Specifically, secondary inserts regular R2, after the 1st to the 4th bit digital of random number K being inserted respectively to the 1st the 4th bit digital extremely reciprocal of inverse of secondary encrypt data C2, as inverse the 1st, 3,5,7 bit digital of final encrypt data Cf, thereby obtain final encrypt data Cf=101001110111.
S45, forwarding step: transmitting element 14 sends to decryption device 50 by final encrypt data Cf.
Decryption step S50 comprises the following steps:
S51, receiving step: receiving element 21 receives final encrypt data Cf.
S52, extraction step: extraction unit 52 inserts regular R2 according to secondary and extract random number K and secondary encrypt data C2 from final encrypt data Cf.In the present embodiment, extraction unit 52 extracts the inverse of final encrypt data Cf the 1st, 3,5,7 bit digital, as the 1st to 4 of random number K, thereby obtains random number K=1111.Other bit digital is extracted, as secondary encrypt data C2, thereby obtain secondary encrypt data C2=10100101.
S53, the data deciphering step: data decryption unit 53 utilizes predefined decryption function G by random number K, secondary encrypt data C2 to be decrypted, thereby obtains clear data P.Decryption function G is the inverse function of encryption function F1 and superencipher function F 2.In the present embodiment, because F1 is Cp=KP, F2 is C2=K+Cp, so G is P=(C2-K)/K.Again because random number K=1111, secondary encrypt data C2=10100101.So clear data P=1010.
Welding data by second embodiment of the invention is from encrypting and decrypting system, the leakage of information in the time of can effectively preventing the welding data transmission.Because key information can generate automatically, so can effectively reduce the problem of data safety that human factor causes.And by automatically being encrypted deciphering, greatly promoted the efficiency of encrypting and decrypting, be applicable to the encrypting and decrypting of mass data.In addition, by superencipher, can further improve the fail safe of data.
In order to obtain better cipher round results, once inserting regular R1 can also be first to utilize predefined random number encryption function Z to be encrypted random number K, then the encrypted random number Kc after encrypting is inserted to the ad-hoc location in elementary encrypt data Cp.
In order to obtain better cipher round results, secondary inserts regular R2 and can also be, first utilizes predefined random number encryption function Z to be encrypted random number K, then the encrypted random number Kc after encrypting inserts the ad-hoc location in secondary encrypt data C2.
In the present embodiment, an encryption function F1, superencipher function F 2 and deciphering function G can comprise a plurality of parameters.Parameter a, b can be predefined, can be also automatically to generate.
Above,, with reference to detailed or specific execution mode, describe the present invention, but those skilled in the art understand: can under the prerequisite that does not break away from spirit of the present invention and scope, carry out various changes and correction.
[industrial applicibility]
From encrypting and decrypting system, can effectively prevent leakage of information when welding data is transmitted by welding data of the present invention.Because key information can generate automatically, so can effectively reduce the problem of data safety that human factor causes.And by automatically being encrypted deciphering, greatly promoted the efficiency of encrypting and decrypting, be applicable to the encrypting and decrypting of mass data.[reference numerals list]
10 encryption devices
11 random number generation units
12 DEU data encryption units
13 random number plug-in units
14 transmitting elements
20,50 decryption devices
21 receiving elements
22,52 extraction units
23,53 data decryption unit
30 encryption devices
32 DEU data encryption units
33 plug-in units
34 transmitting elements
40 superencipher equipment
41 secondary receiving elements
42 second extraction unit
43 secondary data ciphering units
44 secondary plug-in units
[quoting the patent list as proof]
[patent documentation]
CN96111260.3?。

Claims (11)

1. a welding data, from encrypting and decrypting system, comprises the encryption device (10) and the decryption device (20) that are connected to each other to communicate;
This encryption device (10) comprising:
Random number generation unit (11), it is for generating random number K;
DEU data encryption unit (12), it is for utilizing predefined encryption function F by this random number K, clear data P to be encrypted to be encrypted, thereby obtains elementary encrypt data Cp;
Random number plug-in unit (13), it is for according to the regular Ri of predefined insertion, this random number K being inserted to this elementary encrypt data Cp, thereby obtains final encrypt data Cf; And
Transmitting element (14), it is for sending to this decryption device (20) by this final encrypt data Cf;
This decryption device (20) comprising:
Receiving element (21), it is for receiving this final encrypt data Cf;
Extraction unit (22), it extracts this random number K and this elementary encrypt data Cp for insert regular Ri according to this from this final encrypt data Cf; And
Data decryption unit (23), it is for utilizing predefined decryption function G by this random number K, this elementary encrypt data Cp to be decrypted, thereby obtains this clear data P, and this decryption function G is the inverse function of this encryption function F.
2. welding data as claimed in claim 1, from encrypting and decrypting system, is characterized in that,
The regular Ri of described insertion is that described random number K is inserted to the ad-hoc location in described elementary encrypt data Cp.
3. welding data as claimed in claim 1, from encrypting and decrypting system, is characterized in that,
The regular Ri of described insertion is first utilize predefined random number encryption function Z to be encrypted described random number K, then the encrypted random number Kc after encrypting to insert the ad-hoc location in described elementary encrypt data Cp.
4. welding data as described as any one in claims 1 to 3, from encrypting and decrypting system, is characterized in that,
Described encryption device (10) also comprises:
Parameter generating unit, it is for generating the parameter of described encryption function F and described decryption function G;
The parameter transmitting element, it is for sending this parameter;
Described decryption device (20) also comprises: the parameter receiving element, it is for receiving this parameter.
5. a welding data is from encrypting and decrypting system, comprise an encryption device (30), superencipher equipment (40) and decryption device (50), this superencipher equipment (40) is connected to each other to communicate with this encryption device (30) and this decryption device (50) respectively
This encryption device (30) comprising:
Random number generation unit (11), it is for generating random number K;
A DEU data encryption unit (32), it is for utilizing a predefined encryption function F1 by this random number K, clear data P to be encrypted to be encrypted, thereby obtains elementary encrypt data Cp;
A plug-in unit (33), it is for according to predefined, once insert regular R1 this random number K is inserted to this elementary encrypt data Cp, thereby obtains encrypt data C1 one time; And
A transmitting element (34), it is for sending to this superencipher equipment (40) by this encrypt data C1;
This superencipher equipment (40) comprising:
Secondary receiving element (41), it is for receiving this encrypt data C1;
Second extraction unit (42), it extracts this random number K and this elementary encrypt data Cp for once insert regular R1 according to this from this encrypt data C1;
Secondary data ciphering unit (43), it is for utilizing predefined superencipher function F 2 by this random number K, this elementary encrypt data Cp to be encrypted, thus acquisition secondary encrypt data C2;
Secondary plug-in unit (44), it inserts this secondary encrypt data C2 for insert regular R2 according to predefined secondary by this random number K, thereby obtains final encrypt data Cf; And
Transmitting element (14), it is for sending to this decryption device (50) by this final encrypt data Cf;
This decryption device (50) comprising:
Receiving element (21), it is for receiving this final encrypt data Cf;
Extraction unit (52), it extracts this random number K and this secondary encrypt data C2 for insert regular R2 according to this secondary from this final encrypt data Cf; And
Data decryption unit (53), it is for utilizing predefined decryption function G by this random number K, this secondary encrypt data C2 to be decrypted, thereby obtain this clear data P, this decryption function G is the inverse function of this encryption function F1 and superencipher function F 2.
6. welding data as claimed in claim 5, from encrypting and decrypting system, is characterized in that,
Describedly once insert regular R1 and be, described random number K is inserted to the ad-hoc location in described elementary encrypt data Cp.
7. welding data as claimed in claim 5, from encrypting and decrypting system, is characterized in that,
Describedly once insert regular R1 and be, first utilize predefined random number encryption function Z to be encrypted described random number K, then the encrypted random number Kc after encrypting inserts the ad-hoc location in described elementary encrypt data Cp.
8. welding data as described as any one in claim 5 to 7, from encrypting and decrypting system, is characterized in that,
Described secondary inserts regular R2, and described random number K is inserted to the ad-hoc location in described secondary encrypt data C2.
9. welding data as described as any one in claim 5 to 7, from encrypting and decrypting system, is characterized in that,
Described secondary inserts regular R2, first utilizes predefined random number encryption function Z to be encrypted described random number K, then the encrypted random number Kc after encrypting is inserted to the ad-hoc location in described secondary encrypt data C2.
10. a welding data, from encrypting and decrypting method, comprises encrypting step and decryption step;
This encrypting step comprises:
Random number generates step: generate random number K;
Data encryption step: utilize predefined encryption function F by this random number K, clear data P to be encrypted to be encrypted, thereby obtain elementary encrypt data Cp;
Random number inserting step: according to the regular Ri of predefined insertion, this random number K is inserted in this elementary encrypt data Cp, thereby obtain final encrypt data Cf; And
Forwarding step: send this final encrypt data Cf;
This decryption step comprises:
Receiving step: receive this final encrypt data Cf;
Extraction step: insert regular Ri according to this and extract this random number K and this elementary encrypt data Cp from this final encrypt data Cf; And
The data deciphering step: utilize predefined decryption function G by this random number K, this elementary encrypt data Cp to be decrypted, thereby obtain this clear data P, this decryption function G is the inverse function of this encryption function F.
11. a welding data, from encrypting and decrypting method, comprises encrypting step one time, superencipher step and decryption step;
This encrypting step comprises:
Random number generates step: generate random number K;
A data encryption step: utilize a predefined encryption function F1 by this random number K, clear data P to be encrypted to be encrypted, thereby obtain elementary encrypt data Cp;
An inserting step: once insert regular R1 this random number K is inserted in this elementary encrypt data Cp according to predefined, thereby obtain encrypt data C1 one time; And
A forwarding step: send this encrypt data C1;
This superencipher step comprises:
Secondary receiving step: receive this encrypt data C1;
Second extraction step: once insert regular R1 according to this and extract this random number K and this elementary encrypt data Cp from this encrypt data C1;
Secondary data encrypting step: utilize predefined superencipher function F 2 by this random number K, this elementary encrypt data Cp to be encrypted, thereby obtain secondary encrypt data C2;
Secondary inserting step: insert regular R2 according to predefined secondary this random number K is inserted in this secondary encrypt data C2, thereby obtain final encrypt data Cf; And
Forwarding step: send this final encrypt data Cf;
This decryption step comprises:
Receiving step: receive this final encrypt data Cf;
Extraction step: insert regular R2 according to this secondary and extract this random number K and this secondary encrypt data C2 from this final encrypt data Cf; And
The data deciphering step: utilize predefined decryption function G by this random number K, this secondary encrypt data C2 to be decrypted, thereby obtain this clear data P, this decryption function G is the inverse function of this encryption function F1 and superencipher function F 2.
CN201310343645.0A 2013-08-08 2013-08-08 A kind of welding data is from encrypting and decrypting system and method Active CN103441841B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310343645.0A CN103441841B (en) 2013-08-08 2013-08-08 A kind of welding data is from encrypting and decrypting system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310343645.0A CN103441841B (en) 2013-08-08 2013-08-08 A kind of welding data is from encrypting and decrypting system and method

Publications (2)

Publication Number Publication Date
CN103441841A true CN103441841A (en) 2013-12-11
CN103441841B CN103441841B (en) 2016-06-22

Family

ID=49695510

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310343645.0A Active CN103441841B (en) 2013-08-08 2013-08-08 A kind of welding data is from encrypting and decrypting system and method

Country Status (1)

Country Link
CN (1) CN103441841B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106257590A (en) * 2015-06-18 2016-12-28 松下知识产权经营株式会社 There is Nonvolatile memory devices and the integrated circuit card of tamper-resistance properties
CN106506487A (en) * 2016-11-03 2017-03-15 武汉斗鱼网络科技有限公司 A kind of information Encrypt and Decrypt method and device
CN106899607A (en) * 2017-03-21 2017-06-27 杭州迪普科技股份有限公司 The method and device that a kind of information encryption is sent and decryption is received
CN107786331A (en) * 2017-09-28 2018-03-09 平安普惠企业管理有限公司 Data processing method, device, system and computer-readable recording medium
CN109450642A (en) * 2018-11-05 2019-03-08 郑州云海信息技术有限公司 The treating method and apparatus of network ciphertext data
CN109509298A (en) * 2018-11-15 2019-03-22 深圳市诺丰泰智能科技有限公司 A kind of intelligence vending machine replenishing method and system
CN110912891A (en) * 2019-11-24 2020-03-24 苏州浪潮智能科技有限公司 Network transmission encryption method, device, equipment and medium
CN111355645A (en) * 2020-03-06 2020-06-30 海信(广东)空调有限公司 Household appliance, cloud server and corresponding data transmission method thereof

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012025988A1 (en) * 2010-08-24 2012-03-01 三菱電機株式会社 Encryption device, encryption system, encryption method and encryption program
CN103067162A (en) * 2012-11-15 2013-04-24 新浪技术(中国)有限公司 Method and device of data transmission

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012025988A1 (en) * 2010-08-24 2012-03-01 三菱電機株式会社 Encryption device, encryption system, encryption method and encryption program
CN103067162A (en) * 2012-11-15 2013-04-24 新浪技术(中国)有限公司 Method and device of data transmission

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106257590A (en) * 2015-06-18 2016-12-28 松下知识产权经营株式会社 There is Nonvolatile memory devices and the integrated circuit card of tamper-resistance properties
CN106257590B (en) * 2015-06-18 2021-03-30 新唐科技日本株式会社 Tamper-resistant non-volatile memory device and integrated circuit card
CN106506487A (en) * 2016-11-03 2017-03-15 武汉斗鱼网络科技有限公司 A kind of information Encrypt and Decrypt method and device
CN106899607A (en) * 2017-03-21 2017-06-27 杭州迪普科技股份有限公司 The method and device that a kind of information encryption is sent and decryption is received
CN107786331A (en) * 2017-09-28 2018-03-09 平安普惠企业管理有限公司 Data processing method, device, system and computer-readable recording medium
CN107786331B (en) * 2017-09-28 2020-03-17 平安普惠企业管理有限公司 Data processing method, device, system and computer readable storage medium
CN109450642A (en) * 2018-11-05 2019-03-08 郑州云海信息技术有限公司 The treating method and apparatus of network ciphertext data
CN109509298A (en) * 2018-11-15 2019-03-22 深圳市诺丰泰智能科技有限公司 A kind of intelligence vending machine replenishing method and system
CN110912891A (en) * 2019-11-24 2020-03-24 苏州浪潮智能科技有限公司 Network transmission encryption method, device, equipment and medium
CN111355645A (en) * 2020-03-06 2020-06-30 海信(广东)空调有限公司 Household appliance, cloud server and corresponding data transmission method thereof

Also Published As

Publication number Publication date
CN103441841B (en) 2016-06-22

Similar Documents

Publication Publication Date Title
CN103441841B (en) A kind of welding data is from encrypting and decrypting system and method
CN106470104B (en) Method, device, terminal equipment and system for generating shared key
CN107086915B (en) Data transmission method, data sending end and data receiving end
CN104244245B (en) A kind of wireless access authentication method, wireless routing device and wireless terminal
CN109168162B (en) Bluetooth communication encryption method and device and intelligent security equipment
CN106411504B (en) Data encryption system, method and device
CN103873440A (en) Application program upgrading method and system
CN101707767B (en) Data transmission method and devices
CN103067162A (en) Method and device of data transmission
CN105141635A (en) Method and system for safe communication of group sending messages
CN104660397A (en) Secret key managing method and system
CN105208028A (en) Data transmission method and related device and equipment
CN104735484A (en) Method and device for playing video
CN106778285A (en) For method, the device upgraded to equipment
CN105791258A (en) Data transmission method, terminal and open platform
CN105262586B (en) The method for distributing key and device of automobile burglar equipment
CN103929297A (en) Communication method, encryption method and device for POS and mobile terminal and POS
CN107155184B (en) WIFI module with secure encryption chip and communication method thereof
CN112672342A (en) Data transmission method, device, equipment, system and storage medium
CN114500064B (en) Communication security verification method and device, storage medium and electronic equipment
CN104618097A (en) Data encryption sending method, data terminal and server
CN101854594A (en) Method and device for transmitting information and method and device for receiving information
CN109951501A (en) A kind of network packet encryption method, decryption method and relevant apparatus
CN105357665A (en) Encryption method for sensitive data of mobile phone and off-line decryption method based on same
CN105577650A (en) Remote time synchronization method and system of one-time password (OTP)

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant