CN111355748A - Data submitting method - Google Patents
Data submitting method Download PDFInfo
- Publication number
- CN111355748A CN111355748A CN202010287663.1A CN202010287663A CN111355748A CN 111355748 A CN111355748 A CN 111355748A CN 202010287663 A CN202010287663 A CN 202010287663A CN 111355748 A CN111355748 A CN 111355748A
- Authority
- CN
- China
- Prior art keywords
- data
- data packet
- generate
- sensor
- packet
- 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
- 238000000034 method Methods 0.000 title claims abstract description 22
- 230000007246 mechanism Effects 0.000 claims abstract description 4
- 238000007689 inspection Methods 0.000 claims description 6
- 230000001133 acceleration Effects 0.000 claims description 3
- 238000004806 packaging method and process Methods 0.000 claims description 3
- 239000000779 smoke Substances 0.000 claims description 3
- 230000005540 biological transmission Effects 0.000 abstract description 4
- 230000008569 process Effects 0.000 abstract description 3
- 230000004075 alteration Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
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/04—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
- H04L63/0428—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
Landscapes
- Engineering & Computer Science (AREA)
- Computing Systems (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Computer Hardware Design (AREA)
- General Engineering & Computer Science (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Small-Scale Networks (AREA)
Abstract
The invention provides a data submission method, which comprises the following steps: acquiring original data of equipment and caching to generate cached data; merging the cache data according to a preset mechanism to generate merged data; generating a plaintext message according to a unique identification code of a client, a timestamp, the equipment state and the combined data; and generating a plaintext data packet according to a client session key, a server session key and the plaintext message. The invention solves the problem of information leakage in the process of high-frequency data transmission by encrypting the transmission data.
Description
Technical Field
The invention relates to the technical field of communication, in particular to a data submission method.
Background
With the rapid development of computer network technology, networks have become the largest-scale public data source in the world, and the scale thereof is still growing rapidly. While the internet greatly changes the lives of people and promotes social progress, along with the continuous expansion of the application range of the network, the problem of leakage of confidential information becomes increasingly serious, the problem of network security caused by the problem becomes increasingly prominent, and the network information can be illegally stolen, exposed or tampered in the using, transmitting and other processes. To address these security issues, information encryption and authentication are not trivial.
Disclosure of Invention
In order to achieve the purpose, the technical scheme adopted by the invention is as follows: a method of data submission, comprising:
s1: acquiring original data of equipment and caching to generate cached data;
s2: merging the cache data according to a preset mechanism to generate merged data;
s3: generating a plaintext message according to a unique identification code of a client, a timestamp, the equipment state and the combined data;
s4: and generating a ciphertext data packet according to a client session key and the plaintext message, and decrypting the ciphertext data packet through a server session key to generate the plaintext data packet.
Further, in the data submission method, the device state includes: the device power supply state, the working state of all sensors, the firmware version number and the state of the built-in memory.
Further, in the data submitting method, the sensor is at least one of an acceleration sensor, a temperature sensor, a smoke sensor, a vibration sensor, a pressure sensor, a humidity sensor, and an atmospheric pressure sensor.
Further, in the data submission method, the step S4 specifically includes:
s41: encrypting a client session key and a plaintext message by an encryptor to generate a ciphertext;
s42: selecting one of prefix code, artifact and fixed-length code and the ciphertext to generate a first data packet;
s43: generating a check code, and checking the first data packet to generate a checked data packet;
s44: performing network packet packaging on the checked data packet to generate a data stream;
s45: extracting the data stream to generate a second data packet;
s46: and carrying out packet inspection on the second data packet, and after the second data packet passes the inspection, decrypting the second data packet through a decoder according to the session key of the server side to generate a plaintext data packet.
Further, in the data submission method, the encryptor encrypts by a CFB, OFB, CBC or ECB encryption mode.
Further, in the data submission method, the decoder decrypts through a decryption mode corresponding to the encryption mode.
Compared with the prior art, the invention has the advantages that: by encrypting the transmission data, the problem of information leakage in the process of high-frequency data transmission is solved.
Drawings
FIG. 1 is a flow chart of a data submission method of the present invention.
Detailed Description
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following description will be made with reference to the accompanying drawings. It is obvious that the drawings in the following description are only some examples of the invention, and that for a person skilled in the art, other drawings and embodiments can be derived from them without inventive effort.
For the sake of simplicity, the drawings only schematically show the parts relevant to the present invention, and they do not represent the actual structure as a product. In addition, in order to make the drawings concise and understandable, components having the same structure or function in some of the drawings are only schematically illustrated or only labeled. In this document, "one" means not only "only one" but also a case of "more than one".
As shown in fig. 1, the present invention provides a data submission method, including:
s1: acquiring original data of equipment and caching to generate cached data;
s2: merging the cache data according to a preset mechanism to generate merged data;
s3: generating a plaintext message according to a unique identification code of a client, a timestamp, the equipment state and the combined data;
s4: and generating a ciphertext data packet according to a client session key and the plaintext message, and decrypting the ciphertext data packet through a server session key to generate the plaintext data packet.
Further, the device states include: the device power supply state, the working state of all sensors, the firmware version number and the state of the built-in memory.
Specifically, the sensor is at least one of an acceleration sensor, a temperature sensor, a smoke sensor, a vibration sensor, a pressure sensor, a humidity sensor, and an atmospheric pressure sensor.
Further, in the data submission method, the step S4 specifically includes:
s41: encrypting a client session key and a plaintext message by an encryptor to generate a ciphertext;
specifically, the encryptor encrypts by a CFB, OFB, CBC or ECB encryption mode.
S42: selecting one of prefix code, magic code and fixed-length code and the ciphertext to generate a first data packet;
s43: generating a check code, and checking the first data packet to generate a checked data packet;
s44: performing network packet packaging on the checked data packet to generate a data stream;
s45: extracting the data stream to generate a second data packet;
s46: and carrying out packet inspection on the second data packet, and after the second data packet passes the inspection, decrypting the second data packet through a decoder according to the session key of the server side to generate a plaintext data packet.
Specifically, the decoder decrypts through a decryption mode corresponding to the encryption manner.
The above description is only a preferred embodiment of the present invention, and does not limit the present invention in any way. It will be understood by those skilled in the art that various changes, substitutions and alterations can be made herein without departing from the spirit and scope of the invention as defined by the appended claims.
Claims (6)
1. A method of data submission, comprising:
s1: acquiring original data of equipment and caching to generate cached data;
s2: merging the cache data according to a preset mechanism to generate merged data;
s3: generating a plaintext message according to a unique identification code of a client, a timestamp, the equipment state and the combined data;
s4: and generating a ciphertext data packet according to a client session key and the plaintext message, and decrypting the ciphertext data packet through a server session key to generate the plaintext data packet.
2. The data submission method of claim 1, wherein the device state includes: the device power supply state, the working state of all sensors, the firmware version number and the state of the built-in memory.
3. A method of data submission as recited in claim 2, wherein the sensor is at least one of an acceleration sensor, a temperature sensor, a smoke sensor, a vibration sensor, a pressure sensor, a humidity sensor, and an atmospheric pressure sensor.
4. The data submission method of claim 1, wherein the step S4 specifically includes:
s41: encrypting a client session key and a plaintext message by an encryptor to generate a ciphertext;
s42: selecting one of prefix code, artifact and fixed-length code and the ciphertext to generate a first data packet;
s43: generating a check code, and checking the first data packet to generate a checked data packet;
s44: performing network packet packaging on the checked data packet to generate a data stream;
s45: extracting the data stream to generate a second data packet;
s46: and carrying out packet inspection on the second data packet, and after the second data packet passes the inspection, decrypting the second data packet through a decoder according to the session key of the server side to generate a plaintext data packet.
5. A data submission method as recited in claim 4, wherein the encryptor encrypts via a CFB, OFB, CBC or ECB encryption mode.
6. A method as in claim 5 wherein the decoder decrypts by a decryption mode corresponding to the encryption mode.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010287663.1A CN111355748A (en) | 2020-04-13 | 2020-04-13 | Data submitting method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010287663.1A CN111355748A (en) | 2020-04-13 | 2020-04-13 | Data submitting method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111355748A true CN111355748A (en) | 2020-06-30 |
Family
ID=71197686
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010287663.1A Pending CN111355748A (en) | 2020-04-13 | 2020-04-13 | Data submitting method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111355748A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115208957A (en) * | 2022-06-22 | 2022-10-18 | 北京旋极信息技术股份有限公司 | Communication method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103853340A (en) * | 2014-03-28 | 2014-06-11 | 广东华大集成技术有限责任公司 | Touch keyword using national cipher SM1 encryption chip and encryption method thereof |
CN109413051A (en) * | 2018-10-09 | 2019-03-01 | 深圳南方德尔汽车电子有限公司 | Data ciphering method, device, computer equipment and storage medium |
CN109547477A (en) * | 2018-12-27 | 2019-03-29 | 石更箭数据科技(上海)有限公司 | A kind of data processing method and its device, medium, terminal |
CN109714291A (en) * | 2017-10-25 | 2019-05-03 | 普天信息技术有限公司 | A kind of data transmission method and device |
-
2020
- 2020-04-13 CN CN202010287663.1A patent/CN111355748A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103853340A (en) * | 2014-03-28 | 2014-06-11 | 广东华大集成技术有限责任公司 | Touch keyword using national cipher SM1 encryption chip and encryption method thereof |
CN109714291A (en) * | 2017-10-25 | 2019-05-03 | 普天信息技术有限公司 | A kind of data transmission method and device |
CN109413051A (en) * | 2018-10-09 | 2019-03-01 | 深圳南方德尔汽车电子有限公司 | Data ciphering method, device, computer equipment and storage medium |
CN109547477A (en) * | 2018-12-27 | 2019-03-29 | 石更箭数据科技(上海)有限公司 | A kind of data processing method and its device, medium, terminal |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115208957A (en) * | 2022-06-22 | 2022-10-18 | 北京旋极信息技术股份有限公司 | Communication method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10951595B2 (en) | Method, system and apparatus for storing website private key plaintext | |
US8687800B2 (en) | Encryption method for message authentication | |
CN101247232B (en) | Encryption technique method based on digital signature in data communication transmission | |
US20100293099A1 (en) | Purchase transaction system with encrypted transaction information | |
CN111555872B (en) | Communication data processing method, device, computer system and storage medium | |
JP2001051596A (en) | Device and method for generating/verifying data | |
US20090323932A1 (en) | Method and apparatus for encrypting data to facilitate resource savings and detection of tampering | |
MX2007008936A (en) | Secure encryption system, device and method. | |
CN101005357A (en) | Method and system for updating certification key | |
CN107070942B (en) | Data security method and related system | |
WO2013117087A1 (en) | Method and system for downloading file | |
JP4819286B2 (en) | Cryptographically inspectable identification method for physical units in public wireless telecommunications networks | |
CN112073467A (en) | Block chain-based data transmission method and device, storage medium and electronic equipment | |
CN103237010B (en) | The server end of digital content is cryptographically provided | |
CN112039922B (en) | Encryption communication method and device | |
CN110505066A (en) | A kind of data transmission method, device, equipment and storage medium | |
CN112202556B (en) | Security authentication method, device and system | |
CN112653719A (en) | Automobile information safety storage method and device, electronic equipment and storage medium | |
JP2001177513A (en) | Authenticating method in communication system, center equipment, and recording medium with authentication program recorded thereon | |
CN109583218A (en) | Classified papers protection, localization method, device, equipment and readable storage medium storing program for executing | |
JP2013251609A (en) | Information processing device, ic chip, and information processing method | |
CN103237011B (en) | Digital content encryption transmission method and server end | |
CN113259722B (en) | Secure video Internet of things key management method, device and system | |
CN111355748A (en) | Data submitting method | |
KR100848966B1 (en) | Method for authenticating and decrypting of short message based on public key |
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 | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20200630 |