CN109379380A - Data transmission method, data receiver method and remote printing system, mobile terminal - Google Patents
Data transmission method, data receiver method and remote printing system, mobile terminal Download PDFInfo
- Publication number
- CN109379380A CN109379380A CN201811489076.XA CN201811489076A CN109379380A CN 109379380 A CN109379380 A CN 109379380A CN 201811489076 A CN201811489076 A CN 201811489076A CN 109379380 A CN109379380 A CN 109379380A
- Authority
- CN
- China
- Prior art keywords
- data
- packet
- encrypted
- splitting
- transmitted
- 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
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/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/22—Parsing or analysis of headers
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The present invention provides a kind of data transmission method, method of reseptance and remote printing systems, mobile terminal, the data transmission method includes: acquisition data to be transmitted, the data to be transmitted is encrypted with Encryption Algorithm, obtain encrypted packet, the encrypted packet is split by preset rules, multiple splitting datagrams are obtained, multiple splitting datagrams are sent.By implementing the present invention, data to be transmitted is encrypted after obtaining encrypted packet with Encryption Algorithm, then the encrypted packet is split by preset rules again, fractionation obtains multiple splitting datagrams, accordingly even when wherein any splitting datagram is intercepted, or whole splitting datagrams is intercepted, it then can not still obtain correct data to be transmitted, to guarantee the safety in data transmission procedure, the data transmission method for solving remote printing technology in the prior art is easy to be cracked, the low problem of safety.
Description
Technical field
The present invention relates to printer data transmission technique fields, and in particular to a kind of data transmission method, data receiver
Method and remote printing system, mobile terminal.
Background technique
Remote printing is can to use printer by browser positioning, and direct by word processor after connecting internet
Will mimeograph documents be sent to recipient position printer, print a kind of technology of file.
Remote mobile is related to user information, including type information, userspersonal information etc. when being printed upon data transmission, existing
It is transmitted substantially using plain code in remote printing when data are transmitted, or does basic packet encapsulation.In order to increase number
According to transmission security, there are two existing solutions: data being sent by mail, are carried out data by mail server
Transmission, is transferred to mail server for the responsibility of data safety;It is local to carry out simple data encryption, it is then transferred to service again
Device.Above scheme has the disadvantage that: needing to increase additional tool, such as mailing system, can bring inconvenience to user in this way
Experience, especially in face of now use mobile phone user, need to be embedded in mail function in itself APP, customer experience is bad,
And above-mentioned data transmission method principle is simple, is easy to be cracked.
Summary of the invention
In view of this, the embodiment of the invention provides a kind of data transmission method, data receiver method and remote printing systems
System, mobile terminal are easy to be cracked to solve the data transmission method of remote printing technology in the prior art, and safety is low to ask
Topic.
According in a first aspect, the embodiment of the invention provides a kind of data transmission methods, comprising: data to be transmitted is obtained,
The data to be transmitted is encrypted with Encryption Algorithm, obtains encrypted packet;The encrypted packet is pressed into preset rules
It is split, obtains multiple splitting datagrams;Send multiple splitting datagrams.
Through the above steps, data to be transmitted is encrypted after obtaining encrypted packet with Encryption Algorithm, then again will
The encrypted packet is split by preset rules, and fractionation obtains multiple splitting datagrams, accordingly even when wherein arbitrarily splitting number
It is intercepted according to coating intercept, or whole splitting datagrams, since the data packet of the fractionation is by preset rules
The fractionation of progress, if not knowing the preset rules, even if obtaining any splitting datagram or whole splitting datagrams, then
Correct data to be transmitted can not be still obtained, to guarantee the safety in data transmission procedure, is solved in the prior art
The data transmission method of remote printing technology is easy to be cracked, the low problem of safety.
With reference to first aspect, in first aspect first embodiment, it is described by the data to be transmitted with Encryption Algorithm
The step of being encrypted, obtaining encrypted packet, comprising: added the data to be transmitted with compression algorithm or completion method
It is close, obtain the first data packet;First data packet is encrypted, the encrypted packet is obtained.
With reference to first aspect, described that the encrypted packet is pressed into preset rules in first aspect second embodiment
The step of being split, obtaining multiple splitting datagrams, comprising: tear the encrypted packet by the preset length rule open
It is divided into multiple splitting datagrams;Encryption is numbered to each splitting datagram, generates and numbers encrypted multiple fractionation numbers
According to packet.
With reference to first aspect or first aspect any embodiment, in first aspect third embodiment, the transmission
The step of multiple splitting datagrams, comprising: each splitting datagram is grouped transmission by the network transmission protocol.
With reference to first aspect, in the 4th embodiment of first aspect, the data to be transmitted is print data information.
4th embodiment with reference to first aspect obtains number to be transmitted described in the 5th embodiment of first aspect
According to the step of after, further includes: the print data information is converted into raster data.
According to second aspect, the embodiment of the invention provides a kind of data receiver methods, comprising: receives multiple fractionation data
Packet;Conjunction packet is carried out to multiple splitting datagrams according to preset rules, obtains encrypted packet;By the encrypted packet with
Decipherment algorithm is decrypted, the data to be transmitted after being decrypted;Wherein, the decipherment algorithm and the encryption data to be transmitted
Encryption Algorithm it is corresponding.
In conjunction with second aspect, in second aspect first embodiment, it is described according to preset rules to multiple fractionations
The step of data packet carries out conjunction packet, obtains encrypted packet, comprising: each splitting datagram of decryption obtains each described
The number of splitting datagram;Conjunction packet is carried out to multiple splitting datagrams according to the number, obtains encrypted packet.
According to the third aspect, the embodiment of the invention provides a kind of data transmission devices, comprising: module is obtained, for obtaining
Take data to be transmitted;First processing module obtains encryption data for encrypting the data to be transmitted with Encryption Algorithm
Packet;Second processing module obtains multiple splitting datagrams for splitting the encrypted packet by preset rules;Hair
Module is sent, for sending multiple splitting datagrams.
According to fourth aspect, the embodiment of the invention provides a kind of data sinks, comprising: receiving module, for connecing
Receive multiple splitting datagrams;Third processing module is obtained for carrying out conjunction packet to multiple splitting datagrams according to preset rules
To encrypted packet;Fourth processing module, for the encrypted packet to be decrypted with decipherment algorithm, after being decrypted
Data to be transmitted;Wherein, the decipherment algorithm is corresponding with the Encryption Algorithm for encrypting the data to be transmitted.
According to the 5th aspect, the embodiment of the invention provides a kind of remote printing system, including server and printer, institutes
Server is stated to connect with the printer communication;The server, for obtaining data to be transmitted, by the data to be transmitted with
First Encryption Algorithm is encrypted, and the first encrypted packet is obtained, and first encrypted packet is torn open by preset rules
Point, multiple first splitting datagrams are obtained, send multiple first splitting datagrams to the printer;Wherein, it is described to
Transmission data are print data information;The printer, for receiving multiple first splitting datagrams, according to preset rules
Conjunction packet is carried out to multiple first splitting datagrams, obtains the first encrypted packet, by first encrypted packet with
One decipherment algorithm is decrypted, the data to be transmitted after being decrypted, the data to be transmitted after printing the decryption;Wherein, institute
It is corresponding with the first Encryption Algorithm for encrypting the data to be transmitted to state the first decipherment algorithm.
In conjunction with the 5th aspect, in the 5th aspect first embodiment, the server is also used to: being obtained described to be transmitted
After data, the data to be transmitted is encrypted with compression algorithm or completion method, obtains the first data packet;Encrypt described first
Data packet obtains first encrypted packet.
In conjunction with the 5th aspect or the 5th aspect first embodiment, in the 5th aspect second embodiment, the service
Device is also used to: after obtaining the first encrypted packet, first encrypted packet being split as by the preset length rule
Multiple first splitting datagrams, and encryption is numbered to each first splitting datagram, it is encrypted multiple to generate number
First splitting datagram.
In conjunction with the 5th aspect or the 5th aspect first embodiment, in the 5th aspect third embodiment, the service
Device is also used to: the print data information is converted to raster data.
According to the 6th aspect, the embodiment of the invention provides a kind of remote printing systems, comprising: server and client,
The client and the server communication connection;The client will be described for receiving the data information to be printed of user
Data information to be printed is encrypted with the second Encryption Algorithm, obtains the second encrypted packet, by second encrypted packet
It is split by preset rules, obtains multiple second splitting datagrams, send multiple second splitting datagrams to the clothes
Business device;The server is split according to preset rules to multiple described second for receiving multiple second splitting datagrams
Data packet carries out conjunction packet, obtains the second encrypted packet, and second encrypted packet is decrypted with the second decipherment algorithm,
Print data information after being decrypted.
According to the 7th aspect, the embodiment of the invention provides a kind of mobile terminals, comprising: at least one processor;And
The memory being connect at least one described processor communication;Wherein, be stored with can be by described at least one for the memory
Manage the computer program that device executes, the computer program executed by least one described processor so that it is described at least one
Processor executes data transmission method or second aspect or second party described in first aspect or first aspect any embodiment
Data receiver method described in the first embodiment of face.
According to eighth aspect, the embodiment of the invention provides a kind of computer readable storage mediums, are stored thereon with calculating
Machine program is realized as described in first aspect or first aspect any embodiment when the computer program is executed by processor
Data receiver method described in data transmission method or second aspect or second aspect first embodiment.
Technical solution of the embodiment of the present invention, has the advantages that
1. the data transmission method includes: to obtain number to be transmitted the embodiment of the invention provides a kind of data transmission method
According to, which is encrypted with Encryption Algorithm, obtains encrypted packet, by the encrypted packet by preset rules into
Row is split, and is obtained multiple splitting datagrams, is sent multiple splitting datagrams.Data transmission method through the embodiment of the present invention,
Data to be transmitted is encrypted after obtaining encrypted packet with Encryption Algorithm, the encrypted packet is then pressed into preset rules again
It is split, fractionation obtains multiple splitting datagrams, accordingly even when wherein any splitting datagram is intercepted, or all
Splitting datagram be intercepted, due to the data packet of the fractionation be by preset rules carry out fractionation, if not knowing this
Preset rules then can not still obtain correctly to be passed even if then obtaining any splitting datagram or whole splitting datagrams
Transmission of data solves the data transmission of remote printing technology in the prior art to guarantee the safety in data transmission procedure
Method is easy to be cracked, the low problem of safety.
2. the data receiver method includes: to receive multiple fractionations the embodiment of the invention provides a kind of data receiver method
Data packet carries out conjunction packet to multiple splitting datagrams according to preset rules, encrypted packet is obtained, by the encrypted packet to solve
Close algorithm is decrypted, the data to be transmitted after being decrypted, and wherein the encryption of the decipherment algorithm and encryption data to be transmitted is calculated
Method is corresponding.Data receiver method through the embodiment of the present invention, after receiving multiple splitting datagrams, according to preset rules to more
A splitting datagram carries out conjunction packet, preset rules here and preset rules phase when splitting datagram in data transmission procedure
Together, conjunction packet only is carried out to multiple splitting datagrams according to the preset rules, can just accesses correct encrypted packet, then
The encrypted packet is decrypted with decipherment algorithm, the transmission data after being decrypted, if not knowing the preset rules,
Can not carry out correctly closing packet procedures, then the data that the encrypted packet obtained decrypts may messy code, to guarantee data
Received safety.
Detailed description of the invention
It, below will be to specific in order to illustrate more clearly of the specific embodiment of the invention or technical solution in the prior art
Embodiment or attached drawing needed to be used in the description of the prior art be briefly described, it should be apparent that, it is described below
Attached drawing is some embodiments of the present invention, for those of ordinary skill in the art, before not making the creative labor
It puts, is also possible to obtain other drawings based on these drawings.
Fig. 1 is a flow chart of data transmission method according to an embodiment of the present invention;
Fig. 2 is another flow chart of data transmission method according to an embodiment of the present invention;
Fig. 3 is the flow chart of data transmission method according to the preferred embodiment of the invention;
Fig. 4 is the flow chart of data receiver method according to an embodiment of the present invention;
Fig. 5 is the structural block diagram of data transmission device according to an embodiment of the present invention;
Fig. 6 is the structural block diagram of data sink according to an embodiment of the present invention;
Fig. 7 is the work flow diagram of remote printing system according to an embodiment of the present invention;
Fig. 8 is the hardware structural diagram of the mobile terminal of the embodiment of the present invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is
A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those skilled in the art are not having
Every other embodiment obtained under the premise of creative work is made, shall fall within the protection scope of the present invention.
The embodiment of the invention provides a kind of data transmission method, the data transmission method can be applied to mobile terminal it
Between data transmission, as shown in Figure 1, the data transmission method includes:
Step S101: data to be transmitted is obtained;Specifically, which can be the data that user needs to transmit,
The data either transmitted between terminal and terminal;
Step S102: the data to be transmitted is encrypted with Encryption Algorithm, obtains encrypted packet;Specifically, should add
Close algorithm can be the various Encryption Algorithm in this field, such as compression algorithm, and the embodiment of the present invention is not limited system;
Step S103: the encrypted packet is split by preset rules, obtains multiple splitting datagrams;Specifically,
After obtaining encrypted packet, which is split according to the preset rules set, obtains multiple fractionation data
Packet, if the not preset rules, even if obtaining any of them splitting datagram, then can not also know the data before and after it
Packet.
Step S104: multiple splitting datagrams are sent;Specifically, using multiple splitting datagrams after fractionation as transmission number
According to transmission.
Through the above steps, data to be transmitted is encrypted after obtaining encrypted packet with Encryption Algorithm, then again will
The encrypted packet is split by preset rules, and fractionation obtains multiple splitting datagrams, accordingly even when wherein arbitrarily splitting number
It is intercepted according to coating intercept, or whole splitting datagrams, since the data packet of the fractionation is by preset rules
The fractionation of progress, what which was randomly generated, if not knowing the preset rules, even if obtaining any fractionation data
Packet or whole splitting datagrams, then can not still obtain correct data to be transmitted, to guarantee in data transmission procedure
Safety, the data transmission method for solving remote printing technology in the prior art are easy to be cracked, the low problem of safety.
Above-mentioned steps S102 is related to encrypting the data to be transmitted with Encryption Algorithm, obtains encrypted packet,
In one better embodiment, as shown in Fig. 2, the step includes:
Step S1021: the data to be transmitted is encrypted with compression algorithm or completion method, obtains the first data packet;Tool
Body, which existed in the form of 16 systems in a computer, by it according to compression algorithm, such as with will be to be passed
The presetting digit capacity of transmission of data reduces the form of character, or according to completion method, increases character to the presetting digit capacity of data to be transmitted
Form, data to be transmitted is encrypted, the first data packet is obtained.
Step S1022: first data packet is encrypted, encrypted packet is obtained.It specifically, will after obtaining the first data packet
First data packet is encrypted again, such as Crypted password is arranged to first data packet, obtains encrypted packet.
Through the above steps, which is encrypted with compression algorithm or completion method, obtains the first data packet,
First data packet is encrypted, encrypted packet is obtained, by way of encrypting twice, if not knowing the compression of encryption for the first time
Algorithm can be then messy code the data cracked out, to improve the safety of encrypted packet, avoid encrypted packet with
Meaning is cracked.
Above-mentioned steps S103 is related to splitting the encrypted packet by preset rules, obtains multiple fractionation data
Packet, in a preferred embodiment, as shown in figure 3, the step includes:
Step S1031: the encrypted packet is split as multiple splitting datagrams by preset length rule;Specifically,
The preset rules can have N kind to split form, such as wherein have a kind of fractionations regular are as follows: by the encrypted packet according to 2K, 5K,
The rule of 4K, 7K ... are split, so that the encrypted packet is split as multiple splitting datagrams, are not knowing fractionation rule
Under the premise of then, then it is unable to get correct splitting datagram sequence, transmits data so as to avoid in open network agreement
When, the data packet before and after it can be known according to obtained any intermediate data.
Step S1032: encryption is numbered to each splitting datagram, generates and numbers encrypted multiple splitting datagrams.
Specifically, after being split according to preset length rule to encrypted packet, each splitting datagram is numbered, then
The corresponding splitting datagram of the number is encrypted, encrypted multiple splitting datagrams are generated.
Through the above steps, encrypted packet is split as multiple splitting datagrams by preset length rule, it is then right
Encryption is numbered in each splitting datagram, generates and numbers encrypted multiple splitting datagrams, is not knowing fractionation rule
Under the premise of, then it is unable to get correct splitting datagram sequence, so as to avoid when open network agreement transmits data,
The data packet before and after it can be known according to obtained any intermediate data.
Above-mentioned steps S104 is related to sending multiple splitting datagrams, and in a preferred embodiment, which includes:
Each splitting datagram is grouped transmission by the network transmission protocol.Specifically, the network transmission protocol here refers to end
The network transmission protocol held and transmit data between terminal, such as TCP/IP transport protocol, the network transmission protocol be it is disclosed,
It has the transmission rule of setting, and greater than the data packet of 1500 bytes, TCP/IP, which can be converted to the data packet, to be less than or equal to
Multiple packets of 1500 bytes are sent, such as a data packet is 2K, then when transmitting through TCP/IP, the data packet of the 2K can be split
For two data packets of 1500 bytes and 500 bytes, the two data packets are one group and are sent.Each splitting datagram is come
It says, length is indefinite, such as the splitting datagram length having is 8K, and some length is 2K, and some length is 1K, then splits
Data packet length is 8K's, then is split as the data packet of 5 1500 bytes and 1 500 byte respectively as one group of transmission, length
It does not need to split it again then using the splitting datagram as one group of transmission for the splitting datagram of 1K.
Transmission data are frequently necessary in remote printing, between server and printer, then in above-mentioned specific embodiment
Data to be transmitted be that print data information is converted into raster data, so after server obtains the print data information
It carries out subsequent step S102-S104 again afterwards, finally sends multiple splitting datagrams to printer.
The embodiment of the invention also provides a kind of data receiver method, which can be applied to mobile terminal
Between data transmission, as shown in figure 4, the data receiver method includes:
Step S401: multiple splitting datagrams are received;Specifically, with the multiple fractionations of transmission in above-mentioned specific embodiment
Data packet is corresponding, receives multiple splitting datagrams.
Step S402: conjunction packet is carried out to multiple splitting datagrams according to preset rules, obtains encrypted packet;Specifically,
Conjunction packet is carried out to multiple splitting datagrams according to preset preset rules (it can be appreciated that the rule generated at random), this
In preset rules be that two terminals are made an appointment, only according to the preset rules can carry out correctly close packet.
Step S403: the encrypted packet is decrypted with decipherment algorithm, the data to be transmitted after being decrypted;Its
In, the decipherment algorithm is corresponding with the encryption Encryption Algorithm of data to be transmitted.Specifically, after obtaining the encrypted packet, with decryption
Algorithm is decrypted, and decipherment algorithm here is corresponding with the Encryption Algorithm in above-mentioned specific embodiment, is two terminal agreements
Good Encryption Algorithm and decipherment algorithm, the data to be transmitted after decipherment algorithm decryption, after obtaining decryption.
It through the above steps, only can be to multiple fractionations according to preset rules after receiving multiple splitting datagrams
Data packet carries out correct close and wraps, and the data packet otherwise obtained will be out-of-order, then the transmission data obtained also will be disorderly
Code, enhances the safety of data receiver.
Above-mentioned steps S402 is related to carrying out conjunction packet to multiple splitting datagrams according to preset rules, obtains encryption data
Packet, in a preferred embodiment, the step include: each splitting datagram of decryption, obtain the volume of each splitting datagram
Number, conjunction packet is carried out to multiple splitting datagrams according to the number, obtains encrypted packet.Specifically, each splitting datagram exists
When server end is split, is also numbered and encrypted, after obtaining each splitting datagram, the decryption of advanced row data packet,
The number of each splitting datagram is obtained, in this way when closing packet, conjunction packet can be carried out to multiple splitting datagrams according to the number,
Obtain encrypted packet.
The data receiver method of the embodiment of the present invention closes received multiple splitting datagrams according to preset rules
Packet, only obtains the preset rules, can correctly know the length of the front and back data packet of each splitting datagram, avoids existing
Some data are transferred through disclosed network transmission protocol transmission, and information is easy to be intercepted, so as to cause data transmission security
The problem of.
The embodiment of the invention provides a kind of data transmission devices, and the device is for realizing above-described embodiment and preferred implementation
Mode, the descriptions that have already been made will not be repeated.As used below, the software of predetermined function may be implemented in term " module "
And/or the combination of hardware.Although device described in following embodiment is preferably realized with software, hardware or soft
The realization of the combination of part and hardware is also that may and be contemplated.
The embodiment of the present invention provides a kind of data transmission device, as shown in figure 5, the data transmission device includes: acquisition mould
Block 51, first processing module 52, Second processing module 53 and sending module 54;
The acquisition module 51, for obtaining data to be transmitted;Particular content is detailed in described in step S101;
The first processing module 52 obtains encrypted packet for encrypting the data to be transmitted with Encryption Algorithm;
Particular content is detailed in described in step S102;
The Second processing module 53 obtains multiple fractionation data for splitting encrypted packet by preset rules
Packet;Particular content is detailed in described in step S103;
The sending module 54, for sending multiple splitting datagrams;Particular content is detailed in described in step S104.
Data transmission module through the embodiment of the present invention is encrypted data to be transmitted with Encryption Algorithm
After data packet, then the encrypted packet is split by preset rules again, fractionation obtains multiple splitting datagrams, so i.e.
Make wherein any splitting datagram be intercepted, or whole splitting datagrams is intercepted, due to the number of the fractionation
According to packet be by preset rules carry out fractionation, if not knowing the preset rules, though obtain any splitting datagram or
Whole splitting datagrams then can not still obtain correct data to be transmitted, thus guarantee the safety in data transmission procedure,
The data transmission method for solving remote printing technology in the prior art is easy to be cracked, the low problem of safety.
The embodiment of the invention also provides a kind of data sinks, as shown in fig. 6, the data sink includes: to connect
Receive module 61, third processing module 62 and fourth processing module 63;
The receiving module 61, for receiving multiple splitting datagrams;Particular content is detailed in described in step S401;
The third processing module 62 obtains encryption number for carrying out conjunction packet to multiple splitting datagrams according to preset rules
According to packet;Particular content is detailed in described in step S402;
The fourth processing module 63, it is to be passed after being decrypted for encrypted packet to be decrypted with decipherment algorithm
Transmission of data;Wherein the decipherment algorithm is corresponding with the encryption Encryption Algorithm of data to be transmitted.Particular content is detailed in described in step S403.
Data sink through the embodiment of the present invention carries out received multiple splitting datagrams according to preset rules
Packet is closed, the preset rules is only obtained, can correctly know the length of the front and back data packet of each splitting datagram, avoid
Existing data are transferred through disclosed network transmission protocol transmission, and information is easy to be intercepted, so as to cause data transmission security
The problem of property.
The further function description of above-mentioned modules is identical as above-mentioned corresponding embodiment, and details are not described herein.
The embodiment of the invention also provides a kind of remote printing systems, as shown in fig. 7, the remote printing system includes client
End, server and printer, communication connection between client and server, communication connection between server and printer, entirely
The workflow of system is as follows: client be based on VOP software, receive user print data information integrate after, by this dozen
Print data information is encrypted with the second Encryption Algorithm, such as is encrypted by compression algorithm or completion method, obtains second
According to packet, second data packet is then encrypted again, obtains the second encrypted packet, by second encrypted packet according to default rule
It is then split, wherein the preset rules are generated by server stochastic and dynamic, and client and printer are sent to, and are split
After obtain multiple second splitting datagrams, preset rules here are server end and the rule that client is appointed in advance, can
There are many, then each second splitting datagram is grouped according to the network transmission protocol and is sent, each second fractionation data
Packet is sent to server end by wireless transmission, after server receives multiple second splitting datagrams, installs preset rules to more
A second splitting datagram carries out conjunction packet, such as carries out conjunction packet according to packet serial number, obtains the second encrypted packet, by this second plus
Ciphertext data packet is decrypted with the second decipherment algorithm, and the second decipherment algorithm here is corresponding with above-mentioned second Encryption Algorithm, decryption
The print data information after decryption, i.e. acquisition mimeograph documents and parameter are obtained afterwards.
The mimeograph documents and Parameter Switch are light by driver after obtaining the mimeograph documents and parameter by server
Then grid data are encrypted the raster data with the first Encryption Algorithm, such as carried out by compression algorithm or completion method
Encryption, obtains first according to packet, then encrypts first data packet again, obtain the first encrypted packet, by the first encryption number
It is split according to packet by preset rules, multiple splitting datagrams is obtained, then by the network transmission protocol, by multiple fractionation number
Be grouped transmission according to packet, by wireless transmission, printer grouping receives multiple splitting datagram, then according to packet serial number into
Row close packet, obtain the first encrypted packet, be decrypted with compressed code, obtain the first data packet, by first data packet with
First decipherment algorithm is decrypted, and obtains printing raster data and is printed, so far completes the transmission of entire data and printed
Journey.
In the workflow of entire remote printing system, client and server, server and printer use two kinds
Different algorithms, i.e. the first Encryption Algorithm and the second Encryption Algorithm, increase crack difficulty, and wherein Encryption Algorithm is in order to avoid increasing
The computing load of client and server, can choose completion method encryption or compression method encryption, the encryption rule by server not
Periodically updated simultaneously with client and printer respectively according to the rule that inside is formulated.Obtaining the first data packet and the second data
Packet, it can be understood as Crypted password when compressed data packets, client and server, server and printer use two kinds here
Different Crypted passwords, increase crack difficulty, which is also generated by server, aperiodically with client and printer
It carries out while updating.
The embodiment of the invention also provides a kind of mobile terminals, as shown in figure 8, the mobile terminal may include processor 81
With memory 82, wherein processor 81 can be connected with memory 82 by bus or other modes, to pass through bus in Fig. 8
For connection.
Processor 81 can be central processing unit (Central Processing Unit, CPU).Processor 81 can be with
For other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit
(Application Specific Integrated Circuit, ASIC), field programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
The combination of the chips such as discrete hardware components or above-mentioned all kinds of chips.
Memory 82 is used as a kind of non-transient computer readable storage medium, can be used for storing non-transient software program, non-
Transient computer executable program and module, such as the data transmission method or data receiver method correspondence in the embodiment of the present invention
Program instruction/module (for example, acquisition module 51 shown in fig. 5, first processing module 52, Second processing module 53 and send
Module 54, alternatively, receiving module shown in fig. 6 61, third processing module 62 and fourth processing module 63).Processor 81 passes through
Non-transient software program, instruction and the module being stored in memory 82 are run, is answered thereby executing the various functions of processor
With and data processing, i.e., realization above method embodiment in data transmission method or data receiver method.
Memory 82 may include storing program area and storage data area, wherein storing program area can storage program area,
Application program required at least one function;It storage data area can the data etc. that are created of storage processor 81.In addition, storage
Device 82 may include high-speed random access memory, can also include non-transient memory, for example, at least a magnetic disk storage
Part, flush memory device or other non-transient solid-state memories.In some embodiments, it includes relative to place that memory 82 is optional
The remotely located memory of device 81 is managed, these remote memories can pass through network connection to processor 81.The reality of above-mentioned network
Example includes but is not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
One or more of modules are stored in the memory 82, when being executed by the processor 81, are executed
Data transmission method or data receiver method as shown in Figure 4 in embodiment as shown in Figs. 1-3.
Above-mentioned mobile terminal detail can correspond to corresponding associated description in embodiment referring to FIG. 1 to 7
Understood with effect, details are not described herein again.
It is that can lead to it will be understood by those skilled in the art that realizing all or part of the process in above-described embodiment method
Computer program is crossed to instruct relevant hardware and complete, the program can be stored in a computer-readable storage medium
In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can for magnetic disk,
CD, read-only memory (Read-Only Memory, ROM), random access memory (Random Access
Memory, RAM), flash memory (Flash Memory), hard disk (Hard Disk Drive, abbreviation: HDD) or solid state hard disk
(Solid-State Drive, SSD) etc.;The storage medium can also include the combination of the memory of mentioned kind.
Although being described in conjunction with the accompanying the embodiment of the present invention, those skilled in the art can not depart from the present invention
Spirit and scope in the case where various modifications and variations can be made, such modifications and variations are each fallen within by appended claims institute
Within the scope of restriction.
Claims (18)
1. a kind of data transmission method characterized by comprising
Obtain data to be transmitted;
The data to be transmitted is encrypted with Encryption Algorithm, obtains encrypted packet;
The encrypted packet is split by preset rules, obtains multiple splitting datagrams;
Send multiple splitting datagrams.
2. data transmission method according to claim 1, which is characterized in that described to calculate the data to be transmitted to encrypt
The step of method is encrypted, and encrypted packet is obtained, comprising:
The data to be transmitted is encrypted with compression algorithm or completion method, obtains the first data packet;
First data packet is encrypted, the encrypted packet is obtained.
3. data transmission method according to claim 1, which is characterized in that described to advise the encrypted packet by default
The step of then being split, obtaining multiple splitting datagrams, comprising:
The encrypted packet is split as multiple splitting datagrams by the preset length rule;
Encryption is numbered to each splitting datagram, generates and numbers encrypted multiple splitting datagrams.
4. data transmission method according to claim 1-3, which is characterized in that described to send multiple fractionations
The step of data packet, comprising:
Each splitting datagram is grouped transmission by the network transmission protocol.
5. data transmission method according to claim 1, which is characterized in that the data to be transmitted is print data letter
Breath.
6. data transmission method according to claim 5, which is characterized in that the acquisition data to be transmitted the step of it
Afterwards, further includes:
The print data information is converted into raster data.
7. a kind of data receiver method characterized by comprising
Receive multiple splitting datagrams;
Conjunction packet is carried out to multiple splitting datagrams according to preset rules, obtains encrypted packet;
The encrypted packet is decrypted with decipherment algorithm, the data to be transmitted after being decrypted;Wherein, the decryption is calculated
Method is corresponding with the Encryption Algorithm for encrypting the data to be transmitted.
8. data receiver method according to claim 7, which is characterized in that described described to be torn open according to preset rules to multiple
The step of divided data packet carries out conjunction packet, obtains encrypted packet, comprising:
Each splitting datagram is decrypted, the number of each splitting datagram is obtained;
Conjunction packet is carried out to multiple splitting datagrams according to the number, obtains encrypted packet.
9. a kind of data transmission device characterized by comprising
Module is obtained, for obtaining data to be transmitted;
First processing module obtains encrypted packet for encrypting the data to be transmitted with Encryption Algorithm;
Second processing module obtains multiple splitting datagrams for splitting the encrypted packet by preset rules;
Sending module, for sending multiple splitting datagrams.
10. a kind of data sink characterized by comprising
Receiving module, for receiving multiple splitting datagrams;
Third processing module obtains encrypted packet for carrying out conjunction packet to multiple splitting datagrams according to preset rules;
Fourth processing module, for the encrypted packet to be decrypted with decipherment algorithm, the number to be transmitted after being decrypted
According to;Wherein, the decipherment algorithm is corresponding with the Encryption Algorithm for encrypting the data to be transmitted.
11. a kind of remote printing system, which is characterized in that including server and printer, the server and the printer
Communication connection;
The data to be transmitted is encrypted with the first Encryption Algorithm, is obtained for obtaining data to be transmitted by the server
First encrypted packet is split by preset rules, obtains multiple first splitting datagrams by the first encrypted packet,
Multiple first splitting datagrams are sent to the printer;Wherein, the data to be transmitted is print data information;
The printer is split according to preset rules to multiple described first for receiving multiple first splitting datagrams
Data packet carries out conjunction packet, obtains the first encrypted packet, and first encrypted packet is decrypted with the first decipherment algorithm,
Data to be transmitted after being decrypted, the data to be transmitted after printing the decryption;Wherein, first decipherment algorithm and encryption
First Encryption Algorithm of the data to be transmitted is corresponding.
12. remote printing system according to claim 11, which is characterized in that the preset rules are by the server
It generates at random.
13. remote printing system according to claim 11, which is characterized in that the server is also used to:
After obtaining the data to be transmitted, the data to be transmitted is encrypted with compression algorithm or completion method, obtains first
Data packet;First data packet is encrypted, first encrypted packet is obtained.
14. the described in any item remote printing systems of 1-13 according to claim 1, which is characterized in that the server is also used to:
After obtaining the first encrypted packet, first encrypted packet is split as multiple by the preset length rule
One splitting datagram, and encryption is numbered to each first splitting datagram, it generates number encrypted multiple first and tears open
Divided data packet.
15. the described in any item remote printing systems of 1-13 according to claim 1, which is characterized in that the server is also used to:
The print data information is converted into raster data.
16. a kind of remote printing system characterized by comprising server and client, the client and the server
Communication connection;
The client is calculated the data information to be printed with the second encryption for receiving the data information to be printed of user
Method is encrypted, and the second encrypted packet is obtained, and second encrypted packet is split by preset rules, is obtained multiple
Second splitting datagram sends multiple second splitting datagrams to the server;Wherein, the preset rules are by institute
State what server generated at random;
The server is split according to preset rules to multiple described second for receiving multiple second splitting datagrams
Data packet carries out conjunction packet, obtains the second encrypted packet, and second encrypted packet is decrypted with the second decipherment algorithm,
Print data information after being decrypted.
17. a kind of mobile terminal, comprising:
At least one processor;And
The memory being connect at least one described processor communication;Wherein, be stored with can be by described at least one for the memory
The computer program that a processor executes, the computer program are executed by least one described processor so that it is described at least
One processor perform claim requires data receiver described in the described in any item data transmission methods of 1-6 or claim 7 or 8
Method.
18. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program
Number described in data transmission method as claimed in any one of claims 1 to 6 or claim 7 or 8 is realized when being executed by processor
According to method of reseptance.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811489076.XA CN109379380A (en) | 2018-12-06 | 2018-12-06 | Data transmission method, data receiver method and remote printing system, mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811489076.XA CN109379380A (en) | 2018-12-06 | 2018-12-06 | Data transmission method, data receiver method and remote printing system, mobile terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109379380A true CN109379380A (en) | 2019-02-22 |
Family
ID=65376760
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811489076.XA Pending CN109379380A (en) | 2018-12-06 | 2018-12-06 | Data transmission method, data receiver method and remote printing system, mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109379380A (en) |
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110248362A (en) * | 2019-05-31 | 2019-09-17 | 西安源捷科技有限公司 | A kind of method, apparatus being used for transmission electric energy meter data information, electronic equipment and storage medium |
CN110278559A (en) * | 2019-05-31 | 2019-09-24 | 西安源捷科技有限公司 | A kind of data transmission method based on electric energy meter information, device, electronic equipment and storage medium |
CN110768990A (en) * | 2019-10-29 | 2020-02-07 | 深信服科技股份有限公司 | Data transmission method, system, equipment and computer readable storage medium |
CN110971594A (en) * | 2019-11-20 | 2020-04-07 | 北京连山科技股份有限公司 | Information interaction method and interaction server |
CN112073369A (en) * | 2020-07-29 | 2020-12-11 | 国网浙江桐乡市供电有限公司 | Encrypted communication method based on application layer |
CN112073370A (en) * | 2020-07-29 | 2020-12-11 | 国网浙江桐乡市供电有限公司 | Client encryption communication method |
CN112399408A (en) * | 2020-11-20 | 2021-02-23 | 张威 | Anti-monitoring communication method, corresponding communication equipment and communication system |
CN112468407A (en) * | 2020-12-15 | 2021-03-09 | 东莞中国科学院云计算产业技术创新与育成中心 | Data subpackage transmission method and device, computer equipment and storage medium |
CN112653652A (en) * | 2019-10-11 | 2021-04-13 | 中移物联网有限公司 | Streaming media transmission method, device, terminal and computer readable storage medium |
CN113221147A (en) * | 2021-05-27 | 2021-08-06 | 安天科技集团股份有限公司 | Data packet processing method, device and storage medium |
CN113382013A (en) * | 2021-06-21 | 2021-09-10 | 国网宁夏电力有限公司电力科学研究院 | Data mining system based on energy big data |
CN113507457A (en) * | 2021-06-25 | 2021-10-15 | 北京深度吉通信息技术有限公司 | Data transmission method and device |
CN114124416A (en) * | 2020-08-24 | 2022-03-01 | 中国航天系统工程有限公司 | System and method for quickly exchanging data between networks |
CN115426029A (en) * | 2022-08-29 | 2022-12-02 | 北京中联合超高清协同技术中心有限公司 | High-efficiency ultrahigh-definition digital film satellite transmission distribution and receiving method |
CN117749532A (en) * | 2024-02-07 | 2024-03-22 | 珠海芯烨电子科技有限公司 | Cloud printer data encryption method and related device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101335740A (en) * | 2007-06-26 | 2008-12-31 | 华为技术有限公司 | Method and system for transmitting and receiving data |
CN101594227A (en) * | 2008-05-30 | 2009-12-02 | 华为技术有限公司 | The method of data encryption and deciphering, device and communication system |
CN103780375A (en) * | 2012-10-19 | 2014-05-07 | 中国电信股份有限公司 | Data transmitting method and device, and data receiving method and device |
CN105577893A (en) * | 2014-10-13 | 2016-05-11 | 中兴通讯股份有限公司 | Method, device and terminal for information backup |
CN107086915A (en) * | 2017-05-25 | 2017-08-22 | 山东浪潮商用系统有限公司 | A kind of data transmission method, data sending terminal and data receiver |
CN107896222A (en) * | 2017-12-04 | 2018-04-10 | 山东渔翁信息技术股份有限公司 | A kind of data processing method and system |
-
2018
- 2018-12-06 CN CN201811489076.XA patent/CN109379380A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101335740A (en) * | 2007-06-26 | 2008-12-31 | 华为技术有限公司 | Method and system for transmitting and receiving data |
CN101594227A (en) * | 2008-05-30 | 2009-12-02 | 华为技术有限公司 | The method of data encryption and deciphering, device and communication system |
CN103780375A (en) * | 2012-10-19 | 2014-05-07 | 中国电信股份有限公司 | Data transmitting method and device, and data receiving method and device |
CN105577893A (en) * | 2014-10-13 | 2016-05-11 | 中兴通讯股份有限公司 | Method, device and terminal for information backup |
CN107086915A (en) * | 2017-05-25 | 2017-08-22 | 山东浪潮商用系统有限公司 | A kind of data transmission method, data sending terminal and data receiver |
CN107896222A (en) * | 2017-12-04 | 2018-04-10 | 山东渔翁信息技术股份有限公司 | A kind of data processing method and system |
Cited By (21)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110278559A (en) * | 2019-05-31 | 2019-09-24 | 西安源捷科技有限公司 | A kind of data transmission method based on electric energy meter information, device, electronic equipment and storage medium |
CN110248362A (en) * | 2019-05-31 | 2019-09-17 | 西安源捷科技有限公司 | A kind of method, apparatus being used for transmission electric energy meter data information, electronic equipment and storage medium |
CN112653652A (en) * | 2019-10-11 | 2021-04-13 | 中移物联网有限公司 | Streaming media transmission method, device, terminal and computer readable storage medium |
CN112653652B (en) * | 2019-10-11 | 2022-06-14 | 中移物联网有限公司 | Streaming media transmission method, device, terminal and computer readable storage medium |
CN110768990A (en) * | 2019-10-29 | 2020-02-07 | 深信服科技股份有限公司 | Data transmission method, system, equipment and computer readable storage medium |
CN110971594A (en) * | 2019-11-20 | 2020-04-07 | 北京连山科技股份有限公司 | Information interaction method and interaction server |
CN110971594B (en) * | 2019-11-20 | 2020-09-18 | 北京连山科技股份有限公司 | Information interaction method and interaction server |
CN112073369B (en) * | 2020-07-29 | 2022-06-17 | 国网浙江桐乡市供电有限公司 | Encrypted communication method based on application layer |
CN112073369A (en) * | 2020-07-29 | 2020-12-11 | 国网浙江桐乡市供电有限公司 | Encrypted communication method based on application layer |
CN112073370A (en) * | 2020-07-29 | 2020-12-11 | 国网浙江桐乡市供电有限公司 | Client encryption communication method |
CN114124416B (en) * | 2020-08-24 | 2024-03-08 | 中国航天系统工程有限公司 | System and method for quickly exchanging data between networks |
CN114124416A (en) * | 2020-08-24 | 2022-03-01 | 中国航天系统工程有限公司 | System and method for quickly exchanging data between networks |
CN112399408A (en) * | 2020-11-20 | 2021-02-23 | 张威 | Anti-monitoring communication method, corresponding communication equipment and communication system |
CN112468407A (en) * | 2020-12-15 | 2021-03-09 | 东莞中国科学院云计算产业技术创新与育成中心 | Data subpackage transmission method and device, computer equipment and storage medium |
CN113221147A (en) * | 2021-05-27 | 2021-08-06 | 安天科技集团股份有限公司 | Data packet processing method, device and storage medium |
CN113382013A (en) * | 2021-06-21 | 2021-09-10 | 国网宁夏电力有限公司电力科学研究院 | Data mining system based on energy big data |
CN113382013B (en) * | 2021-06-21 | 2022-12-09 | 国网宁夏电力有限公司电力科学研究院 | Data mining system based on energy big data |
CN113507457A (en) * | 2021-06-25 | 2021-10-15 | 北京深度吉通信息技术有限公司 | Data transmission method and device |
CN115426029A (en) * | 2022-08-29 | 2022-12-02 | 北京中联合超高清协同技术中心有限公司 | High-efficiency ultrahigh-definition digital film satellite transmission distribution and receiving method |
CN115426029B (en) * | 2022-08-29 | 2023-11-14 | 北京中联合超高清协同技术中心有限公司 | High-efficiency ultra-high definition digital film satellite transmission distribution and receiving method |
CN117749532A (en) * | 2024-02-07 | 2024-03-22 | 珠海芯烨电子科技有限公司 | Cloud printer data encryption method and related device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109379380A (en) | Data transmission method, data receiver method and remote printing system, mobile terminal | |
US11171936B2 (en) | Method, device, and system for offloading algorithms | |
CN107659406B (en) | Resource operation method and device | |
US20220276855A1 (en) | Method and apparatus for processing upgrade package of vehicle | |
CN110620762A (en) | RDMA (remote direct memory Access) -based data transmission method, network card, server and medium | |
CN109413219B (en) | Domain name resolution method and device, server and storage medium | |
CN107948170B (en) | Interface request parameter encryption method, device, equipment and readable storage medium | |
WO2020102974A1 (en) | Data access method, data access apparatus, and mobile terminal | |
CN112995138B (en) | Data communication method and device, electronic equipment and readable storage medium | |
CN106209373B (en) | Key generation system, data stamped signature and encryption system and method | |
CN109194701B (en) | Data processing method and device | |
US10419212B2 (en) | Methods, systems, apparatuses, and devices for securing network communications using multiple security protocols | |
CN107579964A (en) | Data transmission method and device | |
US11082411B2 (en) | RDMA-based data transmission method, network interface card, server and medium | |
CN106856468A (en) | A kind of TSM Security Agent device for being deployed in cloud storage service end and TSM Security Agent method | |
CN105592030A (en) | IP message processing method and device | |
CN110213292B (en) | Data sending method and device and data receiving method and device | |
CN107343001B (en) | Data processing method and device | |
CN113141333A (en) | Communication method, device, server, system and storage medium for network access device | |
CN110740139A (en) | secret key device and secret key management method, system, equipment and computer medium | |
CN111901126B (en) | Method for avoiding time consumption of decryption and signature verification module based on V2X protocol stack network layer | |
CN111262837B (en) | Data encryption method, data decryption method, system, equipment and medium | |
CN103929449B (en) | A kind of data transmission method and Website server, terminal | |
CN112333699A (en) | Internet of things communication protocol encryption method, equipment and storage medium | |
CN113422754A (en) | Data processing method and device, electronic equipment and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190222 |