Summary of the invention
In view of this, the invention solves a technical problem be to provide the data transmission method of printer a kind of.
According to an aspect of the present invention, a kind of data transmission method of printer is provided, comprising: rights management unit is rawAt public key and private key corresponding with the public key, and the public key and the private key are sent respectively to printing management serverAnd printer;The printing management server is encrypted printing request instruction by the public key, generates encryption and beatsPrint request instruction;The printer receives the encrypted print request instruction, is asked by the private key to the encrypted printIt asks instruction to be decrypted, obtains the print request instruction;The printer is extracted from print request instruction and is testedDemonstrate,prove code information, judge whether the verification code information and the printing identifying code itself stored consistent, if unanimously, verify atFunction;The printer executes the print out task that the printing management server is sent after determining be proved to be successful.
Optionally, the printer receives the printing identifying code of the rights management unit transmission and stores.
Optionally, the printer receives the print out task that the printing management server is sent, from print out taskEncrypted print file is obtained, the encrypted print file is decrypted using the private key, obtains original print file,And the original print file is printed.
Optionally, after original print file printout success, the printer delete the encrypted print file andThe original print file.
Optionally, the printer sends rights management unit for the verification information that the user of acquisition inputs and carries out userCertification;The rights management unit determines the corresponding printing account of this user, determines print management permission based on this printing account;Verification result and print management permission are sent to the printer by the rights management unit.
Optionally, the user name of acquisition, password are sent to the rights management unit by the printer;The permission pipeReason equipment carries out the user name, password to verify and determine printing account.
Optionally, the fingerprint of acquisition is carried out numeralization processing by preset fingerprint algorithm by the printer, obtains fingerprintCharacteristic information, and fingerprint feature information is sent to the rights management unit and is verified;The rights management unit is to instituteFingerprint feature information is stated to carry out verifying and determining printing account.
Optionally, the sound of acquisition is carried out numerical value by preset vocal print algorithm by the sound of the printer acquisition userChange processing, obtains vocal print feature information, and vocal print feature information is sent to the rights management unit and is verified;The powerLimit management equipment carries out the vocal print feature information to verify and determine printing account.
Optionally, the printer obtains facial image to be identified, extract in the facial image to be identified toIt identifies face characteristic, the face characteristic to be identified is sent to the rights management unit and is verified;The rights managementEquipment carries out the face characteristic to verify and determine printing account.
Optionally, the printer obtains GPS position information by GPS module, and GPS position information is sent to the powerLimit management equipment;The rights management unit determines the position of the printer based on the GPS position information.
Optionally, the communication mode packet of the printer and the printing management server and the rights management unitIt includes: wifi, Ethernet, 4G.
The data transmission method of printer of the invention receives the print request that printing management server is sent and instructs and takeThe printing identifying code of verification code information and itself storage is carried out card code, if unanimously, printed, made by verification code informationPrint out task is decrypted and executed to encrypted print file with encrypted message, the identity of user can be authenticated,Printing security mechanism can be provided, by realizing printing encryption and before encrypted document printing to the identity validation of user, eliminatedDocument print haves the defects that risk of divulging a secret, and avoids since file to be printed passes through safety brought by clear-text way transmissionPotential problem.
Specific embodiment
Carry out the various exemplary embodiments of detailed description of the present invention now with reference to attached drawing.It should also be noted that unless in addition havingBody explanation, the unlimited system of component and the positioned opposite of step, numerical expression and the numerical value otherwise illustrated in these embodiments is originallyThe range of invention.
Simultaneously, it should be appreciated that for ease of description, the size of various pieces shown in attached drawing is not according to realityProportionate relationship draw.
Be to the description only actually of at least one exemplary embodiment below it is illustrative, never as to the present inventionAnd its application or any restrictions used.
Technology, method and apparatus known to person of ordinary skill in the relevant may be not discussed in detail, but suitableIn the case of, the technology, method and apparatus should be considered as part of specification.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang YiIt is defined in a attached drawing, then in subsequent attached drawing does not need that it is further discussed.
The embodiment of the present invention can be applied to computer system/server, can be with numerous other general or specialized calculatingSystem environments or configuration operate together.Suitable for be used together with computer system/server well-known computing system, ringThe example of border and/or configuration includes but is not limited to: personal computer system, server computer system, thin client, thick clientMachine, hand-held or laptop devices, microprocessor-based system, set-top box, programmable consumer electronics, NetPC Network PC,Little type Ji calculates machine Xi Tong ﹑ large computer system and the distributed cloud computing technology environment including above-mentioned any system, etc..
Computer system/server can be in computer system executable instruction (such as journey executed by computer systemSequence module) general context under describe.In general, program module may include routine, program, target program, component, logic, numberAccording to structure etc., they execute specific task or realize specific abstract data type.Computer system/server can be withImplement in distributed cloud computing environment, in distributed cloud computing environment, task is long-range by what is be linked through a communication networkManage what equipment executed.In distributed cloud computing environment, it includes the Local or Remote meter for storing equipment that program module, which can be located at,It calculates in system storage medium.
Fig. 1 is the flow diagram of one embodiment of the data transmission method of printer according to the present invention, such as Fig. 1 instituteShow:
Step 101, rights management unit generates public key and private key corresponding with public key, and public key and private key are sent out respectivelyGive printing management server and printer.Rights management unit provides the functions such as user's checking, printing authorization.Print management clothesBusiness device can be printing Central Management Server etc..
Step 102, printing management server is encrypted printing request instruction by public key, generates encrypted printRequest instruction.
Step 103, printer receives encrypted print request instruction, is solved by the instruction of private key pair encryption print requestClose processing obtains print request instruction.
Step 104, printer extracts verification code information from print request instruction, judges verification code information and itself storagePrinting identifying code it is whether consistent, if unanimously, be proved to be successful.Verification code information can be set of number etc., and printer connectsIt receives the printing identifying code that rights management unit is sent and stores.If inconsistent, identifying code authentication failed message is sent to and is beatenPrint management server.
Step 105, printer executes the print out task that printing management server is sent after determining be proved to be successful.PrintingThe communication mode of machine and printing management server and rights management unit includes: wifi, Ethernet, 4G etc..
Printer receives the print out task of printing management server transmission, and encrypted print text is obtained from print out taskPart is decrypted using private key pair encryption mimeograph documents, obtains original print file, and original print file is beatenPrint.The mode encrypted, decrypted can be carried out asymmetric encryption, be carried out asymmetric decryption using asymmetric key algorithm etc.The method of use includes: RSA Algorithm, knapsack algorithm etc..
After original print file printout success, printer deletes encrypted print file and original print file.PrinterIt can carry out encrypted print file and original print file backup, prevent accident power-off.
Fig. 2 is that the user right verifying process of one embodiment of the data transmission method of printer according to the present invention is shownIt is intended to, as shown in Figure 2:
Step 201, printer sends rights management unit progress user for the verification information that the user of acquisition inputs and recognizesCard.
Step 202, rights management unit determines the corresponding printing account of this user, determines printing tube based on this printing accountManage permission.
Step 203, verification result and print management permission are sent to printer by rights management unit, based on verifying knotFruit determines whether user is able to carry out corresponding operation.
When user needs to configure printer, manage, need to verify the identity of user.Rights management is setIt is standby to pre-establish the corresponding printing account of user and print right.Authentication information includes: user name, password, soundLine, fingerprint, facial characteristics etc..Whether print right includes which printer can be used, can be managed to printer.The mode authenticated for user can be cipher authentication, finger print identifying, face recognition, Application on Voiceprint Recognition etc..
The user name that touch screen unit acquires, password are sent to rights management unit by printer.Rights management unit pairUser name, password carry out verifying and determining printing account, obtain user right.The fingerprint of acquisition is pressed preset fingerprint by printerAlgorithm carries out numeralization processing, obtains fingerprint feature information, and fingerprint feature information is sent to rights management unit and is testedCard.Rights management unit carries out fingerprint feature information to verify and determine printing account, obtains user right.
Printer acquires the sound of user, and the sound of acquisition is carried out numeralization processing by preset vocal print algorithm, obtainsVocal print feature information, and vocal print feature information is sent to rights management unit and is verified.Rights management unit is to vocal print spyReference breath carries out verifying and determining printing account, obtains user right.Printer obtains facial image to be identified, extracts wait knowFace characteristic to be identified in other facial image, is sent to rights management unit for face characteristic to be identified and verifies.PowerLimit management equipment carries out face characteristic to verify and determine printing account, obtains user right.Printer is obtained by GPS moduleGPS position information is sent to rights management unit by GPS position information.Rights management unit is beaten based on GPS position information determinationThe position of print machine.
The data transmission method of the printer provided in above-described embodiment, printer receive what printing management server was sentPrint request instructs and takes verification code information, and the printing identifying code of verification code information and itself storage is carried out card code, if oneIt causes, is then printed, be decrypted and execute print out task to encrypted print file using encrypted message, it can be to userIdentity authenticated, printing security mechanism can be provided, by realize printing encryption and encrypted document printing before to userIdentity validation, eliminate document print and have the defects that risk of divulging a secret, avoid since file to be printed passes through clear-text waySecurity hidden trouble brought by transmitting, so that printing is more convenient, reliable.
Method and system of the invention may be achieved in many ways.For example, can by software, hardware, firmware orSoftware, hardware, firmware any combination realize method and system of the invention.The said sequence of the step of for method is onlyIn order to be illustrated, the step of method of the invention, is not limited to sequence described in detail above, especially says unless otherwiseIt is bright.In addition, in some embodiments, also the present invention can be embodied as to record program in the recording medium, these programs includeFor realizing machine readable instructions according to the method for the present invention.Thus, the present invention also covers storage for executing according to this hairThe recording medium of the program of bright method.