Information protection method applied to biological feature recognition
Through encryption processing and round function technology, the security problem of information protection in biometric identification is solved, and the security and efficiency of personal biometric information are effectively protected without affecting the function.
Patent Information
- Application Number
- CN202411204123.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-30
- Publication Date
- 2024-10-01
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
It is difficult for existing technologies to effectively protect personal biometric information from the threats of illegal collection, abuse and leakage without affecting the biometric function.
By encrypting the feature information in the image file submitted by the user, the ciphertext is generated and compared with the pre-stored control image ciphertext, and encryption processing is performed using techniques such as round functions and replacement boxes to ensure information security.
It improves the security of the system, shortens the encryption matching time, avoids the need to decrypt SM4 ciphertext data, and enhances the reliability of information protection.
Smart Images

Figure CN118734342A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of information protection, and in particular relates to an information protection method applied to biometric identification. Background Art
[0002] In recent years, with the rapid development of information technology and the popularization of Internet applications, more and more organizations have collected and used personal biometric information in large quantities. While this has brought convenience to people's lives, problems such as illegal collection, abuse, and leakage of personal information have also emerged, and personal information security is facing serious threats.
[0003] "GB / T 35273-2020" makes requirements for the transmission and storage of personal sensitive information. In principle, original personal biometric information (such as samples, images, etc.) should not be stored.
[0004] This requires a secure and reliable biometric point protection solution that can protect personal biometric information from being illegally collected, abused, or leaked to the greatest extent possible while ensuring that the original biometric function is not affected. Summary of the invention
[0005] In view of this, the present invention aims to propose an information protection method applied to biometric identification, in order to solve at least one of the above-mentioned technical problems.
[0006] To achieve the above object, the technical solution of the present invention is achieved as follows: The information protection method applied to biometric identification includes the following steps: Encrypt the feature information in the image file submitted by the user to obtain the current image ciphertext; Use the current image ciphertext to match and compare with the pre-stored reference image ciphertext to complete feature verification; The encryption process of the current image ciphertext is the same as that of the comparison image ciphertext.
[0007] Furthermore, the pre-storage process of the comparison image ciphertext includes: Acquire feature information in a comparison image, encrypt the feature information of the comparison image to obtain a comparison image ciphertext, and store the comparison image ciphertext in a database; After obtaining the ciphertext of the comparison image, the characteristic information of the comparison image is deleted.
[0008] Furthermore, the process of encrypting the feature information in the image file submitted by the user includes: The unique identifier of the device where the image file is located is obtained, the unique identifier is used for calculation, a key corresponding to the unique identifier is generated, and the generated key is used to encrypt the feature information in the image file.
[0009] Furthermore, the process of encrypting the feature information in the image file using the generated key includes: Expanding the key into multiple round keys through a round function, splitting the characteristic information into multiple data blocks, and iteratively processing the multiple data blocks using the round keys, wherein one data block is encrypted in each iteration; The encryption process includes sequentially performing nonlinear transformation, linear transformation, and XOR operation with a round key on the data block to obtain a ciphertext corresponding to the data block; According to the original connection order of the data blocks, the ciphertexts corresponding to the multiple data blocks are combined to obtain the corresponding ciphertexts.
[0010] Furthermore, the process of encrypting the feature information in the image file using the generated key also includes: Create and initialize an array, perform an XOR operation on each element in the array with the key, and fill the array with the result of the XOR operation until the array is completely filled; Splitting the characteristic information into left and right parts, constructing multiple replacement boxes, respectively filling the data of the left and right parts into the multiple replacement boxes, and encrypting the characteristic information through an XOR operation of the array and the multiple replacement boxes; Arrange multiple replacement boxes in sequence according to the left-right order to obtain the corresponding ciphertext.
[0011] Compared with the prior art, the information protection method for biometric identification described in the present invention has the following beneficial effects: The ciphertext method is used for matching and comparison, and there is no need to decrypt the SM4 ciphertext data. On the one hand, it improves the security of the system design, and on the other hand, it effectively shortens the impact of encryption on the matching time. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] 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 The figure is a flow chart of an information protection method applied to biometric identification according to an embodiment of the present invention. DETAILED DESCRIPTION
[0013] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features in the embodiments may be combined with each other.
[0014] In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", and the like are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, features defined as "first", "second", and the like may explicitly or implicitly include one or more of the features. In the description of the present invention, unless otherwise specified, "multiple" means two or more.
[0015] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood by specific circumstances.
[0016] The present invention will be described in detail below with reference to the accompanying drawings and in conjunction with embodiments.
[0017] The information protection method applied to biometric identification includes the following steps: S1. Encrypt the feature information in the image file submitted by the user to obtain the current image ciphertext.
[0018] The process of encrypting the feature information in the image file submitted by the user in step S1 includes: The unique identifier of the device where the image file is located is obtained, the unique identifier is used for calculation, a key corresponding to the unique identifier is generated, and the generated key is used to encrypt the feature information in the image file.
[0019] In one embodiment, the process of encrypting the feature information in the image file using the generated key includes: Expanding the key into multiple round keys through a round function, splitting the characteristic information into multiple data blocks, and iteratively processing the multiple data blocks using the round keys, wherein one data block is encrypted in each iteration; The encryption process includes sequentially performing nonlinear transformation, linear transformation, and XOR operation with a round key on the data block to obtain a ciphertext corresponding to the data block; According to the original connection order of the data blocks, the ciphertexts corresponding to multiple data blocks are combined.
[0020] Preferably, the specific execution process of the above embodiment is as follows: 1. Data preparation: Divide the data to be encrypted into 128-bit (16-byte) blocks. If the input data is not an integer multiple of 128 bits, padding is required. Generate a 128-bit key (K) that is calculated based on the device's unique identifier (such as the chip serial number or MAC address).
[0021] 2. Key expansion: The input key is processed through the round function, and the original 128-bit key is expanded into 32 round keys (K0 to K31). Each round key is also 128 bits, generating 32 round keys.
[0022] 3. Execute encryption: Divide the 128-bit input data (plaintext) into four 32-bit words (X0, X1, X2, X3) and perform an exclusive OR (XOR) operation using the first round key K0: ; In the next 32 rounds, the round key is used for encryption. Each round process includes nonlinear transformation of the current 4 words, linear transformation of the transformed words, and XOR operation of the transformed result with the current round key. The output between rounds will be used as the input of the next round, and 32 rounds of processing will be carried out in sequence. After completing 32 rounds of iterations, the last output (X0, X1, X2, X3) will be combined into a 128-bit ciphertext, i.e. the encrypted data; The generated ciphertext is stored in the specified storage medium, while the original plaintext data will not be saved, ensuring data security.
[0023] In another embodiment, the process of encrypting the feature information in the image file using the generated key includes: Create and initialize an array, perform an XOR operation on each element in the array with the key, and fill the array with the result of the XOR operation until the array is completely filled; Splitting the characteristic information into left and right parts, constructing multiple replacement boxes, respectively filling the data of the left and right parts into the multiple replacement boxes, and encrypting the characteristic information through an XOR operation of the array and the multiple replacement boxes; Arrange multiple replacement boxes in sequence according to the left-right order to obtain the corresponding ciphertext.
[0024] Preferably, the specific execution process of the above another embodiment is as follows: 1. Data segmentation: The characteristic information is processed in 64-bit (8-byte) blocks. If the input data is not an integer multiple of 64 bits, padding is required (common padding methods include PKCS7, etc.); 2. Initialization: For each 64-bit data block, first divide it into two parts, including the left half (i.e. the first 32 bits) and the right half (i.e. the last 32 bits); 3. Iterative encryption: The encryption process is divided into 16 rounds, each of which uses a different subkey. In each round of operation, the R part is input into the F function, and the operations performed by the F function include: dividing the 32-bit input into four 8-bit parts (X1, X2, X3, X4), using the S box (substitution box) to perform substitution operations on these four parts, each 8-bit value is converted into an 8-bit output through the S box, and then these four 8-bit outputs are combined and XORed to obtain the final 32-bit output; The final 32-bit outputs of the left and right parts are combined to obtain the ciphertext, and the generated ciphertext is stored in the target storage medium, while the original plaintext data is deleted.
[0025] S2. Use the current image ciphertext to match and compare with the pre-stored control image ciphertext to complete feature verification.
[0026] The encryption process of the current image ciphertext is the same as that of the comparison image ciphertext.
[0027] The pre-storage process of comparing the image ciphertext in step S2 includes: Acquire feature information in a comparison image, encrypt the feature information of the comparison image to obtain a comparison image ciphertext, and store the comparison image ciphertext in a database; After obtaining the ciphertext of the comparison image, the characteristic information of the comparison image is deleted.
[0028] Those of ordinary skill in the art will appreciate that the units and method steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0029] In the several embodiments provided in the present application, it should be understood that the disclosed methods and systems can be implemented in other ways. For example, the division of the units described above is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. The above-mentioned units may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiments of the present invention.
[0030] 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 aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents. These modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present invention, and they should all be included in the scope of the claims and specification of the present invention.
[0031] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. Information protection methods applied to biometric identification, It is characterized in that The steps include: Encrypting the characteristic information in the image file submitted by the user to obtain the current image ciphertext; wherein the characteristic information is encrypted by a unique key; The encryption process uses the first encryption strategy or the second encryption strategy; The first encryption strategy converts the feature information into ciphertext through key expansion, data block splitting and multiple rounds of iterative encryption processing; The second encryption strategy generates the corresponding ciphertext by initializing the array, XORing with the key, constructing the replacement box, and encrypting the left and right parts of the data; Use the current image ciphertext to match and compare with the pre-stored reference image ciphertext to complete feature verification; The encryption process of the current image ciphertext is the same as that of the comparison image ciphertext.
2. The information protection method for biometric identification according to claim 1, It is characterized in that The pre-storage process of the comparison image ciphertext includes: Acquire feature information in a comparison image, encrypt the feature information of the comparison image to obtain a comparison image ciphertext, and store the comparison image ciphertext in a database; After obtaining the ciphertext of the comparison image, the characteristic information of the comparison image is deleted.
3. The information protection method for biometric identification according to claim 1, It is characterized in that The process of generating the unique key includes: The unique identifier of the device where the image file is located is obtained, and the unique identifier is used for calculation to generate a unique key corresponding to the unique identifier.
4. The information protection method for biometric identification according to claim 1, It is characterized in that The execution process of the first encryption strategy includes: Expanding the key into multiple round keys through a round function, splitting the characteristic information into multiple data blocks, and iteratively processing the multiple data blocks using the round keys, wherein one data block is encrypted in each iteration; The encryption process includes sequentially performing nonlinear transformation, linear transformation, and XOR operation with a round key on the data block to obtain a ciphertext corresponding to the data block; According to the original connection order of the data blocks, the ciphertexts corresponding to the multiple data blocks are combined to obtain the corresponding ciphertexts.
5. The information protection method for biometric identification according to claim 1, It is characterized in that The execution process of the second encryption strategy includes: Create and initialize an array, perform an XOR operation on each element in the array with the key, and fill the array with the result of the XOR operation until the array is completely filled; Splitting the characteristic information into two parts, a left part and a right part, constructing a plurality of replacement boxes, respectively filling the data of the left part and the right part into the plurality of replacement boxes, and encrypting the characteristic information by performing an XOR operation between the array and the plurality of replacement boxes; Arrange multiple replacement boxes in sequence according to the left-right order to obtain the corresponding ciphertext.
Citation Information
Patent Citations
Data hybrid encryption method
CN108270565A
File encryption method with chaos-like characteristic
CN110677237A
Encrypted face feature matching method based on privacy protection
CN112308021A
Data matching method and system, identification equipment and image acquisition equipment
CN114880704A
Biological characteristic privacy encryption method and system based on palm print and palm vein recognition
CN114996727A
