A strong key generation and decoding method based on image reading

By processing image data in a cloud database and impliciting text information in the image data, the problem of difficulty in realizing encrypted transmission through image implicit information technology in the prior art is solved, and the effects of encrypted transmission and secure communication are achieved.

CN119316529BActive Publication Date: 2025-04-25MINGPAI TECH GRP CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411158860.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-22
Publication Date
2025-04-25
Estimated Expiration
2044-08-22

AI Technical Summary

Technical Problem

The existing communication encryption technology is difficult to achieve encrypted transmission through image implicit information technology, and it is impossible to effectively detect whether any person impersonates the conference terminal to join the conference, making it difficult to determine the risk of man-in-the-middle attacks.

Method used

By creating a cloud database, downloading and transferring image data in real time, using the conversion logic between text information and digital information, converting text information into digital information, and searching similar image data in the cloud database, selecting images as key images, capturing and fusing pixels to generate new image data, and realizing encrypted transmission.

Benefits of technology

Encrypted transmission through image data is realized, communication security is enhanced, and text information can be effectively transmitted in image data, thereby realizing encrypted transmission and reducing the risk of man-in-the-middle attacks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119316529B_ABST
    Figure CN119316529B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of image encryption technology, and in particular to a strong key generation and decoding method based on image reading, comprising: creating a cloud database, downloading image data in real time from a network and transferring it to the cloud database; setting conversion logic between text information and digital information, obtaining text information required for encrypted transmission, and converting the text information into digital information based on the conversion logic; obtaining the text information converted into digital information, and retrieving image data similar to the digital information in the cloud database. The present invention uses a network image as an information encryption carrier, synchronously converts image data used for encryption into grayscale image data, converts text information to be transmitted into digital information, and performs preliminary encryption on the text information converted into digital information using a quaternary counting method, so that based on further execution of the method step logic, the text information to be transmitted is implicitly transmitted in the image data, thereby achieving encrypted transmission.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image encryption technology, and in particular to a strong key generation and decoding method based on image reading. Background Art

[0002] Information encryption technology is a key means of protecting information security. It converts plain text into cipher text through a specific algorithm, making it difficult for unauthorized persons to understand the information content. Common encryption algorithms include symmetric encryption and asymmetric encryption. Symmetric encryption uses the same key for encryption and decryption, which is efficient but challenging to distribute. Asymmetric encryption has public and private keys, which is highly secure and widely used in areas such as digital signatures, providing strong protection for the secure transmission and storage of information in the network.

[0003] The invention patent with application number 202210225329.2 discloses a conference key generation method, which is characterized in that, when applied to the user terminal of the participating user, the method includes: the user terminal obtains the group authentication key agreement protocol GAKE of the conference; the user terminal negotiates with the user terminals of other participating users of the conference to join the conference key according to the GAKE; the user terminal sends the conference key to the conference terminal, so that the conference terminal encrypts and decrypts the data of the conference according to the conference key after joining the conference: or, the user terminal encrypts and decrypts the data of the conference according to the conference key.

[0004] The application aims to solve the problem that "enterprise-oriented conference services generally use group 00B technology to detect whether there is a man-in-the-middle (MitM) risk after the conference is established. However, this can only detect the device-to-device (station-tostation) pipeline MitM risk, and cannot determine whether someone has joined the conference by impersonating the conference terminal."

[0005] However, most of the existing communication encryption technologies are limited to the level of digital string encryption, and image hidden information technology has not been widely applied to communication encryption technology;

[0006] To this end, we propose a strong key generation and decoding method based on image reading. Summary of the invention

[0007] In view of the above-mentioned shortcomings of the prior art, the present invention provides a strong key generation and decoding method based on image reading, which solves the technical problems raised in the above-mentioned background technology.

[0008] To achieve the above objectives, the present invention is implemented through the following technical solutions:

[0009] A strong key generation and decoding method based on image reading, comprising:

[0010] Create a cloud database, download image data from the network in real time and transfer it to the cloud database; set the conversion logic between text information and digital information, obtain the text information that needs to be encrypted and transmitted, and convert the text information into digital information based on the conversion logic; obtain the text information converted into digital information, retrieve image data with similarity to the digital information in the cloud database, and select a group of images as the key image from the retrieved image data; capture pixels with grayscale values ​​equal to each number in the digital information in the key image, further pick up pixels around the captured pixels, create a new layer under the key image, and copy the captured and picked pixels to the new layer; merge the new layer with the key image to obtain a new set of image data, use the new graphic data as the transmission target, and send it to the text information receiving end; after receiving the image, the text information receiving end decomposes the received image, and reversely obtains the text information contained in the image according to the decomposed layer and the above logic.

[0011] Furthermore, the image data transferred and stored in the cloud database are all real image data, and the types of image data transferred and stored in the cloud database include: person image data, landscape image data, and object image data. The cloud database receives the image data and performs grayscale processing on the image data before storing the image data, so that the image data is converted into grayscale image data;

[0012] When the image data is converted into grayscale image data, each pixel in the image data is used as a grayscale processing target, that is:

[0013] ;

[0014] Where: Pixel Gray value of , , Pixel The values ​​of the three color channels;

[0015] Wherein, the grayscale value of each pixel in the image data is calculated based on the above formula to obtain the grayscale image data of the image data. The value of is rounded down using truncation.

[0016] Furthermore, the operation of converting the text information into digital information is performed based on a computer, and the computer performing the operation is always in an offline state during the stage of converting the text information to be encrypted and transmitted into digital information based on the conversion logic;

[0017] Among them, the computer that performs the operation of converting text information into digital information has the permission to access the cloud database offline, and when the computer accesses the cloud database offline, the access operation is a traceless access. When the computer accesses the cloud database offline, the grayscale image data that the computer can read in the cloud database is the grayscale image data stored in the cloud database before the timestamp of the end of the operation of converting text information into digital information.

[0018] Furthermore, the conversion logic between the text information and the digital information is expressed as:

[0019] NO1. Get text information and convert it into pinyin;

[0020] NO2. Get the serial number of each letter in the alphabet in Pinyin, sort each serial number based on the order of the letters in Pinyin, and insert a digital number representing the tone of the word at the end of the serial number sequence representing a word;

[0021] NO3. Separate the sequence of serial numbers and the numbers representing the tones based on commas, separate the serial numbers in the sequence of serial numbers based on commas, separate the sequence of serial numbers with the numbers representing the tones based on semicolons, and record the result as an array;

[0022] NO4. Obtain the quaternary counting method, convert each number in the array, and record the result as a number series representing text information.

[0023] Furthermore, when retrieving image data similar to digital information in the cloud database, the grayscale image data stored in the cloud database is used as the retrieval target. Before retrieving image data similar to digital information in the cloud database, each group of grayscale image data stored in the cloud database is converted into a set of pixel grayscale values ​​representing each group of grayscale image data based on the grayscale value of each pixel in the grayscale image data, and the pixel grayscale value is used as the digital information retrieval target.

[0024] Furthermore, the logic of retrieving image data similar to digital information in the cloud database is represented as follows:

[0025] ;

[0026] Where: is the set of numbers in the sequence; is a set of pixel grayscale values ​​of the i-th group of grayscale image data; For collection With Collection similarity; For collection With Collection The total amount of the items in the CCP; For collection The total amount of numbers in

[0027] Among them, formula (1) is established, which means and Similarity, based on formula (1), all image data similar to digital information are retrieved in the cloud database, and based on formula (2), the similarity between each group of image data and digital information in the cloud database is obtained, so that formula (1) is valid. , which is further applied to the calculation of formula (2).

[0028] Furthermore, when selecting a set of images as key images from the retrieved image data, we obey:

[0029] ;

[0030] Where: is the selection tendency value of the i-th group of grayscale image data; For collection In, collection With Collection The total number of pixels pointed to by the intersection; is the distance between the j-th pixel and the j+1-th pixel;

[0031] Among them, based on the above formula, the selection tendency value of each group of grayscale image data is calculated, and the selection A set of grayscale image data with the largest value is used as the key image.

[0032] Furthermore, the definition of the pixel surrounding pixels is: in a group of 3×3 image blocks, the relationship between the central pixels of the image blocks and the contour pixels of the image blocks.

[0033] Furthermore, the number of the newly created layers is q+1, where q is the number of semicolons in the digital information, and the captured pixels in each layer correspond to a segment of the array separated by semicolons in the digital information from top to bottom, and the order of the corresponding segments of the array in the layers from top to bottom is consistent with the array in the digital information;

[0034] The operations of merging and decomposing the images received by the text information receiving end are completed based on Adobe Photoshop.

[0035] Compared with the known public technology, the technical solution provided by the present invention has the following beneficial effects:

[0036] The present invention provides a strong key generation and decoding method based on image reading. Through the execution of the steps in the method, a network image is used as an information encryption carrier, the image data used for encryption is synchronously converted into grayscale image data, and the text information to be transmitted is converted into digital information, and the text information converted into digital information is preliminarily encrypted using a quaternary counting method. Based on the further execution of the logic of the method steps, the text information to be transmitted is implicitly transmitted in the image data, thereby realizing encrypted transmission. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0038] Figure 1 The figure is a flowchart of a strong key generation and decoding method based on image reading. DETAILED DESCRIPTION

[0039] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0040] The present invention will be further described below in conjunction with the embodiments. Example

[0041] A strong key generation and decoding method based on image reading in this embodiment, such as Figure 1 As shown, the following steps are included:

[0042] S1: Create a cloud database, download image data in real time from the network and store it in the cloud database;

[0043] The image data transferred and stored in the cloud database are all real image data. The image data types transferred and stored in the cloud database include: person image data, landscape image data, and object image data. The cloud database receives the image data and performs grayscale processing on the image data before storing the image data, so that the image data is converted into grayscale image data;

[0044] When converting image data into grayscale image data, each pixel in the image data is used as the grayscale processing target, that is:

[0045] ;

[0046] Where: Pixel Gray value of , , Pixel The values ​​of the three color channels;

[0047] Wherein, the grayscale value of each pixel in the image data is calculated based on the above formula to obtain the grayscale image data of the image data. The value of is rounded down by truncation;

[0048] S2: Setting the conversion logic between text information and digital information, obtaining the text information to be encrypted and transmitted, and converting the text information into digital information based on the conversion logic;

[0049] The conversion logic between text information and digital information is expressed as:

[0050] NO1. Get text information and convert it into pinyin;

[0051] NO2. Get the serial number of each letter in the alphabet in Pinyin, sort each serial number based on the order of the letters in Pinyin, and insert a digital number representing the tone of the word at the end of the serial number sequence representing a word;

[0052] NO3. Separate the sequence of serial numbers and the numbers representing the tones based on commas, separate the serial numbers in the sequence of serial numbers based on commas, separate the sequence of serial numbers with the numbers representing the tones based on semicolons, and record the result as an array;

[0053] NO4. Obtain the quaternary counting method, convert each number in the array, and record the result as a sequence representing text information;

[0054] S3: Obtain text information converted into digital information, retrieve image data similar to the digital information in the cloud database, and select a group of images from the retrieved image data as key images;

[0055] S4: Capture pixels with grayscale values ​​equal to the numbers in the digital information in the secret key image, further pick up pixels around the captured pixels, create a new layer under the secret key image, and copy the captured and picked up pixels to the new layer;

[0056] S5: The newly created layer is merged with the secret key image to obtain a new set of image data, and the new image data is used as the transmission target and sent to the text information receiving end;

[0057] S6: After receiving the image, the text information receiving end decomposes the received image and reversely obtains the text information contained in the image according to the decomposed layers and the above logic.

[0058] In this embodiment, by executing the steps of the method in the above embodiment, an encrypted transmission communication service is provided for text communication using images as carriers;

[0059] The following is a set of examples of the conversion logic between the above text information and digital information:

[0060] Sample text is: Hello;

[0061] NO1.nihao (ni is the third tone, hao is the third tone);

[0062] NO2.149381153;

[0063] NO3.14,9,3;8,1,15,3;

[0064] NO4.32, 21, 3; 20, 1, 33, 3. Example

[0065] At the specific implementation level, based on Example 1, this example further specifically illustrates a strong key generation and decoding method based on image reading in Example 1 with reference to FIG. 1 :

[0066] The operation of converting text information into digital information is performed based on a computer. During the stage of converting text information to digital information based on the conversion logic, the computer performing the operation is always in an offline state.

[0067] Among them, the computer that performs the operation of converting text information into digital information has the permission to access the cloud database offline, and when the computer accesses the cloud database offline, the access operation is a traceless access. When the computer accesses the cloud database offline, the grayscale image data that the computer can read in the cloud database is the grayscale image data stored in the cloud database before the timestamp of the end of the operation of converting text information into digital information.

[0068] Through the above settings, the computer can access the cloud database in an offline manner, thereby improving its security;

[0069] It should be noted that the operation of computer offline access to cloud database can be:

[0070] 1. Local cache: When there is a network connection, some key data in the cloud database is cached in the local storage. When the computer is offline, the local cached data can be accessed.

[0071] 2. Synchronization tool: Use specialized synchronization software to synchronize cloud data to a specific local storage location when there is a network, and access data from the local synchronized location when offline.

[0072] like Figure 1 As shown, when retrieving image data similar to digital information in the cloud database, the grayscale image data stored in the cloud database is used as the retrieval target. Before retrieving image data similar to digital information in the cloud database, each group of grayscale image data stored in the cloud database is converted into a set of pixel grayscale values ​​representing each group of grayscale image data based on the grayscale value of each pixel in the grayscale image data, and the pixel grayscale value is used as the digital information retrieval target;

[0073] The logical representation of retrieving image data similar to digital information in a cloud database is:

[0074] ;

[0075] Where: is the set of numbers in the sequence; is a set of pixel grayscale values ​​of the i-th group of grayscale image data; For collection With Collection similarity; For collection With Collection The total amount of the items in the CCP; For collection The total amount of numbers in

[0076] Among them, formula (1) is established, which means and Similarity, based on formula (1), all image data similar to digital information are retrieved in the cloud database, and based on formula (2), the similarity between each group of image data and digital information in the cloud database is obtained, so that formula (1) is valid. , which is further applied to the calculation of formula (2);

[0077] When selecting a set of images as key images from the retrieved image data, we follow:

[0078] ;

[0079] Where: is the selection tendency value of the i-th group of grayscale image data; For collection In, collection With Collection The total number of pixels pointed to by the intersection; is the distance between the j-th pixel and the j+1-th pixel;

[0080] Among them, based on the above formula, the selection tendency value of each group of grayscale image data is calculated, and the selection A set of grayscale image data with the largest value is used as the key image.

[0081] Through the above logic formula, the logic of retrieving image data similar to digital information in the cloud database is further limited.

[0082] like Figure 1 As shown, the definition of the surrounding pixels of a pixel is: the relationship between the central pixel of the image block and the contour pixel of the image block in a group of 3×3 image blocks.

[0083] like Figure 1 As shown, the number of newly created layers is q+1, q is the number of semicolons in the digital information, and the newly created layers are from top to bottom. The captured pixels in each layer correspond to a segment of the array separated by semicolons in the digital information, and the order of the corresponding segments of the array in the layers from top to bottom is consistent with the array in the digital information;

[0084] The fusion and decomposition operations of the images received by the text information receiving end are completed based on Adobe Photoshop.

[0085] In summary, by executing the steps in the method in the above embodiment, the network image is used as an information encryption carrier, the image data used for encryption is synchronously converted into grayscale image data, and the text information to be transmitted is converted into digital information, and the text information converted into digital information is preliminarily encrypted using the quaternary counting method. Based on the further execution of the logic of the method steps, the text information to be transmitted is implicitly included in the image data for transmission, thereby realizing encrypted transmission.

[0086] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements will not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A strong key generation and decoding method based on image reading, characterized in that: The following steps are involved: S1: Create a cloud database, download image data in real time from the network and store it in the cloud database; S2: Setting the conversion logic between text information and digital information, obtaining the text information to be encrypted and transmitted, and converting the text information into digital information based on the conversion logic; S3: Obtain text information converted into digital information, retrieve image data similar to the digital information in a cloud database, and select a set of images from the retrieved image data as key images; S4: Capture pixels with grayscale values ​​equal to the numbers in the digital information in the secret key image, further pick up pixels around the captured pixels, create a new layer under the secret key image, and copy the captured and picked up pixels to the new layer; S5: The newly created layer is merged with the secret key image to obtain a new set of image data, and the new image data is used as the transmission target and sent to the text information receiving end; S6: After receiving the image, the text information receiving end decomposes the received image and reversely obtains the text information contained in the image according to the decomposed layers and the above logic.

2. A strong key generation and decoding method based on image reading according to claim 1, characterized in that: The image data transferred and stored in the cloud database are all real image data. The image data types transferred and stored in the cloud database include: person image data, landscape image data, and object image data. The cloud database receives the image data and performs grayscale processing on the image data before storing the image data, so that the image data is converted into grayscale image data; When the image data is converted into grayscale image data, each pixel in the image data is used as a grayscale processing target, that is: ; Where: Pixel Gray value of , , Pixel The values ​​of the three color channels; Wherein, the grayscale value of each pixel in the image data is calculated based on the above formula to obtain the grayscale image data of the image data. The value of is rounded down using truncation.

3. The method for generating and decoding a strong key based on image reading according to claim 1, characterized in that: The operation of converting text information into digital information is performed based on a computer. During the stage of converting the text information to be encrypted and transmitted into digital information based on the conversion logic, the computer performing the operation is always in an offline state. Among them, the computer that performs the operation of converting text information into digital information has the permission to access the cloud database offline, and when the computer accesses the cloud database offline, the access operation is a traceless access. When the computer accesses the cloud database offline, the grayscale image data that the computer can read in the cloud database is the grayscale image data stored in the cloud database before the timestamp of the end of the operation of converting text information into digital information.

4. The method for generating and decoding a strong key based on image reading according to claim 1, characterized in that: The conversion logic between the text information and the digital information is expressed as: NO1. Get text information and convert it into pinyin; NO2. Get the serial number of each letter in the alphabet in Pinyin, sort each serial number based on the order of the letters in Pinyin, and insert a digital number representing the tone of the word at the end of the serial number sequence representing a word; NO3. Separate the sequence of serial numbers and the numbers representing the tones based on commas, separate the serial numbers in the sequence of serial numbers based on commas, and separate the sequence of serial numbers with the numbers representing the tones based on semicolons, and the result is recorded as an array; NO4. Obtain the quaternary counting method, convert each number in the array, and record the result as a number series representing text information.

5. The method for generating and decoding a strong key based on image reading according to claim 1, characterized in that: When retrieving image data similar to digital information in a cloud database, the grayscale image data stored in the cloud database is used as a retrieval target. Before retrieving image data similar to digital information in the cloud database, each group of grayscale image data stored in the cloud database is converted into a set of pixel grayscale values ​​representing each group of grayscale image data based on the grayscale value of each pixel in the grayscale image data, and the pixel grayscale value is used as the digital information retrieval target.

6. A method for generating and decoding a strong key based on image reading according to claim 4 or 5, characterized in that: The logic of retrieving image data similar to digital information in the cloud database is expressed as: ; Where: is the set of numbers in the sequence; is a set of pixel grayscale values ​​of the i-th group of grayscale image data; For collection With Collection similarity; For collection With Collection The total amount of the items in the CCP; For collection The total amount of numbers in Among them, formula (1) is established, which means and Similarity, based on formula (1), all image data similar to digital information are retrieved in the cloud database, and based on formula (2), the similarity between each group of image data and digital information in the cloud database is obtained, so that formula (1) is valid. , which is further applied to the calculation of formula (2).

7. A method for generating and decoding a strong secret key based on image reading according to claim 6, characterized in that: When selecting a set of images as key images from the retrieved image data, we follow: ; Where: is the selection tendency value of the i-th group of grayscale image data; For collection In, collection With Collection The total number of pixels pointed to by the intersection; is the distance between the jth pixel and the j+1th pixel; Among them, based on the above formula, the selection tendency value of each group of grayscale image data is calculated, and the selection A set of grayscale image data with the largest value is used as the key image.

8. The method for generating and decoding a strong key based on image reading according to claim 1, characterized in that: The definition of the pixel surrounding pixels is: in a group of 3×3 image blocks, the relationship between the central pixel of the image block and the contour pixel of the image block.

9. The method for generating and decoding a strong key based on image reading according to claim 1, characterized in that: The number of the newly created layers is q+1, where q is the number of semicolons in the digital information. From top to bottom, the captured pixels in each layer correspond to a segment of the array separated by semicolons in the digital information, and the order of the corresponding segments of the array in the layers from top to bottom is consistent with the array in the digital information. The operations of merging and decomposing the images received by the text information receiving end are completed based on Adobe Photoshop.

Citation Information

Patent Citations

  • Conference secret key generation method, terminal and equipment

    CN116782207A

  • Information hiding anti-fake method based on microstructure screen dots

    CN105513001A

  • Encryption device and method based on image recognition technology

    CN106408501A