CN101777976A - Method and device for transmitting network data - Google Patents
Method and device for transmitting network data Download PDFInfo
- Publication number
- CN101777976A CN101777976A CN201010033888A CN201010033888A CN101777976A CN 101777976 A CN101777976 A CN 101777976A CN 201010033888 A CN201010033888 A CN 201010033888A CN 201010033888 A CN201010033888 A CN 201010033888A CN 101777976 A CN101777976 A CN 101777976A
- Authority
- CN
- China
- Prior art keywords
- choosing
- cipher mode
- described cipher
- network data
- communication
- 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 25
- 238000004891 communication Methods 0.000 claims abstract description 99
- 239000003999 initiator Substances 0.000 claims description 24
- 230000000977 initiatory effect Effects 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000003860 storage Methods 0.000 description 1
- 238000005728 strengthening Methods 0.000 description 1
Images
Landscapes
- Communication Control (AREA)
Abstract
The invention provides a method and a device for transmitting network data and relates to the field of communication, aiming to solve the problem of low safety of network data in the prior art. The method comprises the following steps of: selecting an encryption mode from various encryption modes by a communication initiating party; negotiating with a communication receiving party about the selected encryption mode; and if the negotiation is successful, adopting the selected encryption mode to transmit the network data. The invention can be applied to the field of network security.
Description
Technical field
The present invention relates to the communications field, relate in particular to a kind of method and apparatus of transmitting network data.
Background technology
In the prior art, adopt the cipher mode transmitting network data in the network.For example, the communication initiator encrypts network data, and the network data after will encrypting again sends to the communication receiver, and described communication receiver deciphers network data after the described encryption by the decipherment algorithm of correspondence.At present, it is pre-configured a kind of that the cryptographic algorithm that the communication initiator is used for the refined net data is generally, if there is the danger that is cracked by the network attack person in long-term the use, the fail safe of having lowered network data.
Summary of the invention
The invention provides a kind of method and apparatus of transmitting network data, solve the low problem of fail safe of network data in the prior art.
To achieve the above object of the invention, the invention provides following technical scheme:
A kind of method of transmitting network data comprises:
The communication initiator chooses a kind of cipher mode from multiple cipher mode;
Consult the described cipher mode of choosing with the communication receiver;
If consult successfully, adopt the described cipher mode transmitting network data of choosing.
Further, described method also has following characteristics: described method also comprises:
If consult failure, then described communication receiver's refusal adopts the described cipher mode transmitting network data of choosing with described communication receiver.
Further, described method also has following characteristics: described communication initiator and communication receiver consult the described cipher mode of choosing and specifically comprise:
Send communication request, carry the described cipher mode of choosing;
Receive the checking result of described communication receiver to the described cipher mode of choosing.
Further, described method also has following characteristics: described communication receiver to the checking result of the described cipher mode of choosing specifically in the following way:
Judge whether the described cipher mode of choosing is legal;
If judge and determine that the described cipher mode information of choosing is legal, then notify the described cipher mode checking of choosing of described communication initiator to pass through; Otherwise, notify the described cipher mode checking of choosing of described communication initiator not pass through.
Further, described method also has following characteristics: when the described cipher mode of choosing comprises cryptographic algorithm, judge that whether legal the described cipher mode of choosing specifically in the following way:
Judge the local cryptographic algorithm that whether has in the described cipher mode information of choosing;
If judge and determine that there is the cryptographic algorithm in the described cipher mode information of choosing this locality, determine that then the described cipher mode information of choosing is legal; Otherwise, determine that the described cipher mode information of choosing is illegal.
A kind of device of transmitting network data comprises:
Choose module, be used for choosing a kind of cipher mode from multiple cipher mode;
Negotiation module is used for consulting the described cipher mode of choosing with the communication receiver;
First processing module is used for when consulting successfully, adopts the described cipher mode transmitting network data of choosing.
Further, described device also has following characteristics: described device also comprises:
Second processing module is used for when consulting failure, and refusal adopts the described cipher mode transmitting network data of choosing with described communication receiver.
Further, described device also has following characteristics: described negotiation module comprises:
Transmitting element is used to send communication request, carries the described cipher mode of choosing;
Receiving element is used to receive the checking result of described communication receiver to the described cipher mode of choosing.
Further, described device also has following characteristics: described communication receiver to the checking result of the described cipher mode of choosing specifically in the following way:
Judge whether the described cipher mode of choosing is legal;
If judge and determine that the described cipher mode information of choosing is legal, then notify the described cipher mode checking of choosing of described communication initiator to pass through; Otherwise, notify the described cipher mode checking of choosing of described communication initiator not pass through.
Further, described device also has following characteristics: when the described cipher mode of choosing comprises cryptographic algorithm, judge that whether legal the described cipher mode of choosing specifically in the following way:
Judge the local cryptographic algorithm that whether has in the described cipher mode information of choosing;
If judge and determine that there is the cryptographic algorithm in the described cipher mode information of choosing this locality, determine that then the described cipher mode information of choosing is legal; Otherwise, determine that the described cipher mode information of choosing is illegal.
Technical scheme provided by the invention, from multiple cipher mode, choose a kind of cipher mode, and consult the described cipher mode of choosing with the communication receiver, when consulting successfully, adopt the described cipher mode transmitting network data of choosing, thereby realize adopting cryptographic algorithm refined net data at random, reduced the probability that cipher mode is cracked, improve the communication security of network.
Description of drawings
Fig. 1 is the method flow diagram of transmitting network data provided by the invention;
The method sequential chart of the transmitting network data that Fig. 2 provides for the embodiment of the invention;
Fig. 3 is the apparatus structure schematic diagram of transmitting network data provided by the invention;
Fig. 4 is another structural representation of the device of middle transmitting network data embodiment illustrated in fig. 3;
Fig. 5 is the structural representation of middle negotiation module 302 embodiment illustrated in fig. 3.
Embodiment
Below in conjunction with accompanying drawing the technical scheme that the embodiment of the invention provides is described further.
As shown in Figure 1, the method for a kind of transmitting network data provided by the invention comprises:
In this step, if consult successfully, then execution in step 103; Otherwise, execution in step 104.
The method of the transmitting network data that the embodiment of the invention is provided below in conjunction with accompanying drawing is introduced, detailed process as shown in Figure 2:
Step 201, communication initiator choose a cipher mode from the cipher mode of this locality, the mode of wherein choosing can be a picked at random, also can be to choose, for example, dispose different time sections in the described selection rule and allow the cipher mode chosen according to the selection rule that sets in advance; Wherein said cipher mode comprises cryptographic algorithm etc., and wherein said cryptographic algorithm is stored in described communication initiator's the cryptographic algorithm pond.
Optionally,, also comprise each communication protocol information in the described cipher mode, comprise communication protocol version and type for strengthening communication security, such as http, https etc., the indication communication receiver communicates the version checking of agreement, to strengthen communication security.
Step 202, described communication initiator are encapsulated into the described cipher mode of choosing in the communication request, wherein said communication request is to be the message structure of the correspondence of different communication protocol configuration in the network, and wherein the message structure of this communication information can be discerned by the communication receiver.
Step 203, described communication initiator send described communication information to described communication receiver, carry the described cipher mode of choosing.
Step 204, described communication receiver extract cipher mode from described communication information after receiving described communication information.
Step 205, described communication receiver verify the described cipher mode of choosing;
Concrete, judge whether the described cipher mode of choosing is legal, and whether promptly described communication receiver disposes the manner of decryption of the described cipher mode correspondence of choosing; If corresponding manner of decryption is arranged, represent that the described cipher mode information of choosing is legal, then notify the described cipher mode checking of choosing of described communication initiator to pass through; Otherwise, represent that the described cipher mode of choosing is illegal, notify the described cipher mode checking of choosing of described communication initiator not pass through.
With judge cryptographic algorithm in the described cipher mode whether legal be that example describes:
Judge the local cryptographic algorithm that whether has in the described cipher mode information of choosing, for example, in described communication receiver's cryptographic algorithm pond, search whether this cryptographic algorithm is arranged, if find, then judge and determine that there is this cryptographic algorithm this locality, otherwise, determine not this cryptographic algorithm of this locality;
If there is this cryptographic algorithm this locality, determine that then the described cipher mode information of choosing is legal; Otherwise, determine that the described cipher mode information of choosing is illegal.
With judge cryptographic algorithm in the described cipher mode whether legal be that example describes:
Judge the local communication protocol version information that whether has in the described cipher mode information of choosing, for example, in described communication receiver's cryptographic algorithm pond, search whether this cryptographic algorithm is arranged, if find, then judge and determine that there is this cryptographic algorithm this locality, otherwise, determine not this cryptographic algorithm of this locality;
If there is this cryptographic algorithm this locality, determine that then the described cipher mode information of choosing is legal; Otherwise, determine that the described cipher mode information of choosing is illegal.
With judge communication protocol information in the described cipher mode whether legal be that example describes:
Judge the local communication protocol version information that whether has in the described cipher mode information of choosing, for example, in described communication receiver's communication protocol information set, search whether this communication protocol version information is arranged, if find, then judge and determine local this communication protocol version information of supporting, otherwise, determine that this locality do not support this communication protocol version information;
If local this communication protocol version information of supporting determines that then the described cipher mode information of choosing is legal; Otherwise, determine that the described cipher mode information of choosing is illegal.
Step 206, described communication receiver notify described communication request side's checking result.
If the described checking result of step 207 is for passing through, described communication initiator adopts described cipher mode of choosing and described communication receiver to carry out the transmission of network data; Perhaps, if described execution result is not for passing through, described communication initiator's refusal adopts the described cipher mode transmitting network data of choosing with described communication receiver.
The method of transmitting network data provided by the invention, from multiple cipher mode, choose a kind of cipher mode, and consult the described cipher mode of choosing with the communication receiver, when consulting successfully, adopt the described cipher mode transmitting network data of choosing, thereby realize adopting cryptographic algorithm refined net data at random, reduced the probability that cipher mode is cracked, improve the communication security of network.
As shown in Figure 3, the invention provides a kind of device of transmitting network data, comprising:
Choose module 301, be used for choosing a kind of cipher mode from multiple cipher mode;
Further, as shown in Figure 4, described device can further include:
Further, as shown in Figure 5, described negotiation module 302 may further include:
Transmitting element 501 is used to send communication request, carries the described cipher mode of choosing;
Receiving element 502 is used to receive the checking result of described communication receiver to the described cipher mode of choosing.
Further, described communication receiver is to the checking result of the described cipher mode of choosing specifically in the following way:
Judge whether the described cipher mode of choosing is legal;
If judge and determine that the described cipher mode information of choosing is legal, then notify the described cipher mode checking of choosing of described communication initiator to pass through; Otherwise, notify the described cipher mode checking of choosing of described communication initiator not pass through.
Further, when the described cipher mode of choosing comprises cryptographic algorithm, judge that whether legal the described cipher mode of choosing specifically in the following way:
Judge the local cryptographic algorithm that whether has in the described cipher mode information of choosing;
If judge and determine that there is the cryptographic algorithm in the described cipher mode information of choosing this locality, determine that then the described cipher mode information of choosing is legal; Otherwise, determine that the described cipher mode information of choosing is illegal.
The device of transmitting network data provided by the invention, from multiple cipher mode, choose a kind of cipher mode, and consult the described cipher mode of choosing with the communication receiver, when consulting successfully, adopt the described cipher mode transmitting network data of choosing, thereby realize adopting cryptographic algorithm refined net data at random, reduced the probability that cipher mode is cracked, improve the communication security of network.
One of ordinary skill in the art will appreciate that all or part of step that realizes the foregoing description is to instruct relevant hardware to finish by program, described program can be stored in a kind of computer-readable recording medium, this program comprises one of step or its combination of method embodiment when carrying out.
In addition, each functional unit in each embodiment of the present invention can adopt the form of hardware to realize, also can adopt the form of software function module to realize.If described integrated module realizes with the form of software function module and during as independently production marketing or use, also can be stored in the computer read/write memory medium.
The above-mentioned storage medium of mentioning can be a read-only memory, disk or CD etc.
The above; only be the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; can expect easily changing or replacing, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the described protection range of claim.
Claims (10)
1. the method for a transmitting network data is characterized in that, comprising:
The communication initiator chooses a kind of cipher mode from multiple cipher mode;
Consult the described cipher mode of choosing with the communication receiver;
If consult successfully, adopt the described cipher mode transmitting network data of choosing.
2. method according to claim 1 is characterized in that, described method also comprises:
If consult failure, then described communication receiver's refusal adopts the described cipher mode transmitting network data of choosing with described communication receiver.
3. method according to claim 1 and 2 is characterized in that, described communication initiator and communication receiver consult the described cipher mode of choosing and specifically comprise:
Send communication request, carry the described cipher mode of choosing;
Receive the checking result of described communication receiver to the described cipher mode of choosing.
4. method according to claim 3 is characterized in that, described communication receiver to the checking result of the described cipher mode of choosing specifically in the following way:
Judge whether the described cipher mode of choosing is legal;
If judge and determine that the described cipher mode information of choosing is legal, then notify the described cipher mode checking of choosing of described communication initiator to pass through; Otherwise, notify the described cipher mode checking of choosing of described communication initiator not pass through.
5. method according to claim 4 is characterized in that, when the described cipher mode of choosing comprises cryptographic algorithm, judges that whether legal the described cipher mode of choosing specifically in the following way:
Judge the local cryptographic algorithm that whether has in the described cipher mode information of choosing;
If judge and determine that there is the cryptographic algorithm in the described cipher mode information of choosing this locality, determine that then the described cipher mode information of choosing is legal; Otherwise, determine that the described cipher mode information of choosing is illegal.
6. the device of a transmitting network data is characterized in that, comprising:
Choose module, be used for choosing a kind of cipher mode from multiple cipher mode;
Negotiation module is used for consulting the described cipher mode of choosing with the communication receiver;
First processing module is used for when consulting successfully, adopts the described cipher mode transmitting network data of choosing.
7. device according to claim 6 is characterized in that, described device also comprises:
Second processing module is used for when consulting failure, and refusal adopts the described cipher mode transmitting network data of choosing with described communication receiver.
8. according to claim 6 or 7 described devices, it is characterized in that described negotiation module comprises:
Transmitting element is used to send communication request, carries the described cipher mode of choosing;
Receiving element is used to receive the checking result of described communication receiver to the described cipher mode of choosing.
9. device according to claim 8 is characterized in that, described communication receiver to the checking result of the described cipher mode of choosing specifically in the following way:
Judge whether the described cipher mode of choosing is legal;
If judge and determine that the described cipher mode information of choosing is legal, then notify the described cipher mode checking of choosing of described communication initiator to pass through; Otherwise, notify the described cipher mode checking of choosing of described communication initiator not pass through.
10. device according to claim 9 is characterized in that, when the described cipher mode of choosing comprises cryptographic algorithm, judges that whether legal the described cipher mode of choosing specifically in the following way:
Judge the local cryptographic algorithm that whether has in the described cipher mode information of choosing;
If judge and determine that there is the cryptographic algorithm in the described cipher mode information of choosing this locality, determine that then the described cipher mode information of choosing is legal; Otherwise, determine that the described cipher mode information of choosing is illegal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010033888A CN101777976A (en) | 2010-01-11 | 2010-01-11 | Method and device for transmitting network data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010033888A CN101777976A (en) | 2010-01-11 | 2010-01-11 | Method and device for transmitting network data |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101777976A true CN101777976A (en) | 2010-07-14 |
Family
ID=42514318
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201010033888A Pending CN101777976A (en) | 2010-01-11 | 2010-01-11 | Method and device for transmitting network data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101777976A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104954327A (en) * | 2014-03-27 | 2015-09-30 | 东华软件股份公司 | Terminal connection control server and method, terminal and method and system |
CN108156120A (en) * | 2016-12-06 | 2018-06-12 | 阿里巴巴集团控股有限公司 | Encrypted transmission data, cryptographic protocol control and detected method, apparatus and system |
CN109257371A (en) * | 2018-10-30 | 2019-01-22 | 王根平 | Negotiate safeguards system and dynamic negotiation method |
CN111107298A (en) * | 2019-12-04 | 2020-05-05 | 上海百脑经贸有限公司 | Video conference encryption method |
CN112188414A (en) * | 2020-09-23 | 2021-01-05 | 江苏恒宝智能***技术有限公司 | Multi-group terminal secure interaction method and relay equipment |
-
2010
- 2010-01-11 CN CN201010033888A patent/CN101777976A/en active Pending
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104954327A (en) * | 2014-03-27 | 2015-09-30 | 东华软件股份公司 | Terminal connection control server and method, terminal and method and system |
CN104954327B (en) * | 2014-03-27 | 2019-02-22 | 东华软件股份公司 | Server and method, terminal and method and system for terminal connection control |
CN108156120A (en) * | 2016-12-06 | 2018-06-12 | 阿里巴巴集团控股有限公司 | Encrypted transmission data, cryptographic protocol control and detected method, apparatus and system |
CN109257371A (en) * | 2018-10-30 | 2019-01-22 | 王根平 | Negotiate safeguards system and dynamic negotiation method |
CN111107298A (en) * | 2019-12-04 | 2020-05-05 | 上海百脑经贸有限公司 | Video conference encryption method |
CN112188414A (en) * | 2020-09-23 | 2021-01-05 | 江苏恒宝智能***技术有限公司 | Multi-group terminal secure interaction method and relay equipment |
CN112188414B (en) * | 2020-09-23 | 2022-06-03 | 恒宝股份有限公司 | Multi-group terminal secure interaction method and relay equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2015180691A1 (en) | Key agreement method and device for verification information | |
CN104539439A (en) | Data transmission method and terminal | |
CN102947836B (en) | Memory device, main process equipment and use dual encryption scheme transmit the method for password between the first and second memory devices | |
CN104244245B (en) | A kind of wireless access authentication method, wireless routing device and wireless terminal | |
CN103067158A (en) | Encryption and decryption method, terminal device, gateway device and key management system | |
EP3131322B1 (en) | Virtual card downloading method and terminal | |
EP1532765A1 (en) | Mobile network authentication for protecting stored content | |
WO2019007252A1 (en) | Control method and apparatus | |
CN105722013A (en) | Bluetooth pairing method and device | |
CN102685330A (en) | Method for logging in operation system by taking cell phone as authentication tool | |
EP3435730B1 (en) | Method, apparatus, storage medium, and terminal for establishing a wi-fi connection | |
CN101777976A (en) | Method and device for transmitting network data | |
CN102866960A (en) | Method for realizing encryption in storage card, decrypting method and device | |
EP1855414A1 (en) | System and method for remote reset of password and encryption key | |
CN101296231A (en) | Data card operation method and data card | |
CN104796399A (en) | Key negotiation method of data encryption transmission | |
CN110856170A (en) | Data transmission method and device and communication system of Internet of things | |
CN103856938A (en) | Encryption and decryption method, system and device | |
CN106257858A (en) | The data ciphering method of a kind of remote storage device, Apparatus and system | |
CN101291345A (en) | Controlling method of storage resource access, IP storage system, memory apparatus and host | |
CN101841353B (en) | Method and equipment for encrypting data through softdog | |
CN101621795A (en) | Method, system and device for realizing private ownership of wireless data terminal | |
CN102393886B (en) | Safety control method of mobile terminal, device and system | |
KR101329789B1 (en) | Encryption Method of Database of Mobile Communication Device | |
CN105450597A (en) | Information transmission method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20100714 |