CN109426465A - A kind of printer drive method - Google Patents
A kind of printer drive method Download PDFInfo
- Publication number
- CN109426465A CN109426465A CN201710790298.4A CN201710790298A CN109426465A CN 109426465 A CN109426465 A CN 109426465A CN 201710790298 A CN201710790298 A CN 201710790298A CN 109426465 A CN109426465 A CN 109426465A
- Authority
- CN
- China
- Prior art keywords
- printer
- authentication code
- data
- drive method
- 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1202—Dedicated interfaces to print systems specifically adapted to achieve a particular effect
- G06F3/1222—Increasing security of the print job
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1223—Dedicated interfaces to print systems specifically adapted to use a particular technique
- G06F3/1237—Print job management
- G06F3/1238—Secure printing, e.g. user identification, user rights for device usage, unallowed content, blanking portions or fields of a page, releasing held jobs
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Accessory Devices And Overall Control Thereof (AREA)
Abstract
A kind of printer drive method, structure is simple, is skillfully constructed, and increases a certification code generator and a deciphering module relative to normal printer using the safe printer of the method for the invention.All authentication codes that certification code generator generates in valid time domain cannot all repeat.Here, valid time domain refers to the life cycle of printer or the life cycle of deciphering module.The data that deciphering module is responsible for sending print driver are decrypted by key, while whether the authentication code that verifying decrypts is effective authentication code, if so, printer will print, otherwise printer will abandon the print job.
Description
Technical field
The present invention relates to printer field, specifically a kind of printer drive method.
Background technique
Printer is one of the output equipment that coupled computer uses, for computer disposal result to be printed upon related Jie
It in matter, is typically printed on paper, is modern society's office, the essential important equipment of household.
In real life, usually multiple computers are used in conjunction with more than one printer.Although printer and meter
It is to be carried out data transmission with plaintext version, but remain and cannot be neglected information security issue between calculation machine.It is illegal
Molecule can obtain the data printed by the method for monitored data packet, it is likely that will cause confidential leak.
Summary of the invention
The present invention is intended to provide a kind of printer drive method.
In order to achieve the object, the invention provides the following technical scheme: a kind of printer drive method, including following step
It is rapid:
Step S1, the printing driving with security module when user has data to print, on subscriber's main station
Program sends the request of authentication data to printer;
Step S2, subscriber's main station subscriber's main station receive will type information on the print medium instruction, at print media
One or more conditions of the printer are monitored when static;
Step S3, the printer for being equipped with security module receives the request that print driver is sent, and generates authentication code
And public key;
Step S4, one or more conditions based on the printer monitored when print media is in static, in response to
Instruct the first acceleration and the second acceleration for determining transfer printing medium;
Step S5, print driver will need the data printed to encrypt together with authentication code using block encryption algorithm,
And send encrypted print data to printer;
Step S6, from stationary state with the first acceleration transfer printing medium;And with the second acceleration transfer printing Jie
Matter;
Step S7, printer receives encrypted print data, using block encryption algorithm to the encrypted printing number
According to being decrypted, the data for needing to print and authentication code are obtained;
Step S8, the authentication code obtained after printer inspection decryption is with the authentication code for being sent to the print driver
It is no equal, if equal, print;Otherwise, the print job will be discarded.
Preferably, in step S6, the security module is for obtaining authentication data and encrypting recognizing in the authentication data
Card code and the data for needing to print.
Preferably, in step S6, the print media transmits a predetermined amount of time simultaneously with the first acceleration from stationary state
And it is then transmitted with the second acceleration until reaching object transmission speed.
Preferably, in step S6, first acceleration is less than the second acceleration.
Preferably, in step S8, compare the authentication code decrypted and be stored in current authentication code generation static storage area
Whether interior authentication code is equal.
Preferably, the authentication code decrypted and the authentication code such as phase being stored in current authentication code generation static storage area
Deng, then authentication data is effective, meanwhile, the authentication code that current authentication code generates in static storage area adds 1, and it is such as unequal, then in vain,
Discard the print job.
Preferably, ribbon driver is generated during printing control signal.
It is preferably based on and obtains data generation ribbon driver control signal.
Preferably, the length of the colour band and by the ratio difference between the length of print image be less than colour band speed and printing
Ratio between speed is poor.
Preferably, the authentication code in step S3 and public key are ultimately sent to print driver.
Compared with prior art, the beneficial effects of the present invention are: it is novel in design, be skillfully constructed, using side of the present invention
The safe printer of method increases a certification code generator and a deciphering module relative to normal printer.Authentication code is raw
All authentication codes generated in valid time domain of growing up to be a useful person cannot all repeat.Here, valid time domain refers to the life of printer
The life cycle of period or deciphering module.Deciphering module is responsible for the data for sending print driver and is carried out by key
Decryption, while whether the authentication code that verifying decrypts is effective authentication code, if so, printer will print, it is no
Then printer will abandon the print job.
Detailed description of the invention
Fig. 1 is a kind of work flow diagram of printer drive method.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
In order to guarantee the safety of information, sensitive data is encrypted as ciphertext and is transmitted, so that listener can not will be close
Text recovers the sensitive data printed, in order to resist Replay Attack.Invention introduces authentication code mechanism, and authentication code is by printing
Machine generates, and user each time is requested, and authentication code generated is all different, and can guarantee that listener carries out in this way
Authentication code in data packet used in Replay Attack can not be identical as the authentication code that current printer generates.
In the embodiment of the present invention, a kind of printer drive method, comprising the following steps:
Step S1, the printing driving with security module when user has data to print, on subscriber's main station
Program sends the request of authentication data to printer;The security module is for obtaining authentication data and encrypting the authentication data
In authentication code and the data that print of needs;
Step S2, subscriber's main station receive will type information on the print medium instruction, when print media is in it is static when
Monitor one or more conditions of the printer;
Step S3, the printer for being equipped with security module receives the request that print driver is sent, and generates authentication code
And public key, and the authentication code and public key are sent to print driver;
Step S4, one or more conditions based on the printer monitored when print media is in static, in response to
Instruct the first acceleration and the second acceleration for determining transfer printing medium;
Step S5, print driver will need the data printed to encrypt together with authentication code using block encryption algorithm,
And send encrypted print data to printer;
Step S6, from stationary state with the first acceleration transfer printing medium;And with the second acceleration transfer printing Jie
Matter;
Step S7, printer receives encrypted print data, using block encryption algorithm to the encrypted printing number
According to being decrypted, the data for needing to print and authentication code are obtained;
Step S8, the authentication code obtained after printer inspection decryption is with the authentication code for being sent to the print driver
It is no equal, if equal, print;Otherwise, the print job will be discarded.
Preferably, in step S6, the print media transmits a predetermined amount of time simultaneously with the first acceleration from stationary state
And then transmitted with the second acceleration until reaching object transmission speed, the first acceleration is less than the second acceleration.
Preferably, in step S8, compare the authentication code decrypted and be stored in current authentication code generation static storage area
Whether interior authentication code is equal, and such as equal, then authentication data is effective, meanwhile, current authentication code generates recognizing in static storage area
Card code adds 1, such as unequal, then in vain, discards the print job.
Preferably, ribbon driver is generated during printing control signal;Colour band driving is generated based on data are obtained
Device controls signal.
Preferably, the length of the colour band and by the ratio difference between the length of print image be less than colour band speed and printing
Ratio between speed is poor.
A certification code generator is increased relative to normal printer using the safe printer of the method for the invention
An and deciphering module.All authentication codes that certification code generator generates in valid time domain cannot all repeat.Here, have
Effect time domain refers to the life cycle of printer or the life cycle of deciphering module.Deciphering module is responsible for passing print driver
The data brought are decrypted by key, while whether the authentication code that verifying decrypts is effective authentication code, if so,
Printer will print, and otherwise printer will abandon the print job.
It is obvious to a person skilled in the art that invention is not limited to the details of the above exemplary embodiments, Er Qie
In the case where without departing substantially from spirit or essential attributes of the invention, the present invention can be realized in other specific forms.Therefore, no matter
From the point of view of which point, the present embodiments are to be considered as illustrative and not restrictive, and the scope of the present invention is by appended power
Benefit requires rather than above description limits, it is intended that all by what is fallen within the meaning and scope of the equivalent elements of the claims
Variation is included within the present invention.Any reference signs in the claims should not be construed as limiting the involved claims.
Claims (10)
1. a kind of printer drive method, which comprises the following steps:
Step S1, the print driver with security module when user has data to print, on subscriber's main station
The request of authentication data is sent to printer;
Step S2, subscriber's main station subscriber's main station receive will type information on the print medium instruction, when print media is in quiet
One or more conditions of the printer are monitored when only;
Step S3, the printer for being equipped with security module receives the request that print driver is sent, and generates authentication code and public affairs
Key;
Step S4, one or more conditions based on the printer monitored when print media is in static, in response to instruction
Determine the first acceleration and the second acceleration of transfer printing medium;
Step S5, print driver will need the data printed to encrypt together with authentication code using block encryption algorithm, and will
Encrypted print data sends printer to;
Step S6, from stationary state with the first acceleration transfer printing medium;And with the second acceleration transfer printing medium;
Step S7, printer receives encrypted print data, using block encryption algorithm to the encrypted print data into
Row decryption, obtains the data for needing to print and authentication code;
Step S8, printer examine obtained authentication code after decryption be sent to the print driver authentication code whether phase
Deng printing if equal;Otherwise, the print job will be discarded.
2. a kind of printer drive method according to claim 1, which is characterized in that in step S6, the security module
For obtaining authentication data and encrypting the data that authentication code in the authentication data and needs print.
3. a kind of printer drive method according to claim 1, which is characterized in that in step S6, the print media
It transmits a predetermined amount of time with the first acceleration from stationary state and is then transmitted with the second acceleration and passed up to reaching target
Defeated speed.
4. a kind of printer drive method according to claim 1 or 3, which is characterized in that in step S6, described first adds
Speed is less than the second acceleration.
5. a kind of printer drive method according to claim 1, which is characterized in that in step S8, compare and decrypt
Authentication code and be stored in current authentication code generate static storage area in authentication code it is whether equal.
6. a kind of printer drive method according to claim 5, which is characterized in that the authentication code decrypted and preservation
Authentication code in current authentication code generation static storage area is for example equal, then authentication data is effective, meanwhile, current authentication code generates
Authentication code in static storage area adds 1, such as unequal, then in vain, discards the print job.
7. a kind of printer drive method according to claim 1, which is characterized in that generate colour band during printing
Driver control signal.
8. a kind of printer drive method according to claim 1, which is characterized in that generate colour band drive based on data are obtained
Dynamic device controls signal.
9. a kind of printer drive method according to claim 1, which is characterized in that the length of the colour band and printed
The ratio that ratio difference between the length of image is less than between colour band speed and print speed is poor.
10. a kind of printer drive method according to claim 1, which is characterized in that authentication code and public affairs in step S3
Key is ultimately sent to print driver.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710790298.4A CN109426465A (en) | 2017-09-05 | 2017-09-05 | A kind of printer drive method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710790298.4A CN109426465A (en) | 2017-09-05 | 2017-09-05 | A kind of printer drive method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109426465A true CN109426465A (en) | 2019-03-05 |
Family
ID=65514062
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710790298.4A Pending CN109426465A (en) | 2017-09-05 | 2017-09-05 | A kind of printer drive method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109426465A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113221147A (en) * | 2021-05-27 | 2021-08-06 | 安天科技集团股份有限公司 | Data packet processing method, device and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1632738A (en) * | 2003-12-23 | 2005-06-29 | 联想(北京)有限公司 | Print control method for ensuring data transmission security |
CN102310659A (en) * | 2010-06-29 | 2012-01-11 | 东芝泰格有限公司 | Printer and method for driving the same |
US20120011580A1 (en) * | 2010-07-12 | 2012-01-12 | Jongsook Eun | Information processing apparatus, verification system, control method of verification system, program of control method of verification system, and storage medium |
CN107081973A (en) * | 2016-02-16 | 2017-08-22 | 佳能株式会社 | Abnormal Notification Method in printing device and printing device |
CN107107631A (en) * | 2014-10-31 | 2017-08-29 | 录象射流技术公司 | Printer and method |
-
2017
- 2017-09-05 CN CN201710790298.4A patent/CN109426465A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1632738A (en) * | 2003-12-23 | 2005-06-29 | 联想(北京)有限公司 | Print control method for ensuring data transmission security |
CN1297881C (en) * | 2003-12-23 | 2007-01-31 | 联想(北京)有限公司 | Print control method for ensuring data transmission security |
CN102310659A (en) * | 2010-06-29 | 2012-01-11 | 东芝泰格有限公司 | Printer and method for driving the same |
US20120011580A1 (en) * | 2010-07-12 | 2012-01-12 | Jongsook Eun | Information processing apparatus, verification system, control method of verification system, program of control method of verification system, and storage medium |
CN107107631A (en) * | 2014-10-31 | 2017-08-29 | 录象射流技术公司 | Printer and method |
CN107081973A (en) * | 2016-02-16 | 2017-08-22 | 佳能株式会社 | Abnormal Notification Method in printing device and printing device |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113221147A (en) * | 2021-05-27 | 2021-08-06 | 安天科技集团股份有限公司 | Data packet processing method, device and storage medium |
CN113221147B (en) * | 2021-05-27 | 2023-05-23 | 安天科技集团股份有限公司 | Data packet processing method, device and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP2060056B1 (en) | Method and apparatus for transmitting data using authentication | |
CN103546289B (en) | USB (universal serial bus) Key based secure data transmission method and system | |
US20170085543A1 (en) | Apparatus and method for exchanging encryption key | |
CN106101150B (en) | The method and system of Encryption Algorithm | |
CN110896401A (en) | Two-dimensional code-based unidirectional data stream transmission system and method between isolated networks | |
CN105554031A (en) | Encryption method, encryption apparatus, decryption method, decryption apparatus and terminal | |
KR101608815B1 (en) | Method and system for providing service encryption in closed type network | |
CN111079178B (en) | Method for desensitizing and backtracking trusted electronic medical record | |
CN112887311A (en) | Safety encryption method and device based on data transmission process | |
CN102598575A (en) | Method and system for the accelerated decryption of cryptographically protected user data units | |
CN109426465A (en) | A kind of printer drive method | |
CN104717213A (en) | Encryption and decryption method and system for network data transmission | |
JP2005012466A (en) | Message authentication method and system | |
CN106453380A (en) | Secret key negotiation method and apparatus | |
JP2006304199A (en) | Host computer, printer, method for controlling host computer and printer, computer program, and storage medium | |
CN105490812B (en) | The line protection method and device of data transmission | |
KR101578910B1 (en) | Different Units Same Security For Visual Observation System | |
KR102308248B1 (en) | Encryption Gateway equipped with quantum encryption chip based a quantum random number and method of providing encryption communication service between IoT device using the same | |
JP4813998B2 (en) | Printing system, client terminal device, server device, and printing device | |
Nadzri et al. | Implementation of Advanced Encryption Standard (AES) for wireless image transmission using LabVIEW | |
CN102098293B (en) | Method for previewing encrypted email | |
JP4018645B2 (en) | Printing apparatus, data processing method, storage medium, program | |
CN204414831U (en) | A kind of public security certificate printer | |
CN110636502A (en) | Wireless encryption communication method and system | |
WO2011052180A1 (en) | Encrypted message transmission device, program, encrypted message transmission method and authentication system |
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: 20190305 |