An encryption method, device and equipment for preventing reverse cracking of data images
By encrypting data images through piecewise nonlinear random operators, the contradiction between data image visualization and security in the existing technology is resolved, and data security is enhanced while being visually imperceptible, preventing reverse cracking.
Patent Information
- Application Number
- CN202511007072.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-22
- Publication Date
- 2025-09-23
- Estimated Expiration
- 2045-07-22
AI Technical Summary
Existing technologies cannot effectively prevent reverse cracking while maintaining the integrity of data image visualization, which poses a data security risk, especially in academic exchanges and protection of sensitive geographic data.
The data is encrypted using piecewise nonlinear random operators. By constructing a variety of encryption functions and transformation factors, random nonlinear transformations are performed on the data in the non-labeled interval to generate pseudo-color images, ensuring that the labeled points are accurate and irreversible.
Visually imperceptible encryption is achieved, maintaining the accuracy of key annotation points, while increasing the irreversibility of non-annotated intervals to prevent crackers from restoring the original data.
Smart Images

Figure CN120512501B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data visualization security technology, applicable to scenarios such as academic exchanges, report reviews, and research paper publication where images must be protected from reverse analysis, as well as for the security protection of sensitive geographic data. In particular, it relates to an encryption method, device, and apparatus for preventing reverse cracking of data images. Image encryption is achieved using a piecewise nonlinear data randomization operator without changing the image display quality. Background Art
[0002] Various types of topographic data, gravity data, and magnetic data play a vital role in mineral exploration, earth science research, missile guidance, and submarine navigation. This data is often presented as pseudo-color images to demonstrate the data's spatial distribution. When presenting sensitive geographic data in academic exchanges, report reviews, and paper publications, researchers need to share pseudo-color images. However, this presents the daunting challenge of preventing reverse engineering of sensitive geographic data, thereby preventing unauthorized data duplication, commercial misuse, and threats to national security.
[0003] However, currently used data images generally utilize linear color mapping technology, which establishes a strict linear relationship between data values and color values. While this linear mapping approach is intuitive and easy to understand, it also poses serious data security risks. Specifically, hackers can use simple color extraction tools to obtain the color values of each pixel in the image and then accurately restore the original data values based on the linear color mapping relationship.
[0004] Although several technologies have been developed to prevent image reverse engineering, they all have limitations to varying degrees:
[0005] The first category involves embedding visible or invisible watermarks (such as copyright information and author identification) into images. Visible watermarks directly overlay the data image, severely undermining the integrity and aesthetics of the data visualization. Invisible watermarks (such as least significant bit steganography) don't affect the visual quality but are easily corrupted by common image processing operations (such as format conversion, resampling, and filtering). More importantly, these techniques cannot completely prevent hackers from reversing the original data values through color analysis.
[0006] The second category of techniques enhances data security by hiding some information. Specific approaches include: labeling color scales with only qualitative descriptions such as "high" and "low," without displaying specific color scale values; or hiding key positional information such as coordinate axes within the image. While these methods increase the difficulty of reverse engineering data, they also significantly diminish the scientific value of data visualization. Readers are unable to discern the magnitude of the data and the spatial distribution of the image, thus negating the image's fundamental function as a scientific research medium.
[0007] The third type of technique uses a single nonlinear function (such as a logarithmic or exponential function) to map data to color. Compared to linear mapping, this method does increase the complexity of data reverse engineering. However, if an attacker knows the mapping relationship of some known data points (such as the amplitude clearly marked in the color scale), they can still reconstruct the entire mapping function through curve fitting and obtain the original data value.
[0008] In summary, current data visualization security faces significant challenges: ensuring that images faithfully reflect the scientific characteristics of the original data while effectively preventing specialized reverse engineering attempts. Existing technologies, however, cannot simultaneously meet the dual requirements of visualization fidelity and data security. This technological gap severely restricts the secure application of these images. Therefore, there is an urgent need to develop a new data visualization encryption technology that can effectively resist reverse engineering attempts while maintaining accurate visualization of key data points. Summary of the Invention
[0009] The purpose of the present invention is to resolve the contradiction that the existing technology cannot balance the security and visualization integrity of sensitive geographic data. It provides an encryption method, device and equipment to prevent reverse cracking of data images. While ensuring that the marked points remain unchanged, data encryption is achieved in the non-marked interval through flexible and changeable piecewise nonlinear transformation, making it impossible for crackers to accurately restore the original data through color interpolation and fitting.
[0010] The object of the present invention is achieved through the following technical solutions:
[0011] In a first aspect, an encryption method for preventing reverse cracking of a data image is provided, comprising the following steps:
[0012] S1. Input the original image and determine the set of annotation points;
[0013] S2. Construct encryption functions: For any unlabeled interval, construct multiple encryption functions;
[0014] S3. Determine the transformation factor: Traverse all unmarked intervals and pre-encrypt the original image using each encryption function; after pre-encryption, calculate the standard deviation of the difference between the encrypted data and the original data obtained by each encryption function; determine the transformation factor corresponding to each encryption function based on the size of the standard deviation;
[0015] S4. Data encryption and pseudo-color mapping: Traverse each unlabeled interval, randomly select an encryption function and corresponding transformation factor to encrypt the original data in a certain unlabeled interval, and use the encrypted data to generate a pseudo-color map.
[0016] In some embodiments, determining the set of annotation points includes:
[0017] Extract the eigenvalues from the original image, and the positions corresponding to the eigenvalues are the annotation points;
[0018] Traverse all the annotation point sets and check whether the interval between adjacent annotation points is less than the anti-reverse accuracy If yes, delete the next annotation point and repeat this step until the interval between all adjacent annotation points is greater than the anti-reverse accuracy. .
[0019] In some embodiments, constructing multiple encryption functions includes:
[0020] For any unlabeled interval , construct the following three encryption functions:
[0021] Exponential-logarithmic hybrid encryption function:
[0022] ; Polynomial encryption function:
[0023] ; S-type encryption function:
[0024] , where i represents the annotation point number, x represents the data in the original image, For the encrypted data, Represents the transformation factor.
[0025] In some embodiments, the standard deviation is calculated as follows:
[0026]
[0027] in, is the standard deviation of the difference between the encrypted data and the original data, is the average value of the difference between the encrypted data and the original data, N is the number of data, Represents the original data of the i-th annotation point, The encrypted data of the i-th annotation point.
[0028] In some embodiments, determining the transformation factor corresponding to each encryption function according to the size of the standard deviation includes:
[0029] like , then the transformation factor Increase by two times, re-pre-encrypt the original data until .
[0030] In a second aspect, an encryption device for preventing reverse cracking of a data image is provided, comprising:
[0031] A marking point determination module is used to input the original image and determine the marking point set;
[0032] Encryption function construction module, used to construct multiple encryption functions for any unlabeled interval;
[0033] A transformation factor determination module is used to traverse all unmarked intervals and pre-encrypt the original image using each encryption function; after the pre-encryption process, the standard deviation of the difference between the encrypted data obtained by each encryption function and the original data is calculated; and the transformation factor corresponding to each encryption function is determined based on the size of the standard deviation;
[0034] The data encryption and pseudo-color mapping module is used to traverse each unlabeled interval, randomly select an encryption function and a corresponding transformation factor to encrypt the original data in a certain unlabeled interval, and use the encrypted data to generate a pseudo-color map.
[0035] In a third aspect, an electronic device is provided, comprising a memory and a processor, wherein the memory stores computer instructions that can be run on the processor, and when the processor runs the computer instructions, an encryption method for preventing reverse cracking of data images as described in the first aspect is executed.
[0036] It should be further explained that the technical features corresponding to the above embodiments can be combined or replaced with each other to form a new technical solution if there is no conflict.
[0037] This invention achieves an effective balance between visual display and security protection of data images through the design of a piecewise nonlinear random encryption operator. Compared with existing technologies, this invention has the following significant advantages:
[0038] 1. Accurately maintain key annotation points. Ensure that the annotation points are completely consistent with the original data, avoiding information distortion or misreading caused by encryption.
[0039] 2. Strong irreversibility in unlabeled intervals. A randomly selected nonlinear transformation (exponential-logarithmic hybrid, polynomial, or S-type) is used between adjacent labeled points, making it impossible for attackers to restore the complete data through interpolation or fitting.
[0040] 3. Visually imperceptible encryption. The encrypted pseudo-color image has no significant difference from the original image in visual indicators such as color transition and contour smoothness. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 This is a flow chart of an encryption method for preventing reverse cracking of data images according to the present invention;
[0042] Figure 2 This is a pseudo-color map generated by the original topographic data ETOPO1 of the present invention;
[0043] Figure 3 This is a pseudo-color map generated by encrypting the terrain data ETOPO1 in the present invention. DETAILED DESCRIPTION
[0044] The technical solutions of the present invention are described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. The components of the embodiments of the present application generally described and shown in the drawings herein can be arranged and designed in various different configurations. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0045] It should be noted that the defects existing in the solutions in the above-mentioned prior art are the results obtained by the inventor after practice and careful research. Therefore, the discovery process of the above-mentioned problems and the solutions proposed in the embodiments of this application below for the above-mentioned problems should be the contributions made by the inventor to this application in the process of invention and creation, and should not be understood as technical contents known to technical personnel in this field.
[0046] In response to the technical problems pointed out in the background technology, the embodiments provided by the present invention are as follows:
[0047] In an exemplary embodiment, an encryption method for preventing reverse cracking of data images is provided, the main steps of which include: determining a set of annotation points, constructing an encryption function, determining a transformation factor, encrypting data, and generating a pseudo-color image. Figure 1 The main steps are described in detail below.
[0048] 1. Determine the set of annotation points
[0049] Annotation points refer to characteristic values with specific mathematical or physical meanings extracted from a given original mapping dataset x. For example, based on mathematical statistical properties, the annotation point set covers the key quantiles of the data distribution. If the original data amplitude ranges from 0 to 100, the values 10, 20, 30, ... 90 are annotated. Or, based on physical meaning, they reflect the scientific characteristics of the data itself, such as the coastline (0 meters), snow line height (4000 meters), watershed elevation, etc. in a topographic map. Extract all annotation points to form an annotation point set. .
[0050] Traverse all the annotation point sets and check whether the interval between adjacent annotation points is less than the anti-reverse accuracy If yes, delete the next annotation point and repeat this step until the interval between all adjacent annotation points is greater than the anti-reverse accuracy. This step ensures that the marked points are completely consistent with the original data, avoiding information distortion or misreading caused by encryption. It is used to measure the deviation between the original data and the encrypted data. The amplitude is set according to the actual situation. Its function is to make the error after the cracker's cracking greater than the anti-reverse accuracy, making it impossible to obtain the accurate original data.
[0051] 2. Constructing encryption function
[0052] For any unlabeled interval , construct the following three encryption functions:
[0053] Exponential-logarithmic hybrid encryption function:
[0054] ; Polynomial encryption function:
[0055] ; S-type encryption function:
[0056]
[0057] Among them, i represents the annotation point number, x represents the data in the original image, For the encrypted data, It should be noted that the three encryption functions here are only preferred, and in other examples, more other types of encryption functions can be constructed according to actual conditions.
[0058] 3. Determine the transformation factor
[0059] Traverse all non-labeled intervals , respectively, using the exponential-logarithmic hybrid encryption function, polynomial encryption function, and S-type encryption function to pre-encrypt the original data. Then, use the following formula to calculate the standard deviation of the difference between the encrypted data and the original data obtained by the three encryption functions:
[0060]
[0061] in, is the standard deviation of the difference between the encrypted data and the original data, is the average value of the difference between the encrypted data and the original data, N is the number of data, Represents the original data of the i-th annotation point, The encrypted data of the i-th annotation point.
[0062] In this step, the transformation factor corresponding to each encryption function is determined according to the size of the standard deviation, including:
[0063] like , then the transformation factor Increase by two times, re-pre-encrypt the original data until It should be noted that the value of the conversion factor here can be selected according to actual needs and is not to be understood as a limitation of this application.
[0064] 4. Data encryption and pseudo-color mapping
[0065] Encrypt the data and traverse each unlabeled interval , randomly select an encryption function and the corresponding transformation factor from the three encryption functions of exponential-logarithmic mixing, polynomial and S-type for a certain unlabeled interval The original data in the encryption transformation is carried out, and after the encryption is completed, the encrypted data is used Generates a pseudo-color image, but the color scale labels only show , and finally output a pseudo-color image.
[0066] In order to verify the actual effect of the present invention, the present invention selected the ETOPO1 terrain data of the African continent and surrounding areas for empirical analysis (data source: official database of the French Space Geodesy Institute BGI). First, according to the statistical characteristics and physical meaning of the terrain data, the annotation point set is determined to be {-6000m, -5000m, -4000m, -3000m, -2000m, -1000m, 0m, 1000m, 2000m, 3000m}, and then the anti-reverse accuracy is defined as 100m (that is, the accuracy of the data after the cracker is cracked is greater than 100m). The test results show that the pseudo-color image after encryption processing of the present invention (such as Figure 3 ) is visually different from the original data image without encryption (such as the pseudo-color image Figure 2 ) maintains high consistency, with natural and smooth color transitions and fully preserved contour lines, fully meeting the professional requirements of scientific research and publishing. Quantitative analysis shows that when an attacker attempts to reverse engineer terrain data from an encrypted image, the elevation recovery error reaches 101.2 meters, far exceeding industry security standards and fully demonstrating the reliability and practicality of this invention in protecting sensitive geographic data.
[0067] In another exemplary embodiment, based on the same inventive concept as the method embodiment, an encryption device for preventing reverse cracking of a data image is provided, comprising:
[0068] A marking point determination module is used to input the original image and determine the marking point set;
[0069] Encryption function construction module, used to construct multiple encryption functions for any unlabeled interval;
[0070] A transformation factor determination module is used to traverse all unmarked intervals and pre-encrypt the original image using each encryption function; after the pre-encryption process, the standard deviation of the difference between the encrypted data obtained by each encryption function and the original data is calculated; and the transformation factor corresponding to each encryption function is determined based on the size of the standard deviation;
[0071] The data encryption and pseudo-color mapping module is used to traverse each unlabeled interval, randomly select an encryption function and a corresponding transformation factor to encrypt the original data in a certain unlabeled interval, and use the encrypted data to generate a pseudo-color map.
[0072] In another exemplary embodiment, based on the same inventive concept as the method embodiment, an electronic device is provided, including a memory and a processor, wherein the memory stores computer instructions that can be executed on the processor, and when the processor runs the computer instructions, it executes the encryption method for preventing reverse cracking of data images provided by an embodiment of the present invention.
[0073] The processor may be a single-core or multi-core central processing unit or a specific integrated circuit, or one or more integrated circuits configured to implement the present invention.
[0074] Embodiments of the subject matter and functional operations described in this specification may be implemented in: tangibly embodied computer software or firmware, computer hardware including the structures disclosed in this specification and their structural equivalents, or a combination of one or more thereof. Embodiments of the subject matter described in this specification may be implemented as one or more computer programs, i.e., one or more modules of computer program instructions encoded on a tangible, non-transitory program carrier for execution by a data processing apparatus or to control the operation of the data processing apparatus. Alternatively or in addition, the program instructions may be encoded on an artificially generated propagated signal, such as a machine-generated electrical, optical, or electromagnetic signal, that is generated to encode and transmit information to a suitable receiver apparatus for execution by the data processing apparatus.
[0075] The processes and logic flows described in this specification can be performed by one or more programmable computers executing one or more computer programs to perform the corresponding functions by operating on input data and generating output. The processes and logic flows can also be performed by, and apparatus can be implemented as, special purpose logic circuitry, such as an FPGA (field programmable gate array) or an ASIC (application-specific integrated circuit).
[0076] Processors suitable for executing computer programs include, for example, general-purpose and / or special-purpose microprocessors, or any other type of central processing unit. Typically, a central processing unit will receive instructions and data from a read-only memory and / or random access memory. The basic components of a computer include a central processing unit for implementing or executing instructions and one or more memory devices for storing instructions and data. Typically, a computer will also include one or more mass storage devices for storing data, such as magnetic disks, magneto-optical disks, or optical disks, or the computer will be operably coupled to such a mass storage device to receive data from it or to transmit data to it, or both. However, a computer does not necessarily have such a device. In addition, a computer can be embedded in another device, such as a mobile phone, a personal digital assistant (PDA), a mobile audio or video player, a game console, a global positioning system (GPS) receiver, or a portable storage device such as a universal serial bus (USB) flash drive, to name a few.
[0077] It should be understood that each box in the flow chart or block diagram can represent a module, program segment or a part of code, and the part of the module, program segment or code comprises one or more executable instructions for realizing the logical function of the provision. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a sequence different from that marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the function or action of the provision, or can be implemented with a combination of dedicated hardware and computer instructions.
[0078] The above specific implementation methods are detailed descriptions of the present invention. It cannot be considered that the specific implementation methods of the present invention are limited to these descriptions. For ordinary technicians in the technical field to which the present invention belongs, they can make several simple deductions and substitutions without departing from the concept of the present invention, which should be regarded as falling within the scope of protection of the present invention.
Claims
1. An encryption method for preventing reverse cracking of data images, characterized in that: The following steps are involved: S1. Input the original image and determine the set of annotation points; S2. Construct encryption functions: For any unlabeled interval, construct multiple nonlinear encryption functions; S3. Determine the transformation factor: Traverse all unmarked intervals and pre-encrypt the original image using each encryption function. After pre-encryption, calculate the standard deviation of the difference between the encrypted data and the original data obtained by each encryption function. Determining the transformation factors corresponding to the encryption functions according to the size of the standard deviation; determining the transformation factors corresponding to the encryption functions according to the size of the standard deviation includes: like , then the transformation factor Increase by two times, re-pre-encrypt the original data until ,in, is the standard deviation of the difference between the encrypted data and the original data, For anti-reverse accuracy; S4. Data encryption and pseudo-color mapping: Traverse each unlabeled interval, randomly select an encryption function and corresponding transformation factor to encrypt the original data in a certain unlabeled interval, and use the encrypted data to generate a pseudo-color map.
2. The encryption method for preventing reverse cracking of data images according to claim 1, characterized in that: Determining the set of annotation points includes: Extract the eigenvalues from the original image, and the positions corresponding to the eigenvalues are the annotation points; Traverse all the annotation point sets and check whether the interval between adjacent annotation points is less than the anti-reverse accuracy If yes, delete the next annotation point and repeat this step until the interval between all adjacent annotation points is greater than the anti-reverse accuracy. .
3. The encryption method for preventing reverse cracking of data images according to claim 1, characterized in that: The construction of multiple nonlinear encryption functions includes: For any unlabeled interval , construct the following three encryption functions: Exponential-logarithmic hybrid encryption function: ; Polynomial encryption function: ; S-type encryption function: , where i represents the annotation point number, x represents the data in the original image, For the encrypted data, Represents the transformation factor.
4. The encryption method for preventing reverse cracking of data images according to claim 2, characterized in that: The standard deviation is calculated as follows: ,in, is the standard deviation of the difference between the encrypted data and the original data, is the average value of the difference between the encrypted data and the original data, N is the number of data, Represents the original data of the i-th annotation point, The encrypted data of the i-th annotation point.
5. An encryption device for preventing reverse cracking of data images, characterized in that: include: A marking point determination module is used to input the original image and determine the marking point set; Encryption function construction module, used to construct various nonlinear encryption functions for any unlabeled interval; The transformation factor determination module is used to traverse all unmarked intervals and pre-encrypt the original image using each encryption function; after the pre-encryption process, the standard deviation of the difference between the encrypted data obtained by each encryption function and the original data is calculated; Determining the transformation factors corresponding to the encryption functions according to the size of the standard deviation; determining the transformation factors corresponding to the encryption functions according to the size of the standard deviation includes: like , then the transformation factor Increase by two times, re-pre-encrypt the original data until ,in, is the standard deviation of the difference between the encrypted data and the original data, For anti-reverse accuracy; The data encryption and pseudo-color mapping module is used to traverse each unlabeled interval, randomly select an encryption function and a corresponding transformation factor to encrypt the original data in a certain unlabeled interval, and use the encrypted data to generate a pseudo-color map.
6. An electronic device comprising a memory and a processor, wherein the memory stores computer instructions that can be executed on the processor, wherein: When the processor runs the computer instructions, it executes the encryption method for preventing reverse cracking of data images as described in any one of claims 1 to 4.
Citation Information
Patent Citations
Data visualization method and system for optimizing color table based on a spring model
CN112052057A
Ionized layer TEC data high-dynamic rendering method and system based on global grid
CN116664743A