Data encryption method and device

By performing secondary encryption based on particle motion cycles on encrypted data, the problem of insufficient security of existing data encryption technology is solved, the security of data is significantly improved, and the resistance to attack is provided.

CN114254367BActive Publication Date: 2025-04-01CHINA TELECOM CORP LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202111616949.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-27
Publication Date
2025-04-01
Estimated Expiration
2041-12-27

Smart Images

  • Figure CN114254367B_ABST
    Figure CN114254367B_ABST
Patent Text Reader

Abstract

The present application discloses a data encryption method and device. The method includes: obtaining data to be encrypted and a password table; encrypting the data to be encrypted based on the password table to obtain a first encryption result; constructing a target particle and a target magnetic field based on the first encryption result, and determining the movement period of the target particle in the target magnetic field; and determining a second encryption result of the data to be encrypted based on the movement period and the first encryption result. The present application solves the technical problem that the existing data encryption technology has poor security and is difficult to meet user needs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data security technology, and in particular to a data encryption method and device. Background Art

[0002] With the development of the Internet era, the network is changing people's living space and lifestyle with rapid, convenient and super-time and space transmission methods. In particular, the rapid development of network information and the explosive growth of data have increased the demand for data security. In the current traditional data security processing technology, there are often the following shortcomings: 1. Data is vulnerable to abnormal traffic attacks: If the amount of stored data is huge, it is often necessary to use a distributed method for storage. However, due to the relatively clear storage path view and large data volume of this storage method, the protection of data is relatively simple. Hackers can easily exploit related vulnerabilities to implement illegal operations, such as obtaining the final data output by the big data analysis platform, which can easily cause greater information security risks. 2. There is a risk of data information leakage: In the context of big data, the structure of data information is far more complex than traditional data, and the existing privacy protection for sensitive data is difficult to meet the security protection of complex data information. 3. There are security risks in the data transmission process: In the data transmission processing link, in addition to the risk of unauthorized use and destruction of data, due to the heterogeneous, multi-source, and associated characteristics of big data transmission, even if multiple data sets are desensitized, the data sets still have the risk of personal information leakage due to association analysis.

[0003] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0004] The embodiments of the present application provide a data encryption method and device to at least solve the technical problem that the existing data encryption technology has poor security and is difficult to meet user needs.

[0005] According to one aspect of an embodiment of the present application, a data encryption method is provided, including: obtaining data to be encrypted and a password table; encrypting the data to be encrypted based on the password table to obtain a first encryption result; constructing target particles and a target magnetic field based on the first encryption result, and determining a movement period of the target particles in the target magnetic field; and determining a second encryption result of the data to be encrypted based on the movement period and the first encryption result.

[0006] Optionally, the data to be encrypted is split to determine each character in the data to be encrypted; for any of the characters, a code table value corresponding to the character in the password table is determined; all the code table values ​​are sorted according to the positions of the characters corresponding to the code table values ​​in the data to be encrypted to obtain a first target value, and the first target value is used as the first encryption result.

[0007] Optionally, determine a first value corresponding to a first preset number of bits in the first target value, and use the first value as the particle mass of the target particle; determine a second value corresponding to a second preset number of bits in the first target value, and use the second value as the charge of the target particle; determine a third value corresponding to a third preset number of bits in the first target value, and use the third value as the magnetic induction intensity of the target magnetic field.

[0008] Optionally, based on the particle mass and charge of the target particle and the magnetic induction intensity of the target magnetic field, the movement period of the target particle in the target magnetic field is calculated.

[0009] Optionally, determine a second target value corresponding to the motion cycle; process the first target value and the second target value based on a preset processing method to obtain the second encryption result, wherein the preset processing method includes at least one of the following: digital splicing, numerical summation.

[0010] According to another aspect of an embodiment of the present application, a data encryption device is also provided, including: an acquisition module, used to acquire data to be encrypted and a password table; a first encryption module, used to encrypt the data to be encrypted based on the password table to obtain a first encryption result; a construction module, used to construct target particles and target magnetic fields based on the first encryption result, and determine the movement period of the target particles in the target magnetic field; a second encryption module, used to determine a second encryption result of the data to be encrypted based on the movement period and the first encryption result.

[0011] Optionally, the first encryption module includes: a splitting unit, used to split the data to be encrypted and determine each character in the data to be encrypted; a first determination unit, used to determine, for any of the characters, a code table value corresponding to the character in the password table; a sorting unit, used to sort all the code table values ​​according to the positions of the characters corresponding to the code table values ​​in the data to be encrypted, to obtain a first target value, and use the first target value as the first encryption result.

[0012] Optionally, the construction module includes: a second determination unit, used to determine a first value corresponding to a first preset number of bits in the first target value, and use the first value as the particle mass of the target particle; a third determination unit, used to determine a second value corresponding to a second preset number of bits in the first target value, and use the second value as the charge of the target particle; a fourth determination unit, used to determine a third value corresponding to a third preset number of bits in the first target value, and use the third value as the magnetic induction intensity of the target magnetic field; and a calculation unit, used to calculate the movement period of the target particle in the target magnetic field based on the particle mass and charge of the target particle and the magnetic induction intensity of the target magnetic field.

[0013] According to another aspect of an embodiment of the present application, a non-volatile storage medium is further provided, wherein the non-volatile storage medium includes a stored program, wherein when the program is running, the device where the non-volatile storage medium is located is controlled to execute the above-mentioned data encryption method.

[0014] According to another aspect of an embodiment of the present application, a processor is further provided, wherein the processor is used to run a program, wherein the above-mentioned data encryption method is executed when the program is running.

[0015] In the embodiment of the present application, firstly, the data to be encrypted and the password table are obtained, and then the data to be encrypted is encrypted based on the password table to obtain a first encryption result; then, the target particle and the target magnetic field are constructed based on the first encryption result, the movement period of the target particle in the target magnetic field is determined, and then the second encryption result of the data to be encrypted is determined based on the movement period and the first encryption result. In this process, based on the existing data security encryption technology, the encrypted data is encrypted twice based on the movement period of the particle in the magnetic field. Since the period of particle movement is affected by many factors and has uncertainty, the final encryption result obtained based on this method has a strong anti-attack ability and its security is greatly improved, thereby solving the technical problem that the existing data encryption technology has poor security and is difficult to meet user needs. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0017] Figure 1 is a flow chart of a data encryption method according to an embodiment of the present application;

[0018] Figure 2 is a schematic diagram of a particle moving in a magnetic field according to an embodiment of the present application;

[0019] Figure 3 It is a structural schematic diagram of a data encryption device according to an embodiment of the present application. DETAILED DESCRIPTION

[0020] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution 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 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 should fall within the scope of protection of the present application.

[0021] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application 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 interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0022] In order to better understand the embodiments of the present application, some nouns or terms that appear in the description of the embodiments of the present application are translated and explained as follows:

[0023] ASCII (American Standard Code for Information Interchange): It is a computer coding system based on the Latin alphabet. It uses a specified combination of 7-bit or 8-bit binary numbers to represent 128 or 256 possible characters. It is the most common single-byte coding system today and is equivalent to the international standard ISO / IEC646. Among them, the standard ASCII code is also called the basic ASCII code, which uses 7-bit binary numbers to represent all uppercase and lowercase letters, numbers, punctuation marks, and special control characters; on the basis of the standard ASCII code, 128 extended ASCII codes are added, which use 8-bit binary numbers with the high bit as 1 to represent special symbols, foreign letters, and graphic symbols.

[0024] Example 1

[0025] According to an embodiment of the present application, a data encryption 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.

[0026] Figure 1 is a flow chart of an optional data encryption method according to an embodiment of the present application, such as Figure 1 As shown, the method at least includes steps S102-S106, wherein:

[0027] Step S102, obtaining the data to be encrypted and the password table.

[0028] Usually, the data encryption process is performed by the server. Users can upload the data information to be encrypted to the server through mobile phones, computers and other clients. After the server obtains the data to be encrypted, it determines the password table for encryption, which is usually the internationally accepted ASCII code table, and then encrypts the data to be encrypted based on the preset encryption algorithm, and then transmits the encryption result to the corresponding client or performs distributed storage.

[0029] Step S104: encrypt the data to be encrypted based on the password table to obtain a first encryption result.

[0030] Specifically, when encrypting the data to be encrypted, it is necessary to first split the data to be encrypted, determine each character in the data to be encrypted, and for any character, determine the code table value corresponding to the character in the password table, and then sort all the code table values ​​according to the positions of the characters corresponding to the code table values ​​in the data to be encrypted to obtain a first target value, and use the first target value as the first encryption result.

[0031] Taking the encrypted data "data encryption" as an example, first split it into 15 single characters. Look up the ASCII code table to find out that the code table values ​​corresponding to each character are shown in Table 1:

[0032] Table 1

[0033]

[0034]

[0035] Since the data stored in the computer is usually binary number, the binary code table values ​​determined above can be sorted and combined according to the character sequence number, and the first target value obtained is the first encryption result: "01100100011000010111010001100100001000000110010101101110011000110111001001111001011100000111010001101010010110111101101110"; the decimal code table value is used to illustrate the subsequent encryption process.

[0036] Step S106, constructing the target particle and the target magnetic field based on the first encryption result, and determining the movement period of the target particle in the target magnetic field.

[0037] It is understandable that if the encrypted data is encrypted only according to the above method, since ASCII is a universal encoding method, the data obtained based on ASCII encryption is easily attacked by abnormal traffic, and there is a risk of information leakage in both data transmission and data storage, which has a great security risk. To avoid this situation, the embodiment of the present application proposes to perform secondary encryption on the encrypted data based on the movement period of charged particles in the magnetic field. Since the period of particle movement is affected by many factors and has uncertainty, the final encryption result obtained based on this method has a strong anti-attack ability and its security is greatly improved.

[0038] Figure 2 A schematic diagram of a charged particle moving in a magnetic field is shown, wherein the moving speed direction of the charged particle is perpendicular to the magnetic induction intensity direction of the uniform magnetic field, and the charged particle performs uniform circular motion in the uniform magnetic field. Provided by the Lorentz force F2 = Bqv, that is, F1 = F2, In the formula, m represents the mass of the charged particle, v represents the speed of the charged particle, r represents the radius of the uniform circular motion of the charged particle, B represents the magnetic induction intensity of the uniform magnetic field, and q represents the charge of the charged particle. The speed of the charged particle can be calculated as Then we can get the uniform circular motion period of the charged particle: It can be seen that the motion period of the charged particle is only related to the mass m of the charged particle, the charge q of the charged particle and the magnetic induction intensity B of the uniform magnetic field. Therefore, when constructing the target particle and the target magnetic field, it is only necessary to determine these three parameters.

[0039] In some optional embodiments of the present application, a first value corresponding to a first preset number of bits in the first target value can be determined, and the first value can be used as the particle mass of the target particle; a second value corresponding to a second preset number of bits in the first target value can be determined, and the second value can be used as the charge of the target particle; a third value corresponding to a third preset number of bits in the first target value can be determined, and the third value can be used as the magnetic induction intensity of the target magnetic field; and then, based on the particle mass and charge of the target particle and the magnetic induction intensity of the target magnetic field, the movement period of the target particle in the target magnetic field is calculated.

[0040] For example, for the first target value determined above, the 1st to 8th digits "01100100" can be used as the first value, that is, the particle mass m of the target particle is 100 (the unit is not considered in the calculation here), the 9th to 16th digits "01100001" can be used as the second value, that is, the charge q of the target particle is 97, and the 17th to 24th digits "01110100" can be used as the third value, that is, the magnetic induction intensity B of the target magnetic field is 116. According to the above formula, the movement period of the target particle in the target magnetic field can be calculated.

[0041] Step S108: determining a second encryption result of the data to be encrypted based on the motion cycle and the first encryption result.

[0042] After calculating the movement period of the target particle, the second target value corresponding to the movement period can be determined, and then the first target value and the second target value are processed based on a preset processing method to obtain a second encryption result, wherein the preset processing method includes at least one of the following: digital splicing, numerical summation.

[0043] Usually, the calculated movement period of the target particle in the target magnetic field is an infinite non-repeating decimal, which is not convenient to process directly. Therefore, the first few significant digits can be taken as the second target value. For example, T≈0.0558406 calculated above, the first three significant digits are 558, and the corresponding binary second target value is 1000101110. By concatenating it with the first target value, the final second encryption result can be obtained: "10001011100110010001100001011101000110010000100000011001010110111001100110111001001111001011100000111010001101001011011101101110", the server can transmit the second encryption result to the corresponding client or perform distributed storage. Optionally, the first target value and the second target value may be summed to obtain a final second encryption result.

[0044] In the embodiment of the present application, firstly, the data to be encrypted and the password table are obtained, and then the data to be encrypted is encrypted based on the password table to obtain a first encryption result; then, the target particle and the target magnetic field are constructed based on the first encryption result, the movement period of the target particle in the target magnetic field is determined, and then the second encryption result of the data to be encrypted is determined based on the movement period and the first encryption result. In this process, based on the existing data security encryption technology, the encrypted data is encrypted twice based on the movement period of the particle in the magnetic field. Since the period of particle movement is affected by many factors and has uncertainty, the final encryption result obtained based on this method has a strong anti-attack ability and its security is greatly improved, thereby solving the technical problem that the existing data encryption technology has poor security and is difficult to meet user needs.

[0045] Example 2

[0046] According to an embodiment of the present application, a data encryption device for implementing the above data encryption method is also provided. Figure 3 As shown, the device at least includes an acquisition module 30, a first encryption module 32, a construction module 34 and a second encryption module 36, wherein:

[0047] The acquisition module 30 is used to acquire the data to be encrypted and the password table.

[0048] Usually, the data encryption process is performed by the server. Users can upload the data information to be encrypted to the server through mobile phones, computers and other clients. After the server obtains the data to be encrypted, it determines the password table for encryption, which is usually the internationally accepted ASCII code table, and then encrypts the data to be encrypted based on the preset encryption algorithm, and then transmits the encryption result to the corresponding client or performs distributed storage.

[0049] The first encryption module 32 is used to encrypt the data to be encrypted based on the password table to obtain a first encryption result.

[0050] In some optional embodiments of the present application, the first encryption module 32 includes: a splitting unit 320, used to split the data to be encrypted and determine each character in the data to be encrypted; a first determination unit 322, used to determine, for any character, a code table value corresponding to the character in the password table; a sorting unit 324, used to sort all the code table values ​​according to the positions of the characters corresponding to the code table values ​​in the data to be encrypted, to obtain a first target value, and to use the first target value as the first encryption result.

[0051] Taking the data to be encrypted as "data encryption" as an example, the splitting unit 320 first splits it into 15 single characters, and the first determining unit 322 searches the ASCII code table to obtain the code table values ​​corresponding to each character as shown in Table 1. Since the data stored in the computer is usually binary, the sorting unit 324 can sort and combine the above-determined binary code table values ​​according to the character sequence number, and the obtained first target value is the first encryption result: "011001000110000101110100011001000010000001100101011011100110001101110010011110010111000001110100011010100110111011011101101110"; the above-mentioned decimal code table values ​​are used to illustrate the subsequent encryption process.

[0052] The construction module 34 is used to construct the target particles and the target magnetic field based on the first encryption result, and determine the movement period of the target particles in the target magnetic field.

[0053] It is understandable that if the encrypted data is encrypted only according to the above method, since ASCII is a universal encoding method, the data obtained based on ASCII encryption is easily attacked by abnormal traffic, and there is a risk of information leakage in both data transmission and data storage, which has a great security risk. To avoid this situation, the embodiment of the present application proposes to perform secondary encryption on the encrypted data based on the movement period of charged particles in the magnetic field. Since the period of particle movement is affected by many factors and has uncertainty, the final encryption result obtained based on this method has a strong anti-attack ability and its security is greatly improved.

[0054] Figure 2 A schematic diagram of a charged particle moving in a magnetic field is shown, wherein the moving speed direction of the charged particle is perpendicular to the magnetic induction intensity direction of the uniform magnetic field, and the charged particle performs uniform circular motion in the uniform magnetic field. The Lorentz force F2 = B q Provided, that is, F1 = Fz, In the formula, m represents the mass of the charged particle, v represents the speed of the charged particle, r represents the radius of the uniform circular motion of the charged particle, B represents the magnetic induction intensity of the uniform magnetic field, and q represents the charge of the charged particle. The speed of the charged particle can be calculated as Then we can get the uniform circular motion period of the charged particle: It can be seen that the motion period of the charged particle is only related to the mass m of the charged particle, the charge q of the charged particle and the magnetic induction intensity B of the uniform magnetic field. Therefore, when constructing the target particle and the target magnetic field, it is only necessary to determine these three parameters.

[0055] In some optional embodiments of the present application, the construction module 34 includes: a second determination unit 340, used to determine a first value corresponding to a first preset number of bits in the first target value, and use the first value as the particle mass of the target particle; a third determination unit 342, used to determine a second value corresponding to a second preset number of bits in the first target value, and use the second value as the charge of the target particle; a fourth determination unit 344, used to determine a third value corresponding to a third preset number of bits in the first target value, and use the third value as the magnetic induction intensity of the target magnetic field; a calculation unit 346, used to calculate the movement period of the target particle in the target magnetic field based on the particle mass and charge of the target particle and the magnetic induction intensity of the target magnetic field.

[0056] For example, for the first target value determined above, the second determination unit 340 can use the 1st to 8th bits "01100100" as the first value, that is, the particle mass m of the target particle = 100 (the unit is not considered in the calculation here), the third determination unit 342 can use the 9th to 16th bits "01100001" as the second value, that is, the charge q of the target particle = 97, the fourth determination unit 344 can use the 17th to 24th bits "01110100" as the third value, that is, the magnetic induction intensity B of the target magnetic field = 116, and the calculation unit 346 can calculate the movement period of the target particle in the target magnetic field according to the above formula.

[0057] The second encryption module 36 is used to determine a second encryption result of the data to be encrypted based on the motion cycle and the first encryption result.

[0058] After calculating the movement period of the target particle, the second target value corresponding to the movement period can be determined, and then the first target value and the second target value are processed based on a preset processing method to obtain a second encryption result, wherein the preset processing method includes at least one of the following: digital splicing, numerical summation.

[0059] Usually, the calculated movement period of the target particle in the target magnetic field is an infinite non-repeating decimal, which is not convenient to process directly. Therefore, the first few significant digits can be taken as the second target value. For example, T≈0.0558406 calculated above, the first three significant digits are 558, and the corresponding binary second target value is 1000101110. By concatenating it with the first target value, the final second encryption result can be obtained: "10001011100110010001100001011101000110010000100000011001010110111001100110111001001111001011100000111010001101001011011101101110", the server can transmit the second encryption result to the corresponding client or perform distributed storage. Optionally, the first target value and the second target value may be summed to obtain a final second encryption result.

[0060] It should be noted that each module in the data encryption device in the embodiment of the present application corresponds one by one to each implementation step of the data encryption method in Example 1. Since a detailed description has been given in Example 1, some details not reflected in this embodiment can be referred to Example 1 and will not be repeated here.

[0061] Example 3

[0062] According to an embodiment of the present application, a non-volatile storage medium is also provided, which includes a stored program, wherein when the program is running, the device where the non-volatile storage medium is located is controlled to execute the data encryption method in Example 1.

[0063] According to an embodiment of the present application, a processor is also provided, which is used to run a program, wherein the data encryption method in Example 1 is executed when the program is running.

[0064] Specifically, the following steps are executed when the program is running: obtaining the data to be encrypted and the password table; encrypting the data to be encrypted based on the password table to obtain a first encryption result; constructing the target particles and the target magnetic field based on the first encryption result, and determining the movement period of the target particles in the target magnetic field; determining the second encryption result of the data to be encrypted based on the movement period and the first encryption result.

[0065] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0066] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0067] 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 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.

[0068] 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 over multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0069] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0070] 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 application, 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, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of each embodiment method of the present application. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk, etc. Various media that can store program codes.

[0071] The above are only preferred implementations of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A data encryption method, characterized in that: include: Get the data to be encrypted and the password table; Encrypting the data to be encrypted based on the password table to obtain a first encryption result; constructing a target particle and a target magnetic field based on the first encryption result, and determining a movement period of the target particle in the target magnetic field; Determine a second encryption result of the data to be encrypted based on the movement cycle and the first encryption result; The method of encrypting the data to be encrypted based on the password table to obtain a first encryption result includes: splitting the data to be encrypted, determining each character in the data to be encrypted, and for any of the characters, determining a code table value corresponding to the character in the password table, sorting all the code table values ​​according to the positions of the characters corresponding to the code table values ​​in the data to be encrypted, obtaining a first target value, and using the first target value as the first encryption result; Constructing a target particle and a target magnetic field based on the first encryption result, including: determining a first value corresponding to a first preset number of bits in the first target value, and using the first value as the particle mass of the target particle; determining a second value corresponding to a second preset number of bits in the first target value, and using the second value as the charge of the target particle; determining a third value corresponding to a third preset number of bits in the first target value, and using the third value as the magnetic induction intensity of the target magnetic field; Determining the movement period of the target particle in the target magnetic field includes: calculating the movement period of the target particle in the target magnetic field based on the particle mass and charge of the target particle and the magnetic induction intensity of the target magnetic field.

2. The method according to claim 1, characterized in that Determining a second encryption result of the to-be-encrypted data based on the motion cycle and the first encryption result includes: Determining a second target value corresponding to the motion cycle; The first target value and the second target value are processed based on a preset processing method to obtain the second encryption result, wherein the preset processing method includes at least one of the following: digital splicing, numerical summation.

3. A data encryption device, characterized in that: include: An acquisition module is used to obtain the data to be encrypted and the password table; A first encryption module, used for encrypting the data to be encrypted based on the password table to obtain a first encryption result; A construction module, configured to construct a target particle and a target magnetic field based on the first encryption result, and determine a movement period of the target particle in the target magnetic field; A second encryption module, used for determining a second encryption result of the data to be encrypted based on the movement cycle and the first encryption result; The first encryption module includes: a splitting unit, used to split the data to be encrypted and determine each character in the data to be encrypted; a first determining unit, used to determine, for any of the characters, a code table value corresponding to the character in the password table; a sorting unit, used to sort all the code table values ​​according to the positions of the characters corresponding to the code table values ​​in the data to be encrypted, to obtain a first target value, and to use the first target value as the first encryption result; The construction module includes: a second determination unit, used to determine a first value corresponding to a first preset number of bits in the first target value, and use the first value as the particle mass of the target particle; a third determination unit, used to determine a second value corresponding to a second preset number of bits in the first target value, and use the second value as the charge of the target particle; a fourth determination unit, used to determine a third value corresponding to a third preset number of bits in the first target value, and use the third value as the magnetic induction intensity of the target magnetic field; and a calculation unit, used to calculate the movement period of the target particle in the target magnetic field based on the particle mass and charge of the target particle and the magnetic induction intensity of the target magnetic field.

4. A non-volatile storage medium, characterized in that: The non-volatile storage medium includes a stored program, wherein when the program is running, the device where the non-volatile storage medium is located is controlled to execute the data encryption method according to any one of claims 1 to 2.

5. A processor, characterized in that: The processor is used to run a program, wherein the program executes the data encryption method described in any one of claims 1 to 2 when running.

Citation Information

Patent Citations

  • Method and device for encrypting data

    CN110516462A

  • Data encryption method and device, storage medium and electronic equipment

    CN113691374A

  • Data encryption method and device, storage medium and electronic equipment

    CN115130129A