Data encryption method, device, electronic device and storage medium
By generating a physical field and using the motion trajectory diagram of charged particles for encryption, the problem of poor security of cryptographic encryption in the prior art is solved, and the data's resistance to attack and security is improved.
Patent Information
- Application Number
- CN202110453924.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-26
- Publication Date
- 2024-12-27
- Estimated Expiration
- 2041-04-26
AI Technical Summary
After the existing MD5 algorithm encrypts the user's password, the ciphertext is easily cracked through the rainbow table query, resulting in poor data encryption security and insufficient anti-attack ability.
By generating a physics field, encrypting the encrypted data using the motion trajectory diagram of charged particles, irreversible encryption results are generated, ensuring that the encryption key cannot be decrypted in reverse, and increasing the security and attack resistance of the data.
It improves the security and attack resistance of data encryption, reduces the risk of encryption results being reversely decrypted due to encryption key leakage, and ensures that the same data to be encrypted obtains different encryption results.
Smart Images

Figure CN115333758B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a data encryption method, device, electronic device and storage medium. Background Art
[0002] With the rapid development of information technology, the Internet is no longer a strange word. More and more people have joined the ranks of Internet users. The Internet is changing people's living space and lifestyle with its rapid, convenient and super-time and space transmission. At the same time, how to ensure the safe transmission of personal information on the Internet has become a top priority for Internet practitioners.
[0003] In the related art, the MD5 algorithm is used to encrypt the user's password. There is only one ciphertext obtained after the same data is encrypted. After the ciphertext is leaked, there is a possibility of cracking it through rainbow table query, and the security of data encryption is poor.
[0004] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention
[0005] The purpose of the present disclosure is to provide a data encryption method, device, electronic device and storage medium, which can increase the security of data and improve the anti-attack capability of encrypted data.
[0006] Other features and advantages of the present disclosure will become apparent from the following detailed description, or may be learned in part by the practice of the present disclosure.
[0007] The disclosed embodiment provides a data encryption method, comprising: obtaining data to be encrypted and an encryption key; generating a physical field according to the data to be encrypted and the encryption key; determining property values of charged particles according to the data to be encrypted; obtaining a target motion trajectory diagram of the charged particles according to the property values of the charged particles and the physical field; and obtaining an encryption result of the data to be encrypted according to the coordinates of the charged particles in the target motion trajectory diagram of the charged particles.
[0008] In some exemplary embodiments of the present disclosure, the physical field is a composite field of an electric field, a magnetic field and a gravitational field; wherein, generating the physical field according to the data to be encrypted and the encryption key comprises: determining physical parameters of the composite field according to the data to be encrypted and the encryption key; and generating the composite field according to the physical parameters of the composite field.
[0009] In some exemplary embodiments of the present disclosure, a target motion trajectory diagram of the charged particle is obtained based on the property value of the charged particle and the physical field, including: placing the charged particle in the composite field to obtain the target motion trajectory diagram of the charged particle in the composite field.
[0010] In some exemplary embodiments of the present disclosure, generating a physical field according to the data to be encrypted and the encryption key includes: determining a first number to be encrypted according to the data to be encrypted and a first code table; determining a second number to be encrypted according to the encryption key and a second code table; determining physical parameters of the physical field according to the first number to be encrypted and the second number to be encrypted; and generating the physical field according to the physical parameters of the physical field.
[0011] In some exemplary embodiments of the present disclosure, the physical field is an electric field, a magnetic field and a gravitational field; wherein, generating the physical field according to the data to be encrypted and the encryption key comprises: determining the physical parameters of the electric field, the magnetic field and the gravitational field respectively according to the data to be encrypted and the encryption key; generating the electric field, the magnetic field and the gravitational field respectively according to the physical parameters of the electric field, the magnetic field and the gravitational field.
[0012] In some exemplary embodiments of the present disclosure, a target motion trajectory diagram of the charged particle is obtained according to the property value of the charged particle and the physical field, including: placing the charged particle in the electric field to obtain a motion trajectory diagram of the charged particle in the electric field; placing the charged particle in the magnetic field to obtain a motion trajectory diagram of the charged particle in the magnetic field; placing the charged particle in the gravitational field to obtain a motion trajectory diagram of the charged particle in the gravitational field; and synthesizing the motion trajectory diagrams of the charged particle in the electric field, the magnetic field and the gravitational field to obtain the target motion trajectory diagram of the charged particle.
[0013] In some exemplary embodiments of the present disclosure, the physical parameters include the magnitude and direction of the field strength; the property values of the charged particles include at least one of the charged properties of the charged particles, the amount of charge, the initial velocity of the charged particles entering the physical field, and the incident coordinates.
[0014] The disclosed embodiment provides a data encryption device, comprising: a module for acquiring data to be encrypted, for acquiring data to be encrypted and an encryption key; a physical field generation module, for generating a physical field according to the data to be encrypted and the encryption key; a property value determination module, for determining the property value of a charged particle according to the data to be encrypted; a trajectory map acquisition module, for acquiring a target motion trajectory map of the charged particle according to the property value of the charged particle and the physical field; and an encryption result acquisition module, for acquiring an encryption result of the data to be encrypted according to the coordinates of the charged particle in the target motion trajectory map of the charged particle.
[0015] An embodiment of the present disclosure provides an electronic device, comprising: at least one processor; and a storage device for storing at least one program, wherein when the at least one program is executed by the at least one processor, the at least one processor implements any one of the above-mentioned data encryption methods.
[0016] An embodiment of the present disclosure provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements any of the above-mentioned data encryption methods when executed by a processor.
[0017] The data encryption method provided by some embodiments of the present disclosure generates a physical field according to the data to be encrypted and the encryption key, determines the property value of the charged particle according to the data to be encrypted, combines the law of energy conversion, the law of uniformly accelerated motion, and the law of motion of objects under multiple forces, generates a target motion trajectory diagram of the charged particle, and obtains the encryption result of the data to be encrypted according to the coordinates of the charged particle in the target motion trajectory diagram of the charged particle. The data encryption method is an irreversible encryption method, and the encryption key is used to encrypt the data. The encrypted data cannot be reversely decrypted by the encryption key, which greatly increases the security of the data, reduces the situation where the encryption result is reversely decrypted according to the rainbow table due to the leakage of the encryption key, and improves the anti-attack ability of the encrypted data. In addition, according to the data encryption method, it can be ensured that different encryption results are obtained for the same data to be encrypted, thereby improving the security and anti-attack ability of the encrypted data.
[0018] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification are used to explain the principles of the present disclosure. Obviously, the accompanying drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without creative work.
[0020] Figure 1 A schematic diagram showing an exemplary system architecture to which the data encryption method according to an embodiment of the present disclosure can be applied.
[0021] Figure 2 The figure is a flow chart showing a data encryption method according to an exemplary embodiment.
[0022] Figure 3 is a flow chart showing another data encryption method according to an exemplary embodiment.
[0023] Figure 4 is a flow chart showing another data encryption method according to an exemplary embodiment.
[0024] Figure 5 is a schematic diagram showing the movement of charged particles in an electric field according to an example.
[0025] Figure 6 is a schematic diagram showing the movement of charged particles in a magnetic field according to an example.
[0026] Figure 7 is a block diagram of a data encryption device according to an exemplary embodiment.
[0027] Figure 8 is a schematic structural diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0028] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that the disclosure will be more comprehensive and complete and to fully convey the concepts of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
[0029] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.
[0030] Figure 1 A schematic diagram showing an exemplary system architecture to which the data encryption method according to an embodiment of the present disclosure can be applied.
[0031] like Figure 1 As shown, the system architecture may include a server 101, a network 102 and a terminal device 103. The network 102 is used to provide a medium for a communication link between the terminal device 103 and the server 101. The network 102 includes various connection types, such as wired, wireless communication links or optical fiber cables.
[0032] The server 101 may be a server that provides various services. The terminal device 103 may be a PC (Person Computer) terminal or a mobile terminal, which is not limited in the present disclosure.
[0033] The data encryption method provided in the embodiment of the present disclosure may be executed by the server 101 or the terminal device 103 , and the following description will be made by taking the server 101 executing the data encryption method as an example.
[0034] For example, the server 101 can obtain the data to be encrypted and the encryption key; the server 101 can, for example, generate a physical field based on the data to be encrypted and the encryption key; the server 101 can, for example, determine the property value of the charged particle based on the data to be encrypted; the server 101 can, for example, obtain the target motion trajectory diagram of the charged particle based on the property value of the charged particle and the physical field; the server 101 can, for example, obtain the encryption result of the data to be encrypted based on the coordinates of the charged particle in the target motion trajectory diagram of the charged particle.
[0035] In the disclosed embodiment, the original text (i.e. the data to be encrypted) and the key can be used to encrypt the original text and store the ciphertext; during verification, the input original text is encrypted with the same key, and the ciphertext is compared with the stored ciphertext to see if they are consistent. If they are consistent, the original data is confirmed to be correct. It should be understood that Figure 1 The number of servers and terminal devices in the figure is only for illustration, and any number of servers and terminal devices may be provided according to actual needs.
[0036] Below, each step of the data encryption method in the exemplary embodiment of the present disclosure will be described in more detail with reference to the accompanying drawings and embodiments.
[0037] Figure 2 is a flow chart of a data encryption method according to an exemplary embodiment. The method provided by the embodiment of the present disclosure can be performed as follows Figure 1 The encryption end is shown to be executed, but the present disclosure is not limited to this.
[0038] like Figure 2 As shown, the data encryption method provided by the embodiment of the present disclosure may include the following steps.
[0039] In step S202, the data to be encrypted and the encryption key are obtained.
[0040] In the embodiments of the present disclosure, the data to be encrypted may include but is not limited to images, audio, video, and text; the encryption key may include but is not limited to images, audio, video, and text.
[0041] In the following examples, the data to be encrypted and the encryption key are both texts, but the present disclosure is not limited to this.
[0042] In step S204, a physical field is generated according to the data to be encrypted and the encryption key.
[0043] In the embodiments of the present disclosure, the physical field may be an electric field, a magnetic field or a gravitational field. The physical field may also be a composite field of an electric field and a magnetic field. The physical field may also be a composite field of an electric field and a gravitational field. The physical field may also be a composite field of a magnetic field and a gravitational field. The physical field may also be a composite field of an electric field, a magnetic field and a gravitational field.
[0044] In an exemplary embodiment, the physical field is a composite field of electric field, magnetic field and gravitational field.
[0045] In the disclosed embodiment, the first number to be encrypted can be determined based on the data to be encrypted and the first code table; the second number to be encrypted can be determined based on the encryption key and the second code table; wherein the first code table and the second code table can use different code tables to increase the security of encryption.
[0046] For example, the data to be encrypted may be split into individual characters, and the numerical value corresponding to each character may be obtained by searching in the first code table, and these numerical values may be arranged in sequence to obtain the first number A1 to be encrypted.
[0047] The first number to be encrypted may be set to 256 bits. If the first number to be encrypted is less than 256 bits, it may be supplemented with 1 or 0. For example, 1 may be supplemented at the first digit of the first number to be encrypted, and 0 may be supplemented after 1.
[0048] For example, the encryption key may be split into individual characters, and the numerical value corresponding to each character may be obtained by searching in the second code table, and these numerical values may be arranged in sequence to obtain the second number A2 to be encrypted.
[0049] In the disclosed embodiment, the physical parameters of the physical field may be determined according to the first number to be encrypted and the second number to be encrypted.
[0050] For example, the first number to be encrypted A1 can be divided by the second number to be encrypted A2 to obtain the result B1; the first number to be encrypted A1 can be divided by the second number to be encrypted A2 and the result B1 can be rounded to the integer; the first number to be encrypted A1 can be divided by the second number to be encrypted A2 and the result B2 can be obtained by taking the remainder.
[0051] In the disclosed embodiment, the physical parameters of the physical field may be determined based on the relevant characteristic values of B1 and B2.
[0052] The relevant characteristic values may include the number of digits and the specific values of each digit.
[0053] In an exemplary embodiment, the physical parameters include the magnitude of the electric field and the direction of the electric field.
[0054] The direction of the field strength may be horizontal to the left, horizontal to the right, vertically upward, vertically downward, etc.
[0055] For example, the direction of the field strength of the electric field, magnetic field or gravitational field can be determined based on the number of digits in B1. If the number of digits in B1 is an odd number, the field strength direction is horizontally to the left (or horizontally to the right); if the number of digits in B1 is an even number, the field strength direction is vertically upward (or vertically downward).
[0056] For example, the direction of the field strength of the electric field, magnetic field or gravitational field can be determined based on the number of digits of B1 modulo 4. If the number of digits of B1 modulo 4 is 0, the field strength direction is horizontal to the left; if the number of digits of B1 modulo 4 is 1, the field strength direction is horizontal to the right; if the number of digits of B1 modulo 4 is 2, the field strength direction is vertically upward; if the number of digits of B1 modulo 4 is 3, the field strength direction is vertically downward.
[0057] For example, the direction of the field strength of the electric field, magnetic field or gravitational field can be determined based on the number of digits in B2. If the number of digits in B2 is an odd number, the field strength direction is horizontally to the left (or horizontally to the right); if the number of digits in B2 is an even number, the field strength direction is vertically upward (or vertically downward).
[0058] For example, the direction of the field strength of the electric field, magnetic field or gravitational field can be determined based on the number of digits of B2 modulo 4. If the number of digits of B2 modulo 4 is 0, the field strength direction is horizontal to the left; if the number of digits of B2 modulo 4 is 1, the field strength direction is horizontal to the right; if the number of digits of B2 modulo 4 is 2, the field strength direction is vertically upward; if the number of digits of B2 modulo 4 is 3, the field strength direction is vertically downward.
[0059] For example, the strength of the electric field, magnetic field or gravitational field can be determined based on the first three digits (or the first two digits, the middle two digits, the middle three digits, the last three digits, the last two digits, etc.) of the number B1.
[0060] For example, the strength of the electric field, magnetic field or gravitational field can be determined based on the first three digits (or the first two digits, the middle two digits, the middle three digits, the last three digits, the last two digits, etc.) of the number B2.
[0061] In the disclosed embodiments, a physical field may be generated according to physical parameters of the physical field.
[0062] In the disclosed embodiment, a physical field may be generated based on the determined field strength direction and magnitude of the electric field, the field strength direction and magnitude of the magnetic field, and the field strength magnitude and direction of the gravitational field.
[0063] It should be noted that the field strength of the electric field, the field strength of the magnetic field, and the field strength of the gravitational field may be 0, and the present disclosure does not impose any limitation on this.
[0064] In step S206, the attribute value of the charged particle is determined according to the data to be encrypted.
[0065] In the disclosed embodiment, the first number A1 to be encrypted may be determined according to the data to be encrypted and the first code table.
[0066] For example, the data to be encrypted may be split into individual characters, and the numerical value corresponding to each character may be obtained by searching in the first code table, and these numerical values may be arranged in sequence to obtain the first number A1 to be encrypted.
[0067] In the disclosed embodiment, the property value of the charged particle may be determined according to the first number to be encrypted.
[0068] For example, the first number to be encrypted A1 can be divided by a preset number to obtain a result C1; the first number to be encrypted A1 can be divided by a preset number and rounded to obtain a result C1; the first number to be encrypted A1 can be divided by a preset number and modulo to obtain a result C2. The preset number can be 256, or can be set according to actual needs, and the present disclosure does not limit this.
[0069] In the disclosed embodiment, the property value of the charged particle may be determined based on the relevant characteristic values of C1 and C2.
[0070] The relevant characteristic values may include the number of digits and the specific values of each digit.
[0071] In an exemplary embodiment, the property value of the charged particle includes at least one of a charged property of the charged particle, a charge amount, an initial velocity of the charged particle entering the physical field, and an incident coordinate.
[0072] For example, the charge property of a charged particle can be determined based on the number of digits in C1. If the number of digits in C1 is an odd number, the charged particle is positively charged; if the number of digits in C1 is an even number, the charged particle is negatively charged.
[0073] For example, the charge of a charged particle, the initial velocity of the charged particle entering the physical field, and the incident coordinates can be determined based on the first three digits of C2 (it can also be the first two digits, the middle two digits, the middle three digits, the last three digits, the last two digits, etc.).
[0074] For example, the charge properties of charged particles can be determined based on the number of digits in C2, and the charge amount of charged particles, the initial velocity of charged particles entering the physical field, and the incident coordinates can be determined based on the specific values of each digit in C1.
[0075] It should be noted that the initial velocity of the charged particles entering the physical field may be 0, and the present disclosure does not impose any limitation on this.
[0076] In step S208, a target motion trajectory diagram of the charged particles is obtained according to the property values of the charged particles and the physical field.
[0077] In the disclosed embodiment, the charging properties, charge amount, initial velocity and incident coordinates of the charged particles, and the magnitude and direction of the field strength of the physical field can be determined according to the above steps.
[0078] In the disclosed embodiment, the charged particles may be placed in the physical field to generate a target motion trajectory diagram of the charged particles.
[0079] Among them, placing charged particles into a physical field to obtain a target motion trajectory diagram of the charged particles can be obtained by direct calculation, through actual experimental operations, or through simulation software, and the present disclosure does not impose any restrictions on this.
[0080] In step S210, the encryption result of the data to be encrypted is obtained according to the coordinates of the charged particles in the target motion trajectory diagram of the charged particles.
[0081] In the embodiment of the present disclosure, part of the horizontal and vertical coordinates of the charged particles in the target motion trajectory diagram of the charged particles may be used as the encryption result of the data to be encrypted.
[0082] For example, the horizontal and vertical coordinates of a preset number (for example, 18) of points can be selected from the target motion trajectory diagram, and each coordinate can be accurate to two decimal places. The decimal point can be removed and the numbers can be concatenated in sequence to form a new number as the encryption result, or the number can be converted to 32-bit base 3 and used as the encryption result.
[0083] The data encryption method provided by the embodiment of the present disclosure can be applied in the process of storing user accounts and passwords.
[0084] The data encryption method provided by the embodiment of the present disclosure generates a physical field according to the data to be encrypted and the encryption key, determines the property value of the charged particle according to the data to be encrypted, combines the law of energy conversion, the law of uniformly accelerated motion, and the law of motion of objects under multiple forces, generates a target motion trajectory diagram of the charged particle, and obtains the encryption result of the data to be encrypted according to the coordinates of the charged particle in the target motion trajectory diagram of the charged particle. The data encryption method is an irreversible encryption method, and the encryption key is used to encrypt the data. The encrypted data cannot be reversely decrypted by the encryption key, which greatly increases the security of the data, reduces the situation where the encryption result is reversely decrypted according to the rainbow table due to the leakage of the encryption key, and improves the anti-attack ability of the encrypted data. In addition, according to the data encryption method, different encryption results can be obtained for the same data to be encrypted, thereby improving the security and anti-attack ability of the encrypted data.
[0085] Figure 3 is a flow chart showing another data encryption method according to an exemplary embodiment.
[0086] like Figure 3 As shown, the data encryption method provided by the embodiment of the present disclosure may include the following steps.
[0087] In step S302, the data to be encrypted and the encryption key are obtained.
[0088] In step S304, physical parameters of the composite field are determined according to the data to be encrypted and the encryption key.
[0089] In the embodiments of the present disclosure, the composite field may be a mixed field of electric field and magnetic field, a mixed field of electric field and gravitational field, a mixed field of magnetic field and gravitational field, or a mixed field of electric field, magnetic field and gravitational field.
[0090] In the embodiment of the present disclosure, the physical parameters may include the magnitude and direction of the field strength.
[0091] In the disclosed embodiment, the first number to be encrypted can be determined based on the data to be encrypted and the first code table; the second number to be encrypted can be determined based on the encryption key and the second code table; mathematical operations are performed on the first number to be encrypted and the second number to be encrypted, and the field strength and direction of the composite field can be determined based on the number of digits of the operation result and the specific values of each digit.
[0092] In step S306, a composite field is generated according to the physical parameters of the composite field.
[0093] In the disclosed embodiment, a physical field may be generated based on the determined field strength direction and magnitude of the electric field, the field strength direction and magnitude of the magnetic field, and the field strength magnitude and direction of the gravitational field in the composite field.
[0094] In step S308, the attribute value of the charged particle is determined according to the data to be encrypted.
[0095] In step S310, charged particles are placed in a composite field to obtain a target motion trajectory diagram of the charged particles in the composite field.
[0096] In the disclosed embodiment, the charged particles may be placed in the composite field to generate a target motion trajectory diagram of the charged particles.
[0097] In step S312, the encryption result of the data to be encrypted is obtained according to the coordinates of the charged particles in the target motion trajectory diagram of the charged particles.
[0098] In the present disclosure, Figure 3 Steps S302, S308, S312 and Figure 2 Step S202, step S206, and step S210 in the data encryption method shown are similar and will not be described in detail in this disclosure.
[0099] Figure 4 is a flow chart showing another data encryption method according to an exemplary embodiment.
[0100] like Figure 4 As shown, the data encryption method provided by the embodiment of the present disclosure may include the following steps.
[0101] In step S402, the data to be encrypted and the encryption key are obtained.
[0102] In step S404, the physical parameters of the electric field, the magnetic field and the gravitational field are determined respectively according to the data to be encrypted and the encryption key.
[0103] In the embodiment of the present disclosure, the physical parameters may include the magnitude and direction of the field strength.
[0104] In the disclosed embodiment, the first number to be encrypted can be determined based on the data to be encrypted and the first code table; the second number to be encrypted can be determined based on the encryption key and the second code table; mathematical operations are performed on the first number to be encrypted and the second number to be encrypted, and the magnitude and direction of the electric field, magnetic field and gravitational field can be determined based on the number of digits of the operation results and the specific values of each digit.
[0105] In step S406, the electric field, magnetic field and gravitational field are generated respectively according to the physical parameters of the electric field, magnetic field and gravitational field.
[0106] In the disclosed embodiments, an electric field can be generated according to the determined field strength direction and magnitude of the electric field, a magnetic field can be generated according to the determined field strength direction and magnitude of the magnetic field, and a gravity field can be generated according to the determined field strength and direction of the gravity field.
[0107] It should be noted that the field strength of the electric field, the field strength of the magnetic field, and the field strength of the gravitational field may be 0, and the present disclosure does not impose any limitation on this.
[0108] In step S408, the attribute value of the charged particle is determined according to the data to be encrypted.
[0109] In step S410, a charged particle is placed in an electric field to obtain a motion trajectory diagram of the charged particle in the electric field.
[0110] Figure 5 is a schematic diagram showing the movement of charged particles in an electric field according to an example.
[0111] refer to Figure 5 , the charged particle is negatively charged, the charge of the charged particle is q, the mass of the charged particle is m, the charged particle first passes through the uniform electric field with voltage U1, and then enters the uniform electric field with voltage U2, length L, and width d with an initial velocity V0. The motion trajectory of the charged particle is as follows Figure 5 As shown, the initial velocity V0 of the charged particle, the offset distance y of the charged particle in the vertical direction, and the angle between the velocity and the initial velocity of the charged particle when it is emitted are It can be determined by the following formula:
[0112]
[0113]
[0114]
[0115] In the disclosed embodiment, the charged particles may be placed in the electric field to generate a target motion trajectory diagram of the charged particles.
[0116] Among them, placing charged particles into an electric field to obtain a target motion trajectory diagram of the charged particles can be obtained by direct calculation, through actual experimental operation, or through simulation software, and the present disclosure does not impose any limitation on this.
[0117] In step S412, the charged particles are placed in a magnetic field to obtain a motion trajectory diagram of the charged particles in the magnetic field.
[0118] Figure 6 is a schematic diagram showing the movement of charged particles in a magnetic field according to an example.
[0119] refer to Figure 6 , a, b, c, d are the vertices of the magnetic field boundary, B is the magnetic field strength, L is the magnetic field width, the charge of the charged particle is q, the mass of the charged particle is m, and the incident angle of the charged particle is 30 degrees. It can be concluded that r2=L. Among them, r1 is the critical value of charged particles being ejected from the ab side, r2 is the critical value of charged particles being ejected from the dc side, particles with a radius between r1 and r2 can be ejected from the ab side, particles with a radius smaller than r1 can be ejected from the ad side, and particles with a radius greater than r2 can be ejected from the dc side. The velocity v1 of a charged particle with a trajectory radius of r1, the velocity v2 of a charged particle with a trajectory radius of r2, the velocity v of a charged particle with a trajectory radius between r1 and r2, and the time t that a charged particle moves in a magnetic field can be determined by the following formulas:
[0120]
[0121]
[0122]
[0123]
[0124] In the disclosed embodiment, the charged particles may be placed in the magnetic field to generate a target motion trajectory diagram of the charged particles.
[0125] Among them, placing charged particles into a magnetic field to obtain a target motion trajectory diagram of the charged particles can be obtained by direct calculation, through actual experimental operation, or through simulation software, and the present disclosure does not impose any limitation on this.
[0126] In step S414, the charged particles are placed in a gravitational field to obtain a motion trajectory diagram of the charged particles in the gravitational field.
[0127] In the disclosed embodiment, the charged particles may be placed in the gravitational field to generate a target motion trajectory diagram of the charged particles.
[0128] Among them, placing charged particles into a gravitational field to obtain a target motion trajectory diagram of the charged particles can be obtained by direct calculation, through actual experimental operations, or through simulation software, and the present disclosure does not impose any restrictions on this.
[0129] In step S416, the motion trajectory diagrams of the charged particles in the electric field, the magnetic field and the gravitational field are synthesized to obtain the target motion trajectory diagram of the charged particles.
[0130] In the disclosed embodiments, the horizontal and vertical coordinates of a preset number (e.g., 18) of points can be selected from the motion trajectory diagram of charged particles in the electric field, magnetic field, and gravitational field, respectively, and mathematical operations (e.g., taking the average) can be performed on the horizontal and vertical coordinates of the selected points. Based on the calculated horizontal and vertical coordinates, a target motion trajectory diagram of the charged particles can be generated.
[0131] In step S418, the encryption result of the data to be encrypted is obtained according to the coordinates of the charged particles in the target motion trajectory diagram of the charged particles.
[0132] In the disclosed embodiment, Figure 4 Steps S402, S408, S418 and Figure 2 Step S202, step S206, and step S210 in the data encryption method shown are similar and will not be described in detail in this disclosure.
[0133] The following are embodiments of the device disclosed herein, which can be used to execute the method embodiments disclosed herein. For details not disclosed in the device embodiments disclosed herein, please refer to the method embodiments disclosed herein.
[0134] Figure 7 is a block diagram of a data encryption device according to an exemplary embodiment.
[0135] like Figure 7 As shown, the data encryption device 700 may include: a module for acquiring data to be encrypted 702, a physical field generation module 704, an attribute value determination module 706, a trajectory map acquisition module 708 and an encryption result acquisition module.
[0136] Among them, the data acquisition module 702 to be encrypted can be used to acquire the data to be encrypted and the encryption key; the physical field generation module 704 can be used to generate a physical field based on the data to be encrypted and the encryption key; the attribute value determination module 706 can be used to determine the attribute value of the charged particle based on the data to be encrypted; the trajectory map acquisition module 708 can be used to obtain the target motion trajectory map of the charged particle based on the attribute value of the charged particle and the physical field; the encryption result acquisition module 710 can be used to obtain the encryption result of the data to be encrypted based on the coordinates of the charged particle in the target motion trajectory map of the charged particle.
[0137] In an exemplary embodiment, the physical fields are electric fields, magnetic fields and gravitational fields; wherein the physical field generation module 704 may include: a first physical parameter determination unit, which can be used to determine the physical parameters of the electric field, magnetic field and gravitational field respectively according to the data to be encrypted and the encryption key; an electric field, magnetic field and gravitational field generation unit, which can be used to generate the electric field, magnetic field and gravitational field respectively according to the physical parameters of the electric field, magnetic field and gravitational field.
[0138] In an exemplary embodiment, the trajectory map acquisition module 708 may include: a first trajectory map acquisition unit, which can be used to place the charged particle in the electric field to obtain a motion trajectory map of the charged particle in the electric field; a second trajectory map acquisition unit, which can be used to place the charged particle in the magnetic field to obtain a motion trajectory map of the charged particle in the magnetic field; a third trajectory map acquisition unit, which can be used to place the charged particle in the gravitational field to obtain a motion trajectory map of the charged particle in the gravitational field; a target trajectory map acquisition unit, which can be used to synthesize the motion trajectory maps of the charged particle in the electric field, the magnetic field and the gravitational field to obtain a target motion trajectory map of the charged particle.
[0139] In an exemplary embodiment, the physical field is a composite field of an electric field, a magnetic field and a gravitational field; wherein the physical field generation module 704 may include: a second physical parameter determination unit, which can be used to determine the physical parameters of the composite field according to the data to be encrypted and the encryption key; and a composite field generation unit, which can be used to generate the composite field according to the physical parameters of the composite field.
[0140] In an exemplary embodiment, the trajectory map acquisition module 708 may include: a trajectory map acquisition unit, which may be used to place the charged particle into the composite field to obtain a target motion trajectory map of the charged particle in the composite field.
[0141] In an exemplary embodiment, the physical field generation module 704 may include: a first number to be encrypted determining unit, which can be used to determine the first number to be encrypted based on the data to be encrypted and the first code table; a second number to be encrypted determining unit, which can be used to determine the second number to be encrypted based on the encryption key and the second code table; a third physical parameter determination unit, which can be used to determine the physical parameters of the physical field based on the first number to be encrypted and the second number to be encrypted; and a physical field generation unit, which can be used to generate the physical field based on the physical parameters of the physical field.
[0142] In an exemplary embodiment, the physical parameters include the magnitude and direction of the field strength; the property values of the charged particles include at least one of the charged properties, charge amount, initial velocity of the charged particles entering the physical field, and incident coordinates of the charged particles.
[0143] It should be noted that the block diagrams shown in the above figures are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.
[0144] Figure 8is a schematic diagram of a structure of an electronic device according to an exemplary embodiment. It should be noted that: Figure 8 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0145] like Figure 8 As shown, the electronic device 800 includes a central processing unit (CPU) 801, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 802 or a program loaded from a storage part 808 into a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the system 800 are also stored. The CPU 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.
[0146] The following components are connected to the I / O interface 805: an input section 806 including a keyboard, a mouse, etc.; an output section 807 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 808 including a hard disk, etc.; and a communication section 809 including a network interface card such as a LAN card, a modem, etc. The communication section 809 performs communication processing via a network such as the Internet. A drive 810 is also connected to the I / O interface 805 as needed. A removable medium 811, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 810 as needed, so that a computer program read therefrom is installed into the storage section 808 as needed.
[0147] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication part 809, and / or installed from a removable medium 811. When the computer program is executed by a central processing unit (CPU) 801, the above-mentioned functions defined in the system of the present disclosure are executed.
[0148] It should be noted that the computer-readable medium shown in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0149] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing 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 boxes represented in succession 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 or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0150] The units involved in the embodiments described in the present disclosure may be implemented by software or by hardware. The described units may also be provided in a processor, for example, may be described as: a processor includes a sending unit, an acquisition unit, a determination unit, and a first processing unit. Among them, the names of these units do not constitute a limitation on the units themselves in certain cases, for example, the sending unit may also be described as "a unit that sends a picture acquisition request to the connected server."
[0151] As another aspect, the present disclosure also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device includes: obtaining data to be encrypted and an encryption key; generating a physical field according to the data to be encrypted and the encryption key; determining the property value of the charged particle according to the data to be encrypted; obtaining a target motion trajectory diagram of the charged particle according to the property value of the charged particle and the physical field; obtaining the encryption result of the data to be encrypted according to the coordinates of the charged particle in the target motion trajectory diagram of the charged particle.
[0152] The exemplary embodiments of the present disclosure are specifically shown and described above. It is understood that the present disclosure is not limited to the detailed structures, configurations or implementations described herein; on the contrary, the present disclosure is intended to cover various modifications and equivalent configurations included in the spirit and scope of the appended claims.
Claims
1. A data encryption method, characterized in that: include: Obtain the data to be encrypted and the encryption key; Generate a physical field according to the data to be encrypted and the encryption key, wherein the physical field includes one or more of an electric field, a magnetic field and a gravitational field; Determining the attribute value of the charged particle according to the data to be encrypted; Obtaining a target motion trajectory diagram of the charged particle according to the property value of the charged particle and the physical field; The encryption result of the data to be encrypted is obtained according to the coordinates of the charged particle in the target motion trajectory diagram of the charged particle.
2. The method according to claim 1, characterized in that The physical field is a composite field of electric field, magnetic field and gravitational field; The step of generating a physical field according to the data to be encrypted and the encryption key includes: Determining physical parameters of the composite field according to the data to be encrypted and the encryption key; The composite field is generated according to the physical parameters of the composite field.
3. The method according to claim 2, characterized in that Obtaining a target motion trajectory diagram of the charged particle according to the property value of the charged particle and the physical field, including: The charged particles are placed in the composite field to obtain a target motion trajectory diagram of the charged particles in the composite field.
4. The method according to claim 1, characterized in that: The step of generating a physical field according to the data to be encrypted and the encryption key comprises: Determining a first number to be encrypted according to the data to be encrypted and the first code table; Determining a second number to be encrypted according to the encryption key and the second code table; Determining a physical parameter of the physical field according to the first number to be encrypted and the second number to be encrypted; The physical field is generated according to the physical parameters of the physical field.
5. The method according to claim 1, characterized in that The physical fields are electric field, magnetic field and gravitational field; The step of generating a physical field according to the data to be encrypted and the encryption key includes: Determining the physical parameters of the electric field, magnetic field and gravitational field respectively according to the data to be encrypted and the encryption key; The electric field, magnetic field and gravitational field are generated respectively according to the physical parameters of the electric field, magnetic field and gravitational field.
6. The method according to claim 5, characterized in that Obtaining a target motion trajectory diagram of the charged particle according to the property value of the charged particle and the physical field, including: Placing the charged particle in the electric field to obtain a motion trajectory diagram of the charged particle in the electric field; Placing the charged particle in the magnetic field to obtain a motion trajectory diagram of the charged particle in the magnetic field; Placing the charged particle in the gravitational field to obtain a motion trajectory diagram of the charged particle in the gravitational field; The motion trajectory diagram of the charged particle in the electric field, the magnetic field and the gravitational field is synthesized to obtain a target motion trajectory diagram of the charged particle.
7. The method according to any one of claims 2 to 6, characterized in that: The physical parameters include the magnitude and direction of the field strength; the property values of the charged particles include at least one of the charged properties of the charged particles, the amount of charge, the initial velocity of the charged particles entering the physical field, and the incident coordinates.
8. A data encryption device, characterized in that: include: The module for obtaining data to be encrypted is used to obtain the data to be encrypted and the encryption key; A physical field generation module, configured to generate a physical field according to the data to be encrypted and the encryption key, wherein the physical field includes one or more of an electric field, a magnetic field and a gravitational field; An attribute value determination module, used to determine the attribute value of the charged particle according to the data to be encrypted; A trajectory map acquisition module, used to obtain a target motion trajectory map of the charged particle according to the property value of the charged particle and the physical field; The encryption result obtaining module is used to obtain the encryption result of the data to be encrypted according to the coordinates of the charged particle in the target motion trajectory diagram of the charged particle.
9. An electronic device, characterized in that: include: at least one processor; A storage device for storing at least one program, when the at least one program is executed by the at least one processor, enables the at least one processor to implement the data encryption method according to any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the data encryption method according to any one of claims 1 to 7 is implemented.