Cloud printing platform printing method based on encryption technology
By adopting encryption technology and real-time monitoring mechanisms in the cloud printing platform, the problems of data security and task stability in cloud printing technology are solved, and high security and high reliability cloud printing services are achieved.
Patent Information
- Application Number
- CN202510306434.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-14
- Publication Date
- 2025-04-25
AI Technical Summary
Cloud printing technology has security and stability problems. Printing data is easily stolen or tampered during Internet transmission, and problems such as network interruption may lead to interruption and loss of printing tasks.
The cloud printing platform printing method based on encryption technology is adopted to authenticate cloud printers and users through symmetric encryption algorithms to ensure that only authorized device access is allowed. Combined with Socket communication and TCP protocol, the printing task status is monitored in real time to prevent task loss.
It improves the security of data transmission, reduces the risk of data stolen or tampered, significantly reduces the risk of printing tasks lost, and improves the reliability and user satisfaction of the system.
Smart Images

Figure CN119883151A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of cloud printing technology, and in particular to a cloud printing platform printing method based on encryption technology. Background Art
[0002] Cloud printing is a technology that sends print tasks to remote printers via the Internet. It allows users to send documents, pictures or other files to printers connected to the cloud printing network through cloud services without having to be physically connected to the printer or being in the same local area network. This technology allows users to initiate print tasks from any location and any device as long as there is an Internet connection, which represents the development trend of future printing technology; Although cloud printing technology provides convenience and flexibility, it still has the following shortcomings: 1. Security issues. Since the printing data needs to be transmitted through the Internet, there is a risk of theft or tampering. 2. Stability issues: During the printing process, there is a risk of interruption and loss of the printing task due to network interruption and other problems. Based on the above problems, this application proposes a cloud printing platform printing method based on encryption technology. Summary of the invention
[0003] Based on the technical problems existing in the background technology, the present invention proposes a cloud printing platform printing method based on encryption technology.
[0004] The present invention proposes a cloud printing platform printing method based on encryption technology, comprising the following steps: S1: The cloud printer establishes a socket to send a connection instruction and sends it to the cloud print server. The cloud print server performs symmetric encryption verification on the cloud printer to determine whether the cloud printer is authorized; S2: After verification, the cloud print server establishes a connection with the cloud printer and returns a successful connection instruction to the cloud printer; S3: The cloud printing server creates a TCP-based protocol with the cloud printer, receives the status data of the cloud printer every 30 seconds, and determines whether the cloud printer is online. If it is online, it will continue to monitor the data sent by the cloud printer. If it is not online, the socket connection will be disconnected. S4: After the cloud printing server is successfully connected to the cloud printer, the user accesses the cloud printing platform through the terminal device and enters the account information to log in. The cloud printing server verifies the user's identity in an encrypted manner to ensure that only authorized users can access the cloud printing platform; S5: After successfully logging in, the user can select the file or text to be printed, set the printing parameters through the cloud printing platform interface, and bind the cloud printer ID. After the settings are completed, the user submits the printing task; S6: The print server searches for the socket thread according to the ID of the cloud printer. The print task in S5 is transmitted to the cloud print server through socket communication. After receiving the task, the cloud print server determines the cloud printer communication queue according to the cloud printer ID selected by the user on the cloud print platform. The cloud print server sends the print task to the target cloud printer and communicates securely with the cloud printer that has established the TCP protocol. S7: After receiving the print task sent by the cloud print server, the cloud printer executes printing step by step according to the parameters set by the user; S8: The cloud printing server continuously monitors the task execution to ensure that the data flow is not interrupted and there are no errors or omissions in the printing process; S9: After printing is completed, the cloud printing server saves the task status and results to the database and pushes them to the terminal device to ensure that the user can obtain the execution status of the printing task in real time.
[0005] Preferably, in S1, the cloud printing server is used to manage and process users' printing tasks, and is responsible for transmitting, storing, queuing and sending tasks to the target printer, while performing security encryption and identity authentication functions. The cloud printer is a printer device connected to the cloud printing server, and is used to receive and execute printing tasks from the cloud printing server.
[0006] Preferably, in S1, the connection instruction sent by the Socket is byte data consisting of a data header + a cloud server URL address + a private key, and the byte data includes an access password; The specific logical steps of S1 are as follows: S101: A Socket object is established through the cloud printer, and the byte data consisting of the data header + cloud server URL address + private key is encrypted using the SHA1 password algorithm to generate new byte data, and then 18 bytes from the end are intercepted as the access password and placed in the byte data of the first request of the cloud printer to the cloud print server, and sent to the cloud print server; S102: The cloud printing server intercepts the byte data sent by the cloud printer in S101, and then intercepts the access password. The cloud printing server uses the same encryption algorithm, data header + cloud server URL address + private key to calculate whether the access password generated by the cloud printing server is consistent with the access password in the cloud printer byte data. If they are consistent, the cloud printer is considered to be an authorized device, otherwise it is an illegal device.
[0007] Preferably, in S5, the printing parameters include the printing type, the number of print copies and the encoding characters.
[0008] Preferably, in S8, after the printing task is interrupted, the cloud printing server saves the printer data to the database and sets it as printing failure, and provides a function of reprinting missed orders.
[0009] Preferably, in S4, the terminal device may be any device that supports Internet connection, including but not limited to computers, smart phones and tablets, and the user sends the print task through the cloud printing platform on the terminal device.
[0010] Preferably, in S6, the cloud printing platform is set in the terminal device, and the page of the cloud printing platform is provided with buttons for printing management, printer binding, printer testing, printer tasks, announcement management, statistics module and personal center; The printer management includes printer list, printer query, printer unbinding and printer status; printer binding includes printer ID binding, printer test and printer batch binding; printer test includes printer printing according to printer type; printer task includes printer task list, printer task query, printer task details and printer task reprinting; announcement management includes announcement list, announcement publishing and announcement modification; the statistics module includes the current weekly online number statistics, the current weekly device connection statistics, the user source location and the device source location; the personal center includes the modification of registration information.
[0011] Compared with the prior art, the present invention has the following beneficial effects: The cloud printing server looks up the socket thread according to the cloud printer's ID to communicate with the cloud printer, avoiding unauthorized device access. Combined with the symmetric encryption algorithm, it ensures that data is fully protected during transmission, ensuring the security of data transmission and reducing the risk of data theft or tampering. After receiving the print task, the cloud print server sends data to the target cloud printer through the socket and monitors the task status in real time. If there is an interruption or abnormality during the printing process, the task status will be saved immediately and the task recovery function will be supported, which significantly reduces the risk of task loss and ensures that users can resume printing in time, thus improving system reliability and user satisfaction. Users can send print tasks to cloud printers via the Internet from anywhere in the world without having to maintain a physical connection with the cloud printer or being in the same local area network. This solves the limitation of traditional printing that must be close to the device and meets the needs of mobile office and cross-regional work. In addition, through Internet connection, different operating systems and devices can be seamlessly connected to the cloud printing platform, eliminating compatibility issues between different devices. When printing, you can select the most suitable cloud printer according to your needs, thereby reducing resource waste, and automatically schedule tasks between multiple cloud printers to improve printing efficiency; The present invention adopts cloud computing technology to achieve remote connection between terminal devices and cloud printers through the Internet, breaking the limitation that traditional printers must communicate through physical connections or local area networks and eliminating compatibility issues between different devices. By combining socket communication and symmetric encryption algorithms, data is fully protected during transmission, ensuring the security of data transmission and reducing the risk of data theft or tampering. In addition, by real-time monitoring of printing tasks during the printing process, the risk of task loss is significantly reduced, ensuring that users can resume printing in time, and improving the reliability of the system and user satisfaction. In addition, when printing, a specific cloud printer can be selected for task allocation according to actual needs to avoid task mismatch or delay caused by automatic scheduling, thereby improving the controllability and stability of the system. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Figure 1 This is a flow chart of a cloud printing platform printing method based on encryption technology proposed by the present invention; Figure 2 This is a functional module diagram of a cloud printing platform in a cloud printing platform printing method based on encryption technology proposed by the present invention. DETAILED DESCRIPTION
[0013] The present invention will be further explained below in conjunction with specific embodiments. Example
[0014] Reference Figure 1-2 , this embodiment proposes a cloud printing platform printing method based on encryption technology, including the following steps: S1: The cloud printer establishes a socket to send a connection instruction and sends it to the cloud print server. The cloud print server performs symmetric encryption verification on the cloud printer to determine whether the cloud printer is authorized. The cloud print server is used to manage and process the user's print tasks, and is responsible for the transmission, storage, queuing and sending of tasks to the target printer, while performing security encryption and identity authentication functions. The cloud printer is a printer device connected to the cloud print server, and is used to receive and execute print tasks from the cloud print server; The connection instruction sent by Socket is byte data consisting of data header + cloud server URL address + private key, and the byte data contains the access password; The specific logical steps of S1 are as follows: S101: A Socket object is established through the cloud printer, and the byte data consisting of the data header + cloud server URL address + private key is encrypted using the SHA1 password algorithm to generate new byte data, and then 18 bytes from the end are intercepted as the access password and placed in the byte data of the first request of the cloud printer to the cloud print server, and sent to the cloud print server; S102: The cloud printing server intercepts the byte data sent by the cloud printer in S101, and then intercepts the access password. The cloud printing server uses the same encryption algorithm (data header + cloud server URL address + private key) to calculate whether the access password generated by the cloud printing server is consistent with the access password in the cloud printer byte data. If they are consistent, the cloud printer is considered to be an authorized device, otherwise it is an illegal device; S2: After verification, the cloud print server establishes a connection with the cloud printer and returns a successful connection instruction to the cloud printer; S3: The cloud printing server creates a TCP-based protocol with the cloud printer, receives the status data of the cloud printer every 30 seconds, and determines whether the cloud printer is online. If it is online, it will continue to monitor the data sent by the cloud printer. If it is not online, the socket connection will be disconnected. S4: After the cloud printing server is successfully connected to the cloud printer, the user accesses the cloud printing platform through the terminal device and enters the account information to log in. The cloud printing server verifies the user's identity in an encrypted manner to ensure that only authorized users can access the cloud printing platform; The terminal device can be any device that supports Internet connection, including but not limited to computers, smart phones and tablets. Users can send print tasks through the cloud printing platform on the terminal device; S5: After successfully logging in, the user can select the file or text to be printed, set the printing parameters through the cloud printing platform interface, and bind the ID of the cloud printer. After the settings are completed, the user submits the printing task, where the printing parameters include the printing type, number of copies, and encoding characters; In addition, by manually selecting the cloud printer ID, you can choose a specific printing device according to your needs, effectively avoiding idle or overused devices; S6: The print server searches for the socket thread according to the ID of the cloud printer. The print task in S5 is transmitted to the cloud print server through socket communication. After receiving the task, the cloud print server determines the cloud printer communication queue according to the cloud printer ID selected by the user on the cloud print platform. The cloud print server sends the print task to the target cloud printer and communicates securely with the cloud printer that has established the TCP protocol. The cloud printing platform is set in the terminal device. The page of the cloud printing platform is equipped with buttons for printing management, printer binding, printer testing, printer tasks, announcement management, statistics module and personal center; Printer management includes printer list, printer query, printer unbinding and printer status; printer binding includes printer ID binding, printer test and printer batch binding; printer test includes printer printing according to printer type; printer tasks include printer task list, printer task query, printer task details and printer task reprint; announcement management includes announcement list, announcement release and announcement modification; statistics module includes statistics of online users in the current week, statistics of device connections in the current week, user source location and device source location; personal center includes modification of registration information; S7: After receiving the print task sent by the cloud print server, the cloud printer executes printing step by step according to the parameters set by the user; S8: The cloud printing server continuously monitors the task execution status to ensure that the data flow is not interrupted and there are no errors or omissions in the printing process. After the printing task is interrupted, the cloud printing server saves the printer data to the database and sets it as printing failure, and provides a function of reprinting missed orders; S9: After printing is completed, the cloud printing server saves the task status and results to the database and pushes them to the terminal device to ensure that the user can obtain the execution status of the printing task in real time; This embodiment uses cloud computing technology to achieve remote connection between terminal devices and cloud printers through the Internet, breaking the limitation that traditional printers must communicate through physical connections or local area networks and eliminating compatibility issues between different devices. By combining socket communication and symmetric encryption algorithms, data is fully protected during transmission, ensuring the security of data transmission and reducing the risk of data theft or tampering. In addition, by real-time monitoring of printing tasks during the printing process, the risk of task loss is significantly reduced, ensuring that users can resume printing in time, and improving system reliability and user satisfaction. In addition, when printing, you can independently select a specific cloud printer for task allocation according to actual needs, avoiding task mismatch or delays that may be caused by automated scheduling, thereby improving the controllability and stability of the system.
[0015] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical scheme and inventive concept of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.
Claims
1. A cloud printing platform printing method based on encryption technology, characterized in that: The following steps are involved: S1: The cloud printer establishes a Socket to send a connection instruction and sends it to the cloud print server. The cloud print server performs symmetric encryption verification on the cloud printer to determine whether the cloud printer is authorized. The Socket sends a connection instruction as byte data consisting of a data header + cloud server URL address + private key. The byte data contains the access password. The specific logical steps are as follows: S101: A Socket object is established through the cloud printer, and the byte data consisting of the data header + cloud server URL address + private key is encrypted using the SHA1 password algorithm to generate new byte data, and then 18 bytes from the end are intercepted as the access password and placed in the byte data of the first request of the cloud printer to the cloud print server, and sent to the cloud print server; S102: The cloud printing server intercepts the byte data sent by the cloud printer in S101, and then intercepts the access password. The cloud printing server uses the same encryption algorithm to calculate whether the access password generated by the cloud printing server is consistent with the access password in the byte data of the cloud printer. If they are consistent, the cloud printer is considered to be an authorized device, otherwise it is considered to be an illegal device; S2: After verification, the cloud print server establishes a connection with the cloud printer and returns a successful connection instruction to the cloud printer; S3: The cloud printing server creates a TCP-based protocol with the cloud printer, receives the status data of the cloud printer every 30 seconds, and determines whether the cloud printer is online. If it is online, it will continue to monitor the data sent by the cloud printer. If it is not online, the socket connection will be disconnected. S4: After the cloud printing server is successfully connected to the cloud printer, the user accesses the cloud printing platform through the terminal device and enters the account information to log in. The cloud printing server verifies the user's identity in an encrypted manner to ensure that only authorized users can access the cloud printing platform; S5: After successfully logging in, the user can select the file or text to be printed, set the printing parameters through the cloud printing platform interface, and bind the cloud printer ID. After the settings are completed, the user submits the printing task; S6: The print server searches for the socket thread according to the ID of the cloud printer. The print task in S5 is transmitted to the cloud print server through socket communication. After receiving the task, the cloud print server determines the cloud printer communication queue according to the cloud printer ID selected by the user on the cloud print platform. The cloud print server sends the print task to the target cloud printer and communicates securely with the cloud printer that has established the TCP protocol. S7: After receiving the print task sent by the cloud print server, the cloud printer executes printing step by step according to the parameters set by the user; S8: The cloud printing server continuously monitors the task execution to ensure that the data flow is not interrupted and there are no errors or omissions in the printing process; S9: After printing is completed, the cloud printing server saves the task status and results to the database and pushes them to the terminal device to ensure that the user can obtain the execution status of the printing task in real time.
2. According to the encryption technology-based cloud printing platform printing method of claim 1, it is characterized in that: In S1, the cloud printing server is used to manage and process the user's printing tasks, and is responsible for the transmission, storage, queuing and sending of tasks to the target printer, while performing security encryption and identity authentication functions. The cloud printer is a printer device connected to the cloud printing server, and is used to receive and execute printing tasks from the cloud printing server.
3. According to the cloud printing platform printing method based on encryption technology as claimed in claim 1, it is characterized in that: In S5, the printing parameters include the printing type, the number of copies and the encoding characters.
4. According to the cloud printing platform printing method based on encryption technology as claimed in claim 1, it is characterized in that: In S8, after the printing task is interrupted, the cloud printing server saves the printer data to the database and sets it as printing failure, and provides a function of reprinting missed orders.
5. According to the cloud printing platform printing method based on encryption technology as claimed in claim 1, it is characterized in that: In S9, the terminal device is any device that supports Internet connection, including but not limited to computers, smart phones and tablets, and the user sends the printing task through the cloud printing platform on the terminal device.
6. The cloud printing platform printing method based on encryption technology according to claim 1, characterized in that: In S6, the cloud printing platform is set in the terminal device, and the page of the cloud printing platform is provided with buttons for printing management, printer binding, printer testing, printer tasks, announcement management, statistics module and personal center; The printer management includes printer list, printer query, printer unbinding and printer status; Printer binding includes printer ID binding, printer testing, and printer batch binding; Printer testing includes the printer printing according to the printer type; Printer tasks include printer task list, printer task query, printer task details and printer task reprinting; announcement management includes announcement list, announcement publishing and announcement modification; the statistics module includes the current week's online user statistics, the current week's device connection statistics, user source location and device source location; the personal center includes the modification of registration information.
Citation Information
Cited By
Intelligent printer built-in network flow protection method and device
CN121530665A