A software security protection reinforcement method, device and medium
By encrypting and saving the software logic information to the local device, releasing the interface information to the terminal, and generating an access code, the problem of software security protection in the prior art relying on local media is solved, and the security and portability of the software logic information is realized.
Patent Information
- Application Number
- CN202111554942.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-17
- Publication Date
- 2025-05-16
- Estimated Expiration
- 2041-12-17
AI Technical Summary
In the prior art, the security protection of software relies on local security media, which makes it difficult for users to carry, and the cost of reissue after loss is high.
By reading the software information of the software to be protected, the logical information is encrypted and saved to the local device, the interface information is released to the terminal, and the access code of the logical information and interface information is generated. The user operates on the terminal through the interface information and calls the logical information through the access code.
It realizes the separate storage of software logical information and interface information, avoids the risk of logical information being tampered with and obtained by non-beneficial third parties, and software security protection is achieved without the need for local security media, avoiding the cost of loss and reissue.
Smart Images

Figure CN114239085B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of information processing technology, and in particular to a software security protection reinforcement method, device and medium. Background Art
[0002] For software developers, whether it is application software or system software, they all face the severe challenge of software security protection and reinforcement. In layman's terms, software developed in any language will eventually be delivered to the production environment for operation, and users and third parties will have access to the final software product, thus having the opportunity to reverse engineer and analyze the software product, especially some core key intellectual property rights, such as core algorithms, core authentication schemes, etc., which may be obtained through reverse engineering or other logical analysis methods. Therefore, software security protection is particularly critical.
[0003] Current technology usually relies on local security media to achieve software security protection. For example, the COS of physical media such as USB dongles and PIN devices is authenticated with local software to confirm authorization. The advantages of this type of security protection and reinforcement solution are high security. The software and local media need to be bidirectionally verified before they can be authorized, and some key algorithms can be embedded in the local physical media. However, the disadvantage is that it is not easy for users to carry it, and reissuing it after loss will also bring time and cost costs.
[0004] It can be seen that how to provide a software security protection method that does not rely on local security media is an urgent problem to be solved by those skilled in the art. Summary of the invention
[0005] The purpose of this application is to provide a software security protection reinforcement method, device and medium.
[0006] In order to solve the above technical problems, the present application provides a software security protection reinforcement method, which includes:
[0007] Reading software information of the software to be protected, wherein the software information includes logic information and interface information;
[0008] Encrypting and saving each of the logic information to a local device;
[0009] Releasing each of the interface information to the terminal;
[0010] Generate access codes for each of the logical information and the corresponding interface information;
[0011] After detecting the interface information selected by the terminal, the corresponding logic information is called according to the access code corresponding to the interface information.
[0012] Preferably, the reading of software information of the software to be protected includes:
[0013] The software information of the software to be protected is read in a byte stream manner.
[0014] Preferably, the step of encrypting and saving each of the logic information comprises:
[0015] Obtaining the size of the software to be protected;
[0016] Generate each random time interrupt signal quantity and a corresponding random interrupt label value according to the size of the software to be protected;
[0017] When the random time interrupt signal is detected, reading the current byte address of the software information;
[0018] The current byte address is used as the end address, and the historical byte address corresponding to the previous random time interrupt signal is used as the start address;
[0019] Segment processing is performed on the software information according to each of the end addresses and the corresponding start addresses to generate each segment of software information;
[0020] The software information of each segment is stored in the local device.
[0021] Preferably, after the step of reading the current byte address of the software information, the method further includes:
[0022] The preset algorithm is called to perform initial encryption on the current byte address, and the current byte address becomes the first pending point.
[0023] Preferably, it also includes:
[0024] The first undetermined point is encrypted, and the first undetermined point becomes the second undetermined point.
[0025] Preferably, after the step of storing each piece of software information into the device memory, the method further includes:
[0026] Generate a call feature code position of each piece of software information in the device memory according to the interrupt signal quantity and the corresponding random interrupt label value;
[0027] Further, the calling of the corresponding logic information according to the access code corresponding to the interface information includes:
[0028] The corresponding logic information is called according to the access code corresponding to the interface information and the calling feature code position.
[0029] Preferably, the encrypting the first undetermined point to change the first undetermined point into the second undetermined point comprises:
[0030] Obtaining MD data information of the software to be protected;
[0031] Obtaining a local address of the local device;
[0032] The first undetermined point is encrypted according to the MD data information and the local address, and the first undetermined point becomes the second undetermined point.
[0033] In order to solve the above technical problems, the present application also provides a software security protection reinforcement device, which includes:
[0034] A reading module, used to read software information of the software to be protected, wherein the software information includes logic information and interface information;
[0035] A storage module, used for encrypting and storing each of the logic information in a local device;
[0036] A release module, used for releasing each of the interface information to the terminal;
[0037] A generating module, used to generate an access code for each of the logic information and the corresponding interface information;
[0038] The calling module is used to call the corresponding logic information according to the access code corresponding to the interface information after detecting the interface information selected by the terminal.
[0039] In order to solve the above technical problems, the present application also provides another software security protection reinforcement device, which includes:
[0040] Memory for storing computer programs;
[0041] A processor is used to implement the steps of the software security protection reinforcement method as described above when executing the computer program.
[0042] In order to solve the above technical problems, the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the software security protection reinforcement method as described above are implemented.
[0043] The software security protection reinforcement method provided by the present application reads the software information of the software to be protected, saves and encrypts each logical information in the software information to the local device, releases each interface information in the software information to the terminal, generates access codes for each logical information and the corresponding interface information, and after detecting the interface information selected by the terminal, calls the corresponding logical information according to the access code corresponding to the interface information. Compared with the current technology, it is necessary to use a local security medium to realize the security protection of the software. With this technical solution, the logical part of the software is encrypted and saved, and only the interface information required by the human-computer interaction interface is released to the terminal, and the access code for each logical information and the corresponding interface information is generated, so that the user can only operate according to the interface information on the human-computer interaction interface, and the call of the logical information is realized through the corresponding access code. The separate storage of the logical information and the interface information of the software is realized. In addition, the logical information is encrypted and saved, which effectively avoids the possibility of tampering and acquisition of the logical information by a third party with bad intentions. With this technical solution, the security protection of the software can be realized without using a local security medium, avoiding the possibility of loss.
[0044] In addition, the software security protection reinforcement device and medium provided in this application correspond to the above-mentioned software security protection reinforcement method, and the effect is the same as above. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0046] Figure 1 A flowchart of a software security protection reinforcement method provided in an embodiment of the present application;
[0047] Figure 2 A structural diagram of a software security protection reinforcement device provided in an embodiment of the present application;
[0048] Figure 3 A structural diagram of another software security protection reinforcement device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0049] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0050] The core of this application is to provide a software security protection reinforcement method, device and medium.
[0051] In order to enable those skilled in the art to better understand the present application, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0052] Figure 1 A flowchart of a software security protection reinforcement method provided in an embodiment of the present application is as follows: Figure 1 As shown, the method includes:
[0053] S10: Reading software information of the software to be protected, where the software information includes logic information and interface information.
[0054] In this embodiment, the software to be protected is a software product developed by a software development manufacturer, which can be application software or system software.
[0055] Application software is software provided to meet the application needs of users in different fields and different problems. It can broaden the application field of computer systems and amplify the functions of hardware. It is a collection of various programming languages that users can use and application programs compiled in various programming languages, which are divided into application software packages and user programs.
[0056] System software refers to the system that controls and coordinates computers and external devices, supports the development and operation of application software, and is a collection of various programs that do not require user intervention. Its main functions are to schedule, monitor and maintain computer systems; it is responsible for managing various independent hardware in the computer system so that they can work in coordination. System software allows computer users and other software to treat the computer as a whole without having to consider how each underlying hardware works.
[0057] It is understandable that the software information of the software to be protected includes the software operation logic, data processing and other logical information, which is the information needed to ensure the normal operation of the software and is an important research and development achievement of the R&D personnel. The interface information is the information that is convenient for the user to operate. The user can select the interface information through the terminal to make the device execute the logical information.
[0058] S11: Encrypt and save each logical information to a local device.
[0059] S12: Release each interface information to the terminal.
[0060] In step S11 and step S12, the logic information and the interface information in the software information are saved separately. The logic information is encrypted and saved on the local device, and the interface information is sent to the terminal for user operation.
[0061] S13: Generate access codes for each logical information and corresponding interface information.
[0062] S14: After detecting the interface information selected by the terminal, calling corresponding logic information according to the access code corresponding to the interface information.
[0063] In the specific implementation, since the logic information and the interface information are located in different engines, each logic information is matched with the corresponding interface information to generate an access code corresponding to each logic information and interface information. When the user selects the interface information on the terminal, the logic information is called through the access code corresponding to the interface information to realize the operation of the software.
[0064] The software security protection reinforcement method provided by the present application reads the software information of the software to be protected, saves and encrypts each logical information in the software information to the local device, releases each interface information in the software information to the terminal, generates access codes for each logical information and the corresponding interface information, and after detecting the interface information selected by the terminal, calls the corresponding logical information according to the access code corresponding to the interface information. Compared with the current technology, it is necessary to use a local security medium to realize the security protection of the software. With this technical solution, the logical part of the software is encrypted and saved, and only the interface information required by the human-computer interaction interface is released to the terminal, and the access code for each logical information and the corresponding interface information is generated, so that the user can only operate according to the interface information on the human-computer interaction interface, and the call of the logical information is realized through the corresponding access code. The separate storage of the logical information and the interface information of the software is realized. In addition, the logical information is encrypted and saved, which effectively avoids the possibility of tampering and acquisition of the logical information by a third party with bad intentions. With this technical solution, the security protection of the software can be realized without using a local security medium, avoiding the possibility of loss.
[0065] In specific implementation, there are two different ways to obtain software information: byte stream and character stream. The number of bytes read and written each time is different. The character stream is block reading and writing, and the byte stream is byte reading and writing.
[0066] Based on the above embodiment, in this embodiment, reading the software information of the software to be protected includes:
[0067] Read the software information of the software to be protected in the form of byte stream.
[0068] It is understandable that compared with character streams, byte streams have a wider range of properties. Byte streams can contain characters, binary files, audio, or any other type of data. Anything that can be stored in byte form can be connected to a byte stream, while a character stream can only be connected to characters.
[0069] The software security protection and reinforcement method provided in the present application reads the software information of the software to be protected in the form of a byte stream, so that the software security protection and reinforcement method provided in the present application is applicable to software to be protected with various attributes.
[0070] Based on the above embodiment, in this embodiment, encrypting and saving each logic information includes:
[0071] Get the size of the software to be protected;
[0072] Generate random time interrupt semaphores and corresponding random interrupt label values according to the size of the software to be protected;
[0073] When a random time interrupt signal is detected, the current byte address of the software information is read;
[0074] The current byte address is used as the end address, and the historical byte address corresponding to the previous random time interrupt semaphore is used as the start address;
[0075] Segment processing is performed on the software information according to each end address and the corresponding start address to generate each segment of software information;
[0076] Store each piece of software information in the local device.
[0077] In this embodiment, the size of the software to be protected refers to the size of the data of the software to be protected, which is determined in units of byte length or size. In a specific implementation, the size of the software to be protected can be obtained by reading the header information of the file of the software information. Afterwards, a random time interrupt signal and a corresponding random interrupt label value are generated according to the size of the software to be protected. It can be understood that the number of random time interrupt signal and the corresponding random interrupt label value should be multiple. Among them, the generation range of the random interrupt label value should be pre-set, usually randomly generated between 1 and a preset value. It can be understood that the generation frequency of the random time interrupt signal should not be less than the quotient of the size of the software to be protected and the preset value. When the random time interrupt signal is detected, the current byte address of the software information is read, the current byte address is used as the end address, and the historical byte address corresponding to the previous random time interrupt signal is used as the start address. The action is repeatedly performed so that the software information is divided into multiple segments of software information. Then each segment of software information is stored in the local device, thereby achieving the encryption effect.
[0078] The software security protection reinforcement method provided by the present application processes the software information in segments through random time interrupt semaphores and random interrupt label values, divides the total software information into multiple segments of software information, and stores the segment software information in a local device. Since the generation of interrupt semaphores and random interrupt label values is unpredictable, the encrypted storage of software information is achieved.
[0079] In the above embodiment, encryption is achieved by segmenting the software information.
[0080] Based on the above embodiment, in this embodiment, after the step of reading the current byte address of the software information, the method further includes:
[0081] The preset algorithm is called to perform initial encryption on the current byte address, and the current byte address becomes the first pending point.
[0082] In this embodiment, the current byte address can be encrypted using the current byte address and the last detected random time interrupt signal through the HASH algorithm. It can be understood that the use of the HASH algorithm can effectively prevent a malicious third party from inferring the current byte address or the random time interrupt signal through the first pending point.
[0083] The software security protection reinforcement method provided in the present application encrypts the start address and end address of each segment software information by encrypting the current byte address, thereby preventing a malicious third party from modifying the segment software information after finding the segment software information in the local device.
[0084] In the above embodiment, the current byte address is initially encrypted by a preset algorithm, such as a HASH algorithm. In this embodiment, the current byte address after the initial encryption is encrypted for a second time to further enhance the confidentiality of the start address and end address of each segment of software information.
[0085] Based on the above embodiment, in this embodiment, it further includes:
[0086] The first pending point is encrypted and becomes the second pending point.
[0087] In this embodiment, similarly, the HASH algorithm can be used again to encrypt the first undetermined point again through different values, such as a special value of the local device, a special value of the software to be protected, etc.
[0088] The software security protection reinforcement method provided in the present application encrypts the first pending point again, further enhancing the confidentiality of the start address and end address of each segment of software information.
[0089] Based on the above embodiment, in this embodiment, after the step of storing each piece of software information into the device memory, the following steps are further included:
[0090] Generate the call feature code position of each piece of software information in the device memory according to the interrupt signal quantity and the corresponding random interrupt label value;
[0091] Further, calling corresponding logic information according to the access code corresponding to the interface information includes:
[0092] The corresponding logic information is called according to the access code corresponding to the interface information and the calling feature code position.
[0093] The software security protection reinforcement method provided in the present application generates the call feature code position of each segment of software information in the device memory according to the interrupt signal quantity and the corresponding random interrupt label value. After detecting the interface information selected by the user through the terminal, the corresponding logical information is called according to the access code corresponding to the interface information and the call feature code position, so as to realize the call of the logical information corresponding to the interface information.
[0094] On the basis of the above embodiment, in this embodiment, encrypting the first undetermined point and changing the first undetermined point into the second undetermined point includes:
[0095] Obtain MD data information of the software to be protected;
[0096] Get the local address of the local device;
[0097] The first pending point is encrypted according to the MD data information and the local address, and the first pending point becomes the second pending point.
[0098] In a specific implementation, each software to be protected has its own MD data information (message data). Therefore, in this embodiment, the first point to be determined can be encrypted again through the HASH algorithm using the MD data information and the local address of the local device.
[0099] The software security protection reinforcement method provided in the present application encrypts the first pending point according to the MD data information of the software to be protected and the local address of the local device, further strengthening the confidentiality of the start address and end address of each segment of software information.
[0100] In the above embodiments, the software security protection reinforcement method is described in detail, and the present application also provides embodiments corresponding to the software security protection reinforcement device. It should be noted that the present application describes the embodiments of the device part from two perspectives, one is based on the functional module perspective, and the other is based on the hardware perspective.
[0101] Figure 2 A structural diagram of a software security protection reinforcement device provided in an embodiment of the present application, such as Figure 2 As shown, the device comprises:
[0102] The reading module 10 is used to read the software information of the software to be protected, and the software information includes logic information and interface information;
[0103] The storage module 11 is used to encrypt and store each logical information in a local device.
[0104] The release module 12 is used to release each interface information to the terminal.
[0105] The generating module 13 is used to generate access codes for each logical information and corresponding interface information.
[0106] The calling module 14 is used to call corresponding logic information according to the access code corresponding to the interface information after detecting the interface information selected by the terminal.
[0107] Since the embodiments of the apparatus part correspond to the embodiments of the method part, please refer to the description of the embodiments of the method part for the embodiments of the apparatus part, which will not be repeated here.
[0108] The software security protection reinforcement device provided by the present application reads the software information of the software to be protected, saves and encrypts each logical information in the software information to the local device, releases each interface information in the software information to the terminal, generates access codes for each logical information and the corresponding interface information, and after detecting the interface information selected by the terminal, calls the corresponding logical information according to the access code corresponding to the interface information. Compared with the current technology, it is necessary to use a local security medium to achieve security protection of the software. With this technical solution, the logical part of the software is encrypted and saved, and only the interface information required by the human-computer interaction interface is released to the terminal, and the access code for each logical information and the corresponding interface information is generated, so that the user can only operate according to the interface information on the human-computer interaction interface, and the call of the logical information is realized through the corresponding access code. The separate storage of the logical information and the interface information of the software is realized. In addition, the logical information is encrypted and saved, which effectively avoids the possibility of tampering and acquisition of the logical information by malicious third parties. With this technical solution, the security protection of the software can be achieved without using a local security medium, avoiding the possibility of loss.
[0109] Figure 3 A structural diagram of another software security protection reinforcement device provided in an embodiment of the present application, such as Figure 3 As shown, the device comprises: a memory 20 for storing a computer program;
[0110] The processor 21 is used to implement the steps of the software security protection and reinforcement method in the above embodiment when executing a computer program.
[0111] The software security protection reinforcement device provided in this embodiment may include but is not limited to a smart phone, a tablet computer, a laptop computer or a desktop computer.
[0112] Among them, the processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 21 can be implemented in at least one hardware form of a digital signal processor (DSP), a field-programmable gate array (FPGA), and a programmable logic array (PLA). The processor 21 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a central processing unit (CPU); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 21 may be integrated with a graphics processing unit (GPU), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 21 may also include an artificial intelligence (AI) processor, which is used to process computing operations related to machine learning.
[0113] The memory 20 may include one or more computer-readable storage media, which may be non-transitory. The memory 20 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 20 is at least used to store the following computer program 201, wherein, after the computer program is loaded and executed by the processor 21, it can implement the relevant steps of the software security protection reinforcement method disclosed in any of the aforementioned embodiments. In addition, the resources stored in the memory 20 may also include an operating system 202 and data 203, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 202 may include Windows, Unix, Linux, etc. Data 203 may include, but is not limited to, current byte address, access code, logical information, interface information, etc.
[0114] In some embodiments, the software security protection reinforcement device may also include a display screen 22, an input and output interface 23, a communication interface 24, a power supply 25 and a communication bus 26.
[0115] Those skilled in the art will understand that Figure 3 The structure shown in does not constitute a limitation on the software security protection reinforcement device and may include more or fewer components than shown in the figure.
[0116] The software security protection reinforcement device provided in the embodiment of the present application includes a memory and a processor. When the processor executes the program stored in the memory, it can implement the following method: read the software information of the software to be protected, the software information includes logic information and interface information; encrypt and save each logic information to a local device; release each interface information to a terminal; generate an access code for each logic information and the corresponding interface information; after detecting the interface information selected by the terminal, call the corresponding logic information according to the access code corresponding to the interface information.
[0117] The software security protection reinforcement device provided by the present application reads the software information of the software to be protected, saves and encrypts each logical information in the software information to the local device, releases each interface information in the software information to the terminal, generates access codes for each logical information and the corresponding interface information, and after detecting the interface information selected by the terminal, calls the corresponding logical information according to the access code corresponding to the interface information. Compared with the current technology, it is necessary to use a local security medium to achieve security protection of the software. With this technical solution, the logical part of the software is encrypted and saved, and only the interface information required by the human-computer interaction interface is released to the terminal, and the access code for each logical information and the corresponding interface information is generated, so that the user can only operate according to the interface information on the human-computer interaction interface, and the call of the logical information is realized through the corresponding access code. The separate storage of the logical information and the interface information of the software is realized. In addition, the logical information is encrypted and saved, which effectively avoids the possibility of tampering and acquisition of the logical information by malicious third parties. With this technical solution, the security protection of the software can be achieved without using a local security medium, avoiding the possibility of loss.
[0118] Finally, the present application also provides an embodiment corresponding to a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps recorded in the above method embodiment are implemented.
[0119] It is understandable that if the method in the above embodiment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.
[0120] The computer-readable storage medium provided in the present application reads the software information of the software to be protected, saves and encrypts each logical information in the software information to a local device, releases each interface information in the software information to a terminal, generates access codes for each logical information and the corresponding interface information, and after detecting the interface information selected by the terminal, calls the corresponding logical information according to the access code corresponding to the interface information. Compared with the current technology, it is necessary to use a local security medium to realize the security protection of the software. With the present technical solution, the logical part of the software is encrypted and saved, and only the interface information required by the human-computer interaction interface is released to the terminal, and the access code for each logical information and the corresponding interface information is generated, so that the user can only operate according to the interface information on the human-computer interaction interface, and the call of the logical information is realized through the corresponding access code. The separate storage of the logical information and the interface information of the software is realized. In addition, the logical information is encrypted and saved, which effectively avoids the possibility of tampering and acquisition of the logical information by a third party with bad intentions. With the present technical solution, the security protection of the software can be realized without using a local security medium, avoiding the possibility of loss.
[0121] The software security protection reinforcement method, device and medium provided by the present application are introduced in detail above. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the embodiments can refer to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can refer to the method part description. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of the present application.
[0122] It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.
Claims
1. A software security protection reinforcement method, characterized in that: include: Reading software information of the software to be protected, wherein the software information includes logic information and interface information; Encrypting and saving each of the logic information to a local device; Releasing each of the interface information to the terminal; Generate access codes for each of the logical information and the corresponding interface information; After detecting the interface information selected by the terminal, calling the corresponding logic information according to the access code corresponding to the interface information; The step of reading the software information of the software to be protected includes: Reading the software information of the software to be protected in a byte stream manner; The encrypting and saving each of the logic information comprises: Obtaining the size of the software to be protected; Generate each random time interrupt signal quantity and a corresponding random interrupt label value according to the size of the software to be protected; wherein the generation range of the random interrupt label value should be a preset range, and is randomly generated between 1 and a preset value; the generation frequency of the random time interrupt signal quantity is not less than the quotient of the size of the software to be protected and the preset value; When the random time interrupt signal is detected, reading the current byte address of the software information; The current byte address is used as the end address, and the historical byte address corresponding to the previous random time interrupt signal is used as the start address; Segment processing is performed on the software information according to each of the end addresses and the corresponding start addresses to generate each segment of software information; storing each piece of software information in the local device; After the step of reading the current byte address of the software information, the method further includes: Calling a preset algorithm to perform initial encryption on the current byte address, and the current byte address becomes a first pending point; wherein the current byte address is encrypted by using the current byte address and the random time interrupt signal detected last time through a HASH algorithm; Encrypting the first undetermined point so that the first undetermined point becomes a second undetermined point; The encrypting the first undetermined point so that the first undetermined point becomes the second undetermined point comprises: Obtaining MD data information of the software to be protected; Obtaining a local address of the local device; The first undetermined point is encrypted according to the MD data information and the local address, and the first undetermined point becomes the second undetermined point; After the step of storing each piece of software information into the device memory, the method further includes: Generate a call feature code position of each piece of software information in the device memory according to the interrupt signal quantity and the corresponding random interrupt label value; Further, the calling of the corresponding logic information according to the access code corresponding to the interface information includes: The corresponding logic information is called according to the access code corresponding to the interface information and the calling feature code position.
2. A software security protection reinforcement device, characterized in that: include: A reading module, used to read software information of the software to be protected, wherein the software information includes logic information and interface information; A storage module, used for encrypting and storing each of the logic information in a local device; A release module, used for releasing each of the interface information to the terminal; A generating module, used for generating an access code for each of the logic information and the corresponding interface information; A calling module, configured to call the corresponding logic information according to an access code corresponding to the interface information after detecting the interface information selected by the terminal; The step of reading the software information of the software to be protected includes: Reading the software information of the software to be protected in a byte stream manner; The encrypting and saving each of the logic information comprises: Obtaining the size of the software to be protected; Generate each random time interrupt signal quantity and a corresponding random interrupt label value according to the size of the software to be protected; wherein the generation range of the random interrupt label value should be a preset range, and is randomly generated between 1 and a preset value; the generation frequency of the random time interrupt signal quantity is not less than the quotient of the size of the software to be protected and the preset value; When the random time interrupt signal is detected, reading the current byte address of the software information; The current byte address is used as the end address, and the historical byte address corresponding to the previous random time interrupt signal is used as the start address; Segment processing is performed on the software information according to each of the end addresses and the corresponding start addresses to generate each segment of software information; storing each piece of software information in the local device; After the step of reading the current byte address of the software information, the method further includes: Calling a preset algorithm to perform initial encryption on the current byte address, and the current byte address becomes a first pending point; wherein the current byte address is encrypted by using the current byte address and the random time interrupt signal detected last time through a HASH algorithm; Encrypting the first undetermined point so that the first undetermined point becomes a second undetermined point; The encrypting the first undetermined point so that the first undetermined point becomes the second undetermined point comprises: Obtaining MD data information of the software to be protected; Obtaining a local address of the local device; The first undetermined point is encrypted according to the MD data information and the local address, and the first undetermined point becomes the second undetermined point; After the step of storing each piece of software information into the device memory, the method further includes: Generate a call feature code position of each piece of software information in the device memory according to the interrupt signal quantity and the corresponding random interrupt label value; Further, the calling of the corresponding logic information according to the access code corresponding to the interface information includes: The corresponding logic information is called according to the access code corresponding to the interface information and the calling feature code position.
3. A software security protection reinforcement device, characterized in that: comprising a memory for storing a computer program; A processor is used to implement the steps of the software security protection reinforcement method as claimed in claim 1 when executing the computer program.
4. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by the processor, the steps of the software security protection and reinforcement method as claimed in claim 1 are implemented.
Citation Information
Patent Citations
Page modularity generation method and page modularity generation system
CN102541851A
Reinforced protection method and apparatus for software installation package
CN107122634A
Ukey-based software decryption method and terminal
CN108064382A