CN114826669A - Communication data sending and receiving method and device - Google Patents
Communication data sending and receiving method and device Download PDFInfo
- Publication number
- CN114826669A CN114826669A CN202210290609.1A CN202210290609A CN114826669A CN 114826669 A CN114826669 A CN 114826669A CN 202210290609 A CN202210290609 A CN 202210290609A CN 114826669 A CN114826669 A CN 114826669A
- Authority
- CN
- China
- Prior art keywords
- data
- check code
- pseudo
- communication
- communication data
- 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.)
- Pending
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/12—Applying verification of the received information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/06—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols the encryption apparatus using shift registers or memories for block-wise or stream coding, e.g. DES systems or RC4; Hash functions; Pseudorandom sequence generators
- H04L9/065—Encryption by serially and continuously modifying data stream elements, e.g. stream cipher systems, RC4, SEAL or A5/3
- H04L9/0656—Pseudorandom key sequence combined element-for-element with data sequence, e.g. one-time-pad [OTP] or Vernam's cipher
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L2209/00—Additional information or applications relating to cryptographic mechanisms or cryptographic arrangements for secret or secure communication H04L9/00
- H04L2209/08—Randomization, e.g. dummy operations or using noise
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention provides a method and a device for sending and receiving communication data, wherein the method comprises the following steps: generating pseudo-transmission data from original transmission data according to a first preset rule; generating a first pseudo check code for the pseudo sending data according to a second preset rule; and forming a communication data frame by the first pseudo check code and the original data according to a preset format and sending the communication data frame. The invention realizes the safe communication without encryption.
Description
Technical Field
The present invention relates to the field of data communication technologies, and in particular, to a method and an apparatus for transmitting and receiving communication data.
Background
Communication security is an important requirement of communication technology, and one of the purposes is to prevent information recipients from being attacked. In the prior art, in order to realize communication security, a mode of encrypting data is generally adopted, and an attacker does not know the content sent to a receiver, so that various encryption methods are developed, and the attacker is difficult to crack the communication content. Although the method for encrypting data is reliable, the transmitting end and the receiving end are required to have strong calculation power to execute the encryption and decryption processes, and the method is suitable for configuring a higher system but not suitable for configuring a lower system.
Therefore, a method for realizing secure communication without encryption is demanded.
Disclosure of Invention
The invention provides a method and a device for sending and receiving communication data, aiming at solving the defects in the prior art and realizing safe communication without encryption.
In order to achieve the purpose, the technical scheme adopted by the invention is as follows:
one aspect of the present invention provides a method for sending communication data, which is applied to a communication data sending end, and includes:
step 101, generating pseudo-transmission data from original transmission data according to a first preset rule;
102, generating a first pseudo check code for the pseudo sending data according to a second preset rule;
and 103, forming a communication data frame by the first pseudo check code and the original data according to a preset format and sending the communication data frame.
Specifically, the first preset rule includes: and inserting additional data agreed by both communication parties in advance into the preset position of the original sending data.
Specifically, the additional data is fixed additional data or random additional data.
Specifically, the second preset rule includes: and calculating according to a check code algorithm agreed by the two communication parties in advance.
Specifically, the step 103 includes:
if the additional data is fixed additional data and the check code algorithm is a fixed check code algorithm, the preset format is as follows: original data + a first pseudo check code;
if the additional data is random additional data or/and the check code algorithm is a fixed check code algorithm, the preset format is as follows: the original data + the first pseudo check code + the number of the additional data or/and the number of the current check code algorithm.
One aspect of the present invention provides a communication data receiving method, applied to a communication data receiving end, including:
step 201, receiving a communication data frame, where the communication data frame at least includes a first pseudo check code and original data;
step 202, generating pseudo received data from the original transmitted data according to a first preset rule;
step 203, generating a second pseudo check code for the pseudo received data according to a second preset rule;
and 204, judging whether the first pseudo check code and the second pseudo check code are consistent, if so, judging that the communication data frame is legal, and otherwise, judging that the communication data frame is illegal.
Specifically, the step 202 includes:
if the additional data is fixed data, directly inserting the additional data agreed by both communication parties in advance into a preset position of the original sending data to generate pseudo receiving data;
if the additional data is random additional data, the currently used additional data can be determined according to the number of the current additional data in the communication data frame, and the additional data is inserted into the preset position of the original sending data to generate pseudo receiving data.
Specifically, the step 203 includes:
if the check code algorithm is a fixed check code algorithm, directly calculating a second pseudo check code according to a check code algorithm agreed by both communication parties in advance;
if the check code algorithm is a random check code algorithm, determining the currently used check code algorithm according to the number of the check code algorithm in the communication data frame, and calculating a second pseudo check code according to the currently used check code algorithm.
Another aspect of the present invention provides a communication data transmitting apparatus, including: the system comprises a communication data frame generating module, a communication data frame transmitting module, an original transmitting data input module and a first pseudo check code generating module, wherein the communication data frame transmitting module, the original transmitting data input module and the first pseudo check code generating module are connected with the communication data frame generating module;
the original sending data input module is used for receiving original sending data;
the pseudo transmission data generating module is used for generating pseudo transmission data according to original transmission data and a first preset rule;
the first pseudo check code generating module is used for generating a first pseudo check code according to pseudo sending data and a second preset rule;
the communication data frame generation module is used for forming a communication data frame by the first pseudo check code and the original data according to a preset format;
and the communication data frame sending module is used for sending the communication data frame.
Another aspect of the present invention provides a communication data transmitting apparatus, including: the device comprises a judging module, a communication data frame receiving module and a second pseudo check code generating module which are connected with the judging module, wherein the communication data frame receiving module and the second pseudo check code generating module are also connected with the pseudo received data generating module;
the communication data frame receiving module is used for receiving a communication data frame;
the pseudo received data generating module is used for generating pseudo received data according to original transmitted data and a first preset rule;
the second pseudo check code generating module is used for generating a second pseudo check code according to the pseudo received data and a second preset rule;
the judging module is used for judging whether the first pseudo check code and the second pseudo check code are consistent, if so, judging that the communication data frame is legal, and otherwise, judging that the communication data frame is illegal.
The invention has the beneficial effects that: according to the invention, original sending data is generated into pseudo sending data according to a first preset rule at a sending end, the pseudo sending data is generated into a first pseudo check code according to a second preset rule, and the first pseudo check code and the original data form a communication data frame according to a preset format for sending; and generating pseudo received data from the original transmitted data according to a first preset rule at a receiving end, generating a second pseudo check code from the pseudo received data according to a second preset rule, judging whether the first pseudo check code and the second pseudo check code are consistent, if so, judging that the communication data frame is legal, otherwise, judging that the communication data frame is illegal, thereby realizing the safe communication without encryption.
Drawings
Fig. 1 is a flow chart illustrating a communication data transmission method of the present invention;
fig. 2 is a schematic flow chart of a communication data receiving method of the present invention;
fig. 3 is a schematic structural diagram of a communication data transmitting apparatus of the present invention;
fig. 4 is a schematic structural diagram of a communication data receiving apparatus of the present invention.
Detailed Description
The embodiments of the present invention will be described in detail with reference to the accompanying drawings, which are for reference and illustrative purposes only and are not intended to limit the scope of the invention.
Example 1
As shown in fig. 1, the present embodiment provides a communication data sending method, applied to a communication data sending end, including:
step 101, generating pseudo transmission data from the original transmission data according to a first preset rule.
In this embodiment, the first preset rule includes: and inserting additional data agreed by both communication parties in advance into the preset position of the original sending data.
In this embodiment, the additional data is fixed additional data or random additional data.
For example, the additional data agreed in advance by both communication parties is fixed data 0506; alternatively, the two parties agree on a plurality of (e.g., 100) additional data, and one of the additional data (e.g., the random additional data with the number of 03) is randomly selected by a random algorithm.
The preset position is the head or the tail or the middle of the original sending data.
And 102, generating a first pseudo check code by the pseudo sending data according to a second preset rule.
In this embodiment, the second preset rule includes: and calculating according to a check code algorithm agreed by the two communication parties in advance.
In this embodiment, the check code algorithm is a fixed check code algorithm or a random check code algorithm.
For example, the check code algorithm agreed in advance by the two communication parties is a fixed check code algorithm, that is, the check code algorithm used in each frame is the same (such as CRC-16); or, the two communication parties agree on a plurality of check code algorithms, and one of the check code algorithms (for example, the check code algorithm with the number of 02) is randomly selected through a random algorithm, that is, the check code algorithms used in each frame are different and random.
And 103, forming a communication data frame by the first pseudo check code and the original data according to a preset format and sending the communication data frame.
In this embodiment, the step 103 includes:
if the additional data is fixed additional data and the check code algorithm is a fixed check code algorithm, the preset format is as follows: original data + a first pseudo check code;
if the additional data is random additional data or/and the check code algorithm is a fixed check code algorithm, the preset format is as follows: the original data + the first pseudo check code + the number of the additional data or/and the number of the current check code algorithm.
For example, when original data 0001020304 is transmitted, additional data 0506 agreed in advance by both communication parties is added behind 0001020304 to obtain dummy transmission data 00010203040506, and then a first dummy check code C1B 0 is generated by a certain check algorithm (for example, CRC-8, CRC-16, MAC-DES, or the like) according to the dummy transmission data 00010203040506; finally, the generated first pseudo check code C1B 0 is added to the back of the original data 0001020304, and a communication data frame 0001020304C 1B 0 is formed and then sent to the receiving end.
Example 2
As shown in fig. 2, the present embodiment provides a communication data receiving method, applied to a communication data receiving end, including:
step 201, receiving a communication data frame, where the communication data frame at least includes a first pseudo check code and original data.
In this embodiment, the communication data frame may further include a number of the current additional data, or/and a number of the current check code algorithm, which may be determined according to a format of the communication data frame.
Step 202, generating pseudo received data from the original transmitted data according to a first preset rule.
In this embodiment, the step 202 includes:
if the additional data is fixed data, directly inserting the additional data agreed by both communication parties in advance into a preset position of the original sending data to generate pseudo receiving data;
if the additional data is random additional data, the currently used additional data can be determined according to the number of the current additional data in the communication data frame, and the additional data is inserted into the preset position of the original sending data to generate pseudo receiving data.
And 203, generating a second pseudo check code according to the pseudo received data according to a second preset rule.
In this embodiment, the step 203 includes:
if the check code algorithm is a fixed check code algorithm, directly calculating a second pseudo check code according to a check code algorithm agreed by both communication parties in advance;
if the check code algorithm is a random check code algorithm, determining the currently used check code algorithm according to the number of the check code algorithm in the communication data frame, and calculating a second pseudo check code according to the currently used check code algorithm.
And 204, judging whether the first pseudo check code and the second pseudo check code are consistent, if so, judging that the communication data frame is legal, and otherwise, judging that the communication data frame is illegal.
For example, after receiving the communication data frame 0001020304C 1B 0, the original data 0001020304 is extracted first, then the additional data 0506 agreed by both communication parties is added after the original data 0001020304 to generate the pseudo received data 00010203040506, a second pseudo check code is generated according to the same check algorithm as that of the transmitting end, if the generated second pseudo check code is C1B 0, the communication data frame is judged to be legal and received, otherwise, the communication data frame is judged to be illegal and not received.
Example 3
As shown in fig. 3, the present embodiment provides a communication data transmitting apparatus including: the system comprises a communication data frame generating module, a communication data frame transmitting module, an original transmitting data input module and a first pseudo check code generating module, wherein the communication data frame transmitting module, the original transmitting data input module and the first pseudo check code generating module are connected with the communication data frame generating module;
the original sending data input module is used for receiving original sending data;
the pseudo transmission data generating module is used for generating pseudo transmission data according to original transmission data and a first preset rule;
the first pseudo check code generating module is used for generating a first pseudo check code according to the pseudo sending data and a second preset rule;
the communication data frame generation module is used for forming a communication data frame by the first pseudo check code and the original data according to a preset format;
and the communication data frame sending module is used for sending the communication data frame.
The working process of the communication data transmitting apparatus described in this embodiment is as shown in embodiment 1, and is not described again.
Example 4
As shown in fig. 4, the present embodiment provides a communication data transmitting apparatus including: the device comprises a judging module, a communication data frame receiving module and a second pseudo check code generating module which are connected with the judging module, wherein the communication data frame receiving module and the second pseudo check code generating module are also connected with the pseudo received data generating module;
the communication data frame receiving module is used for receiving a communication data frame;
the pseudo received data generating module is used for generating pseudo received data according to original transmitted data and a first preset rule;
the second pseudo check code generating module is used for generating a second pseudo check code according to the pseudo received data and a second preset rule;
the judging module is used for judging whether the first pseudo check code and the second pseudo check code are consistent, if so, judging that the communication data frame is legal, and otherwise, judging that the communication data frame is illegal.
The working process of the communication data receiving apparatus according to this embodiment is as shown in embodiment 2, and is not described again.
By the technical scheme of the invention, the communication safety can be improved even if an encryption algorithm is not used. If the communication data frame 0001020304C 1B 0 is intercepted by a third party, the third party cannot obtain a correct check algorithm according to the pseudo check code C1B 0, and thus, no matter what check algorithm is selected by the third party, the check code generated according to the original data 0001020304 cannot pass through the check of the receiving end, so that the data sent by the illegal sending end is judged not to be received, and the purpose of safe communication is achieved.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present invention and should not be taken as limiting the scope of the present invention.
Claims (10)
1. A communication data sending method is applied to a communication data sending end and comprises the following steps:
step 101, generating pseudo-transmission data from original transmission data according to a first preset rule;
102, generating a first pseudo check code for the pseudo sending data according to a second preset rule;
and 103, forming a communication data frame by the first pseudo check code and the original data according to a preset format and sending the communication data frame.
2. The method according to claim 1, wherein the first preset rule comprises: and inserting additional data agreed by both communication parties in advance into the preset position of the original sending data.
3. The method of claim 2, wherein the additional data is a fixed additional data or a random additional data.
4. The method according to claim 1, wherein the second preset rule specifically comprises: and calculating according to a check code algorithm agreed by the two communication parties in advance.
5. The method according to claim 3, wherein the step 103 comprises:
if the additional data is fixed additional data and the check code algorithm is a fixed check code algorithm, the preset format is as follows: original data + a first pseudo check code;
if the additional data is random additional data or/and the check code algorithm is a fixed check code algorithm, the preset format is as follows: the original data + the first pseudo check code + the number of the additional data or/and the number of the current check code algorithm.
6. A communication data receiving method applied to a communication data receiving end, comprising:
step 201, receiving a communication data frame, where the communication data frame at least includes a first pseudo check code and original data;
step 202, generating pseudo received data from the original transmitted data according to a first preset rule;
step 203, generating a second pseudo check code for the pseudo received data according to a second preset rule;
and 204, judging whether the first pseudo check code and the second pseudo check code are consistent, if so, judging that the communication data frame is legal, and otherwise, judging that the communication data frame is illegal.
7. The method of claim 6, wherein the step 202 comprises:
if the additional data is fixed data, directly inserting the additional data agreed by both communication parties in advance into a preset position of the original sending data to generate pseudo receiving data;
if the additional data is random additional data, the currently used additional data can be determined according to the number of the current additional data in the communication data frame, and the additional data is inserted into the preset position of the original sending data to generate pseudo receiving data.
8. The method for receiving communication data according to claim 7, wherein the step 203 comprises:
if the check code algorithm is a fixed check code algorithm, directly calculating a second pseudo check code according to a check code algorithm agreed by both communication parties in advance;
if the check code algorithm is a random check code algorithm, determining the currently used check code algorithm according to the number of the check code algorithm in the communication data frame, and calculating a second pseudo check code according to the currently used check code algorithm.
9. A communication data transmitting apparatus, comprising:
the system comprises a communication data frame generating module, a communication data frame transmitting module, an original transmitting data input module and a first pseudo check code generating module, wherein the communication data frame transmitting module, the original transmitting data input module and the first pseudo check code generating module are connected with the communication data frame generating module;
the original sending data input module is used for receiving original sending data;
the pseudo transmission data generating module is used for generating pseudo transmission data according to original transmission data and a first preset rule;
the first pseudo check code generating module is used for generating a first pseudo check code according to the pseudo sending data and a second preset rule;
the communication data frame generation module is used for forming a communication data frame by the first pseudo check code and the original data according to a preset format;
and the communication data frame sending module is used for sending the communication data frame.
10. A communication data receiving apparatus, comprising:
the device comprises a judging module, a communication data frame receiving module and a second pseudo check code generating module which are connected with the judging module, wherein the communication data frame receiving module and the second pseudo check code generating module are also connected with the pseudo received data generating module;
the communication data frame receiving module is used for receiving a communication data frame;
the pseudo received data generating module is used for generating pseudo received data according to original transmitted data and a first preset rule;
the second pseudo check code generating module is used for generating a second pseudo check code according to the pseudo received data and a second preset rule;
the judging module is used for judging whether the first pseudo check code and the second pseudo check code are consistent, if so, judging that the communication data frame is legal, and otherwise, judging that the communication data frame is illegal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210290609.1A CN114826669A (en) | 2022-03-23 | 2022-03-23 | Communication data sending and receiving method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210290609.1A CN114826669A (en) | 2022-03-23 | 2022-03-23 | Communication data sending and receiving method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114826669A true CN114826669A (en) | 2022-07-29 |
Family
ID=82530632
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210290609.1A Pending CN114826669A (en) | 2022-03-23 | 2022-03-23 | Communication data sending and receiving method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114826669A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101599825A (en) * | 2009-07-09 | 2009-12-09 | 交通银行股份有限公司 | information checking system, server and method |
CN101674152A (en) * | 2008-09-08 | 2010-03-17 | 华为技术有限公司 | Method, device and system for data transmission based on forward error correction (FEC) |
CN107395580A (en) * | 2017-07-10 | 2017-11-24 | 深圳怡化电脑股份有限公司 | A kind of data verification method and device |
CN107979765A (en) * | 2016-10-25 | 2018-05-01 | 中兴通讯股份有限公司 | A kind of video data handling procedure, apparatus and system |
CN110995392A (en) * | 2019-11-28 | 2020-04-10 | 上海集成电路研发中心有限公司 | Data transmission method and device |
-
2022
- 2022-03-23 CN CN202210290609.1A patent/CN114826669A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101674152A (en) * | 2008-09-08 | 2010-03-17 | 华为技术有限公司 | Method, device and system for data transmission based on forward error correction (FEC) |
CN101599825A (en) * | 2009-07-09 | 2009-12-09 | 交通银行股份有限公司 | information checking system, server and method |
CN107979765A (en) * | 2016-10-25 | 2018-05-01 | 中兴通讯股份有限公司 | A kind of video data handling procedure, apparatus and system |
CN107395580A (en) * | 2017-07-10 | 2017-11-24 | 深圳怡化电脑股份有限公司 | A kind of data verification method and device |
CN110995392A (en) * | 2019-11-28 | 2020-04-10 | 上海集成电路研发中心有限公司 | Data transmission method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107196763B (en) | SM2 algorithm collaborative signature and decryption method, device and system | |
KR101508497B1 (en) | Data certification and acquisition method for vehicle | |
CN105722013A (en) | Bluetooth pairing method and device | |
CN111698084B (en) | Block chain-based concealed communication method | |
US20110113254A1 (en) | Multipad encryption | |
KR101675332B1 (en) | Data commincaiton method for vehicle, Electronic Control Unit and system thereof | |
CN114493593B (en) | Multi-block chain hidden communication method | |
CN113542428B (en) | Vehicle data uploading method and device, vehicle, system and storage medium | |
CN108964870B (en) | Railway transponder message security enhancement method based on self-synchronizing chaotic cipher | |
CN113515766A (en) | File transmission method and device | |
KR102008670B1 (en) | Apparatus of monitoring multicast group | |
CN109995531A (en) | The anti-deception measures of Beidou II system protected based on domestic password and spread spectrum information | |
CN111869160B (en) | Method and apparatus for secure transmission of a message from a transmitting device to a receiving device | |
CN115361230B (en) | In-vehicle safety information communication method, system and medium of vehicle-mounted Ethernet | |
KR20170032210A (en) | Data commincaiton method for vehicle, Electronic Control Unit and system thereof | |
CN114826669A (en) | Communication data sending and receiving method and device | |
CN110278537A (en) | A kind of incoherent transmission plan of safety for move vehicle system | |
CN115168918A (en) | Method, transceiving equipment and system for realizing data secure transmission based on Hash algorithm | |
CN112069472A (en) | User login authentication method and system | |
RU2382504C1 (en) | Device for encrypting and decrypting formalised messages with hashing function | |
CN111147487A (en) | Safe offshore data transmission method | |
CN116886208B (en) | Information encryption transmission method, device, terminal equipment and storage medium | |
CN114614981B (en) | Hidden information transmission method and device based on-chain negotiation | |
CN118018329B (en) | Data communication method and device, transmitting end equipment and receiving end equipment | |
CN116170802B (en) | Internet of things communication method, system and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |