Data encryption method for computer software development based on the Internet of Things

Through monitoring and testing models, the problem of frequent key rotation updates in IoT devices is solved, system security and stability are improved, risks are reduced, and the key rotation process is optimized.

CN118171307BActive Publication Date: 2024-09-17HENAN FANWU NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410598320.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-15
Publication Date
2024-09-17
Estimated Expiration
2044-05-15

AI Technical Summary

Technical Problem

In the IoT environment, it is difficult for lightweight devices to support frequent key updates, which increases the risk of being attacked and affects the software development process.

Method used

By obtaining the encrypted fields in the encrypted data, monitor the key rotation security data, formulate a key rotation plan, monitor the rotation time deviation index, correction frequency and component configuration stability, build a data test model, and determine whether any occurrences occur during the key rotation process. exceptions, and implement system health checks to ensure normal operation.

Benefits of technology

It improves the security, stability and adaptability of the system, reduces risks, optimizes the key rotation process and reduces the need for manual intervention.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118171307B
    Figure CN118171307B
Patent Text Reader

Abstract

The invention discloses a data encryption method for computer software development based on the Internet of Things, and relates to the technical field of data encryption. The method obtains encrypted data of software development, identifies and extracts encrypted fields in the encrypted data, formulates a key rotation plan according to key rotation security data fed back in real time by a monitoring system, determines the frequency of key rotation, monitors and obtains the rotation time deviation index, rotation correction frequency and component configuration stability in the key rotation process during key rotation when performing key operation rotation, builds a data test model, determines whether an abnormality occurs in the key rotation process, and implements a system health check when an abnormality occurs in the key rotation process to ensure the normal operation of the rotation operation. By implementing comprehensive monitoring and system health check measures, the stability of the system is effectively improved, the risk of key leakage is reduced, the key rotation process is optimized, and the need for manual intervention is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data encryption, and in particular to a data encryption method for computer software development based on the Internet of Things. Background Art

[0002] Data security is critical when developing computer software in the Internet of Things (IoT) environment. Since the IoT involves communication and data exchange between a large number of devices, adopting appropriate data encryption methods is key to ensuring information security. Since IoT devices can collect a large amount of data, including location, behavior patterns, physiological indicators, etc., which may involve sensitive information of users and are at risk of being leaked or stolen, it is crucial to ensure that the privacy of these data is fully protected. Symmetric encryption algorithms are currently commonly used to protect software under development. By ensuring the secure distribution and management of keys, symmetric encryption algorithms can provide efficient data protection. However, long-term use of the same key may increase the risk of being attacked. However, in the IoT, regular key rotation may be challenging, especially on lightweight devices, because the device may not have sufficient computing and storage resources to support frequent key updates. If the key is leaked or has vulnerabilities, the security of the entire system may be threatened, which in turn affects the progress of software development. Summary of the invention

[0003] The purpose of the present invention is to provide a data encryption method for computer software development based on the Internet of Things to solve the shortcomings of the background technology.

[0004] In order to achieve the above object, the present invention provides the following technical solution: a data encryption method for computer software development based on the Internet of Things, comprising the following steps:

[0005] S1: Obtaining encrypted data for software development, identifying and extracting encrypted fields in the encrypted data, wherein the encrypted fields are code byte segments encrypted by a symmetric encryption algorithm;

[0006] S2: Based on the key rotation security data fed back by the monitoring system in real time, formulate a key rotation plan and determine the frequency of key rotation;

[0007] S3: When performing key operation rotation, monitor and obtain the rotation time deviation index, rotation correction frequency and component configuration stability during the key rotation process, build a data test model, and determine whether there is an abnormality in the key rotation process;

[0008] S4: When an abnormal situation occurs during the key rotation process, implement a system health check to ensure the normal operation of the rotation operation.

[0009] In a preferred embodiment, in S3, when performing key operation rotation, monitoring and obtaining the rotation time deviation index, rotation correction frequency and component configuration stability during the key rotation process;

[0010] The logic for obtaining the rotation time deviation index is as follows: obtain the rotation timestamp of the key rotation process, and calculate the actual rotation time for each rotation operation. , establish the actual rotation time set , p is a positive integer greater than 0, get the longest rotation time , shortest rotation time and the average rotation time , get the number of rotations with the longest rotation time , the number of rotations with the shortest rotation time , and the number of rotations greater than the average rotation time , the number of rotations that is less than or equal to the average rotation time , get the latest rotation time , calculate the rotation time deviation index, the calculation expression is: , where is the rotation time deviation index;

[0011] The logic for obtaining the rotation correction frequency is: The number of real-time data detections during the key rotation process within the time period ,exist During the data detection process, the number of times the system automatically corrects the abnormal detection , All are positive integers greater than 0, and the standard range for setting the number of times the system automatically corrects abnormal detection is: , calculate the rotation correction frequency, the calculation expression of the rotation correction frequency is: , The calculation expression for the number of times the abnormal detection is automatically corrected over time is: , The number of automatic corrections is less than the minimum standard correction number. The number of automatic corrections is greater than the maximum standard correction number. Correct frequency for rotation;

[0012] The logic for obtaining component configuration stability is: Number of times the routing configuration is checked within a time period , and in The number of times the routing configuration has changed during the data detection process , get the threshold of preset routing configuration change , compare the number of times the routing configuration changes with the threshold of routing configuration changes. When the number of times the routing configuration changes is greater than the threshold of routing configuration changes, calculate the component configuration stability. The calculation expression is: , where Configure stability for components.

[0013] In a preferred embodiment, the rotation time deviation index, rotation correction frequency and component configuration stability are input into a pre-built data test model for comprehensive calculation to calculate the hidden danger coefficient in the key rotation process. The calculation expression is: , where is the hidden danger coefficient, is the proportionality factor of rotation time deviation index, rotation correction frequency, component configuration stability, and ;

[0014] In a preferred embodiment, the hidden danger coefficient in the key rotation process is compared with the risk threshold. If the hidden danger coefficient is greater than or equal to the risk threshold, a warning signal is issued and a system health check is implemented; if the hidden danger coefficient is less than the risk threshold, no warning signal is issued.

[0015] In the above technical solution, the technical effects and advantages provided by the present invention are:

[0016] 1. The present invention obtains encrypted data developed by software, identifies and extracts encrypted fields in the encrypted data, formulates a key rotation plan based on key rotation security data fed back in real time by a monitoring system, determines the frequency of key rotation, and monitors and obtains the rotation time deviation index, rotation correction frequency, and component configuration stability during the key rotation process when performing key operation rotation, builds a data test model and flexibly adjusts the key rotation plan, so that the system can better adapt to environmental changes under different conditions. Moreover, by building a data test model, setting up a monitoring system, and implementing measures such as system health checks, it is helpful to monitor the system status more comprehensively and in real time, and improve the efficiency of problem discovery and resolution.

[0017] 2. The present invention constructs a data testing model to determine whether an abnormality occurs during the key rotation process. When an abnormality occurs during the key rotation process, a system health check is implemented to ensure the normal operation of the rotation operation. By implementing comprehensive monitoring, testing and system health check measures, the security, stability and adaptability of the system are effectively improved, the risk is reduced, the key rotation process is optimized, and the need for manual intervention is reduced. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present invention. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.

[0019] Figure 1 The figure is a flow chart of the method of the present invention. DETAILED DESCRIPTION

[0020] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0021] For examples, see Figure 1 As shown, the data encryption method for computer software development based on the Internet of Things described in this embodiment includes the following steps:

[0022] S1: Obtaining encrypted data for software development, identifying and extracting encrypted fields in the encrypted data, wherein the encrypted fields are code byte segments encrypted by a symmetric encryption algorithm;

[0023] S2: Based on the key rotation security data fed back by the monitoring system in real time, formulate a key rotation plan and determine the frequency of key rotation;

[0024] S3: When performing key operation rotation, monitor and obtain the rotation time deviation index, rotation correction frequency and component configuration stability during the key rotation process, build a data test model, and determine whether there is an abnormality in the key rotation process;

[0025] S4: When an abnormal situation occurs during the key rotation process, implement a system health check to ensure the normal operation of the rotation operation.

[0026] Among them, obtaining encrypted data for software development and identifying and extracting encrypted fields in the encrypted data mainly include the following:

[0027] Decompilation tools: Use decompilation tools (such as IDA Pro, Ghidra) to analyze the target binary file. Try to find functions involved in encryption operations and view the logic and data flow of these functions.

[0028] Find key initialization: Find the key initialization process and determine how the key is generated, loaded, and used.

[0029] Runtime debugging: Use debugging tools (such as GDB, WinDbg) to dynamically debug the target program at runtime and observe the encryption and decryption operations. This may require setting breakpoints at key points, such as encryption functions, key initialization, etc.

[0030] Memory analysis tools: Use memory analysis tools (such as Cheat Engine, Volatility) to monitor data changes in memory at runtime. This helps to see how encrypted data is represented in memory.

[0031] Examine the key generation process: Audit the key generation, distribution, and management process. Understand how keys are introduced into the system and how they are used at runtime.

[0032] Check key storage: Review how keys are stored in the system to ensure they are properly protected.

[0033] Network packet capture tools: Use network packet capture tools (such as Wireshark) to monitor the communication between the application and the external server. View the encrypted data in the data packet and analyze the communication protocol, data format, and encryption method.

[0034] Custom proxy tool: Write a custom proxy tool to intercept the data flow of the application's communication with the outside world and check whether it contains encrypted fields.

[0035] Search keywords: Use text search tools to find keywords related to encryption algorithms in the source code, such as AES, DES, etc. This may require decompiling or disassembling the code first.

[0036] It should be noted that the above methods require a deep understanding of how the software works and a high level of technical skills. In addition, in practice, technical challenges such as code obfuscation and encryption algorithm customization may be encountered, making it more difficult to identify and extract encrypted fields. When conducting such analysis, please ensure compliance with relevant laws and regulations, ethical standards, and the software's license agreement.

[0037] When developing a key rotation plan, it is important to use the key rotation security data fed back by the monitoring system in real time. Here are some guidelines to develop a more secure key rotation plan based on real-time feedback:

[0038] The monitoring system should provide real-time data, including the execution status of key rotation, the number of successful and failed rotations, rotation time, executor information, etc.

[0039] Define key indicators, such as rotation success rate, mean and standard deviation of rotation time, etc., to comprehensively evaluate the safety and efficiency of the rotation process.

[0040] Real-time monitoring of abnormal behaviors in the system, including abnormal frequency of rotation operations, unauthorized access, abnormal access to key storage areas, etc.

[0041] Set up alert mechanisms to promptly notify security teams or administrators so they can respond quickly to potential security incidents.

[0042] Based on real-time monitoring data, evaluate the rationality of the rotation frequency. If frequent rotations lead to system instability or low execution efficiency, the rotation plan may need to be adjusted.

[0043] Consider adopting an adaptive rotation strategy to dynamically adjust the rotation frequency based on system status and threat intelligence.

[0044] Monitor the security of key generation and distribution to ensure that these processes are not accessed by unauthorized persons. Implement secure key distribution mechanisms to prevent keys from being leaked during transmission.

[0045] Regularly audit the key generation and distribution process to ensure compliance with best practices and security standards.

[0046] Monitor access to key storage areas in real time to ensure that only authorized personnel or systems can access keys.

[0047] Detect unauthorized read, write, or delete operations on key storage areas to prevent potential attacks.

[0048] Monitor actual key usage, including the number, time, and source of encryption and decryption operations. This helps identify potential anomalous activity, such as frequent usage or use from unknown devices.

[0049] Set up an alarm mechanism to promptly detect abnormal use of keys.

[0050] Conduct key rotation drills regularly to evaluate the security and efficiency of the rotation process.

[0051] Based on real-time monitoring data, regularly evaluate the overall effectiveness of the key rotation plan and make adjustments and improvements as needed.

[0052] By continuously monitoring and evaluating real-time data, we can better understand the actual status of key rotation, detect potential problems in time and take corresponding measures to ensure the security of the key rotation process and the overall security of the system.

[0053] According to the key rotation plan, determine the frequency of key rotation, which mainly includes the following:

[0054] Sensitivity level: Determine the rotation frequency based on the sensitivity level of the data being protected. For highly sensitive data, more frequent rotation may be required.

[0055] Compliance requirements: Follow industry standards and regulations to ensure that key rotation frequency meets compliance standards.

[0056] Threat analysis: Conduct regular threat analysis to assess the threats facing the system. Adjust the key rotation frequency based on threat intelligence and attack trends.

[0057] Frequency of attacks: If the system faces frequent attacks, more frequent key rotation may be required to reduce the risk.

[0058] Cryptographic algorithm strength: Strong cryptographic algorithms generally remain secure longer. Choosing strong cryptographic algorithms can extend the rotation period.

[0059] Key length: The length of the key also affects security. Longer keys may require less rotation.

[0060] Performance impact: Key rotation may have some impact on system performance. Evaluate the performance overhead of the rotation operation to ensure that the system can still meet performance requirements during rotation.

[0061] Automation and asynchronous rotation: Consider using automation tools and asynchronous rotation to reduce the impact on system performance.

[0062] Historical vulnerabilities: Consider past security breaches and incidents to understand if there have been issues in the past due to keys not being rotated in a timely manner.

[0063] Case Studies: Study case studies of similar systems in the industry to understand their key rotation practices and experiences.

[0064] Business cycle: Consider business processes and periodicity. If there is a specific business cycle, you may need to perform key rotation at the end of the business cycle.

[0065] Operational costs: Evaluate the operational costs of key rotation, including labor, time, and system downtime.

[0066] Monitoring data: Leverage data provided by real-time monitoring systems, including key usage and potential threats, to adjust rotation frequency.

[0067] Audit History: Regularly audit the history of key rotations to assess the effectiveness and security of past rotations.

[0068] Specifically, in the decision-making process, these factors need to be considered comprehensively and continuously optimized according to actual conditions. The key rotation frequency is not static and should be flexibly adjusted according to the evolution of the system, changes in the threat environment, and updates to business needs.

[0069] When performing key operation rotation, monitor and obtain the rotation time deviation index, rotation correction frequency and component configuration stability during the key rotation process, build a data test model, and determine whether there are any abnormalities in the key rotation process;

[0070] The logic for obtaining the rotation time deviation index is as follows: obtain the rotation timestamp of the key rotation process, which includes the time when the rotation starts and the time when the rotation is completed. For each rotation operation, calculate the actual time of the rotation. , that is, the time to complete the rotation minus the time to start the rotation, to establish the actual rotation time set , p is a positive integer greater than 0, get the longest rotation time , shortest rotation time and the average rotation time , get the number of rotations with the longest rotation time , the number of rotations with the shortest rotation time , and the number of rotations greater than the average rotation time , the number of rotations that is less than or equal to the average rotation time , get the latest rotation time , calculate the rotation time deviation index, the calculation expression is: , where is the rotation time deviation index;

[0071] A larger rotation time deviation index value may indicate anomalies in the key rotation process. This is because the main function of the rotation time deviation index is to measure the stability and consistency of the rotation time. When the rotation time deviation index value is large, the following situations may occur:

[0072] Inconsistent rotation time: A large rotation time deviation index indicates that the rotation time varies greatly and there is inconsistency between different rotation operations. This may be due to unstable execution time of rotation operations caused by factors such as system load, network latency, key generation, etc.

[0073] Abnormal events occurred: A large rotation time deviation index may indicate that abnormal events occurred in some rotation operations, such as key generation failures, key distribution delays, or other problems in performing the steps required for rotation.

[0074] Performance issues: Large rotation time deviations may be an indicator of system performance issues. This may include insufficient hardware resources, network congestion, or other factors that cause rotation operations to take longer.

[0075] Human Error: A large rotation time deviation index can be caused by human error, such as incorrect configuration, key storage issues, or operator error.

[0076] The rotation correction frequency refers to the frequency of taking corrective measures when anomalies or problems are detected during the key rotation process. The purpose of corrective measures is to solve problems in a timely manner and ensure the reliability, security, and consistency of the key rotation process.

[0077] The purpose of calculating the rotation correction frequency is to evaluate whether anomalies occur during the key rotation process. The rotation correction frequency reflects how often the system automatically corrects anomalies during the key rotation process. Frequent automatic corrections may indicate problems in the rotation process, and constant anomalies may have a negative impact on the security and reliability of the system. The following are the purposes of calculating the rotation correction frequency:

[0078] The rotation correction frequency can be used as an indicator of the anomaly detection system to evaluate the system's sensitivity to anomalies in the rotation process. If the correction frequency is high, it may indicate that the system has better detection and correction capabilities for anomalies. Early detection of problems:

[0079] A high rotation correction frequency may be an indication that the system is detecting a problem at an early stage and attempting to correct it automatically. This helps to identify potential safety hazards or system performance issues early so that appropriate corrective actions can be taken.

[0080] A high rotation correction frequency may indicate that the system may have security vulnerabilities in the key rotation process. By monitoring this frequency, the security of the system can be evaluated in a timely manner and necessary security measures can be taken.

[0081] A low rotation correction frequency may indicate that the system is running well and that few anomalies occur during the rotation process. This helps maintain the efficient operation of the system and reduces the additional burden on operation and maintenance personnel.

[0082] By monitoring the rotation correction frequency, problems in the rotation process can be discovered and useful information can be provided for improving the rotation process. This may include optimizing automation scripts, improving key generation and distribution processes, etc.

[0083] A high rotation correction frequency may raise compliance and audit concerns. Monitoring the rotation frequency can help ensure that the system meets relevant compliance standards and provide relevant information during the audit process.

[0084] The logic for obtaining the rotation correction frequency is: The number of real-time data detections during the key rotation process within the time period ,exist During the data detection process, the number of times the system automatically corrects the abnormal detection , All are positive integers greater than 0, and the standard range for setting the number of times the system automatically corrects abnormal detection is: , calculate the rotation correction frequency, the calculation expression of the rotation correction frequency is: , The calculation expression for the number of times the abnormal detection is automatically corrected over time is: , The number of automatic corrections is less than the minimum standard correction number. The number of automatic corrections is greater than the maximum standard correction number. For the rotation correction frequency, if the rotation correction frequency The larger the value, the more likely it is that anomalies will occur during the key rotation process. This is because frequent automatic corrections may indicate that the system has encountered problems during the rotation process and requires automatic repair.

[0085] The stability of component configuration during data transmission means that the configuration of each component (software, hardware, network equipment, etc.) used in the entire data transmission process remains stable and reliable, and does not change frequently or have abnormalities, so as to ensure the continuity, integrity and availability of data transmission.

[0086] The logic for obtaining component configuration stability is: Number of times the routing configuration is checked within a time period , and in The number of times the routing configuration was found to have changed during the data detection process. , get the threshold of preset routing configuration change , compare the number of routing configuration changes with the routing configuration change threshold. The specific value of the routing configuration change threshold is determined according to the actual scenario. When the number of routing configuration changes is greater than the routing configuration change threshold, calculate the component configuration stability. The calculation expression is: , where Configure stability for components;

[0087] The higher the stability of component configuration, the more important it is for evaluating whether anomalies occur during key rotation:

[0088] Reduce potential risks: Highly stable component configuration means that during the key rotation process, key components of the system, such as hardware, software, and network, are less likely to change.

[0089] Improve the reliability of the rotation process: The high stability of component configuration helps improve the reliability of the entire key rotation process. Stable component configuration reduces the possibility of unexpected problems during the rotation process, ensuring that the rotation operation can be executed as planned, reducing the risk of interruption or failure.

[0090] Ensure the continuity of data transmission: Highly stable component configuration helps ensure the continuity of data transmission during key rotation. Throughout the process, the component configuration remains stable, reducing data transmission interruption or loss caused by configuration changes.

[0091] Reduce system performance fluctuations: Improving configuration stability helps reduce system performance fluctuations. If component configurations change frequently during key rotation, system performance may become unstable, while a stable configuration helps maintain the normal operation of the system.

[0092] Reduce the risk of human error: Stable component configuration reduces the risk of human error. Frequent configuration changes may increase the probability of configuration errors, while a stable configuration environment can reduce problems caused by misoperation or improper configuration.

[0093] Improve overall security: Stable component configuration also has a positive impact on the security of the overall system. During the key rotation process, the stability of the configuration helps ensure the normal operation of security components (such as encryption algorithms, authentication mechanisms, etc.) and prevent unnecessary vulnerabilities or risks.

[0094] The rotation time deviation index, rotation correction frequency and component configuration stability are input into the pre-built data test model for comprehensive calculation to calculate the hidden danger coefficient in the key rotation process. The calculation expression is: , where is the hidden danger coefficient, is the proportionality factor of rotation time deviation index, rotation correction frequency, component configuration stability, and ,

[0095] The hidden danger coefficient during the key rotation process is compared with the risk threshold. If the hidden danger coefficient is greater than or equal to the risk threshold, it means that the risk of privacy leakage during the key rotation process is high. At this time, an early warning signal is issued, a system health check is implemented, and the relevant responsible personnel and team members are immediately notified to ensure that the relevant personnel can understand and participate in the processing in a timely manner; if the hidden danger coefficient is less than the risk threshold, it means that the risk of privacy leakage during the key rotation process is low, and no early warning signal is issued.

[0096] Implementing system health checks is a key measure when anomalies occur during the key rotation process, helping to ensure the normal operation of the system. The following are some recommended system health check steps:

[0097] Check system logs: Analyze system logs to obtain detailed information about the exception. Check system logs to see if there are errors or exceptions related to key rotation.

[0098] Verify key rotation status: Check the current status of key rotation. Ensure that the rotation operation has been completed or properly aborted. Verify that the key has been successfully rotated and confirm that the new key has taken effect in the system.

[0099] Check key store: Confirm the integrity and accuracy of the key store. Check that the key store contains the correct key versions and troubleshoot any storage issues.

[0100] Verify certificates and digital signatures: If the key rotation involves certificates or digital signatures, verify their validity. Ensure that the certificates associated with the new keys are correctly issued and that the digital signatures are valid.

[0101] Test key functionality: Perform a series of tests to verify the functionality of the new key. This may include operations such as encryption, decryption, and digital signature verification to ensure that the new key can be used for system functions normally.

[0102] Check critical services and applications: Check the critical services and applications in the system to ensure they are functioning properly. Key rotation may affect each component that uses the key, so ensure the continuity of the entire system.

[0103] Performance monitoring: Monitor system performance and check if there are any performance issues related to key rotation. You may need to pay attention to indicators such as system resource usage and response time.

[0104] Network connection test: If the key rotation involves network devices or communication channels, perform a network connection test to ensure the reliability of the network connection and avoid communication problems caused by key rotation.

[0105] Rollback plan: If unresolvable problems are found during the key rotation process, execute the rollback plan to restore the system to the state before the rotation. Ensure that the rollback operation can be performed quickly and effectively.

[0106] Notify relevant personnel: During the system health check process, maintain communication with relevant teams and promptly notify relevant situations, especially after the system returns to normal operation.

[0107] Continuous monitoring: After the system health check, the system's operating status is continuously monitored to ensure that the system can run stably and prevent potential problems from happening again.

[0108] In this embodiment, by obtaining encrypted data developed by the software, identifying and extracting encrypted fields in the encrypted data, formulating a key rotation plan and determining the frequency of key rotation based on the key rotation security data fed back in real time by the monitoring system, when performing key operation rotation, monitoring and obtaining the rotation time deviation index, rotation correction frequency and component configuration stability during the key rotation process, building a data testing model to determine whether an abnormality occurs during the key rotation process, and when an abnormality occurs during the key rotation process, implementing a system health check to ensure the normal operation of the rotation operation, and by implementing comprehensive monitoring, testing and system health check measures, effectively improving the security, stability and adaptability of the system, reducing risks, optimizing the key rotation process, and reducing the need for manual intervention.

[0109] The above formulas are all dimensionless and numerical calculations. The formula is a formula for the most recent real situation obtained by collecting a large amount of data and performing software simulation. The preset parameters in the formula are set by technicians in this field according to actual conditions.

[0110] The above embodiments can be implemented in whole or in part by software, hardware, firmware or any other combination. When implemented by software, the above embodiments can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that contains one or more available media sets. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium. The semiconductor medium can be a solid-state hard disk.

[0111] It should be understood that the term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. A and B can be singular or plural. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship, but it may also indicate an "and / or" relationship. Please refer to the context for specific understanding.

[0112] In this application, "at least one" means one or more, and "more than one" means two or more. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can be represented by: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.

[0113] It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0114] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0115] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0116] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0117] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0118] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0119] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage media include: various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories (ROM), random access memories (RAM), magnetic disks or optical disks.

[0120] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A data encryption method for computer software development based on the Internet of Things, characterized in that: The following steps are involved: S1: Obtaining encrypted data for software development, identifying and extracting encrypted fields in the encrypted data, wherein the encrypted fields are code byte segments encrypted by a symmetric encryption algorithm; S2: Based on the key rotation security data fed back by the monitoring system in real time, formulate a key rotation plan and determine the frequency of key rotation; S3: When performing key operation rotation, monitor and obtain the rotation time deviation index, rotation correction frequency and component configuration stability during the key rotation process, build a data test model, and determine whether there is an abnormality in the key rotation process; The logic for obtaining the rotation time deviation index is as follows: obtain the rotation timestamp of the key rotation process, and calculate the actual rotation time for each rotation operation. , establish the actual rotation time set , p is a positive integer greater than 0, get the longest rotation time , shortest rotation time and the average rotation time , get the number of rotations with the longest rotation time , the number of rotations with the shortest rotation time , and the number of rotations greater than the average rotation time , the number of rotations that is less than or equal to the average rotation time , get the latest rotation time , calculate the rotation time deviation index, the calculation expression is: , where is the rotation time deviation index; The logic for obtaining the rotation correction frequency is: The number of real-time data detections during the key rotation process within the time period ,exist During the data detection process, the number of times the system automatically corrects the abnormal detection , All are positive integers greater than 0, and the standard range for setting the number of times the system automatically corrects abnormal detection is: , calculate the rotation correction frequency, the calculation expression of the rotation correction frequency is: , The calculation expression for the number of times the abnormal detection is automatically corrected over time is: , The number of automatic corrections is less than the minimum standard correction number. The number of automatic corrections is greater than the maximum standard correction number. Correct frequency for rotation; The logic for obtaining component configuration stability is: Number of times the routing configuration is checked within a time period , and in The number of times the routing configuration has changed during the data detection process , get the threshold of preset routing configuration change , compare the number of times the routing configuration changes with the threshold of routing configuration changes. When the number of times the routing configuration changes is greater than the threshold of routing configuration changes, calculate the component configuration stability. The calculation expression is: , where Configure stability for components; The rotation time deviation index, rotation correction frequency and component configuration stability are input into the pre-built data test model for comprehensive calculation to calculate the hidden danger coefficient in the key rotation process. The calculation expression is: , where is the hidden danger coefficient, is the proportionality factor of rotation time deviation index, rotation correction frequency, component configuration stability, and ; S4: When an abnormal situation occurs during the key rotation process, perform a system health check to ensure the normal operation of the rotation operation; The hidden danger coefficient during the key rotation process is compared with the risk threshold. If the hidden danger coefficient is greater than or equal to the risk threshold, an early warning signal is issued and a system health check is implemented; if the hidden danger coefficient is less than the risk threshold, no early warning signal is issued.