Verification method, data processing method and device, electronic equipment and storage medium
By exchanging and comparing randomly generated biological information among multiple electronic devices, the device verification process is simplified, and the problem of complex verification in the prior art that may leak user privacy is solved, and a secure and convenient file transfer is achieved.
Patent Information
- Application Number
- CN202310602997.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-25
- Publication Date
- 2024-11-26
AI Technical Summary
In the prior art, the device verification process is complex and may lead to user privacy leakage, affecting the user experience, especially when verification is required when files are transferred between multiple electronic devices.
By exchanging randomly generated biological information between the first device and the second device and comparing it, it is determined whether the biological information has passed verification, and a key is generated for encryption and integrity protection, avoiding the transmission of real biological information, and simplifying the verification process .
Effectively protect user privacy, simplify the device verification process, improve user experience, and ensure the security and reliability of file transfers.
Smart Images

Figure CN119026101A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of electronics, and in particular to a verification method, a data processing method, a device, an electronic device and a storage medium. Background Art
[0002] With the continuous development of electronic technology and social economy, more and more electronic devices appear in people's lives. Based on this, more and more users own multiple electronic devices at the same time, for example, they own smart phones, tablets, smart TVs, and learning machines.
[0003] Based on this, in some cases, a user may need to transfer files between multiple electronic devices. Before transferring files, the two electronic devices transferring files need to be verified to ensure that both electronic devices transferring files are user devices to avoid privacy leakage.
[0004] However, the device verification process in the related art requires the user to input verification information or perform confirmation operations multiple times. The verification process is relatively complicated and may cause the leakage of user privacy, affecting the user experience. Summary of the invention
[0005] Embodiments of the present application provide a verification method, a data processing method, a device, an electronic device, and a storage medium.
[0006] According to a first aspect of an embodiment of the present application, a verification method is provided, which is performed by a first device, and the method includes:
[0007] Sending at least one first biometric information to be verified and randomly generated to a second device; wherein the first biometric information and the second biometric information are of the same type, and the first biometric information is used to compare with the second biometric information pre-stored in the second device to form a first comparison result;
[0008] receiving a first comparison result sent by the second device;
[0009] Comparing the at least one first biometric information with third biometric information pre-stored in the first device to obtain a second comparison result;
[0010] Based on the first comparison result and the second comparison result, it is determined whether the at least one first biometric information passes the verification.
[0011] Optionally, the method further includes:
[0012] Sending a first message to the second device, wherein the first message is used to notify the second device that the first biometric information has been verified;
[0013] receiving at least one fourth biometric information sent by the second device, wherein the at least one fourth biometric information is sent by the second device when receiving the first message and is randomly generated biometric information of the same type as the second biometric information;
[0014] comparing the fourth biological information with the third biological information to obtain a third comparison result;
[0015] The third comparison result is sent to the second device, wherein the third comparison result is used by the second device to determine whether the at least one fourth biometric information is verified.
[0016] Optionally, the method further includes:
[0017] A second message sent by the second device is received, wherein the second message is sent by the second device when it is determined that the fourth biometric information passes verification.
[0018] Optionally, the method further includes:
[0019] When it is determined that the first biometric information or the fourth biometric information passes the verification, a first key is generated based on a generation rule known to the second device; wherein the first key is used to encrypt and / or integrity protect information sent to the second device.
[0020] Optionally, generating the first key based on a generation rule known to both the second device and the second device includes:
[0021] Based on a generation rule known to both the second device and the first comparison result and / or the third comparison result, a first key is generated.
[0022] Optionally, the third biological information includes one of the following:
[0023] User’s facial information;
[0024] User's fingerprint information;
[0025] User's iris information;
[0026] User's voice information.
[0027] Optionally, determining whether the at least one first biometric information passes verification based on the first comparison result and the second comparison result includes:
[0028] Obtaining a similarity between the first comparison result and the second comparison result to obtain a first similarity;
[0029] If the first similarity is greater than a first threshold, it is determined that the at least one first biometric information passes the verification.
[0030] Optionally, the method further includes:
[0031] Acquire multiple biometric features of the third biometric information;
[0032] The at least one first biometric information is generated based on some of the multiple biometric features.
[0033] Optionally, the generating the at least one first biometric information based on some of the multiple biometric features includes:
[0034] generating a plurality of fifth biometric information based on some of the plurality of biometric features;
[0035] The fifth biological information having a second similarity with the third biological information greater than a second threshold is used as the first biological information.
[0036] A second aspect of the embodiments of the present application provides a verification method, which is performed by a second device, and includes:
[0037] receiving at least one first biometric information sent by a first device;
[0038] Comparing the at least one first biological information with the pre-stored second biological information to obtain a first comparison result;
[0039] The first comparison result is sent to the first device, wherein the first comparison result is used by the first device to determine whether at least one of the first biometric information has passed verification based on the first comparison result and a second comparison result, and the second comparison result is obtained by the first device comparing the first biometric information with a pre-stored third biometric information.
[0040] Optionally, the second biometric information includes one of the following:
[0041] User’s facial information;
[0042] User's fingerprint information;
[0043] User's iris information;
[0044] User's voice information.
[0045] Optionally, the method further includes:
[0046] receiving a first message sent by the first device, wherein the first message is sent by the first device when determining that the at least one first biometric information passes verification;
[0047] When it is determined based on the first message that the first biometric information has passed the verification, at least one fourth biometric information to be verified is compared with the second biometric information pre-stored in the second device to obtain a fourth comparison result.
[0048] Optionally, the method further includes:
[0049] sending the at least one fourth biometric information to the first device;
[0050] receiving a third comparison result sent by the first device, wherein the third comparison result is obtained by the first device comparing the at least one fourth biometric information with the third biometric information pre-stored in the first device;
[0051] Based on the third comparison result and the fourth comparison result, it is determined whether the at least one fourth biometric information passes the verification.
[0052] Optionally, the method further includes:
[0053] A second message is sent to the first device, wherein the second message is used to notify the first device that the fourth biometric information has passed verification.
[0054] Optionally, the method further includes:
[0055] When it is determined that the first biometric information or the fourth biometric information passes the verification, a first key is generated based on a generation rule known to the first device; wherein the first key is used to encrypt and / or integrity protect information sent to the first device.
[0056] Optionally, generating the first key based on a generation rule known to the first device includes:
[0057] Based on a generation rule known to the first device, a first key is generated according to the first comparison result and / or the third comparison result.
[0058] In a third aspect of the embodiments of the present application, a data processing method is provided, which is performed by a first device, and the method includes:
[0059] Verifying the identity information of the second device using the verification method described above;
[0060] Based on the passing result of the identity information verification, a connection is established with the second device.
[0061] Optionally, the method further comprises:
[0062] Based on the connection, encrypted data transmission is performed between the first device and the second device.
[0063] Optionally, the verifying the identity information of the second device by using the verification method described above includes:
[0064] When a data transmission requirement is detected, the identity information of the second device is verified using the verification method described above.
[0065] In a fourth aspect of the embodiments of the present application, a verification device is provided, the device comprising:
[0066] A first sending module, used for sending at least one first biometric information to be verified and randomly generated to a second device; wherein the first biometric information and the second biometric information are of the same type, and the first biometric information is used for comparison with the second biometric information pre-stored in the second device to form a first comparison result;
[0067] A first receiving module, used for receiving a first comparison result sent by the second device;
[0068] A first comparison module, used for comparing the at least one first biological information with third biological information pre-stored in the first device to obtain a second comparison result;
[0069] A first determination module is configured to determine whether the at least one first biometric information has passed verification based on the first comparison result and the second comparison result.
[0070] Optionally, the third biological information includes one of the following:
[0071] User’s facial information;
[0072] User's fingerprint information;
[0073] User's iris information;
[0074] User's voice information.
[0075] Optionally, the device further comprises:
[0076] A second sending module, configured to send a first message to the second device, wherein the first message is used to notify the second device that the first biometric information has passed verification;
[0077] A second receiving module is used to receive at least one fourth biometric information sent by the second device, wherein the at least one fourth biometric information is sent by the second device when receiving the first message and is randomly generated biometric information of the same type as the second biometric information;
[0078] A second comparison module, used for comparing the fourth biological information with the third biological information to obtain a third comparison result;
[0079] The third comparison result is sent to the second device, wherein the third comparison result is used by the second device to determine whether the at least one fourth biometric information is verified.
[0080] Optionally, the device further comprises:
[0081] The third receiving module is used to receive a second message sent by the second device, wherein the second message is sent by the second device when it is determined that the fourth biometric information has passed the verification.
[0082] Optionally, the device further comprises:
[0083] The first generation module is used to generate a first key based on a generation rule known to the second device when it is determined that the first biometric information or the fourth biometric information has passed the verification; wherein the first key is used to encrypt and / or integrity protect information sent to the second device.
[0084] Optionally, the first generating module is used to:
[0085] Based on a generation rule known to the second device, a first key is generated according to the first comparison result and / or the third comparison result.
[0086] Optionally, the first determining module is used to:
[0087] Obtaining a similarity between the first comparison result and the second comparison result to obtain a first similarity;
[0088] If the first similarity is greater than a first threshold, it is determined that the at least one first biometric information passes the verification.
[0089] Optionally, the device further comprises:
[0090] An acquisition module, used for acquiring a plurality of biological features of the third biological information;
[0091] The second generating module is used to generate the at least one first biological information based on some of the multiple biological features.
[0092] Optionally, the second generating module is used to:
[0093] generating a plurality of fifth biometric information based on some of the plurality of biometric features;
[0094] The fifth biological information having a second similarity with the third biological information greater than a second threshold is used as the first biological information.
[0095] In a fifth aspect of the embodiments of the present application, a verification device is provided, including:
[0096] a fourth receiving module, configured to receive at least one first biological information sent by the first device;
[0097] A third comparison module, used for comparing the at least one first biological information with the pre-stored second biological information to obtain a first comparison result;
[0098] A third sending module is used to send the first comparison result to the first device, wherein the first comparison result is used by the first device to determine whether at least one of the first biometric information has passed the verification based on the first comparison result and the second comparison result, and the second comparison result is obtained by the first device comparing the first biometric information with the pre-stored third biometric information.
[0099] Optionally, the second biometric information includes one of the following:
[0100] User’s facial information;
[0101] User's fingerprint information;
[0102] User's iris information;
[0103] User's voice information.
[0104] Optionally, the device further comprises:
[0105] a fifth receiving module, configured to receive a first message sent by the first device, wherein the first message is sent by the first device when determining that the at least one first biometric information passes verification;
[0106] The fourth comparison module is used to compare at least one fourth biometric information to be verified with the second biometric information pre-stored in the second device to obtain a fourth comparison result when it is determined based on the first message that the first biometric information has passed the verification.
[0107] Optionally, the device further comprises:
[0108] a fourth sending module, configured to send the at least one fourth biometric information to the first device;
[0109] a sixth receiving module, configured to receive a third comparison result sent by the first device, wherein the third comparison result is obtained by the first device comparing the at least one fourth biometric information with the third biometric information pre-stored in the first device;
[0110] The second determination module is used to determine whether the at least one fourth biological information passes the verification based on the third comparison result and the fourth comparison result.
[0111] Optionally, the device further comprises:
[0112] The fifth sending module is used to send a second message to the first device, wherein the second message is used to notify the first device that the fourth biometric information has passed the verification.
[0113] Optionally, the device further comprises:
[0114] The third generation module is used to generate a first key based on a generation rule known to the first device when it is determined that the first biometric information or the fourth biometric information has passed the verification; wherein the first key is used to encrypt and / or integrity protect the information sent to the first device.
[0115] Optionally, the third generating module is used to:
[0116] Based on a generation rule known to the first device, a first key is generated according to the first comparison result and / or the third comparison result.
[0117] A sixth method of an embodiment of the present application provides a data processing device, the device comprising:
[0118] A verification module, used to verify the identity information of the second device through the verification device described above;
[0119] A connection module is used to establish a connection with the second device based on a passing result of the identity information verification.
[0120] Optionally, the device further comprises:
[0121] A transmission module is used to perform encrypted data transmission between the first device and the second device based on the connection.
[0122] Optionally, the verification module is used to:
[0123] When a data transmission requirement is detected, the identity information of the second device is verified by the verification device described above.
[0124] According to a seventh aspect of the embodiments of the present application, an electronic device is provided, including:
[0125] a memory for storing processor-executable instructions;
[0126] A processor connected to the memory;
[0127] Wherein, the processor is used to execute any of the verification methods or data processing methods described above.
[0128] In an eighth aspect of the embodiments of the present application, a non-temporary computer-readable storage medium is provided. When the instructions in the storage medium are executed by the processor of the computer, the computer can execute any of the verification methods or data processing methods described above.
[0129] The technical solution provided by the embodiments of the present application may have the following beneficial effects:
[0130] In an embodiment of the present application, a first comparison result is obtained by comparing at least one first biometric information to be verified with second biometric information pre-stored in the second device, and a second comparison result is obtained by comparing at least one first biometric information to be verified with third biometric information pre-stored in the first device, and then determining whether the first biometric information has passed the verification based on the first comparison result and the second comparison result.
[0131] If the third biometric information stored in the first device and the second biometric information stored in the second device are the biometric information of the same user, it means that the second biometric information and the third biometric information are relatively close or the same. Therefore, the first comparison result obtained by comparing the first biometric information with the second biometric information and the second comparison result obtained by comparing the first biometric information with the third biometric information will be relatively close or the same. If the second biometric information and the third biometric information are the biometric information of different users, there will be a large difference between the second biometric information and the third biometric information. Therefore, the first comparison result and the second comparison result can be used to determine whether the first device and the second device are devices of the same user.
[0132] Since in the process of biometric information verification, the first biometric information transmitted between the first device and the second device is virtual biometric information, and the user's real biometric information is not transmitted, therefore, using the verification method of the embodiment of the present application to verify the device can avoid the leakage of user privacy during the verification process, so that user privacy is effectively protected.
[0133] In addition, during the device verification process, the first biometric information to be verified is generated by the first device itself, and the user's participation is not required during the entire device verification process. For the user, the verification process is more convenient and efficient, which improves the user experience.
[0134] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0135] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0136] Figure 1 is a schematic diagram of an application scenario of a verification method according to an exemplary embodiment;
[0137] Figure 2 is a flowchart of a verification method according to an exemplary embodiment;
[0138] Figure 3 is a flowchart of a verification method according to another exemplary embodiment;
[0139] Figure 4 is a flowchart of a verification method according to another exemplary embodiment;
[0140] Figure 5 is a flowchart of a verification method according to another exemplary embodiment;
[0141] Figure 6 is a flowchart of a verification method according to another exemplary embodiment;
[0142] Figure 7 is a flowchart of a verification method according to another exemplary embodiment;
[0143] Figure 8 is a flowchart of a data processing method according to an exemplary embodiment;
[0144] Fig. 9 is a schematic structural diagram of a verification device according to an exemplary embodiment;
[0145] Fig.10 is a schematic structural diagram of a verification device according to another exemplary embodiment;
[0146] Fig.11 is a structural schematic diagram of a data processing device according to another exemplary embodiment;
[0147] Fig.12 The diagram is a schematic structural diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0148] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the embodiments of the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the embodiments of the present application as detailed in the appended claims.
[0149] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the embodiments of the present application. The singular forms of "a", "said" and "the" used in the embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0150] It should be understood that, although the terms first, second, third, etc. may be used to describe various information in the embodiments of the present application, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the embodiments of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at..." or "when..." or "in response to determination".
[0151] Before explaining the embodiments of the present application in detail, the application scenarios involved in the embodiments of the present application are first explained.
[0152] refer to Figure 1 In an embodiment of the present application, the same biometric information can be stored in multiple electronic devices of the same user or multiple devices of the same device group. For example, facial images of the same user can be stored in multiple electronic devices of the same user or multiple devices of the same device group. Based on this, when one electronic device needs to share a file with other electronic devices, the reliability of the electronic device to receive the file can be verified by the verification method of the present application. If the verification method of the embodiment of the present application determines that the electronic device to receive the file is the electronic device of the same user, the file and other data can be shared between the devices to receive the file.
[0153] If it is determined through the verification method of the embodiment of the present application that the electronic device to receive the file is not an electronic device of the same user or the same device group as itself, it means that the electronic device to receive the file is not a reliable device, and the file and other data will not be shared with the device to receive the file to avoid data leakage.
[0154] For example, a facial image of user M is stored in electronic device A. Before electronic device A sends a file to electronic device B, the verification method of the embodiment of the present application can be used to verify electronic device B. When it is determined that electronic device B and electronic device A are both electronic devices of user M, electronic device A sends the file to electronic device B. If it is determined that electronic device B is not the electronic device of user M, the electronic device does not send the file to electronic device B to avoid leakage of the file content.
[0155] Similarly, when electronic device B needs to send a file to electronic device C, the verification method of the embodiment of the present application can also be used to first verify the reliability of electronic device C, and when it is determined that electronic device C and electronic device B are electronic devices of the same user, the file can be sent to electronic device C.
[0156] It should be noted that the above are only some exemplary application scenarios given in the embodiments of the present application, and do not constitute a limitation on the application scenarios of the psychological counseling content recommendation method provided in the embodiments of the present application.
[0157] refer to Figure 2 , Figure 2 is a flow chart of a verification method, such as Figure 2 As shown, the verification method of the embodiment of the present application includes:
[0158] S201: Sending at least one first biometric information to be verified and randomly generated to a second device; wherein the first biometric information and the second biometric information are of the same type, and the first biometric information is used to compare with the second biometric information pre-stored in the second device to form a first comparison result;
[0159] S202: Receive a first comparison result sent by the second device;
[0160] S203: Compare the at least one first biometric information with third biometric information pre-stored in the first device to obtain a second comparison result;
[0161] S204: Based on the first comparison result and the second comparison result, determine whether the at least one first biometric information passes verification.
[0162] The first device and the second device mentioned above may be electronic devices. Exemplarily, the first device and the second device may be mobile phones, tablet computers, laptop computers, desktop computers, smart TVs, smart watches, etc., which are not limited in the present application embodiment.
[0163] It should be noted that the first device and the second device mentioned above may be devices of the same type or devices of different types.
[0164] For example, the first device is a mobile phone, and the second device is a tablet computer, or both the first device and the second device are mobile phones.
[0165] Exemplarily, the first biometric information to be verified may be at least one first biometric information generated by a biometric information generation model installed by the first device when the first device determines that there is a need for data transmission with the second device, or may be at least one first biometric information obtained from a third device when it is determined that there is a need for data transmission with the second device.
[0166] For example, when the first device determines that there is a need for data transmission between the first device and the second device, it can send a request message to the third device and receive at least one first biometric information returned by the third device based on the request message.
[0167] The third device may be an electronic device with strong computing capability, for example, a server, a cloud service platform or a desktop computer.
[0168] In the embodiment of the present application, obtaining the first biometric information from the third device can reduce the occupation of the computing resources of the first device by the first biometric information generation process compared with the first device directly generating the first biometric information.
[0169] The third biometric information pre-stored in the first device is biometric information unique to the first device holder and collected from the first device holder.
[0170] For example, the collected facial image, fingerprint information, iris information of the first device holder, and the sound information when the first device holder reads the specified text.
[0171] Similarly, the second biometric information pre-stored in the second device is biometric information unique to the second device holder collected from the second device holder.
[0172] For example, the facial image, fingerprint information, iris information, and voice information of the second device holder are collected.
[0173] Based on this, when the holder of the first device and the holder of the second device are the same user, the third biometric information stored in the first device and the second biometric information stored in the second device are the biometric information of the same user.
[0174] For example, the second biometric information and the third biometric information are both face images of the same user, or the second biometric information and the third biometric information are both fingerprint information of the same finger of the same user.
[0175] When the first device holder and the second device holder are different users, the third biometric information stored in the first device and the second biometric information stored in the second device may be the same type of biometric information or different types of biometric information.
[0176] For example, the second biometric information is a collected face image of the second device holder, and the third biometric information is a collected face image of the first device holder. Alternatively, the second biometric information is a collected face image of the second device holder, and the third biometric information is a collected fingerprint information of the first device holder.
[0177] In one embodiment, before the first device obtains the first biometric information to be verified, the type of the third biometric information pre-stored in the first device may be determined, and at least one first biometric information of the same type as the third biometric information may be obtained.
[0178] Exemplarily, when the third biometric information pre-stored in the first device is a face image, the first biometric information generated by the first device or obtained from the third device is also a face image. When the third biometric information is the collected fingerprint information of the user, the first biometric information is also fingerprint information.
[0179] The first device and the third device mentioned above may use a face generation algorithm or a fingerprint generation algorithm to generate the first biometric information.
[0180] Exemplarily, GANs (Generative Adversarial Nets) are used to randomly generate multiple face images, or a Diffusion Model is used to generate multiple face images.
[0181] For the sake of convenience in the following description, the facial image generated by the first device or obtained by the first device from the third device is referred to as the first facial image, the facial image of the user pre-stored in the first device is referred to as the third facial image, the facial image of the user pre-stored in the second device is referred to as the second facial image, and the facial image generated by the second device or obtained by the second device from the third device is referred to as the fourth facial image.
[0182] It should be noted that when using a facial image generation algorithm to generate the first facial image, the resolution of the generated first facial image can be smaller than the resolution of the third facial image pre-stored in the first device. This can shorten the generation time of the first facial image, thereby shortening the verification time and improving verification efficiency.
[0183] Taking into account that different applications installed in the first device have different degrees of difficulty in obtaining different types of third biometric information, in one embodiment, different types of third biometric information can be pre-stored for different types of applications installed in the first device, and when it is determined that the first application in the first device has a data transmission requirement, the type of third biometric information corresponding to the first application is determined, and then, based on the determined type of the third biometric information, at least one first biometric information of the same type is generated, and the second device is verified through the generated first biometric information.
[0184] Exemplarily, when it is detected that the WeChat application installed on the first device has a data transmission requirement, and the third biometric information corresponding to the WeChat application stored in advance is the user's fingerprint information, at least one fingerprint information can be randomly generated as the first biometric information for verification of the second device.
[0185] In an embodiment of the present application, when the first device determines that there is a need for data transmission with the second device, at least one first biometric information is obtained, and the obtained first biometric information is sent to the second device, so that the second device can compare each first biometric information with the second biometric information pre-stored in the second device, and obtain a first comparison result based on the similarity between each first biometric information and the second biometric information.
[0186] In addition, after obtaining at least one first biometric information, the first device may also compare each first biometric information with the third biometric information stored in the first device, and obtain a second comparison result based on the similarity between each first biometric information and the third biometric information.
[0187] After receiving the first comparison result sent by the second device, the first device can determine whether the first biometric information passes the verification according to the difference between the first comparison result and the second comparison result.
[0188] Since the third biometric information stored in the first device and the second biometric information stored in the second device are the collected biometric information of the user, if the second biometric information and the third biometric information are the collected biometric information of the same part of the same user, then the second biometric information and the third biometric information are similar or identical biometric information. Based on this, the first comparison result obtained by comparing the first biometric information and the second biometric information will also be similar or identical to the second comparison result obtained by comparing the first biometric information and the third biometric information.
[0189] If the second biometric information and the third biometric information are biometric information of different users, there is a large difference between the second biometric information and the third biometric information. Therefore, the difference between the first comparison result obtained by comparing the first biometric information and the second biometric information and the second comparison result obtained by comparing the first biometric information and the third biometric information will also be large. Therefore, based on the difference between the first comparison result and the second comparison result, it can be determined whether the first device and the second device are devices of the same user.
[0190] Exemplarily, when the above-mentioned first biometric information is n first facial images randomly generated by the first device, and the third biometric information is a third facial image of the user, each first facial image can be compared with the third facial image through a face comparison algorithm to obtain the similarity between each first facial image and the third facial image.
[0191] Assuming that the similarity between the first face image and the third face image is S1, the similarity between the second face image and the third face image is S2, and the similarity between the nth first face image and the third face image is Sn, a second comparison result [S1 S2...Sn] can be obtained.
[0192] In addition, after sending the n first facial images to the second device, the second device will also compare each of the received n first facial images with a pre-stored second facial image to obtain a first comparison result [R1 R2...Rn].
[0193] At this time, the first device can determine whether the first biometric information is verified based on the difference between the first comparison result [R1 R2 ... Rn] and the corresponding second comparison result [S1S2 ... Sn], that is, determine whether the first device and the second device are devices of the same user.
[0194] When the difference between the first comparison result [R1 R2...Rn] and the second comparison result [S1 S2...Sn] is small, it means that the first device and the second device are devices of the same user, and at this time, it is determined that the first biometric information has passed the verification. When the difference between the first comparison result [R1 R2...Rn] and the second comparison result [S1 S2...Sn] is large, it means that the first device and the second device are devices of different users, and at this time, it is determined that the first biometric information has not passed the verification.
[0195] In an embodiment of the present application, a first comparison result is obtained by comparing at least one first biometric information to be verified with second biometric information pre-stored in the second device, and a second comparison result is obtained by comparing at least one first biometric information to be verified with third biometric information pre-stored in the first device, and then determining whether the first biometric information has passed the verification based on the first comparison result and the second comparison result.
[0196] If the third biometric information stored in the first device and the second biometric information stored in the second device are biometric information of the same user, the difference between the second biometric information and the third biometric information is small or no difference, therefore, the difference between the first comparison result obtained by comparing the first biometric information with the second biometric information and the second comparison result obtained by comparing the first biometric information with the third biometric information will also be small or no difference. If the second biometric information and the third biometric information are biometric information of different users, it means that there is a large difference between the second biometric information and the third biometric information, and there will also be a large difference between the first comparison result obtained by comparing the first biometric information with the second biometric information and the second comparison result obtained by comparing the first biometric information with the third biometric information. Therefore, the first comparison result and the second comparison result can be used to determine whether the first device and the second device are devices of the same user.
[0197] Since the first biometric information transmitted between the first device and the second device during the biometric information verification process is virtual biometric information, and the user's real biometric information is not transmitted, the verification method of the embodiment of the present application is used to perform reliability verification on the first device and the second device, which can avoid the leakage of user privacy during the verification process and effectively protect user privacy.
[0198] In addition, during the verification process, the first biometric information to be verified is generated by the first device itself, and the user's participation is not required during the entire verification process of the device. For the user, the verification process is more convenient and efficient, which improves the user experience.
[0199] In one embodiment, the third biological information includes one of the following:
[0200] User’s facial information;
[0201] User's fingerprint information;
[0202] User's iris information;
[0203] User's voice information.
[0204] It should be noted that the above only lists several types of third biometric information by way of example, and does not constitute a limitation on the third biometric information in the embodiments of the present application.
[0205] The third biometric information in the embodiment of the present application may also be other biometric information unique to the holder of the first device, such as palm print information, hand shape information or body shape information.
[0206] Exemplarily, the first device may update the stored third biometric information at preset time intervals.
[0207] For example, the first device may update the stored third biometric information every 1 month or 3 months.
[0208] refer to Figure 3 In one embodiment, the method further comprises:
[0209] S205: Sending a first message to the second device, wherein the first message is used to notify the second device that the first biometric information has passed verification;
[0210] S206: Receive at least one fourth biometric information sent by the second device, wherein the at least one fourth biometric information is sent by the second device when receiving the first message and is randomly generated biometric information of the same type as the second biometric information;
[0211] S207: Compare the fourth biological information with the third biological information to obtain a third comparison result;
[0212] S208: Send the third comparison result to the second device, wherein the third comparison result is used by the second device to determine whether the at least one fourth biometric information is verified.
[0213] In an embodiment of the present application, in order to improve the accuracy of verification, after the first device determines that the first biometric information has passed the verification, the first message is sent to the second device to let the second device know that the first biometric information has passed the verification.
[0214] Based on this, after the first device sends the first message, it can also receive the fourth biometric information returned by the second device based on the first message. At this time, the first device can compare each received fourth biometric information with the pre-stored third biometric information, and obtain the third comparison result based on the similarity between each fourth biometric information and the third biometric information.
[0215] After obtaining the third comparison result, the first device sends the third comparison result to the second device. After generating at least one fourth biometric information, the second device will compare the generated fourth biometric information with the pre-stored second biometric information, and generate a fourth comparison result based on the similarity between each fourth biometric information and the second biometric information, and then determine whether the fourth biometric information has passed the verification based on the third comparison result and the fourth comparison result.
[0216] Among them, the process of the second device acquiring the fourth biometric information can refer to the process of the first device acquiring the first biometric information, and the embodiments of the present application will not be repeated here.
[0217] The implementation process of the first device comparing the fourth biometric information and the third biometric information to generate a third comparison result, and the second device comparing the fourth biometric information and the second biometric information to generate a fourth comparison result can refer to the implementation process of the first device comparing the first biometric information and the third biometric information to generate the second comparison result, and the embodiments of the present application will not be repeated here.
[0218] In the embodiment of the present application, after the first device verifies the second device and determines that the second device and the first device are devices of the same user, the second device will also verify the first device in the same way to determine whether the first device and itself are devices of the same user. Since both the first device and the second device have verified each other, the accuracy of the verification can be further improved.
[0219] In one embodiment, the method further includes:
[0220] A second message sent by the second device is received, wherein the second message is sent by the second device when it is determined that the fourth biometric information passes verification.
[0221] When the second device determines that the fourth biometric information passes the verification based on the third comparison result and the fourth comparison result, the second message is sent to the first device.
[0222] Correspondingly, the first device will receive the second message sent by the fourth device. At this time, the first device can determine that the verification process has been completed and data transmission with the second device can be performed.
[0223] In one embodiment, the method further includes:
[0224] When it is determined that the first biometric information or the fourth biometric information passes the verification, a first key is generated based on a generation rule known to the second device; wherein the first key is used to encrypt and / or integrity protect information sent to the second device.
[0225] Exemplarily, when the first device determines that the first biometric information or the fourth biometric information passes verification, it can be determined that the second device and the first device are devices of the same user. At this time, the first device can generate a first key based on a key generation rule known to the second device, and save the first key.
[0226] It should be noted that the key generation rule known to both the first device and the second device may be a symmetric key generation algorithm or an asymmetric key generation algorithm, which is not limited in the embodiments of the present application.
[0227] Exemplarily, the key generation rules known to both the first device and the second device may be HKDF (hash-based message authentication code-based extract-and-expand key derivation function), MD5 (Message-Digest Algorithm), SHA256 (Secure Hash Algorithm 256) and PBKGF2 (Password-Based Key Derivation Function 2).
[0228] Among them, the specific implementation process of generating the first key based on the HKDF function, MD5 algorithm, SHA256 algorithm and PBKGF2 function can refer to the relevant technology, and the embodiments of this application will not be repeated here.
[0229] In one embodiment, after obtaining the first key, the first device stores the first key and the device identification of the second device correspondingly, and in subsequent data transmission, uses the first key to encrypt the transmitted data, or ensures the integrity of data transmission through the first key.
[0230] It should be noted that in the embodiment of the present application, it is not necessary to verify the second device before each data transmission. The second device can be verified once every preset time interval, and the stored first key can be updated after each verification.
[0231] In one embodiment, generating the first key based on a generation rule known to the second device includes:
[0232] Based on a generation rule known to the second device, a first key is generated according to the first comparison result and / or the third comparison result.
[0233] In an embodiment of the present application, if the verification between the first device and the second device is the verification of the second device by the first device, the first device can start data transmission between the first device and the second device after determining that the first biometric information has passed the verification based on the first comparison result and the second comparison result.
[0234] At this time, since both the first device and the second device know the first comparison result, the first device can use the first comparison result as the original key generation material to generate the first key through the HKDF function, MD5 algorithm, SHA256 algorithm or PBKGF2 function.
[0235] Exemplarily, when the first device receives the first comparison result of [R1 R2...Rn], it uses [R1 R2...Rn] as the original key generation material to generate the first key through the HKDF function, the MD5 algorithm, the SHA256 algorithm or the PBKGF2 function.
[0236] If the first device receives the fourth biometric information sent by the second device after determining that the first biometric information has passed the verification, the first device will also generate a third comparison result based on the similarity between the fourth biometric information and the third biometric information stored in the first device. At this time, the first device can first splice at least part of the first comparison result and at least part of the third comparison result, and use the spliced first comparison result and the third comparison result as the original key generation material, and generate the first key through the HKDF function, MD5 algorithm, SHA256 algorithm or PBKGF2 function.
[0237] It should be noted that the implementation process of generating the first key by using the first comparison result, or the concatenated first comparison result and the third comparison result as the original key generation material through the HKDF function, MD5 algorithm, SHA256 algorithm or PBKGF2 function can refer to the relevant technology, and the embodiments of the present application will not be repeated here.
[0238] In one embodiment, determining whether the at least one first biometric information is verified based on the first comparison result and the second comparison result includes:
[0239] Obtaining a similarity between the first comparison result and the second comparison result to obtain a first similarity;
[0240] If the first similarity is greater than a first threshold, it is determined that the at least one first biometric information passes the verification.
[0241] Exemplarily, after obtaining the first comparison result and the second comparison result, the similarity between the first comparison result and the second comparison result may be determined by using cosine similarity to obtain a first similarity.
[0242] If the first similarity is less than or equal to the first threshold, it means that the difference between the first comparison result and the second comparison result is large, which further indicates that the first device and the second device are not devices of the same user. At this time, it is determined that the first biometric information has not passed the verification.
[0243] If the first similarity is greater than the first threshold, it means that the difference between the first comparison result and the second comparison result is small or there is no difference, which further indicates that the first device and the second device are devices of the same user. At this time, it is determined that the first biometric information has passed the verification.
[0244] The first threshold mentioned above can be set as needed, for example, to any value between 0.8-0.95.
[0245] For example, when the first comparison result is [S1 S2…Sn] and the second comparison result is [R1 R2…Rn], when the first similarity between [S1 S2…Sn] or [R1 R2…Rn] calculated by cosine similarity is 0.9, if the first threshold is 0.85, it is determined that the first device and the second device are devices of the same user, and then it is determined that the first biometric information has passed the verification.
[0246] Illustratively, after obtaining the first comparison result and the second comparison result, the difference between each item in the first comparison result and each item in the second comparison result may be calculated to obtain at least one first difference.
[0247] The maximum difference among at least one first difference is compared with the third threshold. If the maximum difference among at least one first difference is greater than or equal to the third threshold, it is determined that the difference between the first comparison result and the second comparison result is large. At this time, it can be determined that the first device and the second device are devices of different users, and then it is determined that the first biometric information has not passed the verification.
[0248] If the maximum difference among at least one first difference is less than the third threshold, it is determined that the difference between the first comparison result and the second comparison result is small. At this time, it can be determined that the first device and the second device are devices of the same user, and then it is determined that the first biometric information has passed the verification.
[0249] For example, when the first comparison result is [S1 S2...Sn] and the second comparison result is [R1 R2...Rn], the difference between S1 and R1 can be calculated, the difference between S2 and R2 can be calculated, and so on, and n first differences can be obtained. Afterwards, the first difference with the largest value among the n first differences is compared with the third threshold value. If the largest first difference among the n first differences is greater than the third threshold value, it is determined that the difference between the first comparison result and the second comparison result is large. If the largest first difference among the n first differences is less than or equal to the third threshold value, it is determined that the difference between the first comparison result and the second comparison result is small.
[0250] Exemplarily, the similarity between each feature point in the first facial image and the corresponding feature point in the third facial image pre-stored in the first device can also be obtained to obtain multiple third similarities. After that, the third similarities greater than a fourth threshold are set to 1, and the third similarities less than or equal to the fourth threshold are set to 0. At this time, the first device can obtain a biological organism including multiple binary numbers, and can use the first sequence as the second comparison result.
[0251] For example, the mouth shape in the first facial image is compared with the mouth shape in the third facial image stored in the first device. When the similarity between the mouth shape in the first facial image and the mouth shape in the third facial image is greater than a fourth threshold, the sequence value corresponding to the mouth shape of the face in the first sequence is set to 1; when the similarity between the mouth shape in the first facial image and the mouth shape in the third facial image is less than or equal to the fourth threshold, the sequence value corresponding to the mouth shape of the face in the first sequence is set to 0.
[0252] By comparing the first face image with the second face image stored in the second device in the above manner, a second sequence number can be obtained, and the second sequence number is used as the first comparison result.
[0253] At this time, it can be determined whether the first device and the second device are devices of the same user by comparing the difference between the first sequence and the second sequence.
[0254] The fourth threshold value can be set as needed, for example, to any value between 0.8 and 0.9.
[0255] In one embodiment, the method further includes:
[0256] Acquire multiple biometric features of the third biometric information;
[0257] The at least one first biometric information is generated based on some of the multiple biometric features.
[0258] Considering that if the multiple first biometric information generated by the first device or the third device is not similar to the second biometric information and the third biometric information, it will affect the accuracy of the verification. Therefore, in the embodiment of the present application, when the first device or the third device generates the first biometric information, multiple biometric features can be first extracted from the third biometric information pre-stored in the first device, and then at least one first biometric information is generated based on some of the biometric features extracted from the third biometric information, so that each of the at least one first biometric information obtained includes some of the biometric features of the third biometric information.
[0259] Based on this, when each first biometric information is compared with the third biometric information, the second comparison results obtained are all non-zero values. At this time, if the second biometric information and the third biometric information are the biometric information of the same user, each first biometric information is compared with the second biometric information, and the first comparison results obtained are also all non-zero values. If the second biometric information and the third biometric information are the biometric information of different users, since the biometric features included in the second biometric information are different from the biometric features included in the first biometric information, at this time, when the first biometric information is compared with the second biometric information, the first comparison result obtained may have a value of 0, thereby increasing the difference between the first comparison result and the second comparison result.
[0260] It can be seen that generating the first biometric information based on the biometric features extracted from the third biometric information can improve the accuracy of verification.
[0261] Among them, the implementation method of extracting biometric features from the third biometric information can refer to related technologies, and the embodiments of the present application will not be repeated here.
[0262] Exemplarily, when the third biometric information is a pre-stored face image of a user, the biometric features extracted from the third biometric information include:
[0263] The user's face size, the size, position and color characteristics of each organ on the face, etc.
[0264] For example, the size of the eyes in a face image, the distance between the two eyes, and the position information of the two glasses in the face.
[0265] In one embodiment, the generating the at least one first biometric information based on some of the multiple biometric features includes:
[0266] generating a plurality of fifth biometric information based on some of the plurality of biometric features;
[0267] The fifth biological information having a second similarity with the third biological information greater than a second threshold is used as the first biological information.
[0268] Exemplarily, based on multiple biometric features extracted from the third biometric information, multiple first face images can be generated through a face generation model, and each first face image in the multiple first face images can be used as a fifth biometric information to obtain multiple fifth biometric information.
[0269] Afterwards, a second similarity between each generated first facial image and a third facial image of the user pre-stored in the first device is calculated, and a face with a second similarity greater than a second threshold is used as the first biometric information.
[0270] The second threshold mentioned above can also be set as needed, for example, greater than any value between 0.5-0.9.
[0271] In the embodiment of the present application, by using the fifth biometric information whose second similarity with the third biometric information is greater than the second threshold as the first biometric information, the first biometric information obtained can include more biometric features that are the same as the third biometric information. Based on this, when each first biometric information is compared with the third biometric information, the second similarity in the second comparison result obtained will be larger. At this time, if the second device and the first-hand device are not devices of the same user, the second similarity of the first comparison result obtained by comparing the first biometric information with the second biometric information will be smaller. In this way, when the first device and the second device are devices of different users, the difference between the first comparison result and the second comparison result can be increased, thereby improving the accuracy of verification.
[0272] refer to Figure 4 , the embodiment of the present application also provides a verification method, the method comprising:
[0273] S401: receiving at least one first biometric information sent by a first device;
[0274] S402: Compare the at least one first biological information with the pre-stored second biological information to obtain a first comparison result;
[0275] S403: Send the first comparison result to the first device, wherein the first comparison result is used by the first device to determine whether at least one of the first biometric information has passed verification based on the first comparison result and a second comparison result, and the second comparison result is obtained by the first device comparing the first biometric information with pre-stored third biometric information.
[0276] Among them, the second device compares the received at least one first biometric information with the second biometric information to obtain the first comparison result. The implementation method can refer to the above-mentioned first device comparing at least one first biometric information with the third biometric information to obtain the second comparison result. The embodiments of the present application will not be repeated here.
[0277] In one embodiment, the second biometric information includes one of the following:
[0278] User’s facial information;
[0279] User's fingerprint information;
[0280] User's iris information;
[0281] User's voice information.
[0282] The above lists only several implementation methods of the second biometric information by way of example, and do not constitute a limitation on the second biometric information in the embodiments of the present application.
[0283] The second biometric information of the embodiment of the present application may also be other biometric information unique to the holder of the second device, such as palm print information, hand shape information or body shape information.
[0284] refer to Figure 5 In one embodiment, the method further comprises:
[0285] S404: Receive a first message sent by the first device, wherein the first message is sent by the first device when determining that the at least one first biometric information passes verification;
[0286] S405: When it is determined based on the first message that the first biometric information passes the verification, at least one fourth biometric information to be verified is compared with the second biometric information pre-stored in the second device to obtain a fourth comparison result.
[0287] In the embodiment of the present application, when the second device receives the first message sent by the first device, it can determine that the first biometric information has passed the verification based on the first message, that is, the first device determines that the second device and itself are devices of the same user. At this time, in order to improve the accuracy of the verification, the second device will generate or obtain at least one fourth biometric information from the third device, and compare each fourth biometric information in the at least one fourth biometric information obtained with the second biometric information pre-stored in the second device to obtain a fourth comparison result.
[0288] Among them, the implementation process of the second device generating the fourth biometric information or obtaining the fourth biometric information from the third device can refer to the implementation process of the first device generating the first biometric information or obtaining the first biometric information from the third device, and the embodiments of the present application will not be repeated here.
[0289] In addition, the implementation process of the second device obtaining the fourth comparison result by comparing each fourth biometric information with the pre-stored second biometric information can refer to the implementation process of the first device obtaining the second comparison result by comparing each first biometric information with the pre-stored third biometric information, and the embodiments of the present application will not be repeated here.
[0290] refer to Figure 6 In one embodiment, the method further comprises:
[0291] S406: Sending the at least one fourth biometric information to the first device;
[0292] S407: receiving a third comparison result sent by the first device, wherein the third comparison result is obtained by the first device comparing the at least one fourth biometric information with the third biometric information pre-stored in the first device;
[0293] S408: Based on the third comparison result and the fourth comparison result, determine whether the at least one fourth biometric information passes the verification.
[0294] Exemplarily, after obtaining at least one fourth biometric information, the second device can also send the obtained fourth biometric information to the first device, so that the first device can compare each fourth biometric information in the at least one fourth biometric information received with the third biometric information, obtain a third comparison result, and send the third comparison result to the second device.
[0295] Accordingly, the second device can receive the third comparison result sent by the first device, and determine whether the fourth biometric information is verified based on the third comparison result and the fourth comparison result, and further determine whether the first device and the second device are devices of the same user.
[0296] Among them, the implementation process of the second device determining whether the fourth biometric information has passed the verification based on the third comparison result and the fourth comparison result can refer to the implementation process of the first device determining whether the first biometric information has passed the verification based on the first comparison result and the second comparison result, and the embodiments of the present application will not be repeated here.
[0297] In the embodiment of the present application, after the first device verifies the second device and determines that the second device and the first device are devices of the same user, the second device will also verify the first device in the same way to determine whether the first device and itself are devices of the same user. Since both the first device and the second device have verified each other, the accuracy of the verification can be further improved.
[0298] In one embodiment, the method further includes:
[0299] A second message is sent to the first device, wherein the second message is used to notify the first device that the fourth biometric information has passed verification.
[0300] In the embodiment of the present application, after the second device determines that the first device and the second device are devices of the same user, it will send a second message to the first device. Based on the second message, the first device can determine that the fourth biometric information has also passed the verification. At this time, the second device and the first device can transmit data.
[0301] In one embodiment, the method further includes:
[0302] When it is determined that the first biometric information or the fourth biometric information passes the verification, a first key is generated based on a generation rule known to the first device; wherein the first key is used to encrypt and / or integrity protect information sent to the first device.
[0303] In one embodiment, generating the first key based on a generation rule known to the first device includes:
[0304] Based on a generation rule known to the first device, a first key is generated according to the first comparison result and / or the third comparison result.
[0305] refer to Figure 7 , the embodiment of the present application also provides a verification method, including:
[0306] Taking the face as an example, the user wants his mobile phone and tablet to authenticate their identities to complete the interconnection. The prerequisite is that the face image is pre-stored in both the mobile phone and the tablet. When the mobile phone initiates a verification request to the tablet, the specific process is as follows:
[0307] S701: The mobile phone will randomly generate n virtual first face images [f1 f2 f3…fn];
[0308] S702: calling a face comparison algorithm to compare the generated n first face images with the face images pre-stored in the mobile phone to obtain [S1 S2...Sn];
[0309] S703: The mobile phone sends the virtual first face image [f1 f2 f3…fn] to the tablet computer in a certain random sequence;
[0310] S704: After receiving the virtual synthetic face image [f1 f2 f3 ... fn], the tablet computer also calls the same face comparison algorithm to compare it with the pre-stored face image to obtain [R1 R2 ... Rn];
[0311] S705: The tablet returns [R1 R2…Rn] to the mobile phone;
[0312] S706: The mobile phone compares the two sets of data [S1 S2 ... Sn] and [R1 R2 ... Rn]. If the cosine similarity between [S1S2 ... Sn] and [R1 R2 ... Rn] is greater than the first threshold, the mobile phone considers that the face image in the tablet computer matches the face image stored in the mobile phone, and the identity authentication of the tablet computer by the mobile phone is completed;
[0313] S707: The mobile phone uses [R1 R2...Rn] as the raw material token1 for generating the key.
[0314] The tablet can use the same process to complete the identity authentication of the mobile phone and obtain the mobile phone's token2. At this point, the two devices have completed mutual authentication, and then an encrypted channel can be established to complete the connection between the devices.
[0315] After the mobile phone and tablet complete the token exchange, a certain key generation algorithm key = gen (token1, token2) can be used to generate the first key. The first key generated above can be used as a symmetric key for subsequent encrypted transmission. The face generation algorithm can use the GANs algorithm or the Diffusion Model. Considering the generation efficiency, the resolution of the generated image can be appropriately reduced to increase the speed of face generation.
[0316] Mobile phones and tablets can authenticate each other simply by comparing a series of random virtual faces, without the need to transmit their real facial feature information to each other.
[0317] refer to Figure 8 The embodiment of the present application further provides a data processing method, which is executed by a first device, and the method includes:
[0318] S801: Verify the identity information of the second device using the verification method provided by any of the above technical solutions;
[0319] S802: Establishing a connection with the second device based on the passing result of the identity information verification.
[0320] The connection established between the first device and the second device may be a short-distance communication connection, such as a Bluetooth connection or a WiFi (WIreless Fidelity) connection, or a long-distance communication connection, such as a mobile communication connection.
[0321] The first device and the second device may be different devices of the same user, or the first device and the second device may be devices of a friend or relative, or the first device and the second device may be devices of the same device group.
[0322] Exemplarily, the first device may be a user's mobile phone and the second device may be a user's tablet computer; or, the first device is a user's tablet computer and the second device is the user's mobile phone, etc.
[0323] In the application embodiment, S801 verifies the identity information of the second device, which may include but is not limited to at least one of the following operations:
[0324] Sending at least one first biometric information to be verified and randomly generated to a second device; wherein the first biometric information and the second biometric information are of the same type, and the first biometric information is used to compare with the second biometric information pre-stored in the second device to form a first comparison result;
[0325] receiving a first comparison result sent by the second device;
[0326] Comparing the at least one first biometric information with third biometric information pre-stored in the first device to obtain a second comparison result;
[0327] Based on the first comparison result and the second comparison result, it is determined whether the at least one first biometric information passes the verification.
[0328] In the specific implementation process, 801 can also be used as follows Figures 2 to 7 Any one of the verification methods described above performs information verification on the second device.
[0329] In one embodiment, the method further comprises:
[0330] Based on the connection, encrypted data transmission is performed between the first device and the second device.
[0331] After determining that the first device and the second device are connected, the transmitted data may also be encrypted by the first key. Since the first key is generated using the first comparison result and / or the third comparison result as raw materials, the first device and the second device both know the first comparison result and the third comparison result.
[0332] Therefore, after receiving the data sent by the first device, the second device can decrypt the received data based on the first comparison result and / or the third comparison result, so as to ensure the security of data transmission.
[0333] In one embodiment, the verifying the identity information of the second device by the verification method described above includes:
[0334] When a data transmission requirement is detected, the identity information of the second device is verified using the verification method described above.
[0335] In the embodiment of the present application, when it is determined that there is a need for data transmission between the first device and the second device, the identity information of the second device can be verified by the above-mentioned verification method, and when the verification result based on the identity information verification passes, it means that the second device is a device that can transmit data, or it is confirmed that the second device and the first device are devices of the same user. At this time, a connection can be established with the second device. Afterwards, the data transmitted between the first device and the second device is encrypted by the first key obtained after the verification is completed.
[0336] Exemplarily, when a user sends or shares a file stored in a first device, or sends a message to a second device, it is determined that there is a need for data transmission between the first device and the second device. At this time, the identity information of the second device can be verified by the above verification method, and when it is determined that the second device passes the identity information verification, a connection is established with the second device. Afterwards, the sent file or message is encrypted using the first key obtained after the verification is completed.
[0337] refer to Fig. 9 The present application also provides a verification device, the device comprising:
[0338] A first sending module 901 is used to send at least one first biometric information to be verified and randomly generated to a second device; wherein the first biometric information and the second biometric information are of the same type, and the first biometric information is used to compare with the second biometric information pre-stored in the second device to form a first comparison result;
[0339] A first receiving module 902, configured to receive a first comparison result sent by the second device;
[0340] A first comparison module 903, configured to compare the at least one first biometric information with third biometric information pre-stored in the first device to obtain a second comparison result;
[0341] The first determination module 904 is configured to determine whether the at least one first biometric information has passed verification based on the first comparison result and the second comparison result.
[0342] Optionally, the device further comprises:
[0343] A second sending module, configured to send a first message to the second device, wherein the first message is used to notify the second device that the first biometric information has passed verification;
[0344] A second receiving module is used to receive at least one fourth biometric information sent by the second device, wherein the at least one fourth biometric information is sent by the second device when receiving the first message and is randomly generated biometric information of the same type as the second biometric information;
[0345] A second comparison module, used for comparing the fourth biological information with the third biological information to obtain a third comparison result;
[0346] The third comparison result is sent to the second device, wherein the third comparison result is used by the second device to determine whether the at least one fourth biometric information is verified.
[0347] Optionally, the device further comprises:
[0348] The third receiving module is used to receive a second message sent by the second device, wherein the second message is sent by the second device when it is determined that the fourth biometric information has passed the verification.
[0349] Optionally, the device further comprises:
[0350] The first generation module is used to generate a first key based on a generation rule known to the second device when it is determined that the first biometric information or the fourth biometric information has passed the verification; wherein the first key is used to encrypt and / or integrity protect information sent to the second device.
[0351] Optionally, the first generating module is used to:
[0352] Based on a generation rule known to both the second device and the first comparison result and / or the third comparison result, a first key is generated.
[0353] Optionally, the third biological information includes one of the following:
[0354] User’s facial information;
[0355] User's fingerprint information;
[0356] User's iris information;
[0357] User's voice information.
[0358] Optionally, the first determining module is used to:
[0359] Obtaining a similarity between the first comparison result and the second comparison result to obtain a first similarity;
[0360] If the first similarity is greater than a first threshold, it is determined that the at least one first biometric information passes the verification.
[0361] Optionally, the device further comprises:
[0362] An acquisition module, used for acquiring a plurality of biological features of the third biological information;
[0363] The second generating module is used to generate the at least one first biological information based on some of the multiple biological features.
[0364] Optionally, the second generating module is used to:
[0365] generating a plurality of fifth biometric information based on some of the plurality of biometric features;
[0366] The fifth biological information having a second similarity with the third biological information greater than a second threshold is used as the first biological information.
[0367] refer to Fig.10 , Fig.10 Another verification device is provided, the device comprising:
[0368] The fourth receiving module 1001 is used to receive at least one first biological information sent by the first device;
[0369] The third comparison module 1002 is used to compare the at least one first biological information with the pre-stored second biological information to obtain a first comparison result;
[0370] The third sending module 1003 is used to send the first comparison result to the first device, wherein the first comparison result is used by the first device to determine whether at least one of the first biometric information has passed the verification based on the first comparison result and the second comparison result, and the second comparison result is obtained by the first device comparing the first biometric information with the pre-stored third biometric information.
[0371] Optionally, the device further comprises:
[0372] a fifth receiving module, configured to receive a first message sent by the first device, wherein the first message is sent by the first device when determining that the at least one first biometric information passes verification;
[0373] The fourth comparison module is used to compare at least one fourth biometric information to be verified with the second biometric information pre-stored in the second device to obtain a fourth comparison result when it is determined based on the first message that the first biometric information has passed the verification.
[0374] Optionally, the device further comprises:
[0375] a fourth sending module, configured to send the at least one fourth biometric information to the first device;
[0376] a sixth receiving module, configured to receive a third comparison result sent by the first device, wherein the third comparison result is obtained by the first device comparing the at least one fourth biometric information with the third biometric information pre-stored in the first device;
[0377] The second determination module is used to determine whether the at least one fourth biological information passes the verification based on the third comparison result and the fourth comparison result.
[0378] Optionally, the device further comprises:
[0379] The fifth sending module is used to send a second message to the first device, wherein the second message is used to notify the first device that the fourth biometric information has passed the verification.
[0380] Optionally, the device further comprises:
[0381] The third generation module is used to generate a first key based on a generation rule known to the first device when it is determined that the first biometric information or the fourth biometric information has passed the verification; wherein the first key is used to encrypt and / or integrity protect the information sent to the first device.
[0382] Optionally, the third generating module is used to:
[0383] Based on a generation rule known to the first device, a first key is generated according to the first comparison result and / or the third comparison result.
[0384] Optionally, the second biometric information includes one of the following:
[0385] User’s facial information;
[0386] User's fingerprint information;
[0387] User's iris information;
[0388] User's voice information.
[0389] refer to Fig.11, an embodiment of the present application provides a data processing device, the device comprising:
[0390] Verification module 1101, used to verify the identity information of the second device through the verification device described above;
[0391] The connection module 1102 is used to establish a connection with the second device based on the passing result of the identity information verification.
[0392] Optionally, the device further comprises:
[0393] A transmission module is used to perform encrypted data transmission between the first device and the second device based on the connection.
[0394] Optionally, the verification module is used to:
[0395] When a data transmission requirement is detected, the identity information of the second device is verified by the verification device described above.
[0396] refer to Fig.12 In an embodiment of the present application, an electronic device 1100 is provided. The electronic device 1200 is the first device or the second device mentioned above. The electronic device includes:
[0397] Memory 1204 for storing processor executable instructions;
[0398] A processor 1220 connected to the memory 1204;
[0399] The processor 1220 is configured to execute the verification method provided by any of the aforementioned technical solutions.
[0400] A block diagram of an electronic device 1200 is shown according to an exemplary embodiment. For example, the electronic device 1200 may be a mobile phone, a tablet computer, a notebook computer, a portable learning machine, etc.
[0401] refer to Fig.12 , the electronic device 1200 may include one or more of the following components: a processing component 1202 , a memory 1204 , a power component 1206 , a multimedia component 1208 , an audio component 1210 , an input / output (I / O) interface 1212 , a sensor component 1214 , and a communication component 1218 .
[0402] The processing component 1202 generally controls the overall operation of the electronic device 1200, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 1202 may include one or more processors 1220 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 1202 may include one or more modules to facilitate the interaction between the processing component 1202 and other components. For example, the processing component 1202 may include a multimedia module to facilitate the interaction between the multimedia component 1208 and the processing component 1202.
[0403] The memory 1204 is configured to store various types of data to support operations on the electronic device 1200. Examples of such data include instructions for any application or method operating on the electronic device 1200, contact data, phone book data, messages, pictures, videos, etc. The memory 1204 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0404] The power supply component 1206 provides power to the various components of the electronic device 1200. The power supply component 1206 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 1200.
[0405] The multimedia component 1208 includes a screen that provides an output interface between the electronic device 1200 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 1208 includes a front camera and / or a rear camera. When the electronic device 1200 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0406] The audio component 1210 is configured to output and / or input audio signals. For example, the audio component 1210 includes a microphone (MIC), and when the electronic device 1200 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 1204 or sent via the communication component 1218. In some embodiments, the audio component 1210 also includes a speaker for outputting audio signals.
[0407] I / O interface 1212 provides an interface between processing component 1202 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.
[0408] The sensor assembly 1214 includes one or more sensors for providing various aspects of status assessment for the electronic device 1200. For example, the sensor assembly 1214 can detect the open / closed state of the electronic device 1200, the relative positioning of components, such as the display and keypad of the electronic device 1200, and the sensor assembly 1214 can also detect the position change of the electronic device 1200 or a component of the electronic device 1200, the presence or absence of user contact with the electronic device 1200, the orientation or acceleration / deceleration of the electronic device 1200, and the temperature change of the electronic device 1200. The sensor assembly 1214 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 1214 may also include an optical sensor, such as a CMOS or CCD biometric information sensor, for use in imaging applications. In some embodiments, the sensor assembly 1214 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0409] The communication component 1218 is configured to facilitate wired or wireless communication between the electronic device 1200 and other devices. The electronic device 1200 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 1218 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1218 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0410] In an exemplary embodiment, the electronic device 1200 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.
[0411] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 1204 including instructions, and the instructions can be executed by a processor 1220 of the electronic device 1200 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0412] An embodiment of the present application provides a non-temporary computer-readable storage medium. When the instructions in the storage medium are executed by a processor of a computer, the computer can execute the verification method or data processing method described in one or more of the aforementioned technical solutions.
[0413] When the processor executes the instruction, it can at least perform the following steps:
[0414] Sending at least one first biometric information to be verified and randomly generated to a second device; wherein the first biometric information and the second biometric information are of the same type, and the first biometric information is used to compare with the second biometric information pre-stored in the second device to form a first comparison result;
[0415] receiving a first comparison result sent by the second device;
[0416] Comparing the at least one first biometric information with third biometric information pre-stored in the first device to obtain a second comparison result;
[0417] Based on the first comparison result and the second comparison result, it is determined whether the at least one first biometric information passes the verification.
[0418] Optionally, the method further includes:
[0419] Sending a first message to the second device, wherein the first message is used to notify the second device that the first biometric information has been verified;
[0420] receiving at least one fourth biometric information sent by the second device, wherein the at least one fourth biometric information is sent by the second device when receiving the first message and is randomly generated biometric information of the same type as the second biometric information;
[0421] comparing the fourth biological information with the third biological information to obtain a third comparison result;
[0422] The third comparison result is sent to the second device, wherein the third comparison result is used by the second device to determine whether the at least one fourth biometric information is verified.
[0423] Optionally, the method further includes:
[0424] A second message sent by the second device is received, wherein the second message is sent by the second device when it is determined that the fourth biometric information passes verification.
[0425] Optionally, the method further includes:
[0426] When it is determined that the first biometric information or the fourth biometric information passes the verification, a first key is generated based on a generation rule known to the second device; wherein the first key is used to encrypt and / or integrity protect information sent to the second device.
[0427] Optionally, generating the first key based on a generation rule known to both the second device and the second device includes:
[0428] Based on a generation rule known to the second device, a first key is generated according to the first comparison result and / or the third comparison result.
[0429] Optionally, the third biological information includes one of the following:
[0430] User’s facial information;
[0431] User's fingerprint information;
[0432] User's iris information;
[0433] User's voice information.
[0434] Optionally, determining whether the at least one first biometric information passes verification based on the first comparison result and the second comparison result includes:
[0435] Obtaining a similarity between the first comparison result and the second comparison result to obtain a first similarity;
[0436] If the first similarity is greater than a first threshold, it is determined that the at least one first biometric information passes the verification.
[0437] Optionally, the method further includes:
[0438] Acquire multiple biometric features of the third biometric information;
[0439] The at least one first biometric information is generated based on some of the multiple biometric features.
[0440] Optionally, the generating the at least one first biometric information based on some of the multiple biometric features includes:
[0441] generating a plurality of fifth biometric information based on some of the plurality of biometric features;
[0442] The fifth biological information having a second similarity with the third biological information greater than a second threshold is used as the first biological information.
[0443] When the processor executes the instruction, it can at least perform the following steps:
[0444] receiving at least one first biometric information sent by a first device;
[0445] Comparing the at least one first biological information with the pre-stored second biological information to obtain a first comparison result;
[0446] The first comparison result is sent to the first device, wherein the first comparison result is used by the first device to determine whether at least one of the first biometric information has passed verification based on the first comparison result and a second comparison result, and the second comparison result is obtained by the first device comparing the first biometric information with a pre-stored third biometric information.
[0447] Optionally, the second biometric information includes one of the following:
[0448] User’s facial information;
[0449] User's fingerprint information;
[0450] User's iris information;
[0451] User's voice information.
[0452] Optionally, the method further includes:
[0453] receiving a first message sent by the first device, wherein the first message is sent by the first device when determining that the at least one first biometric information passes verification;
[0454] When it is determined based on the first message that the first biometric information has passed the verification, at least one fourth biometric information to be verified is compared with the second biometric information pre-stored in the second device to obtain a fourth comparison result.
[0455] Optionally, the method further includes:
[0456] sending the at least one fourth biometric information to the first device;
[0457] receiving a third comparison result sent by the first device, wherein the third comparison result is obtained by the first device comparing the at least one fourth biometric information with the third biometric information pre-stored in the first device;
[0458] Based on the third comparison result and the fourth comparison result, it is determined whether the at least one fourth biometric information is verified.
[0459] Optionally, the method further includes:
[0460] A second message is sent to the first device, wherein the second message is used to notify the first device that the fourth biometric information has passed verification.
[0461] Optionally, the method further includes:
[0462] When it is determined that the first biometric information or the fourth biometric information passes the verification, a first key is generated based on a generation rule known to the first device; wherein the first key is used to encrypt and / or integrity protect information sent to the first device.
[0463] Optionally, generating the first key based on a generation rule known to the first device includes:
[0464] Based on a generation rule known to the first device, a first key is generated according to the first comparison result and / or the third comparison result.
[0465] When the processor executes the instruction, it can at least perform the following steps:
[0466] Verifying the identity information of the second device using the verification method described above;
[0467] Based on the passing result of the identity information verification, a connection is established with the second device.
[0468] Optionally, the method further comprises:
[0469] Based on the connection, encrypted data transmission is performed between the first device and the second device.
[0470] Optionally, the verifying the identity information of the second device by using the verification method described above includes:
[0471] When a data transmission requirement is detected, the identity information of the second device is verified using the verification method described above.
[0472] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the claims.
[0473] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A verification method, characterized in that: Executed by a first device, the method includes: Sending at least one first biometric information to be verified and randomly generated to a second device; wherein the first biometric information and the second biometric information are of the same type, and the first biometric information is used to compare with the second biometric information pre-stored in the second device to form a first comparison result; receiving a first comparison result sent by the second device; Comparing the at least one first biometric information with third biometric information pre-stored in the first device to obtain a second comparison result; Based on the first comparison result and the second comparison result, it is determined whether the at least one first biometric information passes the verification.
2. The method according to claim 1, characterized in that The method further comprises: Sending a first message to the second device, wherein the first message is used to notify the second device that the first biometric information has been verified; receiving at least one fourth biometric information sent by the second device, wherein the at least one fourth biometric information is sent by the second device when receiving the first message and is randomly generated biometric information of the same type as the second biometric information; comparing the fourth biological information with the third biological information to obtain a third comparison result; The third comparison result is sent to the second device, wherein the third comparison result is used by the second device to determine whether the at least one fourth biometric information is verified.
3. The method according to claim 2, characterized in that The method further comprises: A second message sent by the second device is received, wherein the second message is sent by the second device when it is determined that the fourth biometric information passes verification.
4. The method according to claim 3, characterized in that The method further comprises: When it is determined that the first biometric information or the fourth biometric information passes the verification, a first key is generated based on a generation rule known to the second device; wherein the first key is used to encrypt and / or integrity protect information sent to the second device.
5. The method according to claim 4, characterized in that The generating the first key based on a generation rule known to the second device includes: Based on a generation rule known to the second device, a first key is generated according to the first comparison result and / or the third comparison result.
6. The method according to any one of claims 1 to 5, characterized in that: The third biological information includes one of the following: User’s facial information; User's fingerprint information; User's iris information; User's voice information.
7. The method according to claim 1, characterized in that The determining whether the at least one first biometric information is verified based on the first comparison result and the second comparison result includes: Obtaining a similarity between the first comparison result and the second comparison result to obtain a first similarity; If the first similarity is greater than a first threshold, it is determined that the at least one first biometric information passes the verification.
8. The method according to claim 1, characterized in that The method further comprises: Acquire multiple biometric features of the third biometric information; The at least one first biometric information is generated based on some of the multiple biometric features.
9. The method according to claim 8, characterized in that The generating the at least one first biological information based on some of the plurality of biological features comprises: generating a plurality of fifth biometric information based on some of the plurality of biometric features; The fifth biological information having a second similarity with the third biological information greater than a second threshold is used as the first biological information.
10. A verification method, characterized in that: Executed by a second device, the method includes: receiving at least one first biometric information sent by a first device; Comparing the at least one first biological information with the pre-stored second biological information to obtain a first comparison result; The first comparison result is sent to the first device, wherein the first comparison result is used by the first device to determine whether at least one of the first biometric information has passed verification based on the first comparison result and a second comparison result, and the second comparison result is obtained by the first device comparing the first biometric information with a pre-stored third biometric information.
11. The method according to claim 10, characterized in that The second biometric information includes one of the following: User’s facial information; User's fingerprint information; User's iris information; User's voice information.
12. The method according to claim 10 or 11, characterized in that: The method further comprises: receiving a first message sent by the first device, wherein the first message is sent by the first device when determining that the at least one first biometric information passes verification; When it is determined based on the first message that the first biometric information has passed the verification, at least one fourth biometric information to be verified is compared with the second biometric information pre-stored in the second device to obtain a fourth comparison result.
13. The method according to claim 12, characterized in that The method further comprises: sending the at least one fourth biometric information to the first device; receiving a third comparison result sent by the first device, wherein the third comparison result is obtained by the first device comparing the at least one fourth biometric information with the third biometric information pre-stored in the first device; Based on the third comparison result and the fourth comparison result, it is determined whether the at least one fourth biometric information is verified.
14. The method according to claim 13, characterized in that The method further comprises: A second message is sent to the first device, wherein the second message is used to notify the first device that the fourth biometric information has passed verification.
15. The method according to claim 14, characterized in that The method further comprises: When it is determined that the first biometric information or the fourth biometric information passes the verification, a first key is generated based on a generation rule known to the first device; wherein the first key is used to encrypt and / or integrity protect information sent to the first device.
16. The method according to claim 15, characterized in that The generating the first key based on a generation rule known to the first device includes: Based on a generation rule known to the first device, a first key is generated according to the first comparison result and / or the third comparison result.
17. A data processing method, characterized in that: Executed by a first device, the method includes: The identity information of the second device is verified by the verification method described in any one of claims 1 to 9; based on the passing result of the identity information verification, a connection is established with the second device.
18. The method according to claim 17, characterized in that The method further comprises: Based on the connection, encrypted data transmission is performed between the first device and the second device.
19. The method according to claim 17 or 18, characterized in that The verifying the identity information of the second device by the verification method according to any one of claims 1 to 9 includes: When a data transmission requirement is detected, identity information of the second device is verified by the verification method described in any one of claims 1-9.
20. A verification device, characterized in that: The device comprises: A first sending module, used for sending at least one first biometric information to be verified and randomly generated to a second device; wherein, the first biometric information and the second biometric information are of the same type, and the first biometric information is used for comparison with the second biometric information pre-stored in the second device to form a first comparison result; A first receiving module, used for receiving a first comparison result sent by the second device; A first comparison module, configured to compare the at least one first biometric information with third biometric information pre-stored in the first device to obtain a second comparison result; A first determination module is configured to determine whether the at least one first biometric information has passed verification based on the first comparison result and the second comparison result.
21. The device according to claim 20, characterized in that The device further comprises: A second sending module, configured to send a first message to the second device, wherein the first message is used to notify the second device that the first biometric information has passed verification; A second receiving module is used to receive at least one fourth biometric information sent by the second device, wherein the at least one fourth biometric information is sent by the second device when receiving the first message and is randomly generated biometric information of the same type as the second biometric information; A second comparison module, used for comparing the fourth biological information with the third biological information to obtain a third comparison result; The third comparison result is sent to the second device, wherein the third comparison result is used by the second device to determine whether the at least one fourth biometric information is verified.
22. The device according to claim 21, characterized in that The device further comprises: The third receiving module is used to receive a second message sent by the second device, wherein the second message is sent by the second device when it is determined that the fourth biometric information has passed the verification.
23. The device according to claim 22, characterized in that The device further comprises: The first generation module is used to generate a first key based on a generation rule known to the second device when it is determined that the first biometric information or the fourth biometric information has passed the verification; wherein the first key is used to encrypt and / or integrity protect information sent to the second device.
24. The device according to claim 23, characterized in that The first generating module is used for: Based on a generation rule known to the second device, a first key is generated according to the first comparison result and / or the third comparison result.
25. The device according to any one of claims 20 to 24, characterized in that: The third biological information includes one of the following: User’s facial information; User's fingerprint information; User's iris information; User's voice information.
26. The device according to claim 20, characterized in that The first determining module is used to: Obtaining a similarity between the first comparison result and the second comparison result to obtain a first similarity; If the first similarity is greater than a first threshold, it is determined that the at least one first biometric information passes the verification.
27. The device according to claim 20, characterized in that The device further comprises: An acquisition module, used for acquiring a plurality of biological features of the third biological information; The second generating module is used to generate the at least one first biological information based on some of the multiple biological features.
28. The device according to claim 27, characterized in that The second generating module is used for: generating a plurality of fifth biometric information based on some of the plurality of biometric features; The fifth biological information having a second similarity with the third biological information greater than a second threshold is used as the first biological information.
29. A verification device, characterized in that: The device comprises: a fourth receiving module, configured to receive at least one first biological information sent by the first device; A third comparison module, used for comparing the at least one first biological information with the pre-stored second biological information to obtain a first comparison result; A third sending module is used to send the first comparison result to the first device, wherein the first comparison result is used by the first device to determine whether at least one of the first biometric information has passed the verification based on the first comparison result and the second comparison result, and the second comparison result is obtained by the first device comparing the first biometric information with the pre-stored third biometric information.
30. The device according to claim 29, characterized in that The second biometric information includes one of the following: User’s facial information; User's fingerprint information; User's iris information; User's voice information.
31. The device according to claim 29 or 30, characterized in that The device further comprises: a fifth receiving module, configured to receive a first message sent by the first device, wherein the first message is sent by the first device when determining that the at least one first biometric information passes verification; The fourth comparison module is used to compare at least one fourth biometric information to be verified with the second biometric information pre-stored in the second device to obtain a fourth comparison result when it is determined based on the first message that the first biometric information has passed the verification.
32. The device according to claim 31, characterized in that The device further comprises: a fourth sending module, configured to send the at least one fourth biometric information to the first device; a sixth receiving module, configured to receive a third comparison result sent by the first device, wherein the third comparison result is obtained by the first device comparing the at least one fourth biometric information with the third biometric information pre-stored in the first device; The second determination module is used to determine whether the at least one fourth biological information passes the verification based on the third comparison result and the fourth comparison result.
33. The device according to claim 32, characterized in that The device further comprises: The fifth sending module is used to send a second message to the first device, wherein the second message is used to notify the first device that the fourth biometric information has passed the verification.
34. The device according to claim 33, characterized in that The device further comprises: The third generation module is used to generate a first key based on a generation rule known to the first device when it is determined that the first biometric information or the fourth biometric information has passed the verification; wherein the first key is used to encrypt and / or integrity protect the information sent to the first device.
35. The device according to claim 34, characterized in that The third generating module is used for: Based on a generation rule known to the first device, a first key is generated according to the first comparison result and / or the third comparison result.
36. A data processing device, characterized in that: The device comprises: A verification module, configured to verify the identity information of the second device by using the verification device described in any one of claims 20 to 28; A connection module is used to establish a connection with the second device based on a passing result of the identity information verification.
37. The device according to claim 36, characterized in that The device also includes: A transmission module is used to perform encrypted data transmission between the first device and the second device based on the connection.
38. The device according to claim 36 or 37, characterized in that The verification module is used to: When a data transmission requirement is detected, the identity information of the second device is verified by the verification device described in any one of claims 20-28.
39. An electronic device, characterized in that: include: a memory for storing processor-executable instructions; A processor connected to the memory; The processor is used to execute the verification method described in any one of claims 1 to 9, or 10 to 16, or the data processing method described in any one of claims 17 to 19.
40. A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by a processor of a computer, enables the computer to execute the verification method described in any one of claims 1 to 9, or 10 to 16, or the data processing method described in any one of claims 17 to 19.
