Data encryption method and device, electronic equipment, storage medium and computer program
The three-dimensional model data is encrypted and obfuscated through iterative chaos mapping functions and scrambling algorithms, which solves the problem of insufficient encryption security in the existing technology and achieves efficient data protection and security improvement.
Patent Information
- Application Number
- CN202410802336.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-20
- Publication Date
- 2024-09-06
AI Technical Summary
Existing 3D model encryption technology has insufficient encryption security, especially the importance of data obfuscation, which results in significant economic losses and risks of intellectual property infringement when model data is illegally obtained or tampered with.
Generate a random sequence through an iterative chaotic mapping function, construct a random reversible matrix to match the vertex coordinates of the three-dimensional model, and use this matrix for encryption processing. Combined with the scrambling algorithm, the encrypted data is confused to form the target encrypted data, and when needed Perform decryption processing.
It improves the encryption security and protection effect of 3D model data, increases the difficulty of cracking, prevents unauthorized access and tampering, and enhances the confidentiality and obfuscation of data.
Smart Images

Figure CN118612355A
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of data processing technology, and in particular to a method, device, electronic device, storage medium and computer program for data encryption. Background Art
[0002] With the rapid development of digital technology and the popularization of 3D modeling tools, 3D models are increasingly used in various fields, such as game development, industrial design, architectural modeling, virtual reality, etc. However, this also brings up the issue of 3D model data security and privacy protection. 3D model data usually contains rich geometric and texture information. Once illegally obtained or tampered with, it may lead to significant economic losses and intellectual property infringement.
[0003] Traditional 3D model encryption technology mainly focuses on direct encryption of model data, such as using symmetric encryption algorithms or asymmetric encryption algorithms to encrypt model data. However, these encryption methods often only focus on data confidentiality and ignore the importance of data obfuscation. Therefore, the related technology has the problem of insufficient encryption security in the process of encrypting model data. Summary of the invention
[0004] The present disclosure provides a data encryption method, device, electronic device, storage medium and computer program, the main purpose of which is to solve the problem of insufficient encryption security in the process of encrypting model data in related technologies.
[0005] According to a first aspect of the present disclosure, a method for data encryption is provided, comprising: Generate a first random sequence by iterating a chaotic mapping function; constructing a random reversible matrix based on the first target element in the first random sequence, wherein the size and dimension of the random reversible matrix match the vertex coordinates of the three-dimensional model to be encrypted; Encrypting the vertex coordinates based on the random reversible matrix to obtain encrypted vertex coordinates; The encrypted vertex coordinates are obfuscated based on a scrambling algorithm to obtain target encrypted data. If the target encrypted data needs to be decrypted, the target encrypted data is decrypted based on the scrambling algorithm and the random reversible matrix to obtain the vertex coordinates.
[0006] Optionally, generating the first random sequence by iterating the chaotic mapping function includes: Setting the initial parameters and the number of iterations of the chaos mapping function; The chaotic mapping function is controlled to perform iterative calculation based on the initial parameters and the number of iterations to obtain the first random sequence.
[0007] Optionally, constructing a random reversible matrix based on the first target element in the first random sequence includes: constructing a first random matrix based on the first target element, wherein the size and dimension of the first random matrix match the vertex coordinates of the three-dimensional model to be encrypted; Determining whether a first determinant of the first random matrix is zero; If the first determinant is not zero, determining that the first random matrix is the random reversible matrix; If the determinant of the first random matrix is zero, a second random sequence is regenerated based on the chaotic mapping function until a second determinant of a second random matrix constructed based on a second target element in the second random sequence is not zero, and the second random matrix is determined to be the random reversible matrix.
[0008] Optionally, the encrypting the vertex coordinates based on the random reversible matrix to obtain the encrypted vertex coordinates includes: Normalizing and transforming the vertex coordinates to obtain processed vertex coordinates; The processed vertex coordinates are multiplied by the random reversible matrix to obtain the encrypted vertex coordinates.
[0009] Optionally, the obfuscating the encrypted vertex coordinates based on a scrambling algorithm to obtain target encrypted data includes: Setting attribute parameters of the scrambling algorithm, wherein the attribute parameters include the number of iterations, the scrambling order, and the permutation rule; Controlling the scrambling algorithm to reorder the encrypted vertex coordinates based on the attribute parameters to obtain first encrypted data; analyzing whether a first obfuscation effect of the first encrypted data meets a preset condition; If the first obfuscation effect satisfies the preset condition, determining that the first encrypted data is the target encrypted data; If the first obfuscation effect does not meet the preset condition, readjusting the attribute parameters, and performing obfuscation processing on the encrypted vertex coordinates based on the readjusted attribute parameters to obtain second encrypted data; When it is determined that the second obfuscation effect of the second encrypted data satisfies the preset condition, the second encrypted data is determined to be the target encrypted data.
[0010] Optionally, the decrypting the target encrypted data based on the scrambling algorithm and the random reversible matrix to obtain the vertex coordinates includes: Performing a deobfuscation process on the target encrypted data based on the scrambling algorithm to obtain the encrypted vertex coordinates; The encrypted vertex coordinates are decrypted based on the random reversible matrix to obtain the vertex coordinates.
[0011] According to a second aspect of the present disclosure, there is provided a data encryption device, comprising: A generating unit, used for generating a first random sequence by iterating a chaotic mapping function; A construction unit, configured to construct a random reversible matrix based on the first target element in the first random sequence, wherein the size and dimension of the random reversible matrix match the vertex coordinates of the three-dimensional model to be encrypted; An encryption unit, used for encrypting the vertex coordinates based on the random reversible matrix to obtain encrypted vertex coordinates; The obfuscation unit is used to perform obfuscation processing on the encrypted vertex coordinates based on a scrambling algorithm to obtain target encrypted data. If the target encrypted data needs to be decrypted, the target encrypted data is decrypted based on the scrambling algorithm and the random reversible matrix to obtain the vertex coordinates.
[0012] Optionally, the generating unit is further used for: Setting the initial parameters and the number of iterations of the chaos mapping function; The chaotic mapping function is controlled to perform iterative calculation based on the initial parameters and the number of iterations to obtain the first random sequence.
[0013] Optionally, the construction unit is further configured to include: constructing a first random matrix based on the first target element, wherein the size and dimension of the first random matrix match the vertex coordinates of the three-dimensional model to be encrypted; Determining whether a first determinant of the first random matrix is zero; When the first determinant is not zero, determining that the first random matrix is the random reversible matrix; When the determinant of the first random matrix is zero, a second random sequence is regenerated based on the chaotic mapping function until a second determinant of a second random matrix constructed based on a second target element in the second random sequence is not zero, and the second random matrix is determined to be the random reversible matrix.
[0014] Optionally, the encryption unit is further used for: Normalizing and transforming the vertex coordinates to obtain processed vertex coordinates; The processed vertex coordinates are multiplied by the random reversible matrix to obtain the encrypted vertex coordinates.
[0015] Optionally, the obfuscation unit includes: Setting attribute parameters of the scrambling algorithm, wherein the attribute parameters include the number of iterations, the scrambling order, and the permutation rule; Controlling the scrambling algorithm to reorder the encrypted vertex coordinates based on the attribute parameters to obtain first encrypted data; analyzing whether a first obfuscation effect of the first encrypted data meets a preset condition; When the first obfuscation effect satisfies the preset condition, determining that the first encrypted data is the target encrypted data; When the first obfuscation effect does not meet the preset condition, readjust the attribute parameters, and perform obfuscation processing on the encrypted vertex coordinates based on the readjusted attribute parameters to obtain second encrypted data; When it is determined that the second obfuscation effect of the second encrypted data satisfies the preset condition, the second encrypted data is determined to be the target encrypted data.
[0016] Optionally, the obfuscation unit is further used for: Performing a deobfuscation process on the target encrypted data based on the scrambling algorithm to obtain the encrypted vertex coordinates; The encrypted vertex coordinates are decrypted based on the random reversible matrix to obtain the vertex coordinates.
[0017] According to a third aspect of the present disclosure, there is provided an electronic device, including: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method described in the first aspect.
[0018] According to a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute the method described in the first aspect.
[0019] According to a fifth aspect of the present disclosure, a computer program product is provided, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements the method as described in the first aspect above.
[0020] The data encryption method, device, electronic device, storage medium and computer program provided by the present disclosure generate a first random sequence by iterating a chaotic mapping function; construct a random reversible matrix based on the first target element in the first random sequence, the size and dimension of the random reversible matrix match the vertex coordinates of the three-dimensional model to be encrypted; encrypt the vertex coordinates based on the random reversible matrix to obtain the encrypted vertex coordinates; confuse the encrypted vertex coordinates based on a scrambling algorithm to obtain target encrypted data, and if the target encrypted data needs to be decrypted, the target encrypted data is decrypted based on the scrambling algorithm and the random reversible matrix to obtain the vertex coordinates. Compared with the related art, after encrypting the vertex coordinates based on the random reversible matrix, the encrypted vertex coordinates are obtained, and then the encrypted vertex coordinates are confuse based on the scrambling algorithm to obtain the target encrypted data, and the security of data encryption is improved by combining data obfuscation in the data encryption process. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The accompanying drawings constituting a part of the present invention are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the accompanying drawings: Figure 1 A schematic diagram of a data encryption method provided by an embodiment of the present disclosure; Figure 2 A schematic diagram of the structure of a data encryption device provided by an embodiment of the present disclosure; Figure 3 A schematic block diagram of an exemplary electronic device 300 provided for an embodiment of the present disclosure. DETAILED DESCRIPTION
[0022] The present invention will be described in detail below with reference to the accompanying drawings and in combination with embodiments. It should be noted that the embodiments and features in the embodiments of the present invention can be combined with each other without conflict.
[0023] The following detailed description is an exemplary description, which is intended to provide further detailed description of the present invention. Unless otherwise specified, all technical terms used in the present invention have the same meaning as those generally understood by those skilled in the art to which the present invention belongs. The terms used in the present invention are only for describing specific embodiments, and are not intended to limit the exemplary embodiments according to the present invention.
[0024] In addition, the terms "first", "second", etc. in the specification and claims of the present disclosure 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 numbers used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein.
[0025] The following describes the data encryption method, apparatus, electronic device, storage medium, and computer program according to the embodiments of the present disclosure with reference to the accompanying drawings.
[0026] In order to at least solve the problem of insufficient encryption security in the process of encrypting model data in the related art, this embodiment provides a method for data encryption.
[0027] Glossary: Data obfuscation is a technology that changes the representation or structure of data to make it difficult to understand or analyze. In 3D model encryption, data obfuscation can effectively prevent unauthorized access and tampering, and improve the security of model data.
[0028] As a nonlinear dynamic system, chaotic mapping is highly complex and unpredictable and is widely used to generate random numbers or random sequences. The characteristics of chaotic mapping make it very suitable for generating random reversible matrices, thereby encrypting and obfuscating the vertex coordinates of three-dimensional models. The present invention combines the characteristics of chaotic mapping and random reversible matrices to achieve efficient encryption and obfuscation of three-dimensional model data, thereby improving the security and protection effect of model data.
[0029] Figure 1 A schematic diagram of a data encryption method provided by an embodiment of the present disclosure. Figure 1 As shown, the method comprises the following steps: Step 101, generating a first random sequence by iterating a chaotic mapping function; As a refinement of the above step 101, the step 101 is to generate a first random sequence based on a chaotic map, and the specific process is: first, a chaotic map function is selected, such as a Logistic map or a Henon map. Then, the initial parameters of the chaotic map are set, such as an initial value, the number of iterations, etc. A first random sequence is generated by iterating the chaotic map function. The first random sequence will be used for subsequent matrix generation and encryption processes.
[0030] Step 102, constructing a random reversible matrix based on the first target element in the first random sequence, wherein the size and dimension of the random reversible matrix match the vertex coordinates of the three-dimensional model to be encrypted; As a refinement of the above step 102, the step 102 is to construct a random reversible matrix: using the first generated random sequence, a random reversible matrix is constructed. The size and dimension of the random reversible matrix match the vertex coordinates of the three-dimensional model to be encrypted. During the construction process, a method of randomly filling matrix elements can be used, while ensuring that the determinant of the matrix is not zero, so as to ensure the reversibility of the matrix.
[0031] Step 103, encrypting the vertex coordinates based on the random reversible matrix to obtain encrypted vertex coordinates; As a refinement of the above step 103, the step 103 is to encrypt the vertex coordinates of the three-dimensional model: the vertex coordinates of the three-dimensional model to be encrypted are taken as input, and the vertex coordinates are encrypted using the constructed random reversible matrix. Specifically, the vertex coordinates are multiplied by the random reversible matrix to obtain the encrypted coordinate value, i.e., the encrypted vertex coordinates. This encryption process can effectively change the original distribution and order of the vertex coordinates, increasing the difficulty of cracking.
[0032] Step 104, performing obfuscation processing on the encrypted vertex coordinates based on the scrambling algorithm to obtain target encrypted data, and if the target encrypted data needs to be decrypted, performing decryption processing on the target encrypted data based on the scrambling algorithm and the random reversible matrix to obtain the vertex coordinates; As a refinement of the above step 104, step 104 includes coordinate obfuscation processing and decryption processing. The specific process of the coordinate obfuscation processing includes: in order to further improve the encryption effect, the encrypted coordinate value, that is, the encrypted vertex coordinates, is obfuscated. The obfuscation processing can use Arnold mapping or other similar scrambling algorithms to reorder or permute the encrypted vertex coordinates to increase the complexity of cracking. The specific process of the decryption processing includes: when decryption is required, the encrypted vertex coordinates are decrypted using the same random reversible matrix as in the encryption process. Through the inverse operation, the encrypted vertex coordinates are restored to the original vertex coordinates. The present disclosure encrypts and obfuscates the vertex coordinates of the three-dimensional model by combining the nonlinear characteristics of the chaotic mapping and the permutation characteristics of the random reversible matrix, thereby improving the security and protection effect of the three-dimensional model data. This encryption technology is of great significance for protecting the security and privacy of three-dimensional model data, and can be widely used in the protection and transmission of three-dimensional model data in various fields.
[0033] The data encryption method provided by the present disclosure generates a first random sequence by iterating a chaotic mapping function; constructs a random reversible matrix based on the first target element in the first random sequence, and the size and dimension of the random reversible matrix match the vertex coordinates of the three-dimensional model to be encrypted; encrypts the vertex coordinates based on the random reversible matrix to obtain the encrypted vertex coordinates; performs obfuscation processing on the encrypted vertex coordinates based on a scrambling algorithm to obtain target encrypted data, and if the target encrypted data needs to be decrypted, the target encrypted data is decrypted based on the scrambling algorithm and the random reversible matrix to obtain the vertex coordinates. Compared with the related art, after the vertex coordinates are encrypted based on the random reversible matrix, the encrypted vertex coordinates are obtained, and then the encrypted vertex coordinates are obfuscated based on the scrambling algorithm to obtain the target encrypted data, and the security of data encryption is improved by combining data obfuscation in the data encryption process. As a refinement of the embodiment of the present disclosure, when performing the preprocessing of the target watermark information to be embedded in step 101 to obtain the processed target watermark information, the following implementation methods may also be adopted but are not limited to, for example: converting each target character in the target watermark information into a target binary string with a preset bit length; concatenating each of the target binary strings to obtain the processed target watermark information.
[0034] As a refinement of the embodiment of the present disclosure, when executing step 101 to generate the first random sequence by iterating the chaotic mapping function, the following implementation methods may also be adopted but are not limited to, for example: setting the initial parameters and the number of iterations of the chaotic mapping function; controlling the chaotic mapping function to perform iterative calculation based on the initial parameters and the number of iterations to obtain the first random sequence.
[0035] As a refinement of the above embodiment, when executing step 102 to construct a random reversible matrix based on the first target element in the first random sequence, the following implementation method may also be adopted but is not limited to, for example: constructing a first random matrix based on the first target element, the size and dimension of the first random matrix matching the vertex coordinates of the three-dimensional model to be encrypted; judging whether the first determinant of the first random matrix is zero; if the first determinant is not zero, determining that the first random matrix is the random reversible matrix; if the determinant of the first random matrix is zero, regenerating a second random sequence based on the chaotic mapping function, until the second determinant of the second random matrix constructed based on the second target element in the second random sequence is not zero, determining that the second random matrix is the random reversible matrix.
[0036] In order to facilitate the understanding of the above embodiment, this embodiment provides an exemplary description including: selecting a chaotic map: selecting a suitable chaotic map function, and commonly used chaotic maps include Logistic map, Henon map, etc. These maps usually have complex dynamic behaviors and unpredictability, making them very suitable for generating random numbers or random matrices. This embodiment uses a one-dimensional logistic map to iteratively generate a three-dimensional random reversible matrix. Setting initialization parameters: setting initial parameters for the chaotic map function, such as initial value, number of iterations, etc. These parameters will affect the distribution and characteristics of the generated random numbers. The random number corresponds to the first target element in the first random sequence or the second target element in the second random sequence. Performing chaotic map iteration: iterating using the selected chaotic map and initial parameters. In each iteration, the value of the next iteration is calculated according to the formula of the chaotic map and the result of the previous iteration. Iteratively generating a random number sequence: by continuously iterating the chaotic map, a series of seemingly random values are generated, and a random number sequence is generated, and the random number sequence corresponds to the first random sequence or the second random sequence. Each iteration calculates the value of the next iteration according to the result of the previous iteration. This process will continue until a sufficient number of random numbers are generated. Construct a random reversible matrix: Use the generated random number sequence to construct a random reversible matrix. The size and dimensions of this matrix can be determined according to actual needs. To ensure that the matrix is reversible, a specific method can be used to generate matrix elements, fill the matrix with random numbers, and ensure that the determinant of the matrix is not zero.
[0037] Verify the reversibility of the matrix: After constructing the matrix, it is necessary to verify whether the matrix is reversible. This can be achieved by calculating the determinant of the matrix and checking whether it is zero. If the determinant is zero, it means that the matrix is not reversible, and it is necessary to regenerate the random number sequence and construct a new matrix. Encrypt using a random reversible matrix: Once the reversibility of the matrix is verified, the vertex coordinates of the three-dimensional model can be encrypted using this matrix. The encryption process may include multiplying the vertex coordinates with the matrix to obtain the encrypted coordinate values. Generate a key: Generate one or more keys based on the chaotic mapping involved in the present invention. The key will be used in subsequent encryption and decryption processes, and the secret key is the random reversible matrix.
[0038] As a refinement of the above embodiment, when executing step 103 to encrypt the vertex coordinates based on the random reversible matrix to obtain the encrypted vertex coordinates, the following implementation methods can also be used but are not limited to, for example: normalizing and transforming the vertex coordinates to obtain the processed vertex coordinates; multiplying the processed vertex coordinates with the random reversible matrix to obtain the encrypted vertex coordinates.
[0039] In order to facilitate the understanding of the above-mentioned embodiment, the present embodiment provides an exemplary description, which is connected with the above-mentioned exemplary description, including: preprocessing vertex coordinates: taking the vertex coordinates of the three-dimensional model as the data to be encrypted. Before encryption, some preprocessing of the vertex coordinates may be required, such as normalization, coordinate transformation, etc., to adapt to the subsequent encryption algorithm. Encrypt vertex coordinates: encrypt the vertex coordinates using the generated key and chaotic mapping. Multiply the vertex coordinates with the key, scramble and confuse the coordinate values through chaotic mapping, and obtain the encrypted coordinate values. The encrypted vertex coordinates will lose their original meaning and relevance, thereby protecting the security of the model.
[0040] As a refinement of the above embodiment, when executing step 104 to perform obfuscation processing on the encrypted vertex coordinates based on the scrambling algorithm to obtain the target encrypted data, the following implementation methods may also be adopted but are not limited to, for example: setting the attribute parameters of the scrambling algorithm, the attribute parameters including the number of iterations, the scrambling order, and the substitution rule; controlling the scrambling algorithm to reorder the encrypted vertex coordinates based on the attribute parameters to obtain the first encrypted data; analyzing whether the first obfuscation effect of the first encrypted data meets the preset conditions; if the first obfuscation effect meets the preset conditions, determining that the first encrypted data is the target encrypted data; if the first obfuscation effect does not meet the preset conditions, readjusting the attribute parameters, and performing obfuscation processing on the encrypted vertex coordinates based on the readjusted attribute parameters to obtain the second encrypted data; when it is determined that the second obfuscation effect of the second encrypted data meets the preset conditions, determining that the second encrypted data is the target encrypted data.
[0041] In order to facilitate the understanding of the above-mentioned embodiment, this embodiment provides an exemplary description, which is connected with the above-mentioned exemplary description, including: selecting an obfuscation algorithm, that is, the scrambling algorithm: first, select an algorithm suitable for coordinate obfuscation from various available scrambling algorithms. Common scrambling algorithms include Arnold mapping, Fisher-Yates shuffling algorithm, Hilbert curve, etc. These algorithms can reorder or permute data to achieve the obfuscation effect. The present embodiment adopts the Arnold mapping algorithm. Determine obfuscation parameters: Determine the necessary parameters according to the selected obfuscation algorithm. These parameters may include the number of iterations, the scrambling order, the permutation rules, etc. These parameters will affect the distribution and order of the obfuscated coordinates. Apply the obfuscation algorithm: Take the encrypted vertex coordinates to be obfuscated as input, and apply the selected obfuscation algorithm to perform coordinate obfuscation processing. Specifically, according to the rules and parameters of the obfuscation algorithm, the encrypted vertex coordinates are reordered or permuted to change their original order and distribution. Verify the obfuscation effect: After the obfuscation process is completed, verify the obfuscation effect to ensure the randomness and unpredictability of the coordinates. The obfuscation effect can be evaluated by analyzing the distribution and statistical characteristics of the obfuscated coordinates. If the obfuscation effect is not good, you can adjust the obfuscation algorithm or parameters and perform the obfuscation again.
[0042] In some embodiments, the coordinate distribution is used to analyze whether the first obfuscation effect meets the preset condition, which can be implemented in the following manner but is not limited to, for example: determining whether the similarity between the coordinate distribution graph of the encrypted vertex coordinates after obfuscation and the preset coordinate distribution graph is greater than a preset similarity threshold, and determining that the first encrypted data is the target encrypted data when it is determined that the similarity between the coordinate distribution graph of the encrypted vertex coordinates after obfuscation and the preset coordinate distribution graph is greater than the preset similarity threshold. The similarity between the coordinate distribution graph of the encrypted vertex coordinates after obfuscation and the preset coordinate distribution graph is the first obfuscation effect, and the preset similarity threshold is the preset condition. The determination of the second obfuscation effect is the same as the above process, and for the sake of clarity and conciseness, this embodiment will not be repeated.
[0043] In some embodiments, the first obfuscation result and the second obfuscation result include but are not limited to the variance or standard deviation of the obfuscated and encrypted vertex coordinates, and the preset condition includes but is not limited to the preset numerical range corresponding to the variance or the standard deviation.
[0044] As a refinement of the above embodiment, when executing step 104 to decrypt the target encrypted data based on the scrambling algorithm and the random reversible matrix to obtain the vertex coordinates, the following implementation methods may also be adopted but are not limited to, for example: performing inverse obfuscation processing on the target encrypted data based on the scrambling algorithm to obtain the encrypted vertex coordinates; decrypting the encrypted vertex coordinates based on the random reversible matrix to obtain the vertex coordinates.
[0045] In order to facilitate the understanding of the above embodiment, this embodiment provides an exemplary description, which is connected with the above exemplary description, including: obtaining an encrypted model and a key: it is necessary to obtain the encrypted three-dimensional model and the corresponding key. The key is necessary information for decrypting the model, usually including a random reversible matrix or other encryption parameters used for encryption. Coordinate inverse obfuscation processing (if obfuscation processing exists): if coordinate obfuscation processing is performed during the encryption process, then inverse obfuscation processing is required during the decryption process. The steps of inverse obfuscation processing are opposite to those of obfuscation processing, and the obfuscated coordinates are restored to the original order and distribution by using the same obfuscation algorithm and parameters. Decrypting vertex coordinates: using the random reversible matrix used in the encryption process and the corresponding decryption algorithm, the encrypted vertex coordinates are decrypted. The decryption process usually involves inversely operating the encrypted coordinates with the random reversible matrix to restore the original vertex coordinate values. Verifying the decryption result: after the decryption is completed, verify the correctness of the decryption result. The decrypted vertex coordinates can be compared to see if they are consistent with the original vertex coordinates. Using the decrypted model: once the decryption result is verified to be correct, the decrypted three-dimensional model can be used for subsequent operations or applications.
[0046] In summary, the embodiments of the present disclosure can achieve the following effects: 1. High security: Chaotic mapping is nonlinear, unpredictable, and sensitive to initial conditions, which makes the encryption method based on chaotic mapping extremely secure. At the same time, the introduction of random reversible matrices increases the complexity and randomness of the encryption process, making the encrypted three-dimensional model more difficult to crack.
[0047] 2. Strong obfuscation effect: By encrypting and obfuscating the vertex coordinates of the 3D model using chaotic mapping and random reversible matrices, the distribution and order of the original data can be effectively changed, making the encrypted data more difficult to understand and analyze. This obfuscation effect helps prevent unauthorized access and tampering, and improves the security of the model data.
[0048] 3. High computational efficiency: Compared with some traditional 3D model encryption methods, encryption methods based on chaotic mapping and random reversible matrices usually have higher computational efficiency. This is mainly because the generation process of chaotic mapping and random reversible matrices is relatively simple and fast, which can realize the rapid encryption and processing of large-scale 3D model data.
[0049] 4. High flexibility: This method can be adjusted and optimized according to different needs and application scenarios. For example, different chaotic mapping functions can be selected, initial parameters can be adjusted, the size and dimension of the random reversible matrix can be changed, etc., to meet different encryption needs.
[0050] 5. Easy to implement and integrate: Since the principles of chaotic mapping and random reversible matrices are relatively simple and easy to implement, this method can be easily integrated into existing 3D model processing software and systems, providing effective support for the security protection of 3D model data.
[0051] Corresponding to the above data encryption method, the present invention also provides a data encryption device. Since the device embodiment of the present invention corresponds to the above method embodiment, details not disclosed in the device embodiment can be referred to the above method embodiment, and will not be repeated in the present invention.
[0052] Figure 2 A schematic diagram of the structure of a data encryption device provided by an embodiment of the present disclosure is shown in FIG. Figure 2 As shown, including: A generating unit 21, configured to generate a first random sequence by iterating a chaotic mapping function; A construction unit 22, configured to construct a random reversible matrix based on the first target element in the first random sequence, wherein the size and dimension of the random reversible matrix match the vertex coordinates of the three-dimensional model to be encrypted; An encryption unit 23, configured to encrypt the vertex coordinates based on the random reversible matrix to obtain encrypted vertex coordinates; The obfuscation unit 24 is used to perform obfuscation processing on the encrypted vertex coordinates based on the scrambling algorithm to obtain target encrypted data. If the target encrypted data needs to be decrypted, the target encrypted data is decrypted based on the scrambling algorithm and the random reversible matrix to obtain the vertex coordinates.
[0053] The data encryption device provided by the present disclosure generates a first random sequence by iterating a chaotic mapping function; constructs a random reversible matrix based on the first target element in the first random sequence, and the size and dimension of the random reversible matrix match the vertex coordinates of the three-dimensional model to be encrypted; encrypts the vertex coordinates based on the random reversible matrix to obtain the encrypted vertex coordinates; performs obfuscation processing on the encrypted vertex coordinates based on a scrambling algorithm to obtain target encrypted data, and if it is necessary to decrypt the target encrypted data, the target encrypted data is decrypted based on the scrambling algorithm and the random reversible matrix to obtain the vertex coordinates. Compared with the related art, after the vertex coordinates are encrypted based on the random reversible matrix, the encrypted vertex coordinates are obtained, and then the encrypted vertex coordinates are obfuscated based on the scrambling algorithm to obtain the target encrypted data, and the security of data encryption is improved by combining data obfuscation in the data encryption process.
[0054] Furthermore, in a possible implementation of the embodiment of the present disclosure, as Figure 2 As shown, the generating unit 21 is also used for: Setting the initial parameters and the number of iterations of the chaos mapping function; The chaotic mapping function is controlled to perform iterative calculation based on the initial parameters and the number of iterations to obtain the first random sequence.
[0055] Furthermore, in a possible implementation of the embodiment of the present disclosure, as Figure 2 As shown, the construction unit 22 is further configured to include: constructing a first random matrix based on the first target element, wherein the size and dimension of the first random matrix match the vertex coordinates of the three-dimensional model to be encrypted; Determining whether a first determinant of the first random matrix is zero; When the first determinant is not zero, determining that the first random matrix is the random reversible matrix; When the determinant of the first random matrix is zero, a second random sequence is regenerated based on the chaotic mapping function until a second determinant of a second random matrix constructed based on a second target element in the second random sequence is not zero, and the second random matrix is determined to be the random reversible matrix.
[0056] Furthermore, in a possible implementation of the embodiment of the present disclosure, as Figure 2 As shown, the encryption unit 23 is also used for: Normalizing and transforming the vertex coordinates to obtain processed vertex coordinates; The processed vertex coordinates are multiplied by the random reversible matrix to obtain the encrypted vertex coordinates.
[0057] Furthermore, in a possible implementation of the embodiment of the present disclosure, as Figure 2 As shown, the obfuscation unit 24 includes: Setting attribute parameters of the scrambling algorithm, wherein the attribute parameters include the number of iterations, the scrambling order, and the permutation rule; Controlling the scrambling algorithm to reorder the encrypted vertex coordinates based on the attribute parameters to obtain first encrypted data; analyzing whether a first obfuscation effect of the first encrypted data meets a preset condition; When the first obfuscation effect satisfies the preset condition, determining that the first encrypted data is the target encrypted data; When the first obfuscation effect does not meet the preset condition, readjust the attribute parameters, and perform obfuscation processing on the encrypted vertex coordinates based on the readjusted attribute parameters to obtain second encrypted data; When it is determined that the second obfuscation effect of the second encrypted data satisfies the preset condition, the second encrypted data is determined to be the target encrypted data.
[0058] Furthermore, in a possible implementation of the embodiment of the present disclosure, as Figure 2 As shown, the obfuscation unit 24 is also used for: Performing a deobfuscation process on the target encrypted data based on the scrambling algorithm to obtain the encrypted vertex coordinates; The encrypted vertex coordinates are decrypted based on the random reversible matrix to obtain the vertex coordinates. It should be noted that the above explanation of the method embodiment is also applicable to the device of this embodiment, and the principle is the same, which is not limited in this embodiment.
[0059] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.
[0060] Figure 3A schematic block diagram of an example electronic device 300 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0061] like Figure 3 As shown, the device 300 includes a computing unit 301, which can perform various appropriate actions and processes according to a computer program stored in a ROM (Read-Only Memory) 302 or a computer program loaded from a storage unit 308 to a RAM (Random Access Memory) 303. In the RAM 303, various programs and data required for the operation of the device 300 can also be stored. The computing unit 301, the ROM 302, and the RAM 303 are connected to each other via a bus 304. An I / O (Input / Output) interface 305 is also connected to the bus 304.
[0062] A number of components in the device 300 are connected to the I / O interface 305, including: an input unit 306, such as a keyboard, a mouse, etc.; an output unit 307, such as various types of displays, speakers, etc.; a storage unit 308, such as a disk, an optical disk, etc.; and a communication unit 309, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 309 allows the device 300 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0063] The computing unit 301 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 301 include, but are not limited to, a CPU (Central Processing Unit), a GPU (Graphic Processing Units), various dedicated AI (Artificial Intelligence) computing chips, various computing units running machine learning model algorithms, a DSP (Digital Signal Processor), and any appropriate processor, controller, microcontroller, etc. The computing unit 301 performs the various methods and processes described above, such as a method for data encryption. For example, in some embodiments, the method for data encryption may be implemented as a computer software program, which is tangibly included in a machine-readable medium, such as a storage unit 308. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 300 via the ROM 302 and / or the communication unit 309. When the computer program is loaded into the RAM 303 and executed by the computing unit 301, one or more steps of the method described above may be performed. Alternatively, in other embodiments, the computing unit 301 may be configured to execute the aforementioned data encryption method in any other appropriate manner (for example, by means of firmware).
[0064] Various embodiments of the systems and techniques described above herein may be implemented in digital electronic circuit systems, integrated circuit systems, FPGAs (Field Programmable Gate Arrays), ASICs (Application-Specific Integrated Circuits), ASSPs (Application Specific Standard Products), SOCs (System On Chips), CPLDs (Complex Programmable Logic Devices), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include: being implemented in one or more computer programs that may be executed and / or interpreted on a programmable system including at least one programmable processor that may be a dedicated or general-purpose programmable processor that may receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0065] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0066] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or apparatus. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing. More specific examples of machine-readable storage media may include an electrical connection based on one or more wires, a portable computer disk, a hard disk, RAM, ROM, EPROM (Electrically Programmable Read-Only-Memory) or flash memory, optical fiber, CD-ROM (Compact Disc Read-Only Memory), optical storage device, magnetic storage device, or any suitable combination of the foregoing.
[0067] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (Cathode-Ray Tube) or LCD (Liquid Crystal Display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0068] The systems and techniques described herein may be implemented in a computing system that includes a backend component (e.g., as a data server), or a computing system that includes a middleware component (e.g., an application server), or a computing system that includes a frontend component (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: LAN (Local Area Network), WAN (Wide Area Network), the Internet, and blockchain networks.
[0069] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services ("Virtual Private Server", or "VPS" for short). The server may also be a server of a distributed system, or a server combined with a blockchain.
[0070] It should be noted that artificial intelligence is a discipline that studies how computers can simulate certain human thought processes and intelligent behaviors (such as learning, reasoning, thinking, planning, etc.), and includes both hardware-level and software-level technologies. Artificial intelligence hardware technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, and big data processing; artificial intelligence software technologies mainly include computer vision technology, speech recognition technology, natural language processing technology, as well as machine learning / deep learning, big data processing technology, knowledge graph technology, and other major directions.
[0071] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0072] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0073] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0074] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0075] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents. Any modification or equivalent replacement that does not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.
Claims
1. A method for data encryption, It is characterized in that include: Generate a first random sequence by iterating a chaotic mapping function; constructing a random reversible matrix based on the first target element in the first random sequence, wherein the size and dimension of the random reversible matrix match the vertex coordinates of the three-dimensional model to be encrypted; Encrypting the vertex coordinates based on the random reversible matrix to obtain encrypted vertex coordinates; The encrypted vertex coordinates are obfuscated based on a scrambling algorithm to obtain target encrypted data. If the target encrypted data needs to be decrypted, the target encrypted data is decrypted based on the scrambling algorithm and the random reversible matrix to obtain the vertex coordinates.
2. The method according to claim 1, It is characterized in that The generating of the first random sequence by iterating the chaotic mapping function comprises: Setting the initial parameters and the number of iterations of the chaos mapping function; The chaotic mapping function is controlled to perform iterative calculation based on the initial parameters and the number of iterations to obtain the first random sequence.
3. The method according to claim 2, It is characterized in that The constructing a random reversible matrix based on the first target element in the first random sequence comprises: constructing a first random matrix based on the first target element, wherein the size and dimension of the first random matrix match the vertex coordinates of the three-dimensional model to be encrypted; Determining whether a first determinant of the first random matrix is zero; If the first determinant is not zero, determining that the first random matrix is the random reversible matrix; If the determinant of the first random matrix is zero, a second random sequence is regenerated based on the chaotic mapping function until a second determinant of a second random matrix constructed based on a second target element in the second random sequence is not zero, and the second random matrix is determined to be the random reversible matrix.
4. The method according to claim 3, It is characterized in that The encrypting the vertex coordinates based on the random reversible matrix to obtain the encrypted vertex coordinates comprises: Normalizing and transforming the vertex coordinates to obtain processed vertex coordinates; The processed vertex coordinates are multiplied by the random reversible matrix to obtain the encrypted vertex coordinates.
5. The method according to claim 4, It is characterized in that The obfuscating the encrypted vertex coordinates based on the scrambling algorithm to obtain the target encrypted data includes: Setting attribute parameters of the scrambling algorithm, wherein the attribute parameters include the number of iterations, the scrambling order, and the permutation rule; Controlling the scrambling algorithm to reorder the encrypted vertex coordinates based on the attribute parameters to obtain first encrypted data; analyzing whether a first obfuscation effect of the first encrypted data meets a preset condition; If the first obfuscation effect satisfies the preset condition, determining that the first encrypted data is the target encrypted data; If the first obfuscation effect does not meet the preset condition, readjusting the attribute parameters, and performing obfuscation processing on the encrypted vertex coordinates based on the readjusted attribute parameters to obtain second encrypted data; When it is determined that the second obfuscation effect of the second encrypted data satisfies the preset condition, the second encrypted data is determined to be the target encrypted data.
6. The method according to claim 5, It is characterized in that The decrypting of the target encrypted data based on the scrambling algorithm and the random reversible matrix to obtain the vertex coordinates includes: Performing a deobfuscation process on the target encrypted data based on the scrambling algorithm to obtain the encrypted vertex coordinates; The encrypted vertex coordinates are decrypted based on the random reversible matrix to obtain the vertex coordinates.
7. A data encryption device, It is characterized in that include: A generating unit, used for generating a first random sequence by iterating a chaotic mapping function; A construction unit, configured to construct a random reversible matrix based on the first target element in the first random sequence, wherein the size and dimension of the random reversible matrix match the vertex coordinates of the three-dimensional model to be encrypted; An encryption unit, used for encrypting the vertex coordinates based on the random reversible matrix to obtain encrypted vertex coordinates; The obfuscation unit is used to perform obfuscation processing on the encrypted vertex coordinates based on a scrambling algorithm to obtain target encrypted data. If the target encrypted data needs to be decrypted, the target encrypted data is decrypted based on the scrambling algorithm and the random reversible matrix to obtain the vertex coordinates.
8. An electronic device, It is characterized in that include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 6.
9. A non-transitory computer-readable storage medium storing computer instructions, It is characterized in that The computer instructions are used to cause the computer to execute the method according to any one of claims 1-6.
10. A computer program product, It is characterized in that The invention comprises a computer program which, when executed by a processor, implements the method according to any one of claims 1 to 6.
Citation Information
Cited By
Encryption method, decryption method, device, equipment, storage medium and program product
CN119853996A
Encryption method, decryption method, device, equipment, storage medium and program product
CN119853996B
Rail transit data anti-leakage processing method and device based on matrix transformation
CN120509054A
