Data processing method, device, electronic device and computer readable storage medium
By selecting the target compound and determining the chemical elements and reaction conditions of its chemical equations to encrypt the data, the problem of single and easy-to-crack encryption methods in the prior art is solved, and a more random and secure encryption method is achieved.
Patent Information
- Application Number
- CN202111617025.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-27
- Publication Date
- 2025-05-16
- Estimated Expiration
- 2041-12-27
AI Technical Summary
In the prior art, data encryption methods are single, easy to be cracked, and there is a lack of effective solutions.
By obtaining the data to be encrypted, selecting the corresponding target compound, determining the predetermined chemical equations and chemical elements and reaction conditions for synthesizing the compound, encrypting the data based on this information, and generating ciphertext data.
Making the encryption method more random and difficult to crack, solving the problem of single and easy-to-crack encryption method in the prior art.
Smart Images

Figure CN114254369B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computers, and in particular to a data processing method, device, electronic device and computer-readable storage medium. Background Art
[0002] With the development and popularization of the Internet, countries, enterprises and individuals are paying more and more attention to the security of user information. There are more and more cases of illegal theft of network resources and user information. How to protect the security of user information and data assets, prevent threats such as illegal occupation and illegal control, stop and defend against attacks by network hackers, and avoid the leakage of confidential information requires R&D personnel to continue exploring data encryption technology to encrypt data information in order to effectively ensure the security of Internet data information.
[0003] The data encryption methods used in the related technologies are relatively simple and fixed. As network hacker technology becomes more and more advanced, various fixed encryption methods are cracked one by one.
[0004] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0005] The embodiments of the present invention provide a data processing method, device, electronic device and computer-readable storage medium to at least solve the technical problem in the related art that when encrypting data to be encrypted, the encryption method is single and easy to be cracked.
[0006] According to one aspect of an embodiment of the present invention, there is provided a data processing method, comprising: obtaining data to be encrypted; selecting a target compound corresponding to the data to be encrypted; determining a predetermined chemical formula for synthesizing the target compound; determining the chemical elements and reaction conditions in the predetermined chemical formula; and encrypting the data to be encrypted according to the chemical elements and reaction conditions in the predetermined chemical formula to obtain ciphertext data.
[0007] Optionally, encrypting the data to be encrypted based on the chemical elements and reaction conditions in the predetermined chemical equation to obtain ciphertext data includes: determining a first encryption method corresponding to the chemical elements in the predetermined chemical equation; determining a second encryption method corresponding to the reaction conditions in the predetermined chemical equation; and encrypting the data to be encrypted based on the first encryption method and the second encryption method to obtain the ciphertext data.
[0008] Optionally, determining the first encryption method corresponding to the chemical element in the predetermined chemical equation includes: determining whether the chemical element in the predetermined chemical equation is a metal element; if the chemical element in the predetermined chemical equation is a metal element, obtaining the element symbol of the chemical element; converting the element symbol into decimal data; and determining the first encryption method corresponding to the chemical element in the predetermined chemical equation based on the decimal data.
[0009] Optionally, it also includes: when the chemical element in the predetermined chemical equation is a non-metallic element, obtaining the element serial number of the chemical element; converting the element serial number into ASCII information exchange standard code data; and determining the first encryption method corresponding to the chemical element in the predetermined chemical equation based on the ASCII data.
[0010] Optionally, it also includes: when there are multiple chemical elements in the predetermined chemical equation, determining the relative atomic masses of the multiple chemical elements in the predetermined chemical equation; and determining the encryption order in the first encryption method corresponding to the multiple chemical elements in the predetermined chemical equation based on the relative atomic masses of the multiple chemical elements.
[0011] Optionally, determining the second encryption method corresponding to the reaction conditions in the predetermined chemical equation includes: determining an English word corresponding to the reaction conditions in the predetermined chemical equation; and determining the second encryption method based on the English word.
[0012] Optionally, after obtaining data to be encrypted and encrypting the data to be encrypted according to the chemical elements and reaction conditions to obtain ciphertext data, the method further includes: splicing the ciphertext data with the target compound.
[0013] According to one aspect of an embodiment of the present invention, there is provided a data processing device, comprising: an acquisition module for acquiring data to be encrypted; a selection module for selecting a target compound corresponding to the data to be encrypted; a first determination module for determining a predetermined chemical equation for synthesizing the target compound; a second determination module for determining the chemical elements and reaction conditions in the predetermined chemical equation; and an encryption module for encrypting the data to be encrypted according to the chemical elements and reaction conditions in the predetermined chemical equation to obtain ciphertext data.
[0014] According to one aspect of an embodiment of the present invention, there is provided an electronic device, comprising: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to implement any of the above-mentioned data processing methods.
[0015] According to one aspect of an embodiment of the present invention, a computer-readable storage medium is provided. When instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute any of the above-mentioned data processing methods.
[0016] In an embodiment of the present invention, data to be encrypted is obtained, a target compound corresponding to the data to be encrypted is selected, that is, a target compound used to encrypt the data to be encrypted is selected, a predetermined chemical formula for synthesizing the target compound, and chemical elements and reaction conditions of the predetermined chemical formula are determined, and then the data to be encrypted is encrypted according to the chemical elements and reaction conditions to obtain ciphertext data. Because the selected target compound is random, the chemical elements and reaction conditions of the predetermined chemical formula for synthesizing the target compound are diverse, thus making the encryption method more random, solving the technical problem of a single encryption method and easy cracking when encrypting data to be encrypted in the related art. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0018] Figure 1 is a flow chart of a data processing method according to an embodiment of the present invention;
[0019] Figure 2 is a flow chart of a data encryption and decryption method provided by an optional embodiment of the present invention;
[0020] Figure 3 It is a flow chart of a data encryption method using ferroferric oxide as an example provided by an optional embodiment of the present invention;
[0021] Figure 4 It is a flow chart of a data decryption method using ferroferric oxide as an example provided by an optional embodiment of the present invention;
[0022] Figure 5 is a structural block diagram of a data processing device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0023] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0024] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0025] Example 1
[0026] According to an embodiment of the present invention, an embodiment of a data processing method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0027] Figure 1 is a flow chart of a data processing method according to an embodiment of the present invention. Figure 1 As shown, the method comprises the following steps:
[0028] Step S102, obtaining data to be encrypted;
[0029] Step S104, selecting a target compound corresponding to the data to be encrypted;
[0030] Step S106, determining a predetermined chemical formula for synthesizing a target compound;
[0031] Step S108, determining chemical elements and reaction conditions in a predetermined chemical equation;
[0032] Step S110, encrypting the data to be encrypted according to the chemical elements and reaction conditions in the predetermined chemical equation to obtain ciphertext data.
[0033] Through the above steps, the data to be encrypted is obtained, the target compound corresponding to the data to be encrypted is selected, that is, the target compound used to encrypt the data to be encrypted is selected, the predetermined chemical formula used to synthesize the target compound, and the chemical elements and reaction conditions of the predetermined chemical formula are determined, and then the data to be encrypted is encrypted according to the chemical elements and reaction conditions to obtain the ciphertext data. Because the selected target compound is random, the chemical elements and reaction conditions of the predetermined chemical formula for synthesizing the target compound are diverse, thus making the encryption method more random, solving the technical problem of a single encryption method and easy cracking when encrypting the data to be encrypted in the related art.
[0034] As an optional embodiment, data to be encrypted is obtained, wherein the data to be encrypted may be of multiple types and applied to data in multiple scenarios for encryption. For example, the data to be encrypted may be enterprise or organization file data, user interaction data, parameter data of enterprise or organization program API interface interaction, or URL data of an enterprise or organization, etc. This optional embodiment may encrypt multiple types of data in different scenarios, making the method provided by the present application more applicable, applicable to multiple fields and scenarios, and extremely extensive.
[0035] As an optional embodiment, a target compound corresponding to the data to be encrypted is selected. When selecting a target compound, the target compound can be randomly selected, and the target compound is used to encrypt the data to be encrypted. In the process of selecting a target compound, the target compound can be directly selected, or the morphology can be first selected according to the morphological classification of chemical elements, and then the target compound is selected in the morphological category, and so on. It is not limited here. It should be noted that the selected target compound can be one or more. In the case where the selected target compound is one, a predetermined chemical equation that only generates the target compound is determined; in the case where the selected target compound is multiple, a predetermined chemical equation that generates the multiple target compounds is determined. In addition, it is also necessary to determine whether there is an equation that only generates the one or more target compounds and the predetermined chemical equation is unique. If there is no predetermined chemical equation that can generate the one or more target compounds, or the predetermined chemical equation that can generate the one or more target compounds is not unique, it is considered that the selection is unreasonable and reselected. Through the above steps, the phenomenon of errors during decryption is avoided, the encryption and decryption method is unique, orderly encryption can be performed, and the normal progress of subsequent decryption is guaranteed.
[0036] As an optional embodiment, the chemical elements and reaction conditions in the predetermined chemical equation are determined. In the present application, when the predetermined chemical equation does not have a reaction condition, a method is also set so that encryption is performed in the absence of the reaction condition. For example, when determining the second encryption method corresponding to the reaction condition in the predetermined chemical equation based on the English word for the reaction condition, the reaction condition can be recorded as not, which means that there is no reaction condition. The phenomenon of inconsistency in the encryption steps of the reaction condition and the absence of the reaction condition is avoided. When the predetermined chemical equation does not have a reaction condition, encryption can also be performed with the above-mentioned not, thereby ensuring the security of data protection in the absence of the reaction condition.
[0037] As an optional embodiment, the data to be encrypted is encrypted according to the chemical elements and reaction conditions in the predetermined chemical equation to obtain ciphertext data. Because the selected target compound is random, the chemical elements and reaction conditions of the predetermined chemical equation for synthesizing the target compound are diverse, so when the data to be encrypted is encrypted according to the chemical elements and reaction conditions in the predetermined chemical equation to obtain the ciphertext data, the encryption method will be more random. In this process, the encryption methods corresponding to the chemical elements and reaction conditions can be determined respectively, and the data to be encrypted is encrypted according to the encryption method to obtain the ciphertext data. That is, the first encryption method corresponding to the chemical elements in the predetermined chemical equation is determined, and the second encryption method corresponding to the reaction conditions in the predetermined chemical equation is determined, so that the data to be encrypted can be encrypted according to the first encryption method and the second encryption method to obtain the ciphertext data.
[0038] Optionally, when determining the first encryption method according to the chemical element, it can be determined according to the relevant information of the chemical element, for example, it can be determined according to the element type of the chemical element (whether it is a metal element, whether it is a rare gas element, etc.), the element symbol of the chemical element in the periodic table of chemical elements, the element serial number of the chemical element in the periodic table of chemical elements, etc. When determining the second encryption method according to the reaction condition, it can be determined according to the relevant information of the reaction condition, for example, it can be determined according to the English word of the reaction condition, the reaction type of the reaction condition, etc. The randomness of the encryption is greatly guaranteed, and the data will not be leaked or cracked.
[0039] The following is an example of determining whether a chemical element is a metal element, determining the first encryption method corresponding to the chemical element in the predetermined chemical equation, and determining the second encryption method corresponding to the reaction condition in the predetermined chemical equation based on the English word of the reaction condition, to introduce the above encryption methods:
[0040] (1) Determine the first encryption method corresponding to the chemical element in the predetermined chemical equation based on whether the chemical element is a metal element:
[0041] Determine whether the chemical element in the predetermined chemical equation is a metal element. If the chemical element in the predetermined chemical equation is a metal element, obtain the element symbol of the chemical element, convert the element symbol into decimal data; determine the first encryption method corresponding to the chemical element in the predetermined chemical equation based on the decimal data. If the chemical element in the predetermined chemical equation is a non-metal element, obtain the element serial number of the chemical element; convert the element serial number into ASCII information exchange standard code data; determine the first encryption method corresponding to the chemical element in the predetermined chemical equation based on the ASCII data.
[0042] The above-mentioned obtaining of the element symbol of the chemical element and obtaining of the element serial number of the chemical element can also be used to obtain other information of the chemical element. The above-mentioned conversion of the element symbol into decimal data and the conversion of the element serial number into ASCII information exchange standard code data can also be converted into corresponding types of data in other ways, for example, it can also be converted into binary data, octal data, hexadecimal data, etc. This greatly enriches the encryption methods.
[0043] It should be noted that, because the predetermined chemical equation is different according to the selected target compound, the chemical elements included in the predetermined chemical equation are also different. When the number of chemical elements in the predetermined chemical equation is one, the first encryption method can be determined according to the above method. When the number of chemical elements in the predetermined chemical equation is multiple, the encryption method corresponding to each chemical element is determined, and then the multiple encryption methods are sorted, so that the sorted multiple encryption methods are used as the first encryption method, and the encrypted data is encrypted in multiple layers. In the case where the number of the same chemical element is multiple, for example, the number of O2, O elements is two, and it can be encrypted twice according to the corresponding encryption method. Different encryption methods are formulated according to the number of chemical elements to make the encryption more reasonable and orderly.
[0044] Optionally, when determining the arrangement order of the encryption method corresponding to each chemical element, it can be sorted according to the relative atomic mass of each chemical element. The steps can be as follows: when the number of chemical elements in the predetermined chemical equation is multiple, the relative atomic masses of multiple chemical elements in the predetermined chemical equation are determined, and according to the relative atomic masses of multiple chemical elements, the encryption order in the first encryption method corresponding to the multiple chemical elements in the predetermined chemical equation is determined, wherein the encryption order can be arranged in sequence or in reverse order. In the case of multiple chemical elements, the above method provided by this optional implementation not only avoids encryption disorder, but also makes encryption more complicated in the case of multiple chemical elements, thereby enhancing data protection.
[0045] (2) Determine the second encryption method corresponding to the reaction condition in the predetermined chemical equation based on the English word of the reaction condition:
[0046] Determine the English words corresponding to the reaction conditions in the predetermined chemical equation; and determine the second encryption method based on the English words in the form of an offset. The second encryption method can also be determined in other forms, which greatly enriches the encryption methods.
[0047] As an optional embodiment, the data to be encrypted is obtained, and the data to be encrypted is encrypted according to the chemical elements and reaction conditions. After obtaining the ciphertext data, it also includes: splicing the ciphertext data and the target compound. That is, the spliced ciphertext data and the target compound data can be sent to the terminal device that needs to be decrypted, so that the device can infer the encryption process according to the target compound to decrypt the ciphertext data and obtain the initial data to be encrypted. That is, the ciphertext data can be decrypted only when the corresponding rules are known. If the corresponding rules are not known, it is difficult to decrypt the ciphertext data, which increases the security of data protection and ensures that the data can be decrypted smoothly.
[0048] Based on the above embodiments and optional embodiments, an optional implementation is provided, which is described in detail below.
[0049] The optional implementation of the present invention is based on the principle of chemical equations, and designs a data encryption and decryption method based on the polymerization and decomposition between chemical elements to realize encryption and decryption rules. New elements are generated by the reaction between chemical elements, and the new elements are used for encryption. The decryption is performed by the elements before the reaction, thereby hiding the key of the encryption, making the encryption method random and difficult to crack. Figure 2 is a flow chart of a data encryption and decryption method provided by an optional embodiment of the present invention, such as Figure 2 As shown, the optional implementation manner of the present invention is introduced below:
[0050] (I) Data encryption process:
[0051] S1, select the target compound according to its morphological classification (solid, liquid, gas), and all the target compounds in the classification have synthetic chemical formulas;
[0052] S2, under Solid State Classification, select a target compound, Figure 3 4 is a flow chart of a data encryption method using ferroferric oxide as an example provided by an optional embodiment of the present invention. Figure 3 As shown, the data encryption method provided by the optional implementation mode of the present invention is introduced by taking ferroferric oxide Fe3O4 as an example;
[0053] S3, based on Fe3O4, the equation for the chemical synthesis conditions of Fe3O4 is inversely deduced as: Fe+O2=Fe3O4, and the reaction condition is ignition;
[0054] It should be noted that when the equation corresponding to the selected target compound does not have a reaction condition, the reaction condition is defined as not;
[0055] S4, identifying whether Fe and O are metal or non-metal through the periodic table of chemical elements, and encrypting the data, for example, encrypting "a data encryption and decryption method based on chemical equations";
[0056] If it is a metal, the decimal value of the element symbol is selected for encryption. If it is a non-metal, the ASCII value corresponding to the element number is selected for encryption. The encryption order can be determined according to the order of the relative atomic mass of the elements. Finally, the reaction conditions are used as offsets to further encrypt the data.
[0057] Among them, the O element is a non-metal, and the ASCII value corresponding to the element number is selected to encrypt the above data; the Fe element is a metal, and the decimal value of the element symbol is selected for encryption; the relative atomic mass of the O element is 16.00, which is less than the relative atomic mass of the Fe element, which is 55.85. The number of O elements in the equation is 2, and the number of Fe elements is 1.
[0058] Therefore, the ASCII value of the element number 8 of the O element is first used for encryption, encrypted twice, and then the decimal value of the Fe element number is used for encryption. Finally, it is encrypted again with the offset ignite to obtain the ciphertext kjdslajkl21ljkjkljk3663lq.
[0059] S5, after obtaining the ciphertext kjdslajkl21ljkjkljk3663lq, the target compound generated by the reaction is concatenated after the ciphertext after encryption, i.e., kjdslajkl21ljkjkljk3663lq+Fe3O4, which is used to identify the encryption rule when the program is decrypted.
[0060] It should be noted that, in the above encryption process, when selecting the target compound and the equation corresponding to the target compound, the chemical equations that are too complex and have special signs are not considered and are not included in this set of encryption rules.
[0061] (II) Data decryption process:
[0062] S1, identify the target compound in the ciphertext, and infer the chemical equation of the reaction, thereby obtaining the original chemical elements and reaction conditions before the reaction;
[0063] S2, judging whether the element is metal or non-metal according to the original chemical element deduced, if it is metal, selecting the decimal value of the element symbol, if it is non-metal, selecting the ASCII value corresponding to the element number;
[0064] S3, the decryption order is determined according to the order of the relative atomic masses of the elements, and the reaction conditions are used as the decryption offset;
[0065] S4, decryption to obtain the original data before encryption.
[0066] It should be noted that Figure 4 4 is a flow chart of a data decryption method using ferroferric oxide as an example provided by an optional embodiment of the present invention. Figure 4 As shown, ferroferric oxide Fe3O4 is used as an example to introduce the data decryption method provided by an optional implementation mode of the present invention. According to Fe3O4, the synthetic chemical equation is deduced, the ciphertext "kjdslajkl21ljkjkljk3663lq" is decrypted, and the original data is identified.
[0067] Through the above optional implementation, at least the following beneficial effects can be achieved:
[0068] (1) It is quick and easy to use. You only need to select the target compound on the page and input the data to be encrypted, and encryption can be performed according to the reaction equation rules of different target compounds.
[0069] (2) High encryption security level. The reaction elements and conditions of each chemical equation are different, which ensures the different encryption methods. New elements are generated through chemical reactions of different elements, hiding the original elements, greatly enhancing the security of encryption;
[0070] (3) It has a wide range of uses and is suitable for a variety of encryption scenarios involving data interaction.
[0071] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence, because according to the present invention, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
[0072] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods of various embodiments of the present invention.
[0073] Example 2
[0074] According to an embodiment of the present invention, a device for implementing the above data processing method is also provided. Figure 5 is a structural block diagram of a data processing device according to an embodiment of the present invention. Figure 5 As shown, the device includes: an acquisition module 502, a selection module 504, a first determination module 506, a second determination module 508 and an encryption module 510. The device is described in detail below.
[0075] An acquisition module 502 is used to acquire data to be encrypted; a selection module 504 is connected to the acquisition module 502 and is used to select a target compound corresponding to the data to be encrypted; a first determination module 506 is connected to the selection module 504 and is used to determine a predetermined chemical formula for synthesizing the target compound; a second determination module 508 is connected to the first determination module 506 and is used to determine the chemical elements and reaction conditions in the predetermined chemical formula; an encryption module 510 is connected to the above and is used to encrypt the data to be encrypted based on the chemical elements and reaction conditions in the predetermined chemical formula to obtain ciphertext data.
[0076] It should be noted here that the above-mentioned acquisition module 502, selection module 504, first determination module 506, second determination module 508 and encryption module 510 correspond to steps S102 to S110 in the implementation of the data processing method, and the instances and application scenarios implemented by the multiple modules and corresponding steps are the same, but are not limited to the contents disclosed in the above-mentioned embodiment 1.
[0077] Example 3
[0078] According to another aspect of an embodiment of the present invention, there is provided an electronic device, comprising: a processor; and a memory for storing instructions executable by the processor, wherein the processor is configured to execute the instructions to implement any one of the above data processing methods.
[0079] Example 4
[0080] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided. When instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device can execute any of the above data processing methods.
[0081] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0082] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0083] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0084] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0085] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0086] If the integrated unit 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 invention, in essence, 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, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
[0087] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A data processing method, characterized in that: include: Obtain the data to be encrypted; Selecting a target compound corresponding to the data to be encrypted; determining a predetermined chemical formula for synthesizing the target compound; Determining chemical elements and reaction conditions in the predetermined chemical equation; Encrypting the data to be encrypted according to the chemical elements and reaction conditions in the predetermined chemical equation to obtain ciphertext data; The step of encrypting the data to be encrypted according to the chemical elements and reaction conditions in the predetermined chemical equation to obtain the ciphertext data comprises: determining a first encryption method corresponding to the chemical elements in the predetermined chemical equation; determining a second encryption method corresponding to the reaction conditions in the predetermined chemical equation; encrypting the data to be encrypted according to the first encryption method and the second encryption method to obtain the ciphertext data; Wherein, the determining the first encryption method corresponding to the chemical element in the predetermined chemical equation includes: determining whether the chemical element in the predetermined chemical equation is a metal element; if the chemical element in the predetermined chemical equation is a metal element, obtaining the element symbol of the chemical element; converting the element symbol into decimal data; and determining the first encryption method corresponding to the chemical element in the predetermined chemical equation according to the decimal data; The method further includes: obtaining an element serial number of the chemical element when the chemical element in the predetermined chemical equation is a non-metallic element; converting the element serial number into ASCII information exchange standard code data; and determining a first encryption method corresponding to the chemical element in the predetermined chemical equation based on the ASCII data; The determining of the second encryption method corresponding to the reaction condition in the predetermined chemical equation comprises: determining an English word corresponding to the reaction condition in the predetermined chemical equation; and determining the second encryption method based on the English word; Among them, the determination of the predetermined chemical formula for synthesizing the target compound includes: when the selected target compound is one, determining the predetermined chemical formula that only generates the target compound; when the selected target compounds are multiple, determining the predetermined chemical formula that generates the multiple target compounds; in addition, it is also necessary to determine whether there is an equation that only generates the one or more target compounds and the predetermined chemical formula is unique. If there is no predetermined chemical formula that can generate the one or more target compounds, or the predetermined chemical formula that can generate the one or more target compounds is not unique, it is considered that the selection is unreasonable, and the target compound corresponding to the data to be encrypted is reselected to determine the corresponding predetermined chemical formula.
2. The method according to claim 1, characterized in that Also includes: In the case where there are multiple chemical elements in the predetermined chemical equation, determining the relative atomic masses of the multiple chemical elements in the predetermined chemical equation; The encryption order in the first encryption method corresponding to the multiple chemical elements in the predetermined chemical equation is determined according to the relative atomic masses of the multiple chemical elements.
3. The method according to claim 1, characterized in that The step of obtaining the data to be encrypted and encrypting the data to be encrypted according to the chemical elements and the reaction conditions to obtain the ciphertext data further includes: The ciphertext data is concatenated with the target compound.
4. A data processing device, characterized in that: include: An acquisition module, used to acquire data to be encrypted; A selection module, used for selecting a target compound corresponding to the data to be encrypted; A first determination module, used to determine a predetermined chemical formula for synthesizing the target compound; A second determination module, used to determine the chemical elements and reaction conditions in the predetermined chemical equation; An encryption module, used for encrypting the data to be encrypted according to the chemical elements and reaction conditions in the predetermined chemical equation to obtain ciphertext data; The encryption module is used to determine a first encryption method corresponding to the chemical elements in the predetermined chemical equation; determine a second encryption method corresponding to the reaction conditions in the predetermined chemical equation; encrypt the data to be encrypted according to the first encryption method and the second encryption method to obtain the ciphertext data; The encryption module is used to determine whether the chemical element in the predetermined chemical equation is a metal element; if the chemical element in the predetermined chemical equation is a metal element, obtain the element symbol of the chemical element; convert the element symbol into decimal data; and determine the first encryption method corresponding to the chemical element in the predetermined chemical equation according to the decimal data; The encryption module is used to obtain the element serial number of the chemical element when the chemical element in the predetermined chemical equation is a non-metallic element; convert the element serial number into ASCII information exchange standard code data; and determine the first encryption method corresponding to the chemical element in the predetermined chemical equation based on the ASCII data; Wherein, the encryption module is used to determine the English word corresponding to the reaction condition in the predetermined chemical equation; and determine the second encryption method according to the English word; Among them, the first determination module is used to determine a predetermined chemical formula that generates only one target compound when only one target compound is selected; and to determine a predetermined chemical formula that generates the multiple target compounds when multiple target compounds are selected; in addition, it is also necessary to determine whether there is an equation that generates only the one or more target compounds and the predetermined chemical formula is unique. If there is no predetermined chemical formula that can generate the one or more target compounds, or the predetermined chemical formula that can generate the one or more target compounds is not unique, it is considered that the selection is unreasonable, and the target compound corresponding to the data to be encrypted is reselected to determine the corresponding predetermined chemical formula.
5. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the data processing method according to any one of claims 1 to 3.
6. A computer-readable storage medium, characterized in that: When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the data processing method as claimed in any one of claims 1 to 3.
Citation Information
Patent Citations
Equation password encryption method
CN101877636A
Piezochromic fluorescent molecule and preparation method and application thereof
CN108003859A