Mobile portal data updating method and system and electronic equipment
By encrypting and dividing mobile portal data, combined with the security index and latency index of cloud storage services, the security of mobile portal data updates is improved, and the problem of low data security in the existing technology is solved.
Patent Information
- Application Number
- CN202411388649.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-08
- Publication Date
- 2025-01-03
AI Technical Summary
In the prior art, the security of mobile portal data updates is not high, and there is a risk of data leakage and tampering.
The data to be updated is obtained through preset information, encrypted and transmitted to cloud storage services, obtain storage security index, divided into real-time data and timed data for pushing and updating, and decrypting the data pushed to the mobile portal to ensure the data Transmission and storage security.
Improve the security of mobile portal data updates, ensure data reliability and accuracy of decryption processes, and enhance the security of data encryption and decryption.
Smart Images

Figure CN119254499A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of digital information transmission, and in particular to a mobile portal data updating method, system and electronic equipment. Background Art
[0002] With the popularization of mobile communication technology, mobile devices such as smartphones and tablets have become indispensable tools in people's daily life and work. Mobile communication technology has gone through multiple iterations from 1G to 5G. At present, 5G technology has been officially commercialized and far exceeds 4G in terms of transmission speed and efficiency. With the research of 6G technology on the agenda, mobile communication technology will continue to move forward. This provides a solid infrastructure support for mobile portal data updates. In mobile portals, data security is a vital issue. Some important files or information need to be protected with high security to prevent illegal access or tampering. In order to ensure data security, mobile portals can use security strategies such as SSL encryption and digital certificates to ensure security during data transmission. Responsive design technology is used to enable mobile portals to adapt to mobile device screens of different sizes and resolutions. This ensures that no matter what type of mobile device users use, they can get a good browsing experience and consistent data update services. In addition, data encryption, access control and other means can be used to further improve data security.
[0003] The existing method pushes the data of the back-end database to the mobile portal in real time or at a fixed time through the API interface. The mobile portal periodically crawls data from the back-end database or data warehouse and updates it to the front end. Regular data crawling may consume more system resources, especially when the data volume is large.
[0004] For example, the invention patent with announcement number: CN110839048B announces a system and method for updating mobile portal data based on vcard files, including: a mobile client and a cloud server, the mobile client includes a vcard module, a data acquisition module, a data comparison module, a data update module and a communication module; the vcard module is used to generate a vcard format file from the contact information input by the user in the mobile client; the data acquisition module is used to convert the format of the vcard format file or the data in the personal web page to obtain personal information.
[0005] For example, the invention patent announcement with announcement number: CN103731445B discloses an IOS-based application intelligent update system and method, including: a mobile application portal management terminal and a mobile application management server; wherein: the mobile application management server is used to register all mobile application information, manage all uploaded mobile applications and the mobile application portal management terminal; the mobile portal management terminal is published in a designated directory of the server, and a download link is placed on the page, and the user accesses the service address through the mobile device browser to download the mobile portal management terminal; for other mobile applications, an automatic upload function is provided, and the developer can upload the mobile application to the server through the upload function after packaging the application. To upload, you need to fill in the application version number information. The server will publish the application to the specified directory according to the unique identifier of the application. At the same time, the server will also uniformly manage all uploaded applications; the mobile application portal management terminal is used to manage all local applications; the user downloads the mobile application portal management terminal to the local and installs it on the mobile device through the server. The user enters the mobile application portal management terminal, initiates a request to the server to obtain the application list information, and determines whether the application is installed through the interface provided by Apple to check whether the application is successfully opened. The installed and uninstalled applications are distinguished by the icon effect; in the click event of each application icon, the corresponding application will be opened through the ur l method provided by Apple, and the application version information and the latest version download path obtained from the server will be passed in as parameters; when each application is initially loaded, the current version of the application is obtained and compared with the passed in version: if it is not the latest version, it will prompt to update, and clicking update will download the latest version of the application according to the passed in latest version download path; if it is the latest version, the application will be opened directly.
[0006] However, in the process of implementing the technical solution of the invention in the embodiments of the present application, the present application found that the above technology has at least the following technical problems:
[0007] In the prior art, the security risks of data leakage, tampering, etc. may occur during the data transmission and update process, resulting in the problem of low security of mobile portal data update. Summary of the invention
[0008] The embodiments of the present application solve the problem of low security of mobile portal data update in the prior art by providing a mobile portal data update method, system and electronic device, thereby improving the security of mobile portal data update.
[0009] An embodiment of the present application provides a mobile portal data update method, comprising the following steps: S1, obtaining data to be updated according to preset information, wherein the preset information includes a preset data type, a preset data update range, and a preset data update frequency; S2, encrypting the data to be updated to obtain encrypted update data, transmitting the encrypted update data to a cloud storage service to obtain a storage security index, comparing the obtained storage security index with a preset storage range, and re-encrypting if it exceeds the range, wherein the storage security index is used to evaluate the security level of data storage; S3, dividing the encrypted update data into first real-time data and second real-time data for pushing and updating, and pushing the first real-time data in real time to obtain a delay index, setting a scheduled task for the second real-time data, wherein the delay index is used to evaluate the delay when the first real-time data is pushed in real time; S4, decrypting the first real-time data and the second real-time data pushed to the mobile portal to obtain decrypted data.
[0010] Furthermore, the specific method for obtaining the data to be updated is as follows: the initial data is filtered according to a preset data type to obtain the first data to be updated, and the first data to be updated represents the initial data that conforms to the preset data type; the first data to be updated is filtered according to a preset data update range to obtain the second data to be updated, and the second data to be updated represents the first data to be updated within the preset data update range; the second data to be updated is filtered according to a preset data update frequency to obtain the data to be updated.
[0011] Furthermore, the specific acquisition process of the storage security index is as follows: encrypting the data to be updated based on the Advanced Encryption Standard method to obtain encrypted update data, and transmitting the encrypted update data to a preset location of the cloud storage service through the SSL protocol; obtaining storage measurement data of the encrypted update data through a storage measurement device at a preset first time point, and combining the first storage density to obtain a corresponding storage security index, the storage measurement data including a first space amount, a data volume and a first storage channel number.
[0012] Furthermore, the storage security index is calculated using the following formula:
[0013]
[0014] In the formula, α1 represents the storage security index, A i represents the first space amount of the encrypted update data at the i-th first preset time point, i=1, 2, ..., r, i represents the number of the first preset time point, r represents the total number of the first preset time points, X i represents the first storage density of the encrypted update data at the i-th first preset time point, D iIt represents the first storage channel number of the encrypted updated data at the i-th first preset time point, A0 represents the preset space amount threshold, X0 represents the preset density threshold, D0 represents the preset channel number threshold, B represents the preset capacity threshold, and e represents a natural constant.
[0015] Furthermore, the transmitting of encrypted update data to the cloud storage service to obtain a storage security index also includes obtaining a transmission efficiency index. The specific process is as follows: at a preset first time point, transmission measurement data of the encrypted update data is obtained through a transmission measurement device, and a transmission efficiency index is obtained accordingly. The transmission measurement data includes a first data volume, a first transmission time, a first pulse width, and a first state number. The transmission efficiency index is used to evaluate the transmission efficiency of the encrypted update data.
[0016] Furthermore, the specific process of pushing and updating is as follows: according to the preset real-time data, the encrypted update data is divided to obtain the first real-time data and the second real-time data; at the second preset time point, the push time data is measured by a network performance analyzer, and the delay degree index is obtained accordingly, and the push time data includes the first medium transmission time, the first processing time and the first waiting time; it is determined whether the delay degree index meets the preset delay range, if so, the first real-time data is pushed in real time, otherwise it is not pushed; at the preset time point, the second real-time data is transmitted to the mobile portal, and the second real-time data is filtered according to the preset execution time range to obtain the updated first data, and the updated first data represents the second real-time data within the preset execution time range; the updated first data is filtered according to the preset execution frequency range to obtain the final updated data, and the final updated data represents the updated first data within the preset execution frequency range.
[0017] Furthermore, the delay degree index is calculated using the following formula:
[0018]
[0019] In the formula, α3 represents the delay index, C m represents the first medium transmission time of the first real-time data at the mth second preset time point, m=1, 2, ..., n, m represents the number of the second preset time point, n represents the total number of the second preset time points, L m represents the first processing time of the first real-time data at the mth second preset time point, P m represents the first waiting time of the first real-time data at the mth second preset time point, C represents the preset first time threshold, L represents the preset second time threshold, P represents the preset third time threshold, μ1 represents the preset first delay weight, μ2 represents the preset second delay weight, and μ3 represents the preset third delay weight.
[0020] Furthermore, the specific process of the decryption processing is as follows: based on the advanced encryption standard method, the first real-time data and the second real-time data are decrypted using a key to obtain decrypted data; the hash value of the decrypted data and the data to be updated is obtained through a hash function, and the hash values of the two are compared to determine whether the decryption is correct. If the hash values are the same, the decryption is correct, otherwise it is fed back to the preset personnel for re-encryption.
[0021] An embodiment of the present application provides a mobile portal data update system, including: a module for acquiring data to be updated, an encryption processing module, a push update module and a decryption processing module; wherein the module for acquiring data to be updated is used to acquire data to be updated according to preset information, and the preset information includes a preset data type, a preset data update range and a preset data update frequency; the encryption processing module is used to encrypt the data to be updated to obtain encrypted update data, transmit the encrypted update data to a cloud storage service to obtain a storage security index, compare the obtained storage security index with a preset storage range, and re-encrypt if it exceeds the range, and the storage security index is used to evaluate the security level of data storage; the push update module is used to divide the encrypted update data into a first real-time data and a second real-time data for pushing and updating, push the first real-time data in real time to obtain a delay index, set a scheduled task for the second real-time data, and the delay index is used to evaluate the delay situation when the first real-time data is pushed in real time; the decryption processing module is used to decrypt the first real-time data and the second real-time data pushed to the mobile portal to obtain decrypted data.
[0022] An embodiment of the present application provides an electronic device, characterized in that the electronic device includes a memory for storing computer program instructions and a processor for executing program instructions, wherein when the computer program instructions are executed by the processor, the electronic device is triggered to execute the mobile portal data update method.
[0023] One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:
[0024] 1. The encrypted update data is obtained by encrypting the data to be updated, and then the encrypted update data is transmitted to the cloud storage service to obtain a storage security index, and the obtained storage security index is compared with a preset storage range. If it exceeds the range, the encryption is performed again, and then the encrypted update data is divided into a first real-time data and a second real-time data for push and update to obtain a delay index and a scheduled task is set for the second real-time data. Finally, the first real-time data and the second real-time data pushed to the mobile portal are decrypted to obtain decrypted data, thereby ensuring the security of data transmission and storage, and then improving the security of mobile portal data updates, effectively solving the problem of low security of mobile portal data updates in the prior art.
[0025] 2. By acquiring storage measurement data of the encrypted update data through a storage measurement device at a preset first time point, and combining the first storage density to obtain a corresponding storage security index, the acquired storage security index is compared with a preset storage range to determine whether it exceeds the range. If it exceeds the preset storage range, it is fed back to the preset personnel for encryption processing. Otherwise, the acquired encrypted update data is divided, thereby improving the reliability of data acquisition and further improving the security of data encryption.
[0026] 3. Decrypted data is obtained by decrypting the first real-time data and the second real-time data using a key, and then the hash value of the decrypted data and the data to be updated is obtained through a hash function, and the hash values of the two are compared to determine whether the decryption is correct. If the hash values are the same, the decryption is correct, otherwise it is fed back to the preset personnel for re-encryption, thereby improving the accuracy of the data decryption process and further improving the security of data decryption. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 A flow chart of a mobile portal data updating method provided in an embodiment of the present application;
[0028] Figure 2 A statistical chart showing changes in the transmission efficiency index provided in an embodiment of the present application;
[0029] Figure 3 A structural diagram of a mobile portal data update system provided in an embodiment of the present application. DETAILED DESCRIPTION
[0030] The embodiments of the present application solve the problem of low security of mobile portal data update in the prior art by providing a mobile portal data update method, system and electronic device. The data to be updated is obtained through preset information, and then the data to be updated is encrypted to obtain encrypted update data. The encrypted update data is then transmitted to the cloud storage service to obtain a storage security index and the obtained storage security index is compared with a preset storage range. If it exceeds the range, the encryption is performed again. The encrypted update data is then divided into first real-time data and second real-time data for push and update to obtain a delay index and a scheduled task is set for the second real-time data. Finally, the first real-time data and the second real-time data pushed to the mobile portal are decrypted to obtain decrypted data, thereby improving the security of mobile portal data update.
[0031] The technical solution in the embodiment of the present application is to solve the problem of low security of the above-mentioned mobile portal data update, and the overall idea is as follows:
[0032] The encrypted update data is obtained by encrypting the data to be updated and transmitting it to the cloud storage service. The encrypted update data is then divided into first real-time data and second real-time data for push and update. Finally, the first real-time data and the second real-time data pushed to the mobile portal are decrypted to obtain decrypted data, thereby achieving the effect of improving the security of mobile portal data updates.
[0033] In order to better understand the above technical solution, the above technical solution will be described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0034] like Figure 1As shown, it is a flow chart of a mobile portal data update method provided by an embodiment of the present application, the method comprising the following steps: S1, obtaining data to be updated according to preset information, the preset information comprising a preset data type, a preset data update range and a preset data update frequency, the data to be updated represents a data set that needs to be pushed to the mobile portal for update; S2, encrypting the data to be updated to obtain encrypted update data, transmitting the encrypted update data to the cloud storage service to obtain a storage security index, comparing the obtained storage security index with the preset storage range, and re-encrypting if it exceeds the range, the encryption processing is used to ensure that the data to be updated can be safely transmitted to the cloud storage service, and the storage security index is used to evaluate the security of data storage; S3, dividing the encrypted update data into It is divided into first real-time data and second real-time data for pushing and updating. The first real-time data is pushed in real time to obtain a delay index, and a scheduled task is set for the second real-time data. Real-time push means transmitting the first real-time data to the mobile portal for updating through WebSocket. The scheduled task is set to transmit the second real-time data to the mobile portal for updating at a preset time point. The first real-time data represents encrypted update data that needs to be updated in real time, and the second real-time data represents encrypted update data that does not need to be updated in real time. The delay index is used to evaluate the delay of the first real-time data when it is pushed in real time; S4, the first real-time data and the second real-time data pushed to the mobile portal are decrypted to obtain decrypted data, and the decryption process is used to restore the original data.
[0035] In this embodiment, the preset data types include user information, product data, transaction records, etc. The preset data update range includes the update time range and the update data volume range. The preset data update frequency specifies the time interval for data update, such as every hour, every day, every week, etc. The data to be updated includes data capacity, data length, pulse width, data storage density, and data processing time. The encrypted update data is securely transmitted to the preset location of the cloud storage service through the SSL protocol. These protocols provide data encryption, data integrity and identity authentication functions. The advanced encryption standard is used to encrypt the update data to ensure the security of the data during transmission and storage. If the storage security index exceeds the preset range, it means that the current storage status may not meet the security or performance requirements and needs to be fed back to the preset personnel for further encryption processing. If the storage security index is within the preset range, it means that the current storage status is good and the encrypted update data can be subsequently divided. When screening by the preset data type, the preset data update range and the preset data update frequency, the data update strategy can be flexibly configured according to actual needs, so that the system can adapt to the data update needs in different scenarios, thereby improving the adaptability and scalability of the system; and improving the security of mobile portal data updates.
[0036] Furthermore, a specific method for obtaining the data to be updated is as follows: the initial data is filtered according to a preset data type to obtain the first data to be updated, the initial data is used to describe the unprocessed data, and the first data to be updated represents the initial data that conforms to the preset data type; the first data to be updated is filtered according to a preset data update range to obtain the second data to be updated, and the second data to be updated represents the first data to be updated within the preset data update range; the second data to be updated is filtered according to the preset data update frequency to obtain the data to be updated.
[0037] In this embodiment, preset data types are extracted based on user information, product data, and transaction record data in a historical time period, a preset data update range is extracted based on an update time range and an update data volume range in a historical time period, and a preset data update frequency is extracted based on the time interval for data updates in the historical time period. The entire process gradually narrows the data range through screening and ultimately obtains the data to be updated. This method helps to improve the efficiency and accuracy of data processing, ensuring that only data that meets specific conditions is updated; and improves the security of mobile portal data updates.
[0038] Furthermore, the specific process of obtaining the storage security index is as follows: encrypting the updated data based on the Advanced Encryption Standard method to obtain the encrypted update data, and transmitting the encrypted update data to a preset location of the cloud storage service through the SSL (Secure Socket Layer) secure socket layer protocol; obtaining the storage measurement data of the encrypted update data through a storage measurement device at a preset first time point, and obtaining the corresponding storage security index in combination with the first storage density, the storage measurement device includes a storage device capacity tester, a data storage performance tester and a hard disk analyzer, the storage measurement data includes a first space quantity, a data volume and a first storage track number, the preset first time point represents a time point in the encrypted update data transmission process, the first space quantity represents the capacity of the storage medium in the encrypted update data transmission process measured by the storage device capacity tester, the first storage density represents the storage density of the encrypted update data in the encrypted update data transmission process obtained by measuring the data volume of the encrypted update data through the data storage performance tester, and the first storage track number represents the number of tracks of the encrypted update data in the encrypted update data transmission process measured by the hard disk analyzer.
[0039] In this embodiment, the preset storage range is obtained based on the mobile portal update data of the historical time period. The storage device capacity tester is a tool specifically used to measure and verify the actual available capacity of storage devices, such as hard disks, solid-state drives (Solid State Disk or Solid State Drive, SSD for short), USB flash drives, etc. It can simulate data, and the tester focuses more on testing the performance of storage systems under various load conditions. It can simulate multiple data read and write modes, including random read and write, sequential read and write, etc., to evaluate the key performance indicators of the storage system such as throughput and latency. The hard disk analyzer can not only analyze the capacity and performance of the hard disk, but also deeply check the health of the hard disk, bad sectors, file system and other underlying information. The hard disk analyzer usually has powerful data recovery and fault diagnosis capabilities; the security of mobile portal data update is improved.
[0040] Furthermore, the storage security index is calculated using the following formula:
[0041]
[0042] In the formula, α1 represents the storage security index, A i represents the first space amount of the encrypted update data at the i-th first preset time point, i=1, 2, ..., r, i represents the number of the first preset time point, r represents the total number of the first preset time points, X i represents the first storage density of the encrypted update data at the i-th first preset time point, D i It represents the first storage channel number of the encrypted updated data at the i-th first preset time point, A0 represents the preset space amount threshold, X0 represents the preset density threshold, D0 represents the preset channel number threshold, B represents the preset capacity threshold, and e represents a natural constant.
[0043] In this embodiment, the algorithm of this embodiment combines the first space quantity A i , the first storage density X i and the first storage channel number D i , comprehensive analysis to obtain the storage security index, the first space quantity A in this formula i , the first storage density X i and the first storage channel number D i There is a common regulatory relationship between them. When the first spatial quantity A i and the first storage density X i When the number of first storage channels D i When the storage security index decreases, the storage security index may decrease. iWhen the storage density increases, it means that more space is used to store data, the amount of data that can be stored in a unit space may also increase, and more storage channels may be available, that is, the first storage density X i and the first storage channel number D i May be with the first space quantity A i increases with the increase of i , the first storage density X i and the first storage channel number D i The size of the storage security index is comprehensively affected, so a mathematical form is established for accurate analysis. The preset space threshold is expressed by the average value of the mobile portal update data in the historical time period after statistics and analysis, the preset density threshold is expressed by the average value of the mobile portal update data in the historical time period after statistics and analysis, the preset channel number threshold is expressed by the average value of the mobile portal update data in the historical time period after statistics and analysis, and the preset capacity threshold is expressed by the average value of the mobile portal update data in the historical time period after statistics and analysis.
[0044] Specifically, assuming r=1, the first space quantity A i The range is 0-10 (GB), the first storage density X i The range is 0-100 (GB / track), the first storage track number D i The range is 0-100 (tracks), the preset space threshold A0 is 5 (GB), the preset density threshold X0 is 10 (GB / track), the preset track number threshold D0 is 10 (tracks), and the preset capacity threshold B is 15000 (GB 2 ), the statistical change table of the storage security index is shown in Table 1:
[0045] Table 1 Statistical changes in storage security index
[0046]
[0047] It can be seen from the table that as the first space quantity A i The first storage density X i The gradual increase and the first storage channel number D i The storage security index gradually increases, which means that there is more space to disperse and store data and more storage channels to choose from, so that the security of data storage is gradually improved. The larger space can quickly restore the redundant data when part of the data is lost or damaged, thereby improving the security and availability of the data; the security of mobile portal data updates is improved.
[0048] Furthermore, the encrypted update data is transmitted to the cloud storage service to obtain the storage security index, and also includes obtaining the transmission efficiency index. The specific process is as follows: at a preset first time point, the transmission measurement data of the encrypted update data is obtained through a transmission measurement device, and the transmission efficiency index is obtained accordingly. The transmission measurement device includes a data storage performance tester, a timestamp server, an oscilloscope and a logic analyzer. The transmission measurement data includes a first data volume, a first transmission time, a first pulse width and a first state number. The first data volume represents the data volume of the encrypted update data during the encrypted update data transmission process measured by the data storage performance tester, the first transmission time represents the transmission time during the encrypted update data transmission process measured by the timestamp server, the first pulse width represents the width of a unit pulse during the encrypted update data transmission process measured by the oscilloscope, and the first state number represents the number of valid states of the pulse during the encrypted update data transmission process measured by the logic analyzer. The transmission efficiency index is used to evaluate the transmission efficiency of the encrypted update data; the transmission efficiency index is calculated using the following formula:
[0049]
[0050] In the formula, β i represents the transmission efficiency index of the i-th first preset time point, i=1,2,...,r, i represents the number of the first preset time point, r represents the total number of the first preset time points, B i represents the first data volume of the encrypted update data at the i-th first preset time point, Δt i represents the first transmission time of the encrypted update data at the i-th first preset time point, T i represents the first pulse width of the encrypted update data at the i-th first preset time point, N i represents the first state number of the encrypted update data at the i-th first preset time point, w represents the preset rate threshold, s represents the preset effective rate threshold, σ1 represents the preset first weight, σ2 represents the preset second weight, and e represents a natural constant.
[0051] In this embodiment, the algorithm of this embodiment combines the first data volume B i , first transmission time Δt i , the first pulse width T i and the first state number N i , comprehensive analysis is performed to obtain the transmission efficiency index of the first preset time point i. In this formula, the first data volume B i , first transmission time Δt i , the first pulse width T i and the first state number N iThere is a common regulatory relationship between them, indicating the size of the comprehensive impact on the transmission efficiency index, so it is precisely analyzed by establishing a mathematical form. The timestamp server is a time authority system based on PKI (public key cryptographic infrastructure) technology, which is used to provide accurate and reliable timestamp services. The oscilloscope is a widely used electronic measuring instrument that can transform invisible electrical signals into visible images, making it easier for people to study the changing process of various electrical phenomena. The logic analyzer is a test instrument used to capture, display and analyze the logical state of signals inside digital systems. It can simultaneously observe the changes in the logic levels of multiple signal points and display the captured data in the form of waveforms, timing diagrams, etc.
[0052] The preset first weight is obtained from the portal update database. The relationship between the transmission efficiency index and the corresponding data volume data is fitted to the transmission efficiency index and the data volume data in the historical period to obtain a fitting curve, and the preset first weight corresponding to the input data volume data is obtained according to the fitting curve.
[0053] The preset second weight is obtained from the portal update database. The relationship between the transmission efficiency index and the pulse width data and the pulse status data in the historical period is fitted to obtain a fitting curve. The preset second weight corresponding to the input corresponding pulse width data and pulse status data is obtained according to the fitting curve.
[0054] Specifically, make W i Indicates the preset first rate threshold, S i Indicates that the first effective rate threshold is preset, then the formula of the transmission efficiency index can be simplified as: The preset rate threshold is obtained based on the mobile portal update data of the historical time period, the preset effective rate threshold is obtained based on the mobile portal update data of the historical time period, and the first data volume B i The range is 0-100 (GB), the first transmission time Δt i The range is 0-500(s), the first pulse width T i The range is 0-100 (μs), the first state number N i The range is 0-500, the first state number N i Take an integer power of 2, preset the rate threshold w as 1 (GB / s), preset the effective rate threshold s as 50 (bps), preset the first weight σ1 as 70%, and preset the second weight σ2 as 30%, such as Figure 2 As shown in the figure, it is a statistical diagram of the transmission efficiency index provided in the embodiment of the present application. As can be seen from the figure, with the preset first rate threshold W iThe gradual increase and preset first effective rate threshold S i The transmission efficiency index gradually increases, which means that the transmission efficiency of encrypted update data is gradually improved; the security of mobile portal data update is improved.
[0055] Furthermore, the specific process of pushing and updating is as follows: according to the preset real-time data, the encrypted update data is divided to obtain the first real-time data and the second real-time data; at the second preset time point, the push time data is measured by the network performance analyzer, and the delay degree index is obtained accordingly, the push time data includes the first medium transmission time, the first processing time and the first waiting time, the second preset time point represents the time point in the process of real-time pushing the first real-time data, the first medium transmission time represents the time required for the first real-time data to be transmitted in the physical medium in the process of real-time pushing the first real-time data, the first processing time represents the time required for the first real-time data to be processed in the router in the process of real-time pushing the first real-time data, and the first waiting time represents the time required for the first real-time data to wait for being processed in the router in the process of real-time pushing the first real-time data; it is determined whether the delay degree index meets the preset delay range, if so, the first real-time data is pushed in real time, otherwise it is not pushed, and the push represents the transmission of the first real-time data through WebSocket and MQTT (Message Queuing Telemetry The second real-time data is transmitted to the mobile portal at a preset time point, and the second real-time data is filtered according to a preset execution time range to obtain updated first data, and the updated first data represents the second real-time data within the preset execution time range; the updated first data is filtered according to a preset execution frequency range to obtain final updated data, and the final updated data represents the updated first data within the preset execution frequency range.
[0056] In this embodiment, the preset delay range is obtained based on the mobile portal update data of the historical time period, for example, the update delay data in the historical time period is collected from sources such as the update log of the mobile portal, the server monitoring data, and the network status record, and the collected data is marked as "low delay", "medium delay" and "high delay" three categories, thereby obtaining the preset delay range, and the preset execution time range is obtained based on the mobile portal update data of the historical time period, for example, the execution time data in the historical time period is collected from sources such as the update log of the mobile portal, the server monitoring data, and the network status record, and the collected data is marked as "low execution", "medium execution" and "high execution" three categories, thereby obtaining the preset execution time range. Time range, the preset execution frequency range is obtained based on the mobile portal update data of the historical time period. For example, the execution frequency data in the historical time period is collected from the mobile portal's update log, server monitoring data, network status records and other sources, and the collected data are marked as "low frequency", "medium frequency" and "high frequency" three categories, and the preset execution frequency range is obtained accordingly. The network performance analyzer is an electronic measuring instrument used in the fields of information science and system science, electronics and communication technology. Its main function is to monitor and analyze network data traffic, and it can monitor key performance indicators such as network bandwidth utilization, latency, and packet loss rate in real time. WebSocket is a protocol for full-duplex communication on a single TCP (Transmission Control Protocol) transmission control protocol connection. It allows real-time two-way communication between the server and the client; it improves the security of mobile portal data updates.
[0057] Furthermore, the delay index is calculated using the following formula:
[0058]
[0059] In the formula, α3 represents the delay index, C m represents the first medium transmission time of the first real-time data at the mth second preset time point, m=1, 2, ..., n, m represents the number of the second preset time point, n represents the total number of the second preset time points, L m represents the first processing time of the first real-time data at the mth second preset time point, P m represents the first waiting time of the first real-time data at the mth second preset time point, C represents the preset first time threshold, L represents the preset second time threshold, P represents the preset third time threshold, μ1 represents the preset first delay weight, μ2 represents the preset second delay weight, and μ3 represents the preset third delay weight.
[0060] In this embodiment, the algorithm of this embodiment combines the first medium transmission time C m , the first processing time Lm and the first waiting time P m , comprehensive analysis is performed to obtain the delay index of the mth second preset time point. In this formula, the first medium transmission time C m , the first processing time L m and the first waiting time P m There is a common regulatory relationship between them, indicating the size of the comprehensive impact delay index, so a precise analysis is performed by establishing a mathematical form. To simplify the analysis, the expression of the first medium transmission time is: Among them, C m ' represents the first medium transmission time data of the first real-time data at the mth second preset time point, C m 0 represents the reference first medium transmission time data of the first real-time data at the mth second preset time point, ΔC m Indicates the first medium transmission time reference deviation, Among them, L m ' represents the first processing time data of the first real-time data at the mth second preset time point, L m represents the reference first processing time data of the first real-time data at the mth second preset time point, ΔL m The expression for the first processing time reference deviation and the first medium transmission time is: Among them, P m ' represents the first waiting time data of the first real-time data at the mth second preset time point, P m 0 represents the reference first waiting time data of the first real-time data at the mth second preset time point, ΔP m Indicates the first waiting time reference deviation.
[0061] It should be understood that the preset first time threshold is a result representation of the average value taken after statistics and analysis on the mobile portal update data of the historical time period, the preset second time threshold is a result representation of the average value taken after statistics and analysis on the mobile portal update data of the historical time period, and the preset third time threshold is a result representation of the average value taken after statistics and analysis on the mobile portal update data of the historical time period.
[0062] The preset first delay weight is obtained from the portal update database. A fitting curve is obtained by fitting the relationship between the delay degree index and the first medium transmission time in a historical period to the delay degree index and the corresponding first medium transmission time. The preset first delay weight corresponding to the corresponding first medium transmission time is obtained according to the fitting curve.
[0063] The preset second delay weight is obtained from the portal update database. The fitting curve is obtained by fitting the relationship between the delay degree index and the first processing time in the historical period to the corresponding first processing time. The preset second delay weight corresponding to the corresponding first processing time is obtained according to the fitting curve.
[0064] The preset third delay weight is obtained from the portal update database. The fitting curve is obtained by fitting the relationship between the delay degree index and the first waiting time in the historical period to the delay degree index and the corresponding first waiting time. The preset third delay weight corresponding to the corresponding first waiting time is obtained according to the fitting curve.
[0065] The first medium transmission time data of the first real-time data at the mth second preset time point is obtained by measurement, and the reference first medium transmission time data is represented by the result of taking the average value after statistical analysis of the first medium transmission time data of the first real-time data at the mth second preset time point. The first medium transmission time reference deviation is obtained by calculating the first medium transmission time data and the reference first medium transmission time data through a deviation formula. The first processing time data of the first real-time data at the mth second preset time point is obtained by measurement, and the reference first processing time data is represented by the result of taking the average value after statistical analysis of the first processing time data of the first real-time data at the mth second preset time point. The first processing time reference deviation is calculated by the deviation formula from the first processing time data and the reference first processing time data. The first waiting time data of the first real-time data at the mth second preset time point is obtained by measurement, and the reference first waiting time data is represented by the result of taking the average value after statistical analysis of the first waiting time data of the first real-time data at the mth second preset time point. The first waiting time reference deviation is calculated by the deviation formula from the first waiting time data and the reference first waiting time data; the security of mobile portal data update is improved.
[0066] Furthermore, the specific process of the decryption processing is as follows: based on the advanced encryption standard method, the first real-time data and the second real-time data are decrypted using a key to obtain decrypted data; the hash value of the decrypted data and the data to be updated is obtained through a hash function, and the hash values of the two are compared to determine whether the decryption is correct. If the hash values are the same, the decryption is correct, otherwise it is fed back to the preset personnel for re-encryption.
[0067] In this embodiment, the hash function is one-way, that is, the original input data cannot be deduced from the hash value. This is an important feature of the hash function, which ensures the security of the data. No matter how the length of the input data changes, the length of the hash value output by the hash function is fixed, which makes the hash value more efficient during storage and transmission. The data to be updated is hashed and the obtained hash value is compared with the received hash value. If the two are inconsistent, it means that the data to be updated has been tampered with during the transmission or storage process; the security of mobile portal data update is improved.
[0068] like Figure 3 As shown, it is a structural schematic diagram of a mobile portal data update system provided in an embodiment of the present application. A mobile portal data update system provided in an embodiment of the present application includes: a module for acquiring data to be updated, an encryption processing module, a push update module and a decryption processing module; wherein the module for acquiring data to be updated is used to acquire data to be updated according to preset information, the preset information includes a preset data type, a preset data update range and a preset data update frequency, and the data to be updated represents a data set that needs to be pushed to the mobile portal for update; the encryption processing module is used to encrypt the data to be updated to acquire encrypted update data, transmit the encrypted update data to the cloud storage service to acquire a storage security index, compare the acquired storage security index with the preset storage range, and re-encrypt if it exceeds the range, the encryption processing is used to ensure that the data to be updated can be safely transmitted to the cloud storage service, and the storage security The index is used to evaluate the security level of data storage; the push update module is used to divide the encrypted update data into the first real-time data and the second real-time data for push and update, the first real-time data is pushed in real time to obtain the delay index, and the second real-time data is set as a scheduled task. The real-time push means that the first real-time data is transmitted to the mobile portal for updating through WebSocket. The scheduled task setting is used to transmit the second real-time data to the mobile portal for updating at a preset time point. The first real-time data represents the encrypted update data that needs to be updated in real time, and the second real-time data represents the encrypted update data that does not need to be updated in real time. The delay index is used to evaluate the delay when the first real-time data is pushed in real time; the decryption processing module is used to decrypt the first real-time data and the second real-time data pushed to the mobile portal to obtain decrypted data, and the decryption processing is used to restore the original data.
[0069] In this embodiment, the acquisition of data to be updated must ensure the accuracy and timeliness of preset information to avoid obtaining erroneous or outdated data. The encryption processing is to encrypt the data to be updated to obtain encrypted update data, and transmit the encrypted update data to the cloud storage service to obtain a storage security index to ensure that the encryption strength meets the security requirements. Push update is to divide the encrypted update data into first real-time data and second real-time data for push and update, push the first real-time data in real time to obtain a delay index, set a scheduled task for the second real-time data to ensure the stability and real-time performance of the WebSocket connection, and decryption processing is to decrypt the first real-time data and the second real-time data pushed to the mobile portal to obtain decrypted data. The key used for decryption should be consistent with the encryption key to ensure the correctness and security of the decryption process; the security of mobile portal data updates is improved.
[0070] An embodiment of the present application also provides an electronic device, comprising a memory for storing computer program instructions and a processor for executing the program instructions, wherein when the computer program instructions are executed by the processor, the electronic device is triggered to execute a mobile portal data updating method.
[0071] In this embodiment, the processor is the core component of the electronic device and is responsible for executing computer program instructions stored in the memory. In the scenario of mobile portal data update, the processor is responsible for processing various data update requests, executing update logic, and interacting with other components such as memory and network interface. The memory is used to store computer program instructions and data. In the mobile portal data update device, the memory may contain an operating system, a data update program, temporary data files, cached data, etc.; the security of mobile portal data update is improved.
[0072] To summarize, the embodiment of the present application encrypts the data to be updated to obtain encrypted update data, then transmits the encrypted update data to the cloud storage service to obtain a storage security index, and compares the obtained storage security index with a preset storage range. If it exceeds the range, the encryption is performed again, and then the encrypted update data is divided into first real-time data and second real-time data for push and update to obtain a delay index and set a scheduled task for the second real-time data. Finally, the first real-time data and the second real-time data pushed to the mobile portal are decrypted to obtain decrypted data, thereby ensuring the security of data transmission and storage, and further improving the security of mobile portal data updates, effectively solving the problem of low security of mobile portal data updates in the prior art.
[0073] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0074] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0075] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0076] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0077] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0078] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A mobile portal data updating method, characterized in that: The following steps are involved: S1, obtaining data to be updated according to preset information, wherein the preset information includes a preset data type, a preset data update range, and a preset data update frequency; S2, encrypting the data to be updated to obtain encrypted update data, transmitting the encrypted update data to the cloud storage service to obtain a storage security index, comparing the obtained storage security index with a preset storage range, and re-encrypting if it exceeds the range, wherein the storage security index is used to evaluate the security level of data storage; S3, dividing the encrypted update data into first real-time data and second real-time data for pushing and updating, and obtaining a delay index for the first real-time data through real-time pushing, and setting a scheduled task for the second real-time data, wherein the delay index is used to evaluate the delay of the first real-time data when it is pushed in real time; S4, decrypting the first real-time data and the second real-time data pushed to the mobile portal to obtain decrypted data.
2. A method for updating mobile portal data as claimed in claim 1, characterized in that: The specific method of obtaining the data to be updated is as follows: Filtering the initial data according to a preset data type to obtain first data to be updated, where the first data to be updated represents the initial data that conforms to the preset data type; Filtering the first data to be updated according to a preset data update range to obtain second data to be updated, where the second data to be updated represents the first data to be updated within the preset data update range; The second data to be updated is screened according to a preset data update frequency to obtain the data to be updated.
3. A method for updating mobile portal data as claimed in claim 1, characterized in that: The specific process of obtaining the storage security index is as follows: Encrypt the data to be updated based on the Advanced Encryption Standard method to obtain the encrypted update data, and transmit the encrypted update data to a preset location of the cloud storage service through the SSL protocol; At a preset first time point, storage measurement data of the encrypted update data is obtained through a storage measurement device, and a corresponding storage security index is obtained in combination with the first storage density, wherein the storage measurement data includes a first space quantity, a data volume, and a first storage channel number.
4. A method for updating mobile portal data as claimed in claim 3, characterized in that: The storage security index is calculated using the following formula: In the formula, α1 represents the storage security index, A i represents the first space amount of the encrypted update data at the i-th first preset time point, i=1, 2, ..., r, i represents the number of the first preset time point, r represents the total number of the first preset time points, X i represents the first storage density of the encrypted update data at the i-th first preset time point, D i represents the first storage channel number of the encrypted update data at the i-th first preset time point, A0 represents the preset space amount threshold, X0 represents the preset density threshold, D0 represents the preset channel number threshold, B represents the preset capacity threshold, e Represents a natural constant.
5. A method for updating mobile portal data as claimed in claim 1, characterized in that: The method of transmitting the encrypted update data to the cloud storage service to obtain the storage security index also includes obtaining the transmission efficiency index. The specific process is as follows: At a preset first time point, transmission measurement data of the encrypted update data is obtained through a transmission measurement device, and a transmission efficiency index is obtained based on this. The transmission measurement data includes a first data volume, a first transmission time, a first pulse width and a first state number. The transmission efficiency index is used to evaluate the transmission efficiency of the encrypted update data.
6. A method for updating mobile portal data as claimed in claim 1, characterized in that: The specific process of pushing and updating is as follows: Dividing the encrypted update data according to the preset real-time data to obtain first real-time data and second real-time data; At a second preset time point, push time data is measured by a network performance analyzer to obtain a delay degree index, wherein the push time data includes a first medium transmission time, a first processing time, and a first waiting time; Determine whether the delay degree index meets the preset delay range, if so, push the first real-time data in real time, otherwise, do not push; Transmitting the second real-time data to the mobile portal at a preset time point, and filtering the second real-time data according to a preset execution time range to obtain updated first data; The updated first data is screened according to a preset execution frequency range to obtain final updated data.
7. A method for updating mobile portal data as claimed in claim 6, characterized in that: The delay index is calculated using the following formula: In the formula, α3 represents the delay index, C m represents the first medium transmission time of the first real-time data at the mth second preset time point, m=1, 2, ..., n, m represents the number of the second preset time point, n represents the total number of the second preset time points, L m represents the first processing time of the first real-time data at the mth second preset time point, P m represents the first waiting time of the first real-time data at the mth second preset time point, C represents the preset first time threshold, L represents the preset second time threshold, P represents the preset third time threshold, μ1 represents the preset first delay weight, μ2 represents the preset second delay weight, and μ3 represents the preset third delay weight.
8. A method for updating mobile portal data as claimed in claim 1, characterized in that: The specific process of the decryption process is as follows: Decrypting the first real-time data and the second real-time data using a key based on an advanced encryption standard method to obtain decrypted data; The hash value of the decrypted data and the data to be updated is obtained through the hash function, and the hash values of the two are compared to determine whether the decryption is correct. If the hash values are the same, the decryption is correct. Otherwise, it is fed back to the preset personnel for re-encryption.
9. A mobile portal data updating system, characterized in that: include: A module for acquiring data to be updated, an encryption processing module, a push update module and a decryption processing module; The to-be-updated data acquisition module is used to acquire the to-be-updated data according to preset information, wherein the preset information includes a preset data type, a preset data update range, and a preset data update frequency; The encryption processing module is used to encrypt the data to be updated to obtain encrypted update data, transmit the encrypted update data to the cloud storage service to obtain a storage security index, compare the obtained storage security index with a preset storage range, and re-encrypt if it exceeds the range. The storage security index is used to evaluate the security level of data storage; The push update module is used to divide the encrypted update data into first real-time data and second real-time data for push and update, push the first real-time data in real time to obtain a delay index, and set a timed task for the second real-time data. The delay index is used to evaluate the delay of the first real-time data when it is pushed in real time; The decryption processing module is used to decrypt the first real-time data and the second real-time data pushed to the mobile portal to obtain decrypted data.
10. An electronic device, characterized in that: The electronic device includes a memory for storing computer program instructions and a processor for executing program instructions, wherein when the computer program instructions are executed by the processor, the electronic device is triggered to execute a mobile portal data update method as described in any one of claims 1-8.
Citation Information
Cited By
Electronic equipment identity verification method and system based on machine learning
CN120582844A
