Summary of the invention
For solving the problems of the technologies described above, the invention provides a kind of print control system and adopt this system to print the method for control.Adopt said system and method can realize the identity to the printing people of electronic government documents, the time of printing and the control of printing umber.
A kind of print control system provided by the invention comprises printing device, also comprises:
External memory equipment is used to store the equipment printing control information of the numbering, term of life and the print record cryptographic hash that comprise equipment self;
Computing machine with described External memory equipment both-way communication, be used to install ODPS software, described computing machine utilizes described ODPS editor official document and sets the official document printing control information that comprises appointed equipment numbering, official document printing licensing term, printable umber and official document Globally Unique Identifier; Also be used to store the device numbering that comprises record and the print record storehouse of official document print record;
Described computing machine reads described equipment printing control information, the numbering of more described appointed equipment numbering and described equipment self, if consistent, whether the then more described official document mandate printing time limit is in described External memory equipment effective life; If then whether the print record of storing in the cryptographic hash authenticating computer by print record is distorted; If do not distort, judges also printable umber greater than zero back circulation printing official document, be zero withdrawing from until printable umber also.
Described External memory equipment numbering is unique in official document granting scope.
Described External memory equipment comprises smart card and the corresponding intelligent card read/write device that contains the equipment printing control information; Described intelligent card read/write device connects the serial communication interface or the parallel communication interface of described computing machine; Memory device printing control information in the described smart card, described equipment printing control information comprises the cryptographic hash of numbering, term of life and the print record of smart card self.
Described External memory equipment comprises mobile storage means; Described movable memory equipment connects the USB (universal serial bus) of described computing machine; Memory device printing control information in the described mobile storage means, described equipment printing control information comprises the cryptographic hash of numbering, term of life and the print record of mobile storage means self.
A kind of print control program provided by the invention comprises the steps:
(21) make and issue the External memory equipment that has the equipment printing control information, described equipment printing control information comprises the cryptographic hash of numbering, term of life and the corresponding print record information of equipment self;
Utilize word processor to generate the electronic government documents that contains the official document printing control information; Described official document printing control information comprises the official document printing control information of appointed equipment numbering, official document printing licensing term, printable umber and official document Globally Unique Identifier;
(22) described computing machine reads described equipment printing control information and prints the judgement of people's legitimacy, and whether more described appointed equipment numbering is consistent with the numbering of described equipment self, as if unanimity, changes step (23) over to, otherwise withdraws from;
(23) print the judgement of time limit validity, more described official document mandate is printed the time limit whether in described External memory equipment effective life, as if, then change step (24) over to, otherwise withdraw from;
Whether (24) judgement of print record storehouse integrality is distorted by the print record in the cryptographic hash checking print record storehouse of print record; If do not distort, then change step (25) over to, otherwise withdraw from;
(25) judge that whether also printable umber is greater than zero, if then change step (26) over to, otherwise withdraw from;
(26) official document is printed in circulation, and the printable umber that successively decreases, and upgrade print record is zero withdrawing from until printable umber also.
Described print control program also is included in the described computing machine and sets up, storage print record storehouse, comprises the device numbering and the official document print record of record in the described print record storehouse.
Described step (22) also comprises and judges whether to limit the step that official document is printed umber, if umber is printed in restriction, then changes step (23) over to and prints according to the umber that limits, and can not print when printing umber and being zero; Otherwise print any umber and withdraw from.
Described step (25) also comprises, judges the record that whether exists desire to print official document in the described print record storehouse according to the official document Globally Unique Identifier, if exist, continues then to judge whether printable umber is zero, if then withdraw from; Otherwise carry out printing and revise print record;
If do not exist print record and printable umber greater than zero, then carry out printing and add print record.
Described step (21) also comprises the step of encrypting official document.
Compared with prior art, added the External memory equipment that carries out both-way communication with computing machine in the print control system provided by the invention, can realize printing the identification and the control of person part by this External memory equipment, and realize the printing umber of document and the control of time-write interval, effectively guaranteed the seriousness that official document is printed.Simultaneously, in the print control program provided by the invention Hash operation is carried out in print record and be stored in the External memory equipment, whether distorted, thereby further guaranteed the seriousness that official document is printed in order to checking print record storehouse.And, during to the External memory equipment mandate,, guaranteed the ageing of record by removing the not record in date of expiration, improved the whole efficiency of system.
Embodiment
Describe the present invention in detail below in conjunction with accompanying drawing.
Please refer to Fig. 1, print control system provided by the present invention is made up of computing machine 2, printing device 1 and External memory equipment 3.External memory equipment 3 connects computing machine 2 by interface, realizes the both-way communication with computing machine 2.
In the present embodiment, External memory equipment 3 can adopt the combination of smart card (IC-card) and intelligent card read/write device (IC-card read write line), also can adopt movable memory equipment USBKEY etc.During 3 work of said external memory device, needing earlier, input password (for example PIN PIN) obtains the authority with computing machine 2 communications.Intelligent card read/write device is connected communication by the serial communication interface or the parallel communication interface of computing machine 2 with computing machine 2, and smart card adopts the contact communication modes.Movable memory equipment USBKEY carries out data communication by the USB interface and the computing machine 2 of computing machine 2.
In print control program provided by the invention, the personnel relevant with printing control comprise the printing people and print donor's (being the author of official document).Print the donor certain part of official document is printed qualification, print the people and abide by this qualification document printing.
Please see figures.1.and.2 simultaneously, in the present embodiment, the print control program of official document comprises step 21~step 25.
Step 21 is initial beamhouse operation step, is made and is issued External memory equipment 3 to subordinate's constituent parts by the system manager of government bodies or enterprise and institution, and the numbering of this External memory equipment 3 self is unique in official document granting scope.Comprise the equipment printing control information in the External memory equipment 3, deposit the term of life (being from date and cut-off date) of this External memory equipment.Usually before externally memory device 3 arrives the cut-off date, make a new mandate as required, new from date of authorizing is before the cut-off date of old mandate.For example, the effective life of existing External memory equipment is on Dec 31,1 day to 2003 January in 2003, new effective life is on Dec 31,1 day to 2004 January in 2004, for External memory equipment 3 when authorizing Dec 30 can continue to use, new usually effective life is set on Dec 31,30 days to 2004 Dec in 2003.Therefore, the new and old mandate of External memory equipment has of short duration overlapping during on Dec 31st, 30 days 1 Dec in 2003 this section.
In the step 21, also need every part of official document is provided with a Globally Unique Identifier GUID.The author utilizes word processor editor official document, in electronic government documents, set the official document printing control information of contents such as comprising the External memory equipment numbering of printing the i.e. appointment of people's identity, printable umber, official document mandate printing time limit and Globally Unique Identifier GUID, as required the official document that comprises the official document printing control information is carried out encryption simultaneously.
Official document is printed when authorizing, and the author writes the numbering of External memory equipment 3 in the official document head when document is printed mandate.At this, the numbering of External memory equipment 3 promptly corresponding to printing people's identity, is printed the External memory equipment 3 that the people only holds this numbering, the official document of just having the right to print, thus realized printing people's qualification.
In addition, when official document being printed mandate,, realized official document is printed the setting of umber by in the official document head, setting the umber that each External memory equipment 3 allows printing; Print the time limit by the mandate of in the official document head, indicating official document, realized restriction the time-write interval.
Simultaneously, print control information not by malicious modification, can carry out digital signature whole official document for the official document that guarantees the official document head; For limiting distribution scope (qualification can be opened the personnel of this official document), need make digital envelope with the certificate that is distributed the people, and the official document branch is sent out.
Last execution in step 22 is at first carried out four judgements and is determined whether carrying out printing to step 26.
Step 22 is judged the legitimacy of printing the people.Print the people when printing this document, whether whether more current External memory equipment 3 numberings of ODPS conform to the numbering of the mandate External memory equipment 3 of official document head record, and only conforming to just can print operation.
Step 23 is authorized the judgement of time-write interval.When printing, whether externally realize control in the effective life of memory device 3 by judging authorization date that the official document head comprises to the time-write interval, as if in effective life, then can print, otherwise, can not print.
Step 24 judges whether the print record storehouse is distorted.Print control program provided by the invention can be verified the authenticity of print record.Specific implementation is to change print record at every turn and all carry out Hash operation, and cryptographic hash is write in the corresponding External memory equipment 3.When whether needs checkings print record storehouse content is correct, then record carried out Hash operation, and the result is compared with the record in the External memory equipment 3, if unanimity as a result, then print record is real, correct, otherwise declare record distorted, does not print.
Step 25 is judged printable umber.Concrete operations are, the print record storehouse that is generating automatically when depositing the printing official document corresponding with External memory equipment 3 on the hard disk of computing machine 2, this record storehouse have been preserved and used the official document that this External memory equipment 3 printed and the printing umber of correspondence.The form of every record is that the corresponding relation of " official document Globally Unique Identifier GUID ← → printed umber " is right, and it has represented the printing situation of each official document.Before printing official document, in the print record storehouse, consult the corresponding record of this official document, if find this record, then according to the record in the record the umber of printing and allow maximum printable umber, can determine the umber that this official document is also printable, and a document of every printing just upgrades a print record.If do not find record, and official document permission printing, then printable umber is exactly the maximum printable umber that writes down in the official document printing control information, will add respective record in the record storehouse after the execution printing.
Step 26 enters the circulation printing step, is zero to withdraw from up to printable umber also.
It is pointed out that ODPS is a WPS office word processor in the present embodiment.
Please refer to Fig. 3, print the people in the present embodiment and can be government bodies and enterprise and institution, External memory equipment 3 is a printed card.Wherein the equipment printing control information of External memory equipment 3 comprise printed card card number, corresponding from date and cut-off date the printed card term of life, deposit the storage space of Hash (Hash) value.
Please refer to Fig. 4, the print record stock is placed on the hard disk of computing machine 2, and the print record storehouse comprises following data message: printed card card number (i.e. the External memory equipment of record numbering) and record number, each official document type information.Wherein, the printed card card number becomes record-header with the record array; Each official document type information forms corresponding to the official document of Globally Unique Identifier and has printed umber and authorized the record of printing the time limit.
Please refer to Fig. 5, printed card is corresponding to External memory equipment shown in Figure 13 in the present embodiment.The official document printing control information of electronic government documents head comprises prints the Globally Unique Identifier GUID that card number, authorization date, printable umber and program generate.
In the present embodiment, the step of generation official document printing control information is as follows:
At first, the author is the selective printing people in printable people's tabulation, owing to provide printing people title and printing card number pairing with it simultaneously in the tabulation, so can will obtain printing in the official document printing control information that card number writes the official document head;
Secondly, obtain current mandate date printed, be provided with and allow the printing umber, generate the Globally Unique Identifier of this official document correspondence, and above-mentioned information is write the document head.In the present embodiment, if print umber-1, then expression is printed arbitrarily; If 0, then can not print; If n, then printable n part.
At last, make digital signature and digital envelope.Not by malicious modification, need carry out digital signature for guaranteeing the official document printing control information to the whole official document that comprises control information; For limiting distribution scope (qualification has only someone or some people can open official document), need make digital envelope with the certificate that is distributed the people.
The a document of every printing will generate a corresponding record in the print record storehouse, in order to improve running efficiency of system, reduce the waste of the time and space, introduced the notion of printed card date of expiration, when printing the card mandate at every turn, the not record purge in date of expiration will be guaranteed the ageing of record, improve the whole efficiency of system.
It is pointed out that except the system manager anyone does not have the data in the weight update External memory equipment 3.The system manager should in time back up the print record storehouse of printing in people's hard disk, crosses after date at certain External memory equipment and should delete record in (or/and filing) corresponding with it print record storehouse.
Please refer to Fig. 6, print the people and receive electronic government documents, open digital envelope, print according to following each operation steps.
At first, execution in step 51 is opened digital envelope, to search the corresponding controlling recording of printing of printed card; Enter step 52 then, judge whether to find corresponding controlling recording, if can not find, execution in step 53, prompting user printed card is incorrect, does not print; Otherwise, enter step 54 and obtain printing umber and judge permission printing umber, be-1 if allow to print umber, then execution in step 56, skip other steps, directly carry out unconfined normal printing; If allowing to print umber is 0, then change step 55 over to, the prompting user can not print; If permission printing umber is the Any Digit greater than 0, then enter step 57.
Step 57 is a determining step, and whether in the printed card term of life, if not in term of life, change step 58 over to, the prompting customer documentation is spent the printing time limit, can not print in order to the authorization date of judging official document; If in term of life, then execution in step 59, the integrality in checking print record storehouse, if the print record storehouse is imperfect, then execution in step 60, and prompting user print record storehouse is destroyed, and does not print directly and withdraws from; If the record storehouse is complete, then execution in step 61.
In step 61, Globally Unique Identifier GUID according to document, in the print record storehouse, seek the record of printing umber corresponding with this GUID, if do not find this record, a then newly-built record, and set that to have printed umber be 0, if find, then equal the definition that document allows to print umber and the difference of the umber of having printed according to the also printable umber of document, draw also printable umber after, change step 62 over to, whether the umber that judgement can also be printed if also printable umber be 0, changes step 63 greater than 0, the prompting user prints the umber restriction and arrives, can not print again; If also printable umber is greater than 0, then execution in step 64, and the umber of wanting to print is set to print umber; Enter step 65 then to step 67, the circulation document printing after step 67 judges that the user wants to print umber and equals 0, is jumped out directly end of this circulation.When carrying out the circulation printing, a document of every printing, then the relative recording in the print record storehouse adds 1, again print record is carried out Hash operation and the result is write printed card.
It is pointed out that print control system provided by the invention and method not only are applied to the electronic government documents that government bodies, enterprises and institutions issue, and also can be other electronic document.Certainly, print people and donor and also not only be confined to government bodies, enterprises and institutions, also can need control unit or the individual that document is printed for other.
The above only is a preferred implementation of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.