CN103067162A - Method and device of data transmission - Google Patents

Method and device of data transmission Download PDF

Info

Publication number
CN103067162A
CN103067162A CN2012104612328A CN201210461232A CN103067162A CN 103067162 A CN103067162 A CN 103067162A CN 2012104612328 A CN2012104612328 A CN 2012104612328A CN 201210461232 A CN201210461232 A CN 201210461232A CN 103067162 A CN103067162 A CN 103067162A
Authority
CN
China
Prior art keywords
data
random number
sent
character
enciphered 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.)
Granted
Application number
CN2012104612328A
Other languages
Chinese (zh)
Other versions
CN103067162B (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.)
Sina Technology China Co Ltd
Original Assignee
Sina Technology China 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 Sina Technology China Co Ltd filed Critical Sina Technology China Co Ltd
Priority to CN201210461232.8A priority Critical patent/CN103067162B/en
Publication of CN103067162A publication Critical patent/CN103067162A/en
Application granted granted Critical
Publication of CN103067162B publication Critical patent/CN103067162B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a method and a device of data transmission. The method and the device of data transmission are used for solving the problem that in the prior art safety of the data transmission is low. With the method, a sending end produces a random number m, and an American standard code for information interchange (ASCII) value of each character in data needed sending is changed into an m system number with an appointed bit, and then encrypted data needed sending are obtained. The random number m and the encrypted data needed sending are sent to a receiving end. Due to the fact that when a sending end encrypts the data needed sending every time, each ASCII value of each character is converted into a random m system number, results of a plurality of data needed sending and obtained after encryption are different even the same plurality of data needed sending are sent. Therefore, the risk of an encryption algorithm to be cracked is effectively reduced and security of data transmission is improved.

Description

A kind of method of transfer of data and device
Technical field
The present invention relates to communication technical field, relate in particular to a kind of method and device of transfer of data.
Background technology
At present, in order to guarantee the fail safe of transfer of data, when transmitting terminal sends data to receiving terminal, usually data to be encrypted transmission.
In the prior art, transmitting terminal is specially the method that data to be sent are encrypted transmission: respectively for each character in the data to be sent, transformation rule according to appointment becomes to encrypt string with this character conversion, the encryption string that becomes for each character conversion is respectively made up, data to be sent after obtaining encrypting, the data to be sent after will encrypting again send to receiving terminal.When receiving terminal received data after this encryption, then the inverse process according to above-mentioned ciphering process was decrypted, and obtains initial data.
Yet, transmitting terminal is when being encrypted data to be sent in the prior art, because what adopt is single cryptographic algorithm, therefore for identical data a plurality of to be sent, the result who obtains after these a plurality of data to be sent are encrypted is identical, this has just increased the risk that cryptographic algorithm is cracked, and has reduced the fail safe of transfer of data.
Summary of the invention
The embodiment of the invention provides a kind of method and device of transfer of data, in order to solve the lower problem of the fail safe of transfer of data in the prior art.
The method that a kind of data that the embodiment of the invention provides send comprises:
Transmitting terminal generates random number m; And
For each character in the data to be sent, the ASCII value of this character is converted to the m system number of appointment figure place; And
The m system number for the appointment figure place of each character conversion is respectively made up the data to be sent after obtaining encrypting;
The to be sent data of described transmitting terminal after with described random number m and described encryption send to receiving terminal.
The method of a kind of data receiver that the embodiment of the invention provides comprises:
Receiving terminal receives by the enciphered data of transmitting terminal transmission and the random number m corresponding with described enciphered data; And
Adopt the described enciphered data of specifying division methods to receive to be divided into several unit, described appointment division methods is: every n character in the described enciphered data is divided into a unit, and n is for specifying figure place; And
For each unit of dividing, as a m system number, be decimal number with this m system number conversion with all characters of comprising in this unit, and definite ASCII value this decimal numeral character for changing;
The character that described receiving terminal will be determined for each unit of dividing respectively makes up, and obtains initial data corresponding to described enciphered data.
The device that a kind of data that the embodiment of the invention provides send comprises:
Generation module is used for generating random number m;
Modular converter is used for each character for data to be sent, the ASCII value of this character is converted to the m system number of appointment figure place;
Composite module is used for will be respectively making up the data to be sent after obtaining encrypting for the m system number of the appointment figure place of each character conversion;
Sending module is used for the data to be sent after described random number m and the described encryption are sent to receiving terminal.
The device of a kind of data receiver that the embodiment of the invention provides comprises:
Receiver module is used for receiving by the enciphered data of transmitting terminal transmission and the random number m corresponding with described enciphered data;
Divide module, be used for adopting the described enciphered data of specifying division methods to receive to be divided into several unit, described appointment division methods is: every n character in the described enciphered data is divided into a unit, and n is for specifying figure place;
Modular converter is used for for each unit of dividing, as a m system number, is decimal number with this m system number conversion with all characters of comprising in this unit, and definite ASCII value this decimal numeral character for changing;
Composite module, the character that is used for determining for each unit of dividing respectively makes up, and obtains initial data corresponding to described enciphered data.
The embodiment of the invention provides a kind of method and device of transfer of data, the method transmitting terminal generates random number m, and the ASCII value of each character in the data to be sent converted to the m system number of specifying figure place, data to be sent after obtaining encrypting send to receiving terminal with the data to be sent after this random number m and the encryption again.Because when transmitting terminal is encrypted data to be sent at every turn in the embodiment of the invention, that ASCII value with each character in the data to be sent converts random m system number to, therefore, even when sending identical a plurality of data to be sent, the result who obtains after these a plurality of data to be sent are encrypted also is different, thereby effectively reduce the risk that cryptographic algorithm is cracked, improved the fail safe of transfer of data.
Description of drawings
The data transmission procedure that Fig. 1 provides for the embodiment of the invention;
The DRP data reception process that Fig. 2 provides for the embodiment of the invention;
The apparatus structure schematic diagram that the data that Fig. 3 provides for the embodiment of the invention send;
The apparatus structure schematic diagram of the data receiver that Fig. 4 provides for the embodiment of the invention.
Embodiment
The embodiment of the invention provides a kind of method and device of transfer of data, the method transmitting terminal generates random number m, and the ASCII value of each character in the data to be sent converted to the m system number of specifying figure place, data to be sent after obtaining encrypting send to receiving terminal with the data to be sent after this random number m and the encryption again.Because when transmitting terminal is encrypted data to be sent at every turn in the embodiment of the invention, that ASCII value with each character in the data to be sent converts random m system number to, therefore, even when sending identical a plurality of data to be sent, the result who obtains after these a plurality of data to be sent are encrypted also is different, thereby effectively reduce the risk that cryptographic algorithm is cracked, improved the fail safe of transfer of data.
Below in conjunction with Figure of description, the embodiment of the invention is described in detail.
Fig. 1 is the data transmission procedure that the embodiment of the invention provides, and specifically may further comprise the steps:
S101: transmitting terminal generates random number m.
In embodiments of the present invention, when transmitting terminal will send data to be sent, generate at random first a random number m.Wherein, can in 2 ~ 127 scope, generate at random an integer as this random number m.
For example, when the data to be sent that will send were " CL ", transmitting terminal is random number m of random generation first.
S102: for each character in the data to be sent, the ASCII value of this character is converted to the m system number of appointment figure place.
After generating random number m, transmitting terminal then will this data to be sent in the ASCII value of each character convert the m system number of appointment figure place to.Wherein, this specific bit number scale is n, specifies figure place n should be not less than 8, and this appointment figure place n can make an appointment with receiving terminal.Concrete, transmitting terminal is for each character in the data to be sent, can be first convert the ASCII value of this character to m system number, specify figure place n if the figure place of this m system number of conversion is not enough, then before this m system number of conversion, mend 0, make the figure place of mending the m system number after 0 reach this appointment figure place n.As, suppose for certain character, be the k position with the figure place of the m system number of the ASCII value of this character conversion, k is less than n, then can mend n-k 0 before the m system number of conversion, and making the figure place of mending the m system number after 0 is the n position.
Continue to continue to use example, suppose that the random number m that generates among the step S101 is 16, the appointment figure place n with the receiving terminal agreement is 8 in advance, then:
Transmitting terminal is first for the character " C " in these data to be sent " CL ", the ASCII value of determining this character " C " is 67, the ASCII value 67 of this character " C " is converted to 16 system numbers, 16 system numbers of conversion are 43, owing to 16 systems several 43 of changing only have two, therefore 8 of less thaies mended 8-2=6 individual 0 before this 16 system number of conversion, making the figure place of mending 16 system numbers after 0 is 8, and the 16 system numbers of mending after 0 are 00000043;
Transmitting terminal is again for the character " L " in these data to be sent " CL ", the ASCII value of determining this character " L " is 76, the ASCII value 76 of this character " L " also is converted to 16 system numbers, 16 of conversion forbids that number is 4C, because 16 systems of conversion are counted 4C and also only had two, therefore 8 of less thaies also mended 8-2=6 individual 0 before this 16 system number of conversion, making the figure place of mending 16 system numbers after 0 is 8, and the 16 system numbers of mending after 0 are 0000004C.
Like this, the character in the data to be sent " C " has just converted the encryption string 00000043 of appointment figure place (8) to, and the character in the data to be sent " L " has just converted the encryption string 0000004C of appointment figure place (8) to.
Need to prove, specify figure place n to be not less than 8 reason to be: for a character, the system number of its conversion is less, the figure place that converts the system number to is just more, and minimum system number is 2, also be that minimum system is binary system, the ASCII value of maximum is 0 ~ 255 for the scope of the ASCII value in the 255(ASCII table in the ascii table, wherein, the ASCII value is that each character of 0 ~ 127 correspondence can and can show by keyboard input, and ASCII value is that each character of 128 ~ 255 correspondences can not be inputted by keyboard but also can show), converting minimum system number (binary system) to 255 is 11111111, totally 8, therefore, this appointment figure place n should be not less than 8.
S103: will be respectively make up the data to be sent after obtaining encrypting for the m system number of the appointment figure place of each character conversion.
After having converted each character in the data to be sent to m system number by above-mentioned steps S102, transmitting terminal then can be according to the sequencing of each character in the data to be sent, n position (appointment figure place) the m system number for each character conversion is respectively arranged the data to be sent after can obtaining encrypting.
Continue to continue to use example, owing to the character in the data to be sent " C " has been converted to 8 16 systems several 00000043,16 systems that convert the character in the data to be sent " L " to 8 are counted 0000004C, therefore, sequencing according to character " C " and " L " in the data to be sent, each system number after the conversion is arranged as: 000000430000004C, the 000000430000004C that obtains are the data to be sent after the encryption, also are encryption strings corresponding to data to be sent " CL ".
S104: transmitting terminal with this random number m and the data to be sent after encrypting send to receiving terminal.
After the data to be sent after obtaining encrypting by above-mentioned steps S103, this random number m that transmitting terminal then will generate and the data to be sent after this encryption send to receiving terminal, so that the to be sent data of receiving terminal after according to this random number m, adopting the decrypting process corresponding with above-mentioned ciphering process to this encryption are decrypted.
By said process as shown in Figure 1, the ASCII value that transmitting terminal is actually each character in the data to be sent has converted m system number to, so that data to be sent are encrypted, and because the system that will convert to is counted m by the random generation of transmitting terminal, when also namely sending data to be sent at every turn, it all may be consistent hardly that the system that converts to is counted m, therefore, even what transmitting terminal sent is identical data a plurality of to be sent, it also is different that these identical data a plurality of to be sent are encrypted the result who obtains, this just effectively reduces the risk that cryptographic algorithm is cracked, and has improved the fail safe of transfer of data.
In embodiments of the present invention, transmitting terminal is for certain character in the data to be sent, the method that the ASCII value of this character is converted to m system number is specifically as follows: determine that the ASCII value of this character is divided by the quotient and the remainder of random number m, if the merchant who obtains is greater than m, continue then to determine that the merchant that obtains is divided by the quotient and the remainder of m, until the merchant who obtains less than m till, as the merchant who obtains during less than m, the remainder that then will at every turn obtain is arranged according to specified order, and the merchant that will obtain for the last time places before each remainder after the arrangement m system number that can obtain changing.Wherein, above-mentioned specified order is: the opposite sequence that obtains the order of each remainder.And, if the remainder that obtains (merchant who perhaps obtains for the last time) is greater than 9, then can determine this remainder (or the merchant who obtains for the last time) of obtaining and 55 additions and value, and definite ASCII value is the character of this and value, this remainder (merchant who perhaps obtains for the last time) that this character replacement of determining is obtained.
Continue to continue to use example, when the character in the upper example " L " is converted to 16 systems and counts, the ASCII value of character " L " is 76, this ASCII value 76 divided by 16 merchants that obtain be 4, remainder is 12, because the merchant is 4 less than 16, therefore 4 be the merchant who obtains for the last time, and remainder 12 is greater than 9, therefore determine remainder 12 and 55 with value be 67, be C because the ASCII value is 67 character again, therefore the remainder (replacing with C) that this character C is replaced the remainder 12 that obtains, the merchant 4 that will obtain for the last time again to place obtaining before, 16 systems that can obtain changing are counted 4C.
Concrete, the false code that the ASCII value of the character in the data to be sent is converted to the m system number of n position can be as follows:
Figure BDA00002411458700071
Wherein, the parameter m in the above-mentioned code is the random number m that transmitting terminal generates.
Accordingly, when transmitting terminal employing method as shown in Figure 1 sent data, the method for receiving terminal receive data can be as shown in Figure 2.Fig. 2 is the DRP data reception process that the embodiment of the invention provides, and specifically may further comprise the steps:
S201: receiving terminal receives by the enciphered data of transmitting terminal transmission and the random number m corresponding with this enciphered data.
In embodiments of the present invention, when transmitting terminal employing method as shown in Figure 1 sent enciphered data and random number m to receiving terminal, receiving terminal is this enciphered data and the random number m of corresponding receiving end/sending end transmission then.
Continue to continue to use example, transmitting terminal is 000000430000004C to the enciphered data that receiving terminal sends, and the random number m of transmission is 16, then the corresponding reception of receiving terminal this enciphered data 000000430000004C and random number 16.
S202: adopt the division methods of appointment that the enciphered data that receives is divided into several unit, this appointment division methods is: every n character in this enciphered data is divided into a unit, and n is for specifying figure place.
Wherein, this appointment figure place n is that transmitting terminal and receiving terminal are made an appointment.
Continue to continue to use example, because the appointment figure place n that transmitting terminal and receiving terminal are made an appointment is 8, therefore, after receiving terminal receives this enciphered data 000000430000004C, then with in this enciphered data per 8 be divided into a unit, mark off altogether two unit, be respectively 00000043 and 0000004C.
S203: for each unit of dividing, as a m system number, be decimal number with this m system number conversion, and definite ASCII value is this decimal numeral character with all characters of comprising in this unit.
Because receiving terminal has received the random number m that transmitting terminal sends, therefore, for each unit of dividing, can be with all characters of comprising in this unit as a m system number, and be converted into decimal number, determine that again the ASCII value is this decimal numeral character.
Continue to continue to use example, because receiving terminal has received the random number 16 that transmitting terminal sends, therefore, for first unit 00000043 that marks off, with all characters of comprising in first unit as 16 system numbers, also be, with 00000043 as 16 system numbers, it is 67 that this 16 system number conversion is become decimal number, and according to the ascii table of preserving, receiving terminal can determine that the ASCII value is character " C " for the character of this decimal number 67 of conversion.
Similarly, for second the unit 0000004C that marks off, with all characters of comprising in second unit also as 16 system numbers, also be, with 0000004C as 16 system numbers, it is 76 that this 16 system number conversion is become decimal number, and according to the ascii table of preserving, receiving terminal can determine that the ASCII value is character " L " for the character of this decimal number 76 of conversion.
S204: the character that receiving terminal will be determined for each unit of dividing respectively makes up, and obtains initial data corresponding to this enciphered data.
Receiving terminal can be arranged the character of determining according to the sequencing of each unit in this enciphered data after having determined character for each unit of dividing, can obtain initial data corresponding to this enciphered data.
Continue to continue to use example, because in the enciphered data 000000430000004C that receives, first unit 00000043 that marks off is front, second unit 0000004C is rear, and the character of determining for first unit is character " C ", and the character of determining for second unit is character " L ", therefore, according to the order of each unit in enciphered data, each character of determining is arranged as: CL, " CL " that obtains are initial data corresponding to this enciphered data 000000430000004C.
By DRP data reception process shown in Figure 2 as seen, how receiving terminal is decrypted the enciphered data that receives, and depends on the random number m that transmitting terminal sends fully, random number m is different, even enciphered data is different, its initial data that decrypts is also different, the fail safe that has therefore improved transfer of data.
Concrete, receiving terminal carries out the division of unit among the above-mentioned steps S203 to enciphered data, and as a m system number and be converted to decimal number, and the false code that definite ASCII value is this decimal numeral character can be as follows with all characters of comprising in each unit:
Figure BDA00002411458700091
Figure BDA00002411458700101
Wherein, the parameter m in the above-mentioned false code is the random number m that receiving terminal receives.
Better, in order further to improve the fail safe of transfer of data, after the data to be sent after transmitting terminal obtains encrypting, step S104 by as shown in Figure 1 with the random number m that generates and the data to be sent after encrypting send to receiving terminal method can for: transmitting terminal arranges identical mark to the data to be sent after this random number m and this encryption respectively, and the random number that will be provided with mark sends to receiving terminal by the first communication link, crosses the second communication link and sends to receiving terminal being provided with data communication device to be sent after the encryption of mark.Wherein, the mark of setting includes but not limited to timestamp.
Also be, random number m is arranged identical mark with the encryption string that obtains, and the random number m that will be provided with same tag ganged up different communication links and sent to receiving terminal with encrypting, like this, even the random number m that transmits in a certain communication link or encryption string are intercepted, can guarantee that still cryptographic algorithm is not cracked, and then improve the fail safe of transfer of data.
Accordingly, when transmitting terminal arranges identical mark to random number m with encrypting to go here and there, and when sending to receiving terminal by different communication links, the method that receiving terminal receives random number m corresponding to the enciphered data that sent by transmitting terminal and this enciphered data among the step S201 as shown in Figure 2 is specially: receiving terminal receives the enciphered data (also being above-mentioned encryption string) that this transmitting terminal sends by the second communication link, and the mark that arranges in this enciphered data of determining to receive, in the random number that receives by the first communication link, the random number that the mark that arranges in the mark that select to arrange and this enciphered data is identical is as the random number m corresponding with this enciphered data that receives.
In addition, transmitting terminal by above-mentioned steps S104 with the random number m that generates and the data to be sent after encrypting send to receiving terminal method can also for: transmitting terminal according in advance with the position of receiving terminal agreement, random number m is inserted on the position of making an appointment in the data to be sent after this encryption, and the data to be sent that will insert after the encryption of this random number m send to receiving terminal.
Accordingly, in the data to be sent after transmitting terminal is inserted into this encryption with random number m in advance on the preposition, and when sending to receiving terminal, the method that receiving terminal receives random number m corresponding to the enciphered data that sent by transmitting terminal and this enciphered data among the step S201 as shown in Figure 2 is specially: the enciphered data that the receiving terminal receiving end/sending end sends (also being the data to be sent after the above-mentioned encryption), and according in advance with the position of this transmitting terminal agreement, the random number m corresponding with this enciphered data extracted in the position of making an appointment in this enciphered data.At this moment, the method that receiving terminal is divided this enciphered data among the step S202 is specially: adopt and specify division methods, be divided into several unit with having extracted random number m enciphered data afterwards.
Continue to continue to use example, suppose that in advance the position with the receiving terminal agreement is front 2, after then transmitting terminal obtains encrypting string (data to be sent after the encryption) 000000430000004C, this random number 16 can be inserted in front 2 that encrypt string, the encryption string that has inserted random number 16 is: the encryption string 16000000430000004C that 16000000430000004C, transmitting terminal will insert this random number 16 sends to receiving terminal.
After receiving terminal receives enciphered data (the above-mentioned encryption string) 16000000430000004C that has inserted random number, then according in advance with the position (front 2) of transmitting terminal agreement, extract front 2 conducts random number corresponding with this enciphered data in the enciphered data, front 2 of extraction are 16.The enciphered data of having extracted after front 2 is 000000430000004C, and therefore, receiving terminal adopts designation method, is divided into several unit with having extracted random number 16 enciphered data 000000430000004C afterwards, and proceeds subsequent step.
More than be the method that sends of the data that provide of the embodiment of the invention and the method for data receiver, based on same invention thinking, the embodiment of the invention is corresponding device that a kind of data send and the device of data receiver of providing also, as shown in Figure 3 and Figure 4.
The apparatus structure schematic diagram that the data that Fig. 3 provides for the embodiment of the invention send specifically comprises:
Generation module 301 is used for generating random number m;
Modular converter 302 is used for each character for data to be sent, the ASCII value of this character is converted to the m system number of appointment figure place;
Composite module 303 is used for will be respectively making up the data to be sent after obtaining encrypting for the m system number of the appointment figure place of each character conversion;
Sending module 304 is used for the data to be sent after described random number m and the described encryption are sent to receiving terminal.
Described modular converter 302 specifically is used for, for each character in the data to be sent, convert the ASCII value of this character to m system number, and when the not enough appointment of the figure place figure place of the m system number of changing, before the m system number of conversion, mend 0, make the figure place of mending the m system number after 0 reach described appointment figure place, wherein, described appointment figure place is not less than 8.
Described sending module 304 specifically is used for, respectively the data to be sent after described random number m and the described encryption are arranged identical mark, and the random number m that will be provided with mark sends to receiving terminal by the first communication link, crosses the second communication link and sends to receiving terminal being provided with data communication device to be sent after the encryption of mark; Perhaps, according in advance with the position of receiving terminal agreement, described random number m is inserted in the data to be sent after the described encryption in advance on the preposition, and the data to be sent that will insert after the encryption of described random number m send to described receiving terminal.
The apparatus structure schematic diagram of the data receiver that Fig. 4 provides for the embodiment of the invention specifically comprises:
Receiver module 401 is used for receiving by the enciphered data of transmitting terminal transmission and the random number m corresponding with described enciphered data;
Divide module 402, be used for adopting the described enciphered data of specifying division methods to receive to be divided into several unit, described appointment division methods is: every n character in the described enciphered data is divided into a unit, and n is for specifying figure place;
Modular converter 403 is used for for each unit of dividing, as a m system number, is decimal number with this m system number conversion with all characters of comprising in this unit, and definite ASCII value this decimal numeral character for changing;
Composite module 404, the character that is used for determining for each unit of dividing respectively makes up, and obtains initial data corresponding to described enciphered data.
Described receiver module 401 specifically is used for, receive the enciphered data that described transmitting terminal sends by the second communication link, and the mark that arranges in the described enciphered data of determining to receive, in the random number that receives by the first communication link, the random number that the mark that arranges in the mark that select to arrange and the described enciphered data is identical is as the random number m corresponding with described enciphered data that receives.
Described receiver module 401 specifically is used for, the enciphered data that receiving end/sending end sends, according in advance with the position of described transmitting terminal agreement, the random number m corresponding with described enciphered data extracted in the position of making an appointment in described enciphered data;
Described division module 402 specifically is used for, and adopts and specifies division methods, is divided into several unit with having extracted random number m enciphered data afterwards.
The embodiment of the invention provides a kind of method and device of transfer of data, the method transmitting terminal generates random number m, and the ASCII value of each character in the data to be sent converted to the m system number of specifying figure place, data to be sent after obtaining encrypting send to receiving terminal with the data to be sent after this random number m and the encryption again.Because when transmitting terminal is encrypted data to be sent at every turn in the embodiment of the invention, that ASCII value with each character in the data to be sent converts random m system number to, therefore, even when sending identical a plurality of data to be sent, the result who obtains after these a plurality of data to be sent are encrypted also is different, thereby effectively reduce the risk that cryptographic algorithm is cracked, improved the fail safe of transfer of data.
Those skilled in the art should understand, the application's embodiment can be provided as method, system or computer program.Therefore, the application can adopt complete hardware implementation example, complete implement software example or in conjunction with the form of the embodiment of software and hardware aspect.And the application can adopt the form of the computer program of implementing in one or more computer-usable storage medium (including but not limited to magnetic disc store, CD-ROM, optical memory etc.) that wherein include computer usable program code.
The application is that reference is described according to flow chart and/or the block diagram of method, equipment (system) and the computer program of the embodiment of the present application.Should understand can be by the flow process in each flow process in computer program instructions realization flow figure and/or the block diagram and/or square frame and flow chart and/or the block diagram and/or the combination of square frame.Can provide these computer program instructions to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device producing a machine, so that the instruction of carrying out by the processor of computer or other programmable data processing device produces the device that is used for realizing in the function of flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame appointments.
These computer program instructions also can be stored in energy vectoring computer or the computer-readable memory of other programmable data processing device with ad hoc fashion work, so that the instruction that is stored in this computer-readable memory produces the manufacture that comprises command device, this command device is realized the function of appointment in flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame.
These computer program instructions also can be loaded on computer or other programmable data processing device, so that carry out the sequence of operations step producing computer implemented processing at computer or other programmable devices, thereby be provided for realizing the step of the function of appointment in flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame in the instruction that computer or other programmable devices are carried out.
Although described the application's preferred embodiment, in a single day those skilled in the art get the basic creative concept of cicada, then can make other change and modification to these embodiment.So claims are intended to all changes and the modification that are interpreted as comprising preferred embodiment and fall into the application's scope.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.

Claims (12)

1. the method that data send is characterized in that, comprising:
Transmitting terminal generates random number m; And
For each character in the data to be sent, the ASCII value of this character is converted to the m system number of appointment figure place; And
The m system number for the appointment figure place of each character conversion is respectively made up the data to be sent after obtaining encrypting;
The to be sent data of described transmitting terminal after with described random number m and described encryption send to receiving terminal.
2. the method for claim 1 is characterized in that, the ASCII value of this character is converted to the m system number of appointment figure place, specifically comprises:
Convert the ASCII value of this character to m system number, and when the not enough appointment of the figure place figure place of the m system number of changing, mended 0 before the m system number of conversion, make the figure place of mending the m system number after 0 reach described appointment figure place, wherein, described appointment figure place is not less than 8.
3. the method for claim 1 is characterized in that, the to be sent data of described transmitting terminal after with described random number m and described encryption send to receiving terminal, specifically comprise:
Described transmitting terminal arranges identical mark to the data to be sent after described random number m and the described encryption respectively, and the random number m that will be provided with mark sends to receiving terminal by the first communication link, crosses the second communication link and sends to receiving terminal being provided with data communication device to be sent after the encryption of mark; Perhaps
Described transmitting terminal according in advance with the position of receiving terminal agreement, described random number m is inserted on the position of making an appointment in the data to be sent after the described encryption, and the data to be sent that will insert after the encryption of described random number m send to described receiving terminal.
4. the method for a data receiver is characterized in that, comprising:
Receiving terminal receives by the enciphered data of transmitting terminal transmission and the random number m corresponding with described enciphered data; And
Adopt the described enciphered data of specifying division methods to receive to be divided into several unit, described appointment division methods is: every n character in the described enciphered data is divided into a unit, and n is for specifying figure place; And
For each unit of dividing, as a m system number, be decimal number with this m system number conversion with all characters of comprising in this unit, and definite ASCII value this decimal numeral character for changing;
The character that described receiving terminal will be determined for each unit of dividing respectively makes up, and obtains initial data corresponding to described enciphered data.
5. method as claimed in claim 4 is characterized in that, receiving terminal receives by the enciphered data of transmitting terminal transmission and the random number m corresponding with described enciphered data, specifically comprises:
Described receiving terminal receives the enciphered data that described transmitting terminal sends by the second communication link; And
The mark that arranges in the described enciphered data of determining to receive; And
In the random number that receives by the first communication link, the random number that the mark that arranges in the mark that select to arrange and the described enciphered data is identical is as the random number m corresponding with described enciphered data that receives.
6. method as claimed in claim 4 is characterized in that, receiving terminal receives by the enciphered data of transmitting terminal transmission and the random number m corresponding with described enciphered data, specifically comprises:
The enciphered data that described receiving terminal receiving end/sending end sends; And
According in advance with the position of described transmitting terminal agreement, the random number m corresponding with described enciphered data extracted in the position of making an appointment in described enciphered data;
Adopt the described enciphered data of specifying division methods to receive to be divided into several unit, specifically comprise:
Adopt and specify division methods, be divided into several unit with having extracted random number m enciphered data afterwards.
7. the device that data send is characterized in that, comprising:
Generation module is used for generating random number m;
Modular converter is used for each character for data to be sent, the ASCII value of this character is converted to the m system number of appointment figure place;
Composite module is used for will be respectively making up the data to be sent after obtaining encrypting for the m system number of the appointment figure place of each character conversion;
Sending module is used for the data to be sent after described random number m and the described encryption are sent to receiving terminal.
8. device as claimed in claim 7, it is characterized in that, described modular converter specifically is used for, for each character in the data to be sent, convert the ASCII value of this character to m system number, and the figure place of the m system number of conversion is not enough when specifying figure place, before the m system number of conversion, mend 0, make the figure place of mending the m system number after 0 reach described appointment figure place, wherein, described appointment figure place is not less than 8.
9. device as claimed in claim 7, it is characterized in that, described sending module specifically is used for, respectively the data to be sent after described random number m and the described encryption are arranged identical mark, and the random number m that will be provided with mark sends to receiving terminal by the first communication link, crosses the second communication link and sends to receiving terminal being provided with data communication device to be sent after the encryption of mark; Perhaps, according in advance with the position of receiving terminal agreement, described random number m is inserted in the data to be sent after the described encryption in advance on the preposition, and the data to be sent that will insert after the encryption of described random number m send to described receiving terminal.
10. the device of a data receiver is characterized in that, comprising:
Receiver module is used for receiving by the enciphered data of transmitting terminal transmission and the random number m corresponding with described enciphered data;
Divide module, be used for adopting the described enciphered data of specifying division methods to receive to be divided into several unit, described appointment division methods is: every n character in the described enciphered data is divided into a unit, and n is for specifying figure place;
Modular converter is used for for each unit of dividing, as a m system number, is decimal number with this m system number conversion with all characters of comprising in this unit, and definite ASCII value this decimal numeral character for changing;
Composite module, the character that is used for determining for each unit of dividing respectively makes up, and obtains initial data corresponding to described enciphered data.
11. device as claimed in claim 10, it is characterized in that, described receiver module specifically is used for, receive the enciphered data that described transmitting terminal sends by the second communication link, and the mark that arranges in the described enciphered data of determining to receive, in the random number that receives by the first communication link, the random number that the mark that arranges in the mark that select to arrange and the described enciphered data is identical is as the random number m corresponding with described enciphered data that receives.
12. device as claimed in claim 10, it is characterized in that, described receiver module specifically is used for, the enciphered data that receiving end/sending end sends, according in advance with the position of described transmitting terminal agreement, the random number m corresponding with described enciphered data extracted in the position of making an appointment in described enciphered data;
Described division module specifically is used for, and adopts and specifies division methods, is divided into several unit with having extracted random number m enciphered data afterwards.
CN201210461232.8A 2012-11-15 2012-11-15 A kind of method and device of data transmission Active CN103067162B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210461232.8A CN103067162B (en) 2012-11-15 2012-11-15 A kind of method and device of data transmission

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210461232.8A CN103067162B (en) 2012-11-15 2012-11-15 A kind of method and device of data transmission

Publications (2)

Publication Number Publication Date
CN103067162A true CN103067162A (en) 2013-04-24
CN103067162B CN103067162B (en) 2016-08-03

Family

ID=48109633

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210461232.8A Active CN103067162B (en) 2012-11-15 2012-11-15 A kind of method and device of data transmission

Country Status (1)

Country Link
CN (1) CN103067162B (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103441841A (en) * 2013-08-08 2013-12-11 唐山松下产业机器有限公司 Automatic encrypting and decrypting system and method for welding data
CN105187192A (en) * 2015-09-08 2015-12-23 广州六米网络科技有限公司 Three-dimensional secret code encryption algorithm
CN105262769A (en) * 2015-11-04 2016-01-20 宁波亿拍客网络科技有限公司 Main-auxiliary cooperation communication method
CN105721882A (en) * 2016-04-18 2016-06-29 上海泥娃通信科技有限公司 Separated coding and decoding method and system
CN107463542A (en) * 2017-08-08 2017-12-12 郭铮铮 A kind of method that binary number is represented using ASCII printable characters
CN107786331A (en) * 2017-09-28 2018-03-09 平安普惠企业管理有限公司 Data processing method, device, system and computer-readable recording medium
CN108616515A (en) * 2018-04-09 2018-10-02 华北水利水电大学 A kind of processing method of enterprise communication information
CN109286493A (en) * 2018-11-27 2019-01-29 浙江万朋教育科技股份有限公司 It is a kind of that ip in local area network is generated into 6 random character encipher-decipher methods
CN111324897A (en) * 2018-12-13 2020-06-23 中国科学院深圳先进技术研究院 Image encryption method and device and image decryption method and device
CN112333204A (en) * 2020-11-29 2021-02-05 国网辽宁省电力有限公司电力科学研究院 5G network transmission security device based on TCP IP protocol disorder feature code
CN114189554A (en) * 2021-11-17 2022-03-15 中国兵器工业计算机应用技术研究所 Information interaction method and device and readable storage medium
CN114553511A (en) * 2022-02-14 2022-05-27 山东浪潮通软信息科技有限公司 Data security transmission method, equipment and medium based on industrial production
CN115296887A (en) * 2022-08-02 2022-11-04 中国电子科技集团公司信息科学研究院 Data transmission method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1988441A (en) * 2005-12-21 2007-06-27 中国银联股份有限公司 Data safety transmission method
CN101192926A (en) * 2006-11-28 2008-06-04 北京握奇数据系统有限公司 Account protection method and system
CN101621390A (en) * 2008-07-01 2010-01-06 中兴通讯股份有限公司 Protection method and system thereof for data download service in broadcast multicast
WO2010146715A1 (en) * 2009-06-19 2010-12-23 富士通株式会社 Data transfer method, code conversion circuit, and device
CN102043801A (en) * 2009-10-16 2011-05-04 无锡华润上华半导体有限公司 Inter-database data interaction method and system, database of transmitter and database of receiver

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1988441A (en) * 2005-12-21 2007-06-27 中国银联股份有限公司 Data safety transmission method
CN101192926A (en) * 2006-11-28 2008-06-04 北京握奇数据系统有限公司 Account protection method and system
CN101621390A (en) * 2008-07-01 2010-01-06 中兴通讯股份有限公司 Protection method and system thereof for data download service in broadcast multicast
WO2010146715A1 (en) * 2009-06-19 2010-12-23 富士通株式会社 Data transfer method, code conversion circuit, and device
CN102043801A (en) * 2009-10-16 2011-05-04 无锡华润上华半导体有限公司 Inter-database data interaction method and system, database of transmitter and database of receiver

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
郭利刚: "《密文全文检索系统的研究与实现》", 15 September 2011 *

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103441841B (en) * 2013-08-08 2016-06-22 唐山松下产业机器有限公司 A kind of welding data is from encrypting and decrypting system and method
CN103441841A (en) * 2013-08-08 2013-12-11 唐山松下产业机器有限公司 Automatic encrypting and decrypting system and method for welding data
CN105187192B (en) * 2015-09-08 2018-11-13 广州六米网络科技有限公司 The method for improving data transmission security in a computer network
CN105187192A (en) * 2015-09-08 2015-12-23 广州六米网络科技有限公司 Three-dimensional secret code encryption algorithm
CN105262769A (en) * 2015-11-04 2016-01-20 宁波亿拍客网络科技有限公司 Main-auxiliary cooperation communication method
CN105721882A (en) * 2016-04-18 2016-06-29 上海泥娃通信科技有限公司 Separated coding and decoding method and system
CN107463542B (en) * 2017-08-08 2023-10-20 郭铮铮 Method for representing binary number by using ASCII (ASCII) to print characters
CN107463542A (en) * 2017-08-08 2017-12-12 郭铮铮 A kind of method that binary number is represented using ASCII printable characters
CN107786331B (en) * 2017-09-28 2020-03-17 平安普惠企业管理有限公司 Data processing method, device, system and computer readable storage medium
CN107786331A (en) * 2017-09-28 2018-03-09 平安普惠企业管理有限公司 Data processing method, device, system and computer-readable recording medium
CN108616515A (en) * 2018-04-09 2018-10-02 华北水利水电大学 A kind of processing method of enterprise communication information
CN109286493A (en) * 2018-11-27 2019-01-29 浙江万朋教育科技股份有限公司 It is a kind of that ip in local area network is generated into 6 random character encipher-decipher methods
CN111324897A (en) * 2018-12-13 2020-06-23 中国科学院深圳先进技术研究院 Image encryption method and device and image decryption method and device
CN112333204A (en) * 2020-11-29 2021-02-05 国网辽宁省电力有限公司电力科学研究院 5G network transmission security device based on TCP IP protocol disorder feature code
CN114189554B (en) * 2021-11-17 2023-09-15 中国兵器工业计算机应用技术研究所 Information interaction method, device and readable storage medium
CN114189554A (en) * 2021-11-17 2022-03-15 中国兵器工业计算机应用技术研究所 Information interaction method and device and readable storage medium
CN114553511A (en) * 2022-02-14 2022-05-27 山东浪潮通软信息科技有限公司 Data security transmission method, equipment and medium based on industrial production
CN115296887A (en) * 2022-08-02 2022-11-04 中国电子科技集团公司信息科学研究院 Data transmission method and device, electronic equipment and storage medium
CN115296887B (en) * 2022-08-02 2023-11-17 中国电子科技集团公司信息科学研究院 Data transmission method, device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN103067162B (en) 2016-08-03

Similar Documents

Publication Publication Date Title
CN103067162A (en) Method and device of data transmission
CN102546181B (en) Cloud storage encrypting and deciphering method based on secret key pool
CN105406960B (en) A kind of method of information encryption and decryption
CN102377566B (en) Security processing device and system for electric meter data
CN103684760A (en) Method, device and system for encryption and decryption of communication
CN103457727A (en) Method, device and system for processing media data
CN110704854B (en) Stream type encryption method aiming at text data reserved format
CN112187448B (en) Data encryption method and system
CN102063598A (en) Data encryption and decryption methods and devices
CN110312054B (en) Image encryption and decryption method, related device and storage medium
CN103441841A (en) Automatic encrypting and decrypting system and method for welding data
CN105024807A (en) Data processing method and system
CN105099653A (en) Distributed data processing method, device and system
CN109873700A (en) Key generation method, device, computer readable storage medium and terminal device
CN104038336A (en) Data encryption method based on 3DES
CN109005184A (en) File encrypting method and device, storage medium, terminal
CN105978686A (en) Key management method and system
CN102833077A (en) Encryption and decryption methods of remote card-issuing data transmission of financial IC (Integrated Circuit) card and financial social security IC card
CN102394746B (en) Data transmission method of weighing system based on digital sensor
CN105100085A (en) Information encryption and decryption methods and devices
CN103873250A (en) Ciphertext generation method, ciphertext decryption method and encryption/ decryption device
CN111740831B (en) Electric power data encryption transmission method, system and readable medium for multiplex and production detection
CN104954362A (en) Serial number encryption-decryption method and device
KR20140078917A (en) Apparatas and method for security message transmission and reception of vehicle network
CN106452754B (en) Multi-user online dynamic encryption 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
C14 Grant of patent or utility model
GR01 Patent grant