Method, device, electronic device and computer-readable storage medium for preventing chip from being cracked
By receiving and analyzing the second attribute information of the consumable chip, it generates demand encryption rules that are different from conventional encryption rules, solving the problem of high risk of leakage of consumable chip encryption information in the existing technology, and improving anti-cracking capabilities and security.
Patent Information
- Application Number
- CN202111021283.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-01
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2041-09-01
AI Technical Summary
The encrypted information of existing consumable chips is encrypted using fixed algorithms, which has a high risk of leakage and makes it difficult to effectively prevent the manufacture and use of counterfeit products.
By receiving the second attribute information of the consumable chip to be encrypted, determining its type, querying and generating required encryption rules that are different from conventional encryption rules, and generating an encryption mode to circumvent conventional encryption rules and improve the difference and security of the encryption mode.
It effectively reduces the risk of leakage of encrypted information on consumable chips, improves anti-cracking capabilities, and reduces the impact of repeatability and personal habits caused by artificially set and fixed algorithms.
Smart Images

Figure CN113688433B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a method, device, electronic device and computer-readable storage medium for preventing consumable chips from being cracked. Background Art
[0002] During the use of printing equipment, the parts of the printing equipment, that is, printing consumables, such as ink cartridges, toner cartridges, and print heads, are replaced to extend the service life of the entire machine. Most printing consumables have consumable chips. The printing equipment reads and verifies the information in the consumable chips to identify whether the printing consumables are legitimate and authentic. In order to prevent competitors from making counterfeit products that cause poor printing quality or even equipment failure, manufacturers usually encrypt the chip information through serial numbers and encryption algorithms to improve anti-counterfeiting capabilities.
[0003] The serial number information or encryption algorithm of the consumable chip is generally set by the manufacturer's technicians. There are two common ways to set the serial number: one is to define it directly by the technicians, and the other is to calculate it based on the information of the printing consumables (such as model, color, ink volume, etc.) through a set algorithm. Data that is manually set and calculated by a fixed algorithm is at risk of leakage. Summary of the invention
[0004] In order to make the above-mentioned objectives, features and advantages of the present disclosure more obvious and easy to understand, the following specifically cites preferred implementation modes and describes them in detail with reference to the attached drawings.
[0005] The purpose of the present application includes providing a method, device, electronic device and computer-readable storage medium for preventing consumable chips from being cracked, thereby improving the problem that existing consumable chips use artificially set encryption information or use fixed algorithms for encryption, which leads to a high risk of leakage.
[0006] In the first aspect, the present application provides a method for preventing consumable chips from being cracked, which adopts the following technical solution:
[0007] A method for preventing a consumable chip from being cracked, the method comprising:
[0008] receiving an encryption mode request, wherein the encryption mode request includes second attribute information of the consumable chip to be encrypted;
[0009] Determine the type of the second attribute information, query the conventional encryption rule of the type, and generate a required encryption rule different from the conventional encryption rule according to the second attribute information;
[0010] An encryption mode is generated according to the required encryption rules.
[0011] In a feasible implementation manner, the method further includes a step of obtaining a conventional encryption rule, the step comprising:
[0012] Acquire multiple groups of first attribute information of each consumable chip, and determine the type of each group of the first attribute information; wherein one consumable chip corresponds to one group of first attribute information;
[0013] Performing algorithm simulation according to the first attribute information of each type to obtain a conventional encryption rule for each type;
[0014] The conventional encryption rules and the categories to which they belong are stored in a corresponding relationship.
[0015] In a feasible implementation manner, the first attribute information includes manufacturer, model, color, capacity and serial number;
[0016] The step of performing algorithm simulation according to the first attribute information of each type to obtain a plurality of conventional encryption rules for each type includes:
[0017] For each of the types, the serial number in each group of the first attribute information is used as the output target, and any of the remaining data of the first attribute information in the same group is used as the input to perform algorithm simulation to obtain multiple simulated encryption rules for each of the types;
[0018] According to a plurality of simulated encryption rules of each of the types, a conventional encryption rule of each of the types is obtained.
[0019] In a feasible implementation manner, the method further includes:
[0020] storing the first attribute information of each group and the category to which it belongs in a corresponding relationship;
[0021] The step of obtaining a conventional encryption rule for each type according to the multiple simulated encryption rules for each type comprises:
[0022] For each type of multiple simulated encryption rules, all the first attribute information of the type that has been stored is used for verification to obtain a probability value of each simulated encryption rule;
[0023] Based on a preset threshold, the simulated encryption rule with the probability value greater than the threshold is taken as a regular encryption rule of the corresponding type.
[0024] In a feasible implementation manner, after the step of acquiring the first attribute information of each consumable chip and before the step of determining the type of each group of the first attribute information, the method further includes:
[0025] Comparing the first attribute information to determine whether there is the same first attribute information;
[0026] If so, only one set of data is retained from the multiple sets of identical first attribute information.
[0027] In a feasible implementation manner, the first attribute information includes manufacturer, model, color, capacity and serial number;
[0028] The step of determining the type of each group of the first attribute information includes:
[0029] The type of each group of the first attribute information is determined according to the manufacturer and model of each group of the first attribute information.
[0030] In a feasible implementation manner, the encryption mode includes a serial number generation algorithm and an encryption algorithm.
[0031] In a second aspect, the present application provides a consumable chip anti-cracking device, which adopts the following technical solution:
[0032] A consumable chip anti-cracking device, comprising an encryption mode generation module, a data analysis module and a database;
[0033] The database is used to store various types of conventional encryption rules;
[0034] The data analysis module is used to receive an encryption mode request, wherein the encryption mode request includes second attribute information of the consumable chip to be encrypted;
[0035] The data analysis module is further used to determine the type of the second attribute information, query the conventional encryption rule of the type, and generate a required encryption rule different from the conventional encryption rule according to the second attribute information;
[0036] The encryption mode generation module is used to generate an encryption mode according to the required encryption rules.
[0037] In a third aspect, the present application provides an electronic device, which adopts the following technical solution:
[0038] An electronic device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method described in the first aspect when executing the computer program.
[0039] In a fourth aspect, the present application provides a computer-readable storage medium, which adopts the following technical solution:
[0040] A computer-readable storage medium includes a computer program. When the computer program is executed, the electronic device where the computer-readable storage medium is located is controlled to execute the method described in the first aspect.
[0041] The beneficial effects of the embodiments of the present application include, for example:
[0042] The consumable chip anti-cracking method provided in the present application determines the type of the second attribute information, that is, the type of the consumable chip to be encrypted, by receiving the second attribute information containing the consumable chip to be encrypted, and after querying the conventional encryption rules of the type of the second attribute information, circumvents these conventional encryption rules, and generates required encryption rules that are different from the conventional encryption rules of the type according to the second attribute information, thereby being able to generate an encryption mode for the consumable chip to be encrypted according to the required encryption rules, so that the encryption mode of the consumable chip to be encrypted can circumvent the conventional encryption rules, thereby improving the problem that the existing consumable chips use artificially set encryption information or use fixed algorithms for encryption, which leads to a higher risk of leakage. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the technical solution of the present disclosure, the drawings required for use in the implementation mode will be briefly introduced below. It should be understood that the following drawings only show certain implementation modes of the present disclosure and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0044] Figure 1 A block diagram of the electronic device provided for this application.
[0045] Figure 2 Schematic diagram of the anti-cracking system.
[0046] Figure 3 for Figure 2 Block diagram of the server in .
[0047] Figure 4 The figure is a flow chart of a method for preventing a consumable chip from being cracked in one embodiment.
[0048] Figure 5 The figure is a flow chart of a method for preventing a consumable chip from being cracked in another embodiment.
[0049] Figure 6 for Figure 4 or Figure 5 A schematic flow chart of a sub-step of step S100.
[0050] Figure 7 for Figure 4 or Figure 5Schematic diagram of the process of another sub-step of step S100.
[0051] Figure 8 for Figure 6 or Figure 7 A schematic flow chart of a sub-step of step S120.
[0052] Fig. 9 for Figure 8 A schematic flow chart of a sub-step of step S122.
[0053] Fig.10 A block diagram of a consumable chip anti-cracking device in one embodiment.
[0054] Explanation of the accompanying drawings: 01-electronic device; 02-processor; 03-memory; 04-terminal; 05-server; 06-database; 07-data analysis module; 08-encryption mode generation module; 09-data processing module. DETAILED DESCRIPTION
[0055] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in different configurations.
[0056] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for protection, but merely represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0057] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings. In addition, if the terms "first", "second", etc. appear, they are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0058] Reference Figure 1 , is a schematic diagram of a block structure of an electronic device provided in an embodiment of the present application, wherein the electronic device 01 may include but is not limited to a memory 03 and a processor 02.
[0059] The processor 02 and the memory 03 are both located in the electronic device 01 but are separately arranged. However, it should be understood that the memory 03 can be replaced by a computer-readable storage medium, and both the memory 03 and the computer-readable storage medium can be independent of the electronic device 01 and can be accessed by the processor 02 through a bus interface. In addition, the memory 03 can be integrated into the processor 02, for example, it can be a cache and / or a general register.
[0060] In this embodiment, the computer-readable storage medium and the memory 03 can both be used to store computer programs. When the processor 02 executes the computer program, the consumable chip anti-cracking method given in the embodiment of the present application can be implemented.
[0061] It should be noted that Figure 1 The electronic device 01 is a schematic diagram of a structure of the electronic device 01 shown in FIG. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown. Figure 1 Each component shown in the figure can be implemented by hardware, software or a combination thereof. The electronic device 01 can be, but is not limited to, a computer, a mobile phone, an IPad, a server 05, a notebook computer, a mobile Internet device, etc.
[0062] The consumable chip anti-cracking method provided in this application can be applied to Figure 2 In the application environment shown in FIG. 1 , the consumable chip anti-cracking method is applied to an anti-cracking system. The anti-cracking system includes a terminal 04 and a server 05. The terminal 04 and the server 05 communicate via a network, such as Figure 3 As shown, the server 05 includes a database, a classification comparator, a simulation analyzer and an encryption mode generator, and the terminal 04 includes a screen supporting human-computer interaction. The encryption request is received through the terminal 04, and the encryption mode request includes the second attribute information of the consumable chip to be encrypted; the server 05 determines the type of the second attribute information, queries the conventional encryption rule of the type, and generates a required encryption rule different from the conventional encryption rule according to the second attribute information; the encryption mode generator generates an encryption mode according to the required encryption rule. Among them, the terminal 04 can be but not limited to various personal computers, laptops, smart phones and tablets, and the server 05 can be implemented by an independent server 05 or a server 05 cluster composed of multiple servers 05.
[0063] In one embodiment, if Figure 4 As shown, a method for preventing consumable chips from being cracked is provided. This embodiment mainly applies this method to Figure 1 The server 05 in FIG. 1 is used as an example to illustrate. The server 05 obtains various types of conventional encryption rules stored in the database.
[0064] S200, receiving an encryption mode request.
[0065] The encryption mode request includes the second attribute information of the consumable chip to be encrypted.
[0066] Specifically, the technician inputs an encryption mode request through the terminal 04 , and the server 05 receives the encryption mode request sent by the terminal 04 .
[0067] S300, determining the type of the second attribute information, querying the conventional encryption rule of the type, and generating a required encryption rule different from the conventional encryption rule according to the second attribute information.
[0068] Specifically, the server 05 determines the type of the second attribute information, that is, the type of consumable chip to be encrypted, based on the second attribute information, and queries the conventional encryption rules of the type from the database, and generates required encryption rules that are different from the queried conventional encryption rules of the type based on the second attribute information.
[0069] S400, generating an encryption mode according to required encryption rules.
[0070] Specifically, the encryption pattern generator on the server 05 generates an encryption pattern according to the obtained required encryption rules.
[0071] In the above-mentioned consumable chip anti-cracking method, the type of the second attribute information is determined by receiving the second attribute information containing the consumable chip to be encrypted, and after the conventional encryption rules of the type of the second attribute information are queried, these conventional encryption rules are circumvented, and the required encryption rules different from the conventional encryption rules of the type are generated according to the second attribute information, so that the encryption mode of the consumable chip to be encrypted can be generated according to the required encryption rules, so that the encryption mode of the consumable chip to be encrypted is different from the conventional encryption rules of the same type of consumable chips, thereby improving the problem that the existing consumable chips use artificially set encryption information or use fixed algorithms for encryption, resulting in a high risk of leakage. At the same time, the difference between the required encryption rules and the conventional encryption rules can be improved, the repetitiveness caused by human habits can be reduced, and the influence of the personal habits of algorithm developers on the encryption mode can be avoided to a certain extent, thereby improving the anti-cracking ability of the consumable chip.
[0072] It should be noted that, in other implementations, step S300 may also be performed on the terminal 04. In addition, the encryption mode includes a serial number generation algorithm and an encryption algorithm.
[0073] Further, such as Figure 5 As shown, the consumable chip anti-cracking method also includes step S100.
[0074] S100, obtaining a general encryption rule.
[0075] Specifically, the server 05 obtains conventional encryption rules for various types of consumable chips. It should be noted that when executing steps S200-S400, it is not necessary to perform step S100 every time. Moreover, step S100 and steps S200-S400 can be performed independently, that is, the server 05 can perform step S100 while performing steps S200-S400.
[0076] It should be understood that step S100 and steps S200 - S400 may be performed on different servers 05 or on the same server 05 .
[0077] Furthermore, the second attribute information includes, but is not limited to, the manufacturer, model, color, capacity, production time and serial number of the consumable chip to be encrypted.
[0078] In a possible implementation, Figure 6 As shown, it is a flowchart of the sub-steps of step S100.
[0079] S110, obtaining multiple groups of first attribute information of each consumable chip, and determining the type of each group of first attribute information.
[0080] Among them, one consumable chip corresponds to a set of first attribute information.
[0081] Specifically, the first attribute information of the consumable chip can be entered into the server 05 through the terminal 04. Alternatively, during the process of refreshing and burning the consumable chip, the burning device can package the original chip information of the consumable chip and the burned information into a set of first attribute information and send it to the database of the server 05. Alternatively, when the user of the terminal 04 uses the printing device, the printing device reads the first attribute information of the consumable chip and sends it to the server 05, and each time the printing device detects that the consumable chip has been replaced, it reads the first attribute information of the new consumable chip and sends it to the server 05. After receiving the first attribute information of various consumable chips, the server 05 analyzes and compares to determine the type of the first attribute information, which is essentially to determine the type of the consumable chip.
[0082] S120, performing algorithm simulation according to the first attribute information of each type to obtain a conventional encryption rule of each type.
[0083] Specifically, for each type, the simulation analyzer of the server 05 performs algorithm simulation according to the first attribute information of the type to obtain the conventional encryption rules of the type.
[0084] S130, storing the conventional encryption rules and the corresponding categories.
[0085] Specifically, after obtaining the conventional encryption rules for each category, the server 05 stores the conventional encryption rules and the categories in a database in a corresponding relationship.
[0086] In the above method for obtaining conventional encryption rules, after obtaining the first attribute information of the consumable chip, the type of the obtained first attribute information is determined, and the algorithm simulation is performed based on the first attribute information of each type to simulate the encryption rules of various types of consumable chips to obtain the conventional encryption rules of each type.
[0087] It should be understood that the server 05 will continuously or at regular intervals obtain the first attribute information of each consumable chip, and the first attribute information of the consumable chip obtained each time may be the first attribute information of the consumable chip that already exists, or the first attribute information of the consumable chip that did not exist originally. The consumable chips of the same manufacturer and the same model may have different first attribute information due to different production times. Moreover, the more first attribute information of each type, that is, the larger the amount of data, the greater the probability of simulating and analyzing a more accurate conventional encryption rule.
[0088] It should be noted that if the conventional encryption rules of this type of consumable chip are known when obtaining the first attribute information of the consumable chip, the conventional encryption rules of this type of consumable chip can be directly stored without performing algorithm simulation to obtain the conventional encryption rules.
[0089] With respect to step S110, after obtaining multiple groups of first attribute information of each consumable chip and before determining the type of each group of first attribute information, the following step is further included:
[0090] Compare each piece of first attribute information to determine whether there is the same first attribute information;
[0091] If so, only one set of data is retained from the multiple sets of identical first attribute information.
[0092] After the first attribute information is acquired, if the same first attribute information exists, only one set of data is retained among multiple sets of the same first attribute information to reduce the data duplication rate.
[0093] And, further, if Figure 7 As shown, the consumable chip anti-cracking method also includes step S140.
[0094] S140, storing each group of first attribute information and its corresponding category.
[0095] After the server 05 determines the type of the acquired first attribute information, the server 05 stores each group of first attribute information and its corresponding type in a database.
[0096] Furthermore, in order to increase the amount of first attribute information in the database, the first attribute information can be continuously obtained, and after obtaining the first attribute information, the database first compares the obtained first attribute information with the first attribute information already in the database. If the same data exists, the database will only record the log of data storage and will not open up new space to store the group of first attribute information. This can reduce invalid data in the database to a certain extent, or avoid maliciously uploaded data.
[0097] It should be noted that step S140 may be executed after step S110 and before step S120.
[0098] Optionally, the first attribute information includes but is not limited to manufacturer, model, color, capacity, production time and serial number.
[0099] On the basis of the above, the method for determining the type of each group of first attribute information in the above step S110 specifically includes:
[0100] The type of each set of first attribute information is determined according to the manufacturer and model of each set of first attribute information itself.
[0101] If the manufacturers and models of multiple sets of first attribute information are the same, they are of the same type; otherwise, they are of different types.
[0102] In one embodiment, Figure 8 FIG. 1 is a flow chart of the sub-steps of step S120 .
[0103] S121, for each type, the serial number in each group of first attribute information is used as the output target, and any several of the remaining data of the same group of first attribute information is used as input to perform algorithm simulation to obtain multiple simulated encryption rules for each type.
[0104] S122, obtaining a conventional encryption rule for each type according to a plurality of simulated encryption rules for each type.
[0105] In the above method, the input for algorithm simulation is any type of the first attribute information except the serial number, so that the obtained simulated encryption rules can cover various possible encryption rules as much as possible, thereby increasing the probability of obtaining accurate encryption rules to a certain extent.
[0106] For S121, specifically, the simulation analyzer performs algorithm simulation on each group of first attribute information. Each group of first attribute information will obtain one or more simulation encryption rules, and each time a simulation encryption rule is obtained, the simulation analyzer will send the simulation encryption rule to the classification comparator. After receiving a simulation encryption rule, the classification comparator compares the simulation encryption rule with the simulation encryption rules of the same type stored in the database, where the same type refers to the type to which the first attribute information of the simulation encryption rule belongs. If there is already a simulation encryption rule consistent with the simulation encryption rule in the database, the simulation encryption rule will not be stored in the database, otherwise, the obtained simulation encryption rule will be stored in the database.
[0107] The algorithm used in algorithm simulation may be a machine learning algorithm or a set algorithm.
[0108] In one embodiment, Fig. 9 FIG. 1 is a flow chart of the sub-steps of step S122 .
[0109] S510: For each type of multiple simulation encryption rules, all the first attribute information of the type that has been stored is used for verification to obtain a probability value of each simulation encryption rule.
[0110] S520: Based on a preset threshold, the simulated encryption rule with a probability value greater than the threshold is used as a regular encryption rule of the corresponding type.
[0111] Specifically, after obtaining multiple simulation encryption rules of each type, or after obtaining one simulation encryption rule, the server 05 uses all first attribute information of the same type to verify the simulation encryption rules of the same type to obtain the probability value of each simulation encryption rule.
[0112] The verification method may be, for each simulation encryption rule, using the input data in the first attribute information that meets the simulation encryption rule as the input of the simulation encryption rule, and obtaining the corresponding simulation serial number, if the simulation serial number is consistent with the serial number in the first attribute information, then the first attribute information is verified, otherwise the verification fails, that is, it does not match. The ratio between the number of first attribute information that passes the verification for each simulation encryption rule and the total amount of first attribute information of the type to which the simulation encryption rule belongs is calculated, and the ratio is the probability value of the simulation encryption rule.
[0113] The larger the probability value of the simulated encryption rule, the greater the possibility that the simulated encryption rule is a commonly used encryption rule of its type. Therefore, the regular encryption rule of each type is determined according to the probability value, which can increase the probability of determining that the regular encryption rule is a real regular encryption rule to a certain extent.
[0114] It should be understood that although Figure 4-Figure 9 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 4-Figure 9 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0115] In one embodiment, the present application also provides a consumable chip anti-cracking device, such as Fig.10 As shown, the consumable chip anti-cracking device includes an encryption mode generation module 08, a data analysis module 07 and a database 06.
[0116] Database 06 is used to store various types of conventional encryption rules.
[0117] The data analysis module 07 is used to receive the encryption mode request, determine the type of the second attribute information, query the conventional encryption rule of the type, and generate a required encryption rule different from the conventional encryption rule according to the second attribute information.
[0118] The encryption mode request includes the second attribute information of the consumable chip to be encrypted.
[0119] The encryption mode generation module 08 is used to generate an encryption mode according to the required encryption rules.
[0120] In one embodiment, the device further includes a data processing module 09, which is used to obtain conventional encryption rules.
[0121] The data processing module 09 is specifically used for:
[0122] Acquire multiple groups of first attribute information of each consumable chip, and determine the type of each group of first attribute information; wherein one consumable chip corresponds to one group of first attribute information;
[0123] According to the first attribute information of each type, algorithm simulation is performed to obtain the conventional encryption rules of each type;
[0124] The conventional encryption rules and the categories to which they belong are stored in a corresponding relationship.
[0125] In the above-mentioned consumable chip anti-cracking device, the data analysis module 07 determines the type of the second attribute information, that is, the type of the consumable chip to be encrypted, by receiving the second attribute information containing the consumable chip to be encrypted, and after querying the conventional encryption rules of the type of the second attribute information, circumvents these conventional encryption rules, and generates required encryption rules that are different from the conventional encryption rules of the type according to the second attribute information. The encryption mode generating module generates an encryption mode for the consumable chip to be encrypted according to the required encryption rules, so that the encryption mode of the consumable chip to be encrypted can circumvent the conventional encryption rules, thereby improving the existing consumable chips that use artificially set encryption information or use fixed algorithms for encryption, resulting in a higher risk of leakage, so as to improve the anti-cracking performance of the consumable chips.
[0126] The specific definition of the device for loading web pages can be found in the definition of the method for loading web pages in the above text, which will not be repeated here. Each module in the above-mentioned device for loading web pages can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor 02 in the electronic device 01 in the form of hardware, or can be stored in the memory 03 in the electronic device 01 in the form of software, so that the processor 02 can call and execute the operations corresponding to the above modules.
[0127] In several embodiments provided in the present disclosure, it should be understood that the disclosed devices, system diagrams and methods can also be implemented in other ways. The above-described device, system and method embodiments are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, program segment or a part of the code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0128] In addition, the functional modules in each embodiment of the present disclosure may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
[0129] If the function is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present disclosure is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, an electronic device, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present disclosure. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory 03 (RAM, Random Access Memory), a disk or an optical disk. It should be noted that, in this article, the term "include", "include" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements that are not explicitly listed, or also includes elements inherent to such a process, method, article or device. Without more constraints, an element defined by the phrase "comprising a..." does not exclude the existence of other identical elements in the process, method, article or apparatus comprising the element.
[0130] The above description is only an optional implementation mode of the present disclosure and is not intended to limit the present disclosure. For those skilled in the art, the present disclosure may have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. A method for preventing consumable chips from being cracked, characterized in that: The method comprises: Receive an encryption mode request, the encryption mode request including second attribute information of the consumable chip to be encrypted; wherein the second attribute information includes the manufacturer, model, color, capacity, production time, and serial number of the consumable chip to be encrypted; Determine the type of the second attribute information, query the conventional encryption rule of the type, and generate a required encryption rule different from the conventional encryption rule according to the second attribute information; Generate an encryption mode according to the required encryption rules; The method further comprises the step of obtaining a conventional encryption rule, the step comprising: Acquire multiple groups of first attribute information of each consumable chip, and determine the type of each group of the first attribute information; wherein one consumable chip corresponds to one group of first attribute information, and the first attribute information includes manufacturer, model, color, capacity and serial number; Performing algorithm simulation according to the first attribute information of each type to obtain a conventional encryption rule for each type; Storing the conventional encryption rules and the categories in a corresponding relationship; The step of performing algorithm simulation according to the first attribute information of each type to obtain a plurality of conventional encryption rules for each type includes: For each of the types, the serial number in each group of the first attribute information is used as the output target, and any of the remaining data of the first attribute information in the same group is used as the input to perform algorithm simulation to obtain multiple simulated encryption rules for each of the types; storing the first attribute information of each group and the category to which it belongs in a corresponding relationship; For each type of multiple simulated encryption rules, all the first attribute information of the type that has been stored is used for verification to obtain a probability value of each simulated encryption rule; Based on a preset threshold, the simulated encryption rule with the probability value greater than the threshold is taken as a regular encryption rule of the corresponding type.
2. The method according to claim 1, characterized in that After the step of acquiring the first attribute information of each consumable chip and before the step of determining the type of each group of the first attribute information, the method further includes: Comparing the first attribute information to determine whether there is the same first attribute information; If so, only one set of data is retained from the multiple sets of identical first attribute information.
3. The method according to claim 1, characterized in that The first attribute information includes manufacturer, model, color, capacity and serial number; The step of determining the type of each group of the first attribute information includes: The type of each group of the first attribute information is determined according to the manufacturer and model of each group of the first attribute information.
4. The method according to claim 1, characterized in that: The encryption mode includes a serial number generation algorithm and an encryption algorithm.
5. A consumable chip anti-cracking device, characterized in that: It includes an encryption mode generation module, a data analysis module, a data processing module and a database; The database is used to store various types of conventional encryption rules; The data analysis module is used to receive an encryption mode request, wherein the encryption mode request includes second attribute information of the consumable chip to be encrypted; The data analysis module is further used to determine the type of the second attribute information, query the conventional encryption rule of the type, and generate a required encryption rule different from the conventional encryption rule according to the second attribute information; The encryption mode generation module is used to generate an encryption mode according to the required encryption rules; The data processing module is used to obtain multiple groups of first attribute information of each consumable chip, and determine the type of each group of the first attribute information; wherein one consumable chip corresponds to one group of first attribute information, and the first attribute information includes manufacturer, model, color, capacity and serial number; according to each type of the first attribute information, perform algorithm simulation to obtain a conventional encryption rule for each type; and store the conventional encryption rule and the type in a corresponding relationship; The data processing module is also used for: For each of the types, the serial number in each group of the first attribute information is used as the output target, and any of the remaining data of the first attribute information in the same group is used as the input to perform algorithm simulation to obtain multiple simulated encryption rules for each of the types; storing the first attribute information of each group and the category to which it belongs in a corresponding relationship; For each type of multiple simulated encryption rules, all the first attribute information of the type that has been stored is used for verification to obtain a probability value of each simulated encryption rule; Based on a preset threshold, the simulated encryption rule with the probability value greater than the threshold is taken as a regular encryption rule of the corresponding type.
6. An electronic device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method according to any one of claims 1 to 4 when executing the computer program.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium comprises a computer program, and when the computer program is executed, the electronic device where the computer-readable storage medium is located is controlled to execute the method according to any one of claims 1 to 4.
