Data download method, device, terminal equipment and storage medium
By monitoring the data upload information of the data server in real time and performing security verification, the problems of information leakage and low efficiency during the software download process are solved, and the safe and efficient download of data is achieved.
Patent Information
- Application Number
- CN202311766022.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-20
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2043-12-20
AI Technical Summary
There are problems of information leakage and low download efficiency during the software download process, especially malware and tampered data are difficult to detect, and the decryption operation is cumbersome, which affects security and efficiency.
By monitoring the data upload information of the data server in real time, security verification operations are carried out, including file integrity verification and decryption, and automatic download of security target data to the LAN server to realize the automation of data download, verification and decryption.
Ensure data security, improve download efficiency, avoid cumbersome decryption operations, and achieve safe and efficient data download.
Smart Images

Figure CN117692235B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of digital information transmission, and in particular to a data downloading method, apparatus, terminal equipment and storage medium. Background Art
[0002] With the rapid development of the Internet industry, the types and quantities of software are increasing, and the demand for software from computer terminal users is increasing.
[0003] After the software is released on the data server, the user downloads it to the personal computer terminal for installation and use. However, when the downloaded software is malicious software or the data in the software is tampered with, it is easy to cause information leakage of the personal computer terminal, and network information security is difficult to guarantee. On the other hand, after the user downloads the software on the server, some software still needs manual file decryption and other operations before it can be used. The software decryption and installation operations are relatively cumbersome and the download efficiency is low.
[0004] In summary, how to download data safely and efficiently has become a technical problem that needs to be solved urgently in this field. Summary of the invention
[0005] The main purpose of this application is to provide a data download method, device, terminal device and storage medium, aiming to achieve the effect of safe and efficient data downloading.
[0006] To achieve the above purpose, the present application provides a data download method, which includes:
[0007] Real-time monitoring of data upload information in a data server to determine whether there is target data uploaded in the data server, and obtain data monitoring results;
[0008] If the data monitoring result is that the target data is uploaded to the data server, a security verification operation is performed on the target data to obtain secure target data;
[0009] The security target data is downloaded.
[0010] Optionally, the step of real-time monitoring the data upload information in the data server to determine whether there is target data uploaded in the data server includes:
[0011] Establishing a connection between the preset development environment and the data server;
[0012] Real-time monitoring of mail data information of the mail system in the data server through the development environment;
[0013] The email data information is subjected to information filtering and data change analysis processing to obtain data upload information in the email data information to determine whether there is target data uploaded in the data server.
[0014] Optionally, the step of filtering the email data information and analyzing data changes to obtain data upload information in the email data information to determine whether target data has been uploaded to the data server includes:
[0015] Performing data change analysis on the mail data information to obtain target mail data information newly received by the mail system;
[0016] The target email data information is filtered according to preset filtering rules to obtain data upload information in the email data information to determine whether there is target data uploaded in the data server, wherein the filtering rules include attachment type filtering rules and keyword filtering rules.
[0017] Optionally, the security verification operation includes a file integrity verification operation and a file decryption operation;
[0018] The step of performing a security verification operation on the target data to obtain secure target data comprises:
[0019] downloading the target data;
[0020] Performing a file integrity check operation on the target data according to the secure hash value of the target data;
[0021] If the target data integrity check is correct, a file decryption operation is performed on the target data to obtain decrypted target data;
[0022] The decrypted target data is synthesized and output as secure target data.
[0023] Optionally, the step of performing a file integrity check operation on the target data according to the secure hash value of the target data comprises:
[0024] Calculating the target data based on a secure hash algorithm to obtain a secure hash value of the target data;
[0025] Comparing the secure hash value with a standard secure hash value of the target data;
[0026] If the secure hash value is completely the same as the standard secure hash value, it is determined that the target data integrity check is correct.
[0027] Optionally, the step of performing a file decryption operation on the target data to obtain decrypted target data includes:
[0028] Start the preset decryption software;
[0029] The secret key of the target data is automatically obtained through the decryption software, and the target data is decrypted by the secret key to obtain the decrypted target data.
[0030] Optionally, the step of downloading the security target data comprises:
[0031] Downloading the security target data to a local area network server;
[0032] Generate a download reminder email, the body of which includes data information of the security target data and location information of the security target data in the local area network server, and send the download reminder email to a preset receiving user.
[0033] In addition, to achieve the above purpose, the present application also provides a data downloading device, the data downloading device comprising:
[0034] A monitoring module, used for real-time monitoring of data upload information in a data server to determine whether there is target data uploaded in the data server, and obtaining data monitoring results;
[0035] A security verification module, configured to, if the data monitoring result indicates that the target data has been uploaded to the data server, perform a security verification operation on the target data to obtain secure target data;
[0036] A download module is used to download the security target data.
[0037] Among them, each functional module of the data downloading device of the present application implements the steps of the data downloading method described above during operation.
[0038] In addition, to achieve the above-mentioned purpose, the present application also provides a terminal device comprising: a memory, a processor, and a data download program stored in the memory and executable on the processor, wherein the data download program, when executed by the processor, implements the steps of the data download method as described above.
[0039] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a data download program is stored on the storage medium. When the data download program is executed by a processor, the steps of the data download method described above are implemented.
[0040] The present application provides a data downloading method, apparatus, terminal device and storage medium, and the data downloading method includes: real-time monitoring of data upload information in a data server to determine whether there is target data uploaded in the data server, and obtaining a data monitoring result; if the data monitoring result is that the target data is uploaded in the data server, performing a security verification operation on the target data to obtain secure target data; and downloading the secure target data.
[0041] Compared with the traditional software downloading method, the present application obtains the data monitoring result by real-time monitoring of the data upload information in the data server to determine whether there is target data uploaded in the data server. If the data monitoring result is that there is target data uploaded in the data server, that is, when new software is released to the data server, a security verification operation is performed on the target data to obtain the security target data corresponding to the target data. Finally, the security target data is automatically downloaded to the preset local area network server so that the user can download the security target data corresponding to the target data in the local area network server.
[0042] In this way, the present application ensures the data security of the downloaded data by monitoring the data upload status in real time, and performs file integrity verification and decoding on the downloaded data through security verification operations. At the same time, it avoids the problem of leakage caused by cumbersome decryption operations after data download, and realizes automation of the entire process of data downloading, verification and decryption, thereby achieving safe and efficient data downloading. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 A schematic diagram of the device structure of the hardware operating environment of the terminal device involved in the embodiment of the present application;
[0044] Figure 2 This is a schematic diagram of the implementation process of an embodiment of the data downloading method of this application;
[0045] Figure 3 This is a schematic diagram of the implementation process of another embodiment of the data downloading method of the present application;
[0046] Figure 4 This is a schematic diagram of the architecture involved in an embodiment of the data downloading method of this application;
[0047] Figure 5 This is a schematic diagram of the functional modules of an embodiment of a data downloading device of the present application.
[0048] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0049] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0050] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0051] It should be noted that all directional indications in the embodiments of the present application (such as up, down, left, right, front, back, etc.) are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.
[0052] In this application, unless otherwise clearly specified and limited, the terms "connection", "fixation", etc. should be understood in a broad sense. For example, "fixation" can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.
[0053] In addition, in this application, descriptions such as "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in this field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.
[0054] An embodiment of the present application provides a terminal device.
[0055] like Figure 1 As shown, Figure 1 It is a schematic diagram of the device structure of the hardware operating environment of the terminal device involved in the embodiment of the present application.
[0056] It should be noted that the terminal device involved in the embodiment of the present invention may be a terminal such as a PC or a portable computer that executes the data downloading method of the present application.
[0057] In the hardware operating environment of the terminal device, the terminal device may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0058] Those skilled in the art will understand that Figure 1 The terminal device structure shown in the figure does not constitute a limitation on the device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0059] like Figure 1 As shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a data download program.
[0060] exist Figure 1 In the device shown, the network interface 1004 is mainly used to connect to the backend server and communicate data with the backend server; the user interface 1003 is mainly used to connect to the client (user end) and communicate data with the client; and the processor 1001 can be used to call the data download program stored in the memory 1005 and perform the following operations:
[0061] Real-time monitoring of data upload information in a data server to determine whether there is target data uploaded in the data server, and obtain data monitoring results;
[0062] If the data monitoring result is that the target data is uploaded to the data server, a security verification operation is performed on the target data to obtain secure target data;
[0063] The security target data is downloaded.
[0064] Optionally, the processor 1001 may also be used to call a data download program stored in the memory 1005, and perform the following operations:
[0065] Establishing a connection between the preset development environment and the data server;
[0066] Real-time monitoring of mail data information of the mail system in the data server through the development environment;
[0067] The email data information is subjected to information filtering and data change analysis processing to obtain data upload information in the email data information to determine whether there is target data uploaded in the data server.
[0068] Optionally, the processor 1001 may also be used to call a data download program stored in the memory 1005, and perform the following operations:
[0069] Performing data change analysis on the mail data information to obtain target mail data information newly received by the mail system;
[0070] The target email data information is filtered according to preset filtering rules to obtain data upload information in the email data information to determine whether there is target data uploaded in the data server, wherein the filtering rules include attachment type filtering rules and keyword filtering rules.
[0071] Optionally, the security verification operation includes a file integrity verification operation and a file decryption operation; the processor 1001 may also be used to call a data download program stored in the memory 1005, and perform the following operations:
[0072] downloading the target data;
[0073] Performing a file integrity check operation on the target data according to the secure hash value of the target data;
[0074] If the target data integrity check is correct, a file decryption operation is performed on the target data to obtain decrypted target data;
[0075] The decrypted target data is synthesized and output as secure target data.
[0076] Optionally, the processor 1001 may also be used to call a data download program stored in the memory 1005, and perform the following operations:
[0077] Calculating the target data based on a secure hash algorithm to obtain a secure hash value of the target data;
[0078] Comparing the secure hash value with a standard secure hash value of the target data;
[0079] If the secure hash value is completely the same as the standard secure hash value, it is determined that the target data integrity check is correct.
[0080] Optionally, the processor 1001 may also be used to call a data download program stored in the memory 1005, and perform the following operations:
[0081] Start the preset decryption software;
[0082] The secret key of the target data is automatically obtained through the decryption software, and the target data is decrypted by the secret key to obtain the decrypted target data.
[0083] Optionally, the processor 1001 may also be used to call a data download program stored in the memory 1005, and perform the following operations:
[0084] Downloading the security target data to a local area network server;
[0085] Generate a download reminder email, the body of which includes data information of the security target data and location information of the security target data in the local area network server, and send the download reminder email to a preset receiving user.
[0086] Based on the above hardware structure, the overall concept of each embodiment of the data downloading method of the present application is proposed.
[0087] In the embodiments of the present application, with the rapid development of the Internet industry, the types and quantities of software are increasing, and the demand for software by computer terminal users is increasing.
[0088] After the software is released on the data server, the user downloads it to the personal computer terminal for installation and use. However, when the downloaded software is malicious software or the data in the software is tampered with, it is easy to cause information leakage of the personal computer terminal, and network information security is difficult to guarantee. On the other hand, after the user downloads the software on the server, some software still needs manual file decryption and other operations before it can be used. The software decryption and installation operations are relatively cumbersome and the download efficiency is low.
[0089] In summary, how to download data safely and efficiently has become a technical problem that needs to be solved urgently in this field.
[0090] In response to the above problems, an embodiment of the present application proposes a data download method, which includes: real-time monitoring of data upload information in a data server to determine whether there is target data uploaded to the data server, and obtaining a data monitoring result; if the data monitoring result is that the target data is uploaded to the data server, performing a security verification operation on the target data to obtain secure target data; and downloading the secure target data.
[0091] Compared with the traditional software download method, in the embodiment of the present application, the data upload information in the data server is monitored in real time to determine whether there is target data uploaded in the data server, and the data monitoring result is obtained. If the data monitoring result is that there is target data uploaded in the data server, that is, when new software is released to the data server, a security verification operation is performed on the target data to obtain security target data corresponding to the target data, wherein the security verification operation includes but is not limited to file integrity verification and file decryption operations on the target data. Finally, the security target data is automatically downloaded to the preset local area network server, so that the user can download the security target data corresponding to the target data in the local area network server.
[0092] In this way, the embodiment of the present application ensures the data security of the downloaded data by monitoring the data upload status in real time, and performs file integrity verification and decoding on the downloaded data through security verification operations, while avoiding the problem of omissions caused by cumbersome decryption operations after data download, and automates the entire process of data downloading, verification and decryption, thereby achieving safe and efficient data downloading.
[0093] Based on the above-mentioned overall concept of the data downloading method of the present application, various embodiments of the data downloading method of the present application are proposed.
[0094] Please refer to Figure 2 , Figure 2 This is a flowchart of the first embodiment of the data download method of the present application. It should be noted that although the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than that shown here.
[0095] In this embodiment, the data downloading method of this application is applied to the above-mentioned terminal device. For the convenience of understanding and explanation, in this embodiment, the terminal device is used as the direct execution subject to explain the data downloading method of this application.
[0096] like Figure 2 As shown, in this embodiment, the data downloading method of this application may include:
[0097] Step S10: real-time monitoring of data upload information in the data server to determine whether there is target data uploaded in the data server, and obtaining data monitoring results;
[0098] In this embodiment, the data server receives data upload information in real time based on its own mail system. When a user uploads or uploads a new software (i.e., target data) in the data server, the data server will receive data information related to the new software in the mail system. The terminal device associates the Python environment with the data server by setting up a Python (a computer programming language) environment. When the data server's mail system receives data information related to the new software, the Python environment also receives a message that the new software is uploaded to the data server, and obtains the data upload information in the data server. Based on the data upload information, it can be determined whether there is new software uploaded to the data server.
[0099] Based on this, in a feasible embodiment, step S10 includes:
[0100] Step S101: establishing a connection between the preset development environment and the data server;
[0101] In this embodiment, the development environment is preferably a Python environment, and the terminal device pre-establishes a connection between the Python environment and the data server, so that the terminal device can monitor the data upload information in the data server in real time based on the Python environment, and determine the target data to be downloaded in real time according to the data upload information.
[0102] Step S102: monitoring the mail data information of the mail system in the data server in real time through the development environment;
[0103] Step S103: filtering the email data information and analyzing the data changes to obtain the data upload information in the email data information to determine whether there is target data uploaded to the data server.
[0104] It should be noted that, in this embodiment, the Python environment includes the email library and the imaplib library, wherein the email library is used to handle complex email processing tasks and can read, write and send emails; the imaplib library is used to operate the mail server in the Python environment, log in and read emails.
[0105] In this embodiment, the terminal device uses the email library in the Python environment to set the relevant information for receiving emails, including the login account, account password, etc., and uses the imaplib library to connect to the mail server (i.e., the mail system of the data server) to monitor emails, obtain the email data information of the data server, and filter and analyze the data changes of the email data information to obtain data upload information. The software that matches the data upload information is the target data in this embodiment.
[0106] Furthermore, in a feasible embodiment, the above step S103 includes:
[0107] Step S1031: performing data change analysis on the email data information to obtain target email data information newly received by the email system;
[0108] In this embodiment, the terminal device connects to the mail server (i.e., the mail system of the data server) with the help of the imaplib library to monitor mails, obtains the mail data information of the data server, performs data change analysis on the mail data information, and obtains the newly received mail data information in the mail system, i.e., the target mail data information.
[0109] Step S1032: Filter the target email data information according to preset filtering rules, obtain data upload information in the email data information to determine whether there is target data uploaded in the data server, wherein the filtering rules include attachment type filtering rules and keyword filtering rules.
[0110] In this embodiment, after the terminal device obtains the newly received target email data information in the email system, it uses the imaplib library to filter the target email data information according to preset filtering rules, wherein the filtering rules may be attachment type filtering rules and keyword filtering rules, etc., and the data upload information in the email data information is obtained through information filtering to determine whether there is target data uploaded in the data server.
[0111] Taking the attachment type filtering rule as an example, the target data is the newly uploaded software in the mail system. After the terminal device obtains the newly received target mail data information in the mail system, it uses the imaplib library to filter the target mail data information according to the preset attachment type filtering rules, obtains the data upload information in the mail data information, and determines whether there is target data uploaded in exe format or compressed package format (rar, zip, 7z, etc.) in the data server based on the data upload information.
[0112] Step S20: If the data monitoring result indicates that the target data is uploaded to the data server, a security verification operation is performed on the target data to obtain secure target data;
[0113] In this embodiment, the terminal device determines that there is target data uploaded to the data server based on the monitored data upload information, and the terminal device automatically performs security verification operations on the target data through the Python environment, thereby obtaining secure target data, wherein the security verification operations performed on the target data include but are not limited to file integrity verification operations and file decryption operations.
[0114] In this way, by performing a file integrity check operation on the target data to be downloaded, it is determined whether the target file has been maliciously tampered with, thereby avoiding downloading erroneous software or software with security risks. By decrypting the target file, the difficulty and complexity of software downloading are reduced, which is beneficial to the promotion and application of the target data, and at the same time, it is also beneficial to improve the efficiency of software downloading and save users time in downloading and installing software.
[0115] Step S30: Download the security target data.
[0116] In this embodiment, the terminal device downloads the security target data that has undergone security verification operations such as file integrity verification and file decryption operations to a preset local area network server (FTP server) for download and use by users in the local area network.
[0117] Furthermore, in a feasible embodiment, the above step S30 may include:
[0118] Step S301: downloading the security target data to a local area network server;
[0119] Step S302: Generate a download reminder email, the body of which includes data information of the security target data and location information of the security target data in the local area network server, and send the download reminder email to a preset receiving user.
[0120] In this embodiment, the terminal device first downloads the security target data to the local area network server, and then reads the data information of the security target data, the data information including the software's save path, related parameters, etc., and also reads the location information of the security target data in the local area network server, and generates a download prompt email based on the data information and location information. The body of the download prompt email includes the data information of the security target data and its location information in the local area network server. Then, the terminal device uses the email library of the Python environment to send the download prompt email to the designated email receiving user, thereby completing the entire data download process. At the same time, the software's data information is sent via email, so that the user can immediately understand the software download status.
[0121] In addition, in a feasible embodiment, after step S30, the data downloading method of the present application may further include:
[0122] Downloading the safety target data, and creating and submitting a software test order according to the safety target data;
[0123] In this embodiment, after the terminal device downloads the security target data to the LAN server, the terminal device automatically connects to the preset confluence (a collaborative software) system to create a software test order, and submits the software test order, which is used to test the security target data according to the content of the software test order before putting the software into use. The software test order includes test requirements, test time, test path, functional points and other test-related data. If the test passes, the test email is replied to explain the test result. If the test fails, the test email is replied to explain the reason for failure and suggested repair direction, and a defect report is attached.
[0124] Specifically, the terminal device can operate the browser through the webdriver library and WebDriver iverWait library of the Python environment to generate a configured test request form and submit the test.
[0125] In this embodiment, the embodiment of the present application monitors the data upload information in the data server in real time to determine whether there is target data uploaded in the data server, and obtains a data monitoring result; if the data monitoring result is that the target data is uploaded in the data server, a security verification operation is performed on the target data to obtain secure target data; and the secure target data is downloaded.
[0126] Specifically, compared to traditional software download methods, the embodiment of the present application associates the Python environment with a data server by setting up a Python environment. When the data server's mail system receives data information related to the new software, the Python environment also receives the message that the new software is uploaded to the data server, and obtains the data upload information in the data server. Based on the data upload information, it can be determined whether there is new software uploaded to the data server; then, the terminal device determines that there is target data uploaded to the data server based on the monitored data upload information, and the terminal device automatically performs a security verification operation on the target data through the Python environment, thereby obtaining secure target data, wherein the security verification operation performed on the target data includes but is not limited to a file integrity verification operation and a file decryption operation; finally, the terminal device downloads the secure target data that has undergone security verification operations such as a file integrity verification operation and a file decryption operation to a preset local area network server for download and use by users in the local area network.
[0127] In this way, the embodiment of the present application realizes the automation of the entire software download process through the Python environment, and performs file integrity verification and decoding on the downloaded software through security verification operations, thereby ensuring the data security of the downloaded software, and avoiding the problem of omissions caused by cumbersome decryption operations after software download, thereby achieving safe and efficient data download.
[0128] Furthermore, based on the above-mentioned first embodiment of the data downloading method of the present application, a second embodiment of the data downloading method of the present application is proposed.
[0129] Similarly, in order to clearly illustrate the data downloading method of the present application, the following text still uses the terminal device as the execution subject to explain the data downloading method of the present application.
[0130] In the second embodiment of the data downloading method of the present application, the security verification operation includes a file integrity verification operation and a file decryption operation;
[0131] In this embodiment, if Figure 3 As shown, the step of "performing a security verification operation on the target data to obtain secure target data" in the above step S20 includes:
[0132] Step S201: downloading the target data;
[0133] It should be noted that, in this embodiment, Python also includes a WebDriver library, which is used to automatically simulate the behavior of a browser, thereby reducing the time and labor of manual operations for users to download software and realizing file download automation; the os library provides functions for accessing the operating system and can complete some basic file and directory management tasks, such as creating, deleting, moving, copying, and obtaining file attributes.
[0134] Exemplarily, in a feasible embodiment, the terminal device starts the software manager, uses Python's webdriver library to perform relevant configuration of the browser, and automatically opens the browser, uses the WebDriverWait library to obtain HTML (an application under the standard universal markup language) elements and matches them, and then uses the webdriver library to perform automated login and download operations, such as entering an account password and clicking a button to log in, and finally downloads the software. Finally, use the os library to read the name of the currently downloaded file, determine the download status, and wait until the software download is completed.
[0135] Step S202: performing a file integrity check operation on the target data according to the secure hash value of the target data;
[0136] In this embodiment, the terminal device performs integrity verification on the target data according to the SHA (Secure Hash Algorithm) information of the target data to ensure the consistency of the data during the software download process and improve data security.
[0137] Step S203: If the target data integrity check is correct, a file decryption operation is performed on the target data to obtain decrypted target data;
[0138] In this embodiment, after the terminal device performs integrity check on the target data and confirms that the integrity check of the target data is correct, it decrypts the target data to obtain decrypted target data.
[0139] Step S204: synthesize and output the decrypted target data as secure target data.
[0140] In this embodiment, the terminal device synthesizes the decrypted target data and outputs it as secure target data. Specifically, the terminal device uses the fp function to open the decrypted target data that needs to be synthesized and pre-transcribed through the Python environment, and then uses the fout function to write the software, and finally synthesizes the pre-transcribed file and outputs it as secure target data.
[0141] Further, in a feasible embodiment, step S202 includes:
[0142] Step S2021: Calculate the target data based on a secure hash algorithm to obtain a secure hash value of the target data;
[0143] Step S2022: comparing the secure hash value with the standard secure hash value of the target data;
[0144] Step S2023: If the secure hash value is completely identical to the standard secure hash value, it is determined that the target data integrity check is correct.
[0145] In this embodiment, the Python environment also includes a hashlib library, which provides multiple encryption algorithms. The terminal device uses the hashlib library to obtain the SHA value (such as sha1 value and sha256 value) of the file to perform download integrity verification on the software.
[0146] Specifically, the terminal device calculates the SHA value of the target data through the secure hash algorithm (or hash algorithm) provided by the hashlib library in the Python environment, that is, calculates the secure hash value of the target data, and then compares the calculated SHA value with the standard SHA value of the target data. If the calculated SHA value is exactly the same as the standard SHA value, it means that the target data has not been tampered with and the integrity check is correct. In another possible embodiment, if the calculated SHA value is inconsistent with the standard SHA value, it means that the target data may have been maliciously tampered with or the file download is missing during the download process. At this time, there is a security risk in the target data. The terminal device automatically stops downloading the target data through Python and outputs relevant email information for risk warning.
[0147] Further, in a feasible embodiment, the step of performing a file decryption operation on the target data to obtain decrypted target data in step S203 includes:
[0148] Step S2031: starting the preset decryption software;
[0149] Step S2032: Automatically obtain the secret key of the target data through the decryption software, and decrypt the target data through the secret key to obtain decrypted target data.
[0150] In this embodiment, the Python environment also includes a pywinauto application library. The terminal device starts the decryption software corresponding to the target data through the application library, and automatically obtains the secret key of the target data through the decryption software, and automatically inputs the secret key to decrypt the target data to obtain the decrypted target data. The specific type of the decryption software is not limited in this embodiment.
[0151] In addition, in a feasible embodiment, the application data download method may also include:
[0152] If the target data integrity check is correct, a version description file is created based on the target data.
[0153] In this embodiment, the terminal device performs document operations through the docx library of the Python environment, writes release information based on the target data, and thereby creates a version description file (release notes file) of the target data. The version description file is used to record the time, version number, update content, repair content and other information of the software version release, which helps users understand the history of the software version and the improvements and repairs to the version.
[0154] For example, in a feasible embodiment, Figure 4 The system architecture diagram of a data download is shown in the figure, wherein the mail system is used to receive software upload information in real time; the new software monitoring is used to receive messages from new software uploaded to the server; the software manager is used to manage the entire software download process; the software downloader is used to automatically download the software in the data server; the file verification is used to automatically verify the integrity of the downloaded software through SHA1 and SHA25; the file decryption is used to decrypt the software using a local decryption tool; the DOC / PDF parser is used to generate release notes files; the synthesis pre-transcription is used to automatically synthesize the software through scripts; the arrangement upload and release is used to arrange files and upload them to the LAN server for everyone to use; the creation of the test order is used to automatically connect to the confluence system to create a software test order; the email reminder and notification is used to automatically send emails through the email system to notify everyone that the software has been downloaded.
[0155] Thus, in this embodiment, the entire software download process is automated through the collaboration of various libraries in the Python environment, and the downloaded software is checked for file integrity and decoded through security verification operations to ensure the data security of the downloaded software. At the same time, it avoids problems caused by cumbersome decryption operations after software download, thereby achieving safe and efficient data download.
[0156] In addition, an embodiment of the present application also provides a data downloading device.
[0157] Please refer to Figure 5 , the data download device of this application includes:
[0158] Monitoring module 10, used for real-time monitoring of data upload information in the data server to determine whether there is target data uploaded in the data server, and obtain data monitoring results;
[0159] A security verification module 20 is used to perform a security verification operation on the target data to obtain secure target data if the data monitoring result indicates that the target data is uploaded to the data server;
[0160] The download module 30 is used to download the security target data.
[0161] Optionally, the monitoring module 10 includes:
[0162] A connection establishment module, used to establish a connection between the preset development environment and the data server;
[0163] A monitoring unit, used for monitoring the mail data information of the mail system in the data server in real time through the development environment;
[0164] The information filtering unit is used to perform information filtering and data change analysis on the email data information, and obtain the data upload information in the email data information to determine whether there is target data uploaded in the data server.
[0165] Optionally, the information filtering unit is also used to perform data change analysis and processing on the email data information to obtain target email data information newly received by the email system; filter the target email data information according to preset filtering rules to obtain data upload information in the email data information to determine whether there is target data uploaded to the data server, wherein the filtering rules include attachment type filtering rules and keyword filtering rules.
[0166] Optionally, the security verification operation includes a file integrity verification operation and a file decryption operation; the security verification module 20 includes:
[0167] A downloading unit, used for downloading the target data;
[0168] A verification unit, configured to perform a file integrity verification operation on the target data according to a secure hash value of the target data;
[0169] A decryption unit, configured to perform a file decryption operation on the target data to obtain decrypted target data if the target data integrity check is correct;
[0170] The synthesis unit is used to synthesize the decrypted target data and output it as secure target data.
[0171] Optionally, the verification unit is further used to calculate the target data based on a secure hash algorithm to obtain a secure hash value of the target data; compare the secure hash value with a standard secure hash value of the target data; and if the secure hash value is exactly the same as the standard secure hash value, determine that the integrity verification of the target data is correct.
[0172] Optionally, the decryption unit is further used to start a preset decryption software; automatically obtain the secret key of the target data through the decryption software, and decrypt the target data through the secret key to obtain the decrypted target data.
[0173] Optionally, the download module 30 is further used to download the security target data to a local area network server;
[0174] Generate a download reminder email, the body of which includes data information of the security target data and location information of the security target data in the local area network server, and send the download reminder email to a preset receiving user.
[0175] Among them, the functional implementation of each module in the above-mentioned data downloading device corresponds to each step in the above-mentioned data downloading method embodiment, and its functions and implementation processes are no longer repeated here.
[0176] In addition, the present application also proposes a storage medium, which is a computer-readable storage medium, on which a data download program is stored. When the data download program is executed by a processor, the steps of the data download method of the present application as described above are implemented.
[0177] The specific embodiments of the storage medium of the present application are basically the same as the embodiments of the above-mentioned data downloading method, and will not be described in detail here.
[0178] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0179] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0180] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0181] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A data downloading method, characterized in that: The method comprises: Real-time monitoring of data upload information in a data server to determine whether there is target data uploaded in the data server, and obtain data monitoring results; If the data monitoring result is that the target data is uploaded to the data server, a security verification operation is performed on the target data to obtain secure target data; downloading the security target data; The step of real-time monitoring the data upload information in the data server to determine whether there is target data uploaded in the data server includes: Establishing a connection between a preset development environment and the data server; monitoring the mail data information of the mail system in the data server in real time through the development environment; performing information filtering and data change analysis on the mail data information, obtaining data upload information in the mail data information to determine whether there is target data uploaded in the data server; The security verification operation includes a file integrity verification operation and a file decryption operation. The step of performing a security verification operation on the target data to obtain secure target data includes: Downloading the target data; performing a file integrity check operation on the target data according to the secure hash value of the target data; if the integrity check of the target data is correct, performing a file decryption operation on the target data to obtain decrypted target data; synthesizing and outputting the decrypted target data as secure target data; The step of performing a file decryption operation on the target data to obtain decrypted target data comprises: Starting a preset decryption software; automatically obtaining the secret key of the target data through the decryption software, and decrypting the target data through the secret key to obtain the decrypted target data; The step of downloading the security target data comprises: Download the security target data to the local area network server; generate a download reminder email, the body of which includes data information of the security target data and location information of the security target data in the local area network server, and send the download reminder email to a preset receiving user.
2. The data downloading method according to claim 1, characterized in that: The step of filtering the email data information and analyzing the data changes to obtain the data upload information in the email data information to determine whether the target data is uploaded in the data server includes: Performing data change analysis on the mail data information to obtain target mail data information newly received by the mail system; The target email data information is filtered according to preset filtering rules to obtain data upload information in the email data information to determine whether there is target data uploaded in the data server, wherein the filtering rules include attachment type filtering rules and keyword filtering rules.
3. The data downloading method according to claim 1, characterized in that: The step of performing a file integrity check operation on the target data according to the secure hash value of the target data comprises: Calculating the target data based on a secure hash algorithm to obtain a secure hash value of the target data; Comparing the secure hash value with a standard secure hash value of the target data; If the secure hash value is completely the same as the standard secure hash value, it is determined that the target data integrity check is correct.
4. A data downloading device, characterized in that: The data downloading device comprises: A monitoring module, used for real-time monitoring of data upload information in a data server to determine whether there is target data uploaded in the data server, and obtaining data monitoring results; A security verification module, for performing a security verification operation on the target data to obtain secure target data if the data monitoring result indicates that the target data has been uploaded to the data server, wherein the security verification operation includes a file integrity verification operation and a file decryption operation; A download module, used for downloading the security target data; The monitoring module is further used to establish a connection between the preset development environment and the data server; monitor the mail data information of the mail system in the data server in real time through the development environment; perform information filtering and data change analysis on the mail data information, and obtain the data upload information in the mail data information to determine whether there is target data uploaded in the data server; The security verification module is also used to download the target data; perform a file integrity check operation on the target data according to the secure hash value of the target data; if the integrity check of the target data is correct, perform a file decryption operation on the target data to obtain decrypted target data; synthesize and output the decrypted target data as secure target data; The security verification module is also used to start the preset decryption software; automatically obtain the secret key of the target data through the decryption software, and decrypt the target data through the secret key to obtain the decrypted target data; The download module is also used to download the security target data to the local area network server; generate a download reminder email, the body of which includes the data information of the security target data and the location information of the security target data in the local area network server, and send the download reminder email to a preset receiving user.
5. A terminal device, characterized in that: The terminal device comprises: a memory, a processor, and a data downloading program stored in the memory and executable on the processor, wherein the data downloading program implements the steps of the data downloading method according to any one of claims 1 to 3 when executed by the processor.
6. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a data download program is stored on the storage medium. When the data download program is executed by a processor, the steps of the data download method according to any one of claims 1 to 3 are implemented.
