Method for checking user information, terminal device and storage medium
By encrypting and matching user information across different terminals, the contradiction between privacy protection and data utilization during the card binding process is resolved, achieving efficient and accurate user authentication and improving system performance and reliability.
Patent Information
- Application Number
- CN202411178582.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-26
- Publication Date
- 2025-11-11
- Estimated Expiration
- 2044-08-26
AI Technical Summary
Existing technologies cannot balance privacy protection and effective data utilization during the card binding process, resulting in low information verification efficiency.
By encrypting user information to generate encrypted results and matching them across different terminals, information security and privacy protection are ensured while verification efficiency is improved.
While protecting user privacy, it significantly improves the accuracy of user matching and the efficiency of information verification, optimizes the user authentication process, and enhances the system's performance and reliability.
Smart Images

Figure CN119130468B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of information processing technology, and in particular to a method, terminal device and storage medium for verifying user information. Background Technology
[0002] In the digital age, credit card services are increasingly collaborating with external payment platforms, and card binding services have become a key trend for improving the convenience of fund transfers and transactions. However, the card binding process involves a large amount of sensitive information, such as credit card numbers and cardholder identity information, and the protection and management of this information has become a major challenge. How to effectively increase card binding rates while protecting customer privacy has become an urgent problem to be solved. Among related technologies, balancing privacy protection and data availability is a core challenge. While ensuring customer privacy, existing technologies may not be able to simultaneously address both privacy protection and the effective use of data. This contradiction can lead to inefficiencies in the information verification process. Summary of the Invention
[0003] The main objective of this invention is to provide a method, terminal device, and storage medium for verifying user information, aiming to solve the problem in related technologies where privacy protection and effective data utilization cannot be balanced, which may lead to inefficiency in the information verification process.
[0004] In a first aspect, embodiments of the present invention provide a method for verifying user information, applied to a first terminal, comprising:
[0005] Obtain the first information corresponding to the first user, and encrypt the first information to obtain the first encryption result;
[0006] The first encryption result corresponding to the first user is sent to the second terminal, so that after receiving the first encryption result, the second terminal obtains the second information corresponding to the second user and encrypts the second information to obtain a second encryption result; the first encryption result and the second encryption result are matched to obtain a matching result; the target user corresponding to the first user is determined according to the matching result; the target user and the matching result are encrypted to obtain a third encryption result, and the third encryption result is sent to the first terminal;
[0007] Receive the third encryption result corresponding to the second terminal, and decrypt the third encryption result to obtain the target user and the matching result;
[0008] The information verification result corresponding to the first user is determined based on the target user and the matching result.
[0009] Secondly, embodiments of the present invention provide a method for verifying user information, applied to a second terminal, comprising:
[0010] Obtain the first encrypted result corresponding to the first user sent by the first terminal;
[0011] Obtain the second information corresponding to the second user, and encrypt the second information to obtain the second encryption result;
[0012] The first encryption result and the second encryption result are matched to obtain a matching result;
[0013] The target user corresponding to the first user is determined based on the matching result;
[0014] The target user and the matching result are encrypted to obtain a third encrypted result, and the third encrypted result is sent to the first terminal so that the first terminal can determine the information verification result corresponding to the first user based on the third encrypted result.
[0015] Thirdly, embodiments of the present invention also provide a terminal device, the terminal device including a processor, a memory, a computer program stored in the memory and executable by the processor, and a data bus for implementing connection communication between the processor and the memory, wherein when the computer program is executed by the processor, it implements the steps of any of the user information verification methods provided in this specification.
[0016] Fourthly, embodiments of the present invention also provide a storage medium for computer-readable storage, characterized in that the storage medium stores one or more programs, which can be executed by one or more processors to implement the steps of any of the user information verification methods provided in this specification.
[0017] This invention provides a method, terminal device, and storage medium for user information verification. The method, applied to a first terminal, includes: obtaining first information corresponding to a first user, encrypting the first information to obtain a first encryption result, sending the first encryption result to a second terminal, so that the second terminal, upon receiving the first encryption result, obtains second information corresponding to the second user and encrypts the second information to obtain a second encryption result; matching the first and second encryption results to obtain a matching result; determining a target user corresponding to the first user based on the matching result; encrypting the target user and the matching result to obtain a third encryption result, and sending the third encryption result to the first terminal; receiving the third encryption result from the second terminal and decrypting the third encryption result to obtain the target user and the matching result; and determining the information verification result corresponding to the first user based on the target user and the matching result. This method effectively ensures user privacy and data security by encrypting the first information to generate the first encryption result. Encryption technology can prevent sensitive information from being stolen or tampered with during transmission, ensuring the confidentiality and integrity of information. In the second terminal, the second encryption result corresponding to the second user is matched with the first encryption result. This operation not only protects user privacy while achieving effective information verification, but also ensures accurate user identity confirmation through a precise matching algorithm. This method significantly improves the accuracy of user matching while guaranteeing privacy, thus accurately identifying target users. Furthermore, this encrypted matching mechanism resolves the contradiction between privacy protection and effective data utilization in traditional technologies. In many existing systems, privacy protection often leads to inefficient information verification; this method overcomes this problem through innovative encryption and matching processes, improving the efficiency and accuracy of information verification. Overall, this method optimizes the user authentication process while ensuring information security and privacy protection, effectively improving system performance and reliability. Attached Figure Description
[0018] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0019] Figure 1 A flowchart illustrating a user information verification method provided in an embodiment of the present invention;
[0020] Figure 2 A flowchart illustrating another user information verification method provided in an embodiment of the present invention;
[0021] Figure 3 for Figure 2 A flowchart illustrating sub-step S203 of the user information verification method;
[0022] Figure 4 A schematic diagram of a scenario for implementing the user information verification method provided in this embodiment;
[0023] Figure 5 This is a schematic block diagram of a terminal device provided in an embodiment of the present invention. Detailed Implementation
[0024] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0025] The flowchart shown in the attached diagram is for illustrative purposes only and does not necessarily include all content and operations / steps, nor does it necessarily have to be performed in the order described. For example, some operations / steps can be broken down, combined, or partially merged, so the actual execution order may change depending on the actual situation.
[0026] It should be understood that the terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the invention. As used in this specification and the appended claims, the singular forms “a,” “an,” and “the” are intended to include the plural forms unless the context clearly indicates otherwise.
[0027] This invention provides a method, terminal device, and storage medium for verifying user information. The method for verifying user information can be applied to a terminal device, which can be an electronic device such as a tablet computer, laptop computer, desktop computer, personal digital assistant, or wearable device. The terminal device can be a server or a server cluster.
[0028] The following detailed description of some embodiments of the present invention is provided in conjunction with the accompanying drawings. Unless otherwise specified, the following embodiments and features can be combined with each other.
[0029] Please refer to Figure 1 , Figure 1 This is a flowchart illustrating a method for verifying user information provided in an embodiment of the present invention.
[0030] like Figure 1 As shown, the user information verification method is applied to the first terminal, and the method includes steps S101 to S104.
[0031] Step S101: Obtain the first information corresponding to the first user, and encrypt the first information to obtain the first encryption result.
[0032] For example, if the first terminal is a bank terminal, then the first terminal obtains the first user corresponding to the opening of the bank card or credit card, and then obtains the first information corresponding to the first user. The first information includes, but is not limited to, the credit card number, bank card number, cardholder identity information, etc., corresponding to the first user.
[0033] For example, both the first terminal and the second terminal use the same public key to encrypt the first information corresponding to the first user and the second information corresponding to the second user. When the encryption results are consistent, it indicates that the first user and the second user are the same user; when the encryption results are inconsistent, it indicates that the first user and the second user are not the same user. Therefore, the first terminal can obtain the first encryption result by encrypting the first information using the same public key as the second terminal.
[0034] In some implementations, encrypting the first information to obtain a first encryption result includes: obtaining a second public key corresponding to the second terminal; decomposing the first information to obtain first identification information corresponding to the first user; and encrypting the first identification information using the second public key to obtain the first encryption result.
[0035] For example, the second terminal needs to provide its corresponding second public key. This second public key can typically be obtained through a network request, a protocol between the terminals, or provided by a system administrator. Ensure that secure methods are used when obtaining the second public key to prevent it from being tampered with or forged.
[0036] For example, the first information is decomposed to obtain the required first identification information. The decomposition process includes: determining which parts need to be extracted from the first information as the first identification information; decomposing the first information into multiple components according to predefined rules or formats, and extracting the first identification information from them. The first identification information is a unique identifier corresponding to the first user.
[0037] For example, the first terminal preprocesses the credit card customer information that needs to be recommended for card binding. Key fields requiring homomorphic operations (such as the ID number) are encrypted using the BGV public key, while non-key fields may be encrypted using symmetric encryption algorithms such as AES. The encrypted data is then uploaded to a designated data exchange platform via a secure protocol and sent to the second terminal. In other words, the first terminal decomposes the first information, using the ID number as the first identifier for the first user, while other information besides the ID number is considered non-key fields and may be encrypted using symmetric encryption algorithms such as AES.
[0038] For example, the first identification information is input into the encryption algorithm and the second public key obtained from the second terminal is used to encrypt the decomposed first identification information. After encryption, the result is the first encryption result.
[0039] Specifically, by obtaining the second public key of the second terminal and using it to encrypt the first identification information, the security of the transmitted identification information within the network can be ensured. This encryption method ensures that the information will not be accessed or tampered with by unauthorized third parties during transmission. Because the first identification information is encrypted, the user's true identity information is not directly exposed. This privacy protection measure prevents the leakage of sensitive information and helps protect the user's personal privacy. Furthermore, encrypting the first identification information using the second public key corresponding to the second terminal provides support for subsequent user information verification.
[0040] Step S102: Send the first encryption result corresponding to the first user to the second terminal, so that after receiving the first encryption result, the second terminal obtains the second information corresponding to the second user and encrypts the second information to obtain a second encryption result; match the first encryption result and the second encryption result to obtain a matching result; determine the target user corresponding to the first user based on the matching result; encrypt the target user and the matching result to obtain a third encryption result, and send the third encryption result to the first terminal.
[0041] For example, the first encrypted result corresponding to the first user is sent to a second terminal that is communicatively connected to the first terminal. The second terminal is a payment terminal, such as the Alipay platform, WeChat Pay platform, etc.
[0042] For example, after the second terminal receives the first encryption result sent by the first terminal, the second terminal obtains the second information corresponding to the second user in its own platform, and then obtains the second identification information in the second information. Then, it uses the public key used by the first terminal to encrypt the second identification information in the second information to obtain the second encryption result.
[0043] For example, the first identification information is encrypted using the second public key obtained from the second terminal to obtain the first encryption result, and then the second terminal also uses the second public key obtained from the second terminal to encrypt the second identification information in the second information to obtain the second encryption result.
[0044] For example, after obtaining the second encryption result, the second terminal matches the first and second encryption results to obtain a matching result. At this time, it is not necessary to decrypt the first and second encryption results; it is only necessary to compare the first and second encryption results at preset positions to obtain the corresponding matching result.
[0045] For example, when the matching result is greater than or equal to a preset value, it is determined that the first user corresponding to the first encryption result matches the second user corresponding to the second encryption result. That is, the first user and the second user are the same user, and the user in the second user who is the same user as the first user is determined as the target user corresponding to the first user.
[0046] For example, the second terminal obtains the matching value corresponding to the target user from the matching result, and then the second terminal uses an encryption algorithm to encrypt the target user and the matching value corresponding to the target user to obtain a third encrypted result, and sends the third encrypted result to the first terminal.
[0047] For example, the second terminal uses the first public key corresponding to the first terminal to encrypt the target user and the matching value corresponding to the target user to obtain the third encryption result.
[0048] Step S103: Receive the third encryption result corresponding to the second terminal, and decrypt the third encryption result to obtain the target user and the matching result.
[0049] For example, the third encrypted result corresponding to the second terminal is received, and the third encrypted result is decrypted according to the decryption algorithm corresponding to the encryption algorithm used when the third encrypted result is obtained in the second terminal, thereby obtaining the target user and the matching result.
[0050] In some implementations, decrypting the third encryption result to obtain the target user and the matching result includes: obtaining a first private key corresponding to the first terminal; and decrypting the third encryption result using the first private key to obtain the target user and the matching result.
[0051] For example, the second terminal uses the first public key corresponding to the first terminal to encrypt the target user and the matching value corresponding to the target user to obtain a third encrypted result. After receiving the third encrypted result corresponding to the second terminal, the first terminal uses the first private key corresponding to the first terminal to decrypt the third encrypted result to obtain the corresponding target user and matching result.
[0052] Specifically, by using the first private key corresponding to the first terminal to decrypt the third encrypted result, it is ensured that only the first terminal holding the private key can decrypt and access the information throughout the entire decryption process. This effectively protects user privacy and sensitive data, prevents information leakage, and thus effectively protects data security and user privacy, while providing accurate user identity information and matching results. This approach helps support system reliability and decision-making processes, and ensures compliance with data protection and privacy requirements.
[0053] Step S104: Determine the information verification result corresponding to the first user based on the target user and the matching result.
[0054] For example, the usage rate of the first user corresponding to the first terminal in the second terminal is determined based on the target user, and the reliability of the usage rate can be judged based on the matching results. Thus, the information verification result corresponding to the first user is determined based on the target user and the matching results.
[0055] For example, when the matching rate for a target user exceeds 90%, the number of first users is calculated, and when the matching rate is less than or equal to 90% but greater than 80%, the number of second users is calculated. Based on these filtering conditions, the number of first and second users is calculated. Then, based on these numbers, the degree to which the second terminal binds the user's bank card on the first terminal is analyzed, thus obtaining the success rate of binding the bank card or credit card corresponding to the first terminal to the second terminal.
[0056] For example, since it is impossible to definitively determine if the target user is the same in both the first and second terminals, the reliability of the same target user in both terminals is determined by the matching results. Based on the matching results, target users are filtered to obtain the information verification results corresponding to the first user. Therefore, this application, while protecting user privacy, can also analyze whether the first user in the first terminal and the second user in the second terminal have the same target user.
[0057] In some implementations, after obtaining the information verification result, the method further includes: determining the number of users corresponding to the user consistency between the first user and the second user based on the information verification result; and determining the user strategy corresponding to the target user based on the number of users through information recommendation.
[0058] For example, the information verification results include the number of users corresponding to different matching results. Then, the usage rate corresponding to the use of the first terminal in the second terminal is determined according to the number of users corresponding to the first user and the second user. For example, the usage rate corresponding to the use of the first terminal in the second terminal is obtained by calculating the ratio of the number of users to the number of the first user corresponding to the first terminal.
[0059] For example, define rules or algorithms for information recommendation, which may formulate user strategies based on factors such as usage rate and number of users.
[0060] For example, when usage is high, recommended strategies should encourage continued engagement. For instance, frequent use of certain features or services indicates a high dependence on the second device. Strategies to further engage the second device are recommended, such as offering additional features, service benefits, or enhanced permissions to solidify the existing bond. When user usage is low, recommended strategies should help users increase their willingness to engage with the second device. For instance, low usage may indicate user dissatisfaction with the current engagement or underutilization of the second device. Strategies that attract user interest are recommended, such as offering trial periods, personalized service recommendations, or engagement benefits to increase user engagement and usage frequency. When the user base is large, recommended strategies should focus on maintaining and optimizing the experience for existing users. For instance, a large number of users may require systemic improvements or additional support. Strategies to improve user satisfaction and loyalty are recommended, such as launching group activities, enhancing user support services, or conducting regular feedback surveys. When the user base is small, recommended strategies should focus on attracting more users or improving the user experience to increase the user base. It is recommended to adopt strategies to attract new users, such as introducing referral rewards, user invitation mechanisms, or customized services for small user groups.
[0061] Specifically, by determining the consistency between the first and second users and the corresponding number of users based on information verification results, the true identity of users and matching relationships can be accurately identified. This improves the accuracy of data processing and reduces the possibility of false matching. By determining user consistency and the corresponding number of users based on information verification results, and using this as a basis for information recommendation, the accuracy of user matching can be effectively improved, information recommendation optimized, user experience enhanced, decision support improved, user stickiness strengthened, strategy flexibility and adaptability increased, and resource allocation optimized. These beneficial effects ultimately contribute to improving the overall system performance and user satisfaction.
[0062] Please refer to Figure 2 , Figure 2 This is a flowchart illustrating another user information verification method provided in an embodiment of the present invention.
[0063] like Figure 2 As shown, the user information verification method is applied to the second terminal, and the method includes steps S201 to 205.
[0064] Step S201: Obtain the first encryption result corresponding to the first user sent by the first terminal.
[0065] For example, the second terminal is communicatively connected to the first terminal. When the first terminal encrypts the first identification information corresponding to the first user and obtains the first encryption result, the first terminal sends the first encryption result to the second terminal, thereby the second terminal receives the first encryption result corresponding to the first identification information sent by the first terminal.
[0066] Step S202: Obtain the second information corresponding to the second user, and encrypt the second information to obtain the second encryption result.
[0067] For example, the second terminal obtains the second information corresponding to the second user in its own platform, and then obtains the second identification information in the second information. Then, it uses the public key used by the first terminal to encrypt the first identification information to encrypt the second identification information in the second information to obtain the second encryption result.
[0068] For example, the first identification information is encrypted using the first public key obtained from the first terminal to obtain the first encryption result, and then the second terminal also uses the first public key obtained from the first terminal to encrypt the second identification information in the second information to obtain the second encryption result.
[0069] In some implementations, encrypting the second information to obtain a second encryption result includes: obtaining a second public key corresponding to the second terminal; decomposing the second information to obtain second identification information corresponding to the second user; and encrypting the second identification information using the second public key to obtain the second encryption result.
[0070] For example, the first identification information is encrypted using the second public key obtained from the second terminal to obtain the first encryption result. Then, after the second terminal decomposes the second information to obtain the second identification information corresponding to the second user, it also uses the second public key to encrypt the second identification information to obtain the second encryption result.
[0071] Specifically, implementing the step of encrypting with a second public key can significantly improve data security, enhance identity verification, improve data integrity, protect privacy, support secure communication, optimize system trust, meet compliance requirements, and enhance the system's defense capabilities. In addition, obtaining the first encryption result and the second encryption result through the same encryption method can provide good support for obtaining accurate information query results in the future.
[0072] Step S203: Match the first encryption result and the second encryption result to obtain a matching result.
[0073] For example, after obtaining the second encryption result, the second terminal matches the first and second encryption results to obtain a matching result. At this time, it is not necessary to decrypt the first and second encryption results; it is only necessary to compare the first and second encryption results at preset positions to obtain the corresponding matching result.
[0074] In one embodiment, the step of matching the first encryption result and the second encryption result to obtain a matching result specifically refers to... Figure 3 Step S203 includes: sub-steps S2031 to S2033.
[0075] Sub-step S2031: Set a verification function, and compare the first encryption result and the second encryption result bit by bit according to the verification function to obtain the comparison result.
[0076] For example, the second terminal creates an empty matching set, iterates through its encrypted second encryption results, and performs the following operations: It searches for a matching hash value prefix in the first encryption result provided by the first terminal. The second terminal obtains the comparison result of the first and second encryption results under the verification function by calculating a check function (such as the sum of bitwise XOR operations) between the encrypted hash values corresponding to the first encryption result and the second decryption result.
[0077] Sub-step S2032: When the comparison result meets the preset conditions, the first user corresponding to the first encryption result is added to the matching set.
[0078] For example, if the preset condition is a value corresponding to a preset position or a preset value is met, then when the comparison result meets the preset condition, it is inferred whether there is a possibility of a match between the first user corresponding to the first encryption result and the second user corresponding to the second encryption result. Therefore, when the comparison result meets the preset condition, the first user corresponding to the first encryption result is added to the matching set; when the comparison result does not meet the preset condition, the first user corresponding to the first encryption result cannot be added to the matching set.
[0079] Sub-step S2033: Determine the matching result based on the matching set and the comparison result.
[0080] For example, the matching value corresponding to each user in the matching set is obtained from the comparison result, and then each user in the matching set and the matching value corresponding to each user are determined as the matching result.
[0081] Specifically, by setting a verification function and comparing the first and second encryption results bit by bit, the consistency of the two encryption results can be accurately verified. This meticulous comparison method helps ensure the matching degree of the data after encryption, thereby verifying the accuracy and consistency of the data. By adding the first user corresponding to the first encryption result that meets the preset conditions to the matching set, users who successfully match can be systematically managed and recorded. This helps improve the accuracy of matching and ensures that only users considered to be matched under strict conditions are included in the set. This provides support for obtaining accurate information verification results subsequently.
[0082] Step S204: Determine the target user corresponding to the first user based on the matching result.
[0083] For example, when the comparison result in the matching results is greater than a preset value, the user corresponding to the comparison result is determined as the target user.
[0084] Step S205: Encrypt the target user and the matching result to obtain a third encrypted result, and send the third encrypted result to the first terminal so that the first terminal can determine the information verification result corresponding to the first user based on the third encrypted result.
[0085] For example, the second terminal uses a set encryption algorithm to encrypt the target user and the matching value corresponding to the target user in the matching result to obtain a third encryption result, and then sends the third encryption result to the first terminal so that the first terminal can determine the information verification result corresponding to the first user based on the third encryption result.
[0086] In some implementations, encrypting the target user and the matching result to obtain a third encrypted result includes: obtaining a first public key corresponding to the first terminal; and encrypting the target user and the matching result according to the first public key to obtain the third encrypted result.
[0087] For example, the second terminal obtains the first public key corresponding to the first terminal, and then uses the first public key to encrypt the target user and the matching result to obtain a third encrypted result, so that after obtaining the third encrypted result, the first terminal uses the first private key corresponding to the first terminal to decrypt the third encrypted result to obtain the target user and the matching result.
[0088] Specifically, by obtaining the first public key corresponding to the first terminal and encrypting the target user and matching results, the security of this data during transmission can be ensured. Even if the data is intercepted, it cannot be decrypted without the corresponding private key, thus effectively preventing data leakage and unauthorized access.
[0089] Please refer to Figure 4 , Figure 4A schematic diagram of a scenario for implementing the user information verification method provided in this embodiment, such as... Figure 4 As shown, the first terminal obtains first information corresponding to the first user and a second public key corresponding to the second terminal; it decomposes the first information to obtain first identification information corresponding to the first user; it encrypts the first identification information using the second public key to obtain a first encryption result, and sends the first encryption result corresponding to the first user to the second terminal. Upon receiving the first encryption result, the second terminal obtains second information corresponding to the second user, decomposes the second information to obtain second identification information corresponding to the second user; it encrypts the second identification information using the second public key to obtain a second encryption result; the second terminal matches the first and second encryption results to obtain a matching result; based on the matching result, it determines the target user corresponding to the first user; the second terminal obtains the first public key corresponding to the first terminal; it encrypts the target user and the matching result using the first public key to obtain a third encryption result, and sends the third encryption result to the first terminal; the first terminal receives the third encryption result corresponding to the second terminal and decrypts it to obtain the target user and the matching result; finally, the first terminal determines the information verification result corresponding to the first user based on the target user and the matching result. This encryption matching mechanism resolves the contradiction between privacy protection and effective data utilization in traditional technologies. In many existing systems, privacy protection often leads to inefficient information verification. This method overcomes this problem through innovative encryption and matching processes, improving the efficiency and accuracy of information verification. Overall, this method optimizes the user authentication process while ensuring information security and privacy protection, effectively improving system performance and reliability.
[0090] Please see Figure 5 , Figure 5 This is a schematic block diagram of the structure of a terminal device provided in an embodiment of the present invention.
[0091] like Figure 5 As shown, the terminal device 300 includes a processor 301 and a memory 302, which are connected by a bus 303, such as an I2C (Inter-integrated Circuit) bus.
[0092] Specifically, processor 301 provides computing and control capabilities to support the operation of the entire terminal device. Processor 301 can be a Central Processing Unit (CPU), but it can also be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor.
[0093] Specifically, the memory 302 can be a Flash chip, a read-only memory (ROM) disk, an optical disk, a USB flash drive, or a portable hard drive, etc.
[0094] Those skilled in the art will understand that Figure 5 The structure shown is merely a block diagram of a portion of the structure related to the embodiments of the present invention, and does not constitute a limitation on the terminal device to which the embodiments of the present invention are applied. A specific server may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0095] The processor is used to run a computer program stored in a memory, and when executing the computer program, implements any of the user information verification methods provided in the embodiments of the present invention.
[0096] In one embodiment, the processor is configured to run a computer program stored in memory, and when executing the computer program, perform the following steps:
[0097] Obtain the first information corresponding to the first user, and encrypt the first information to obtain the first encryption result;
[0098] The first encryption result corresponding to the first user is sent to the second terminal, so that after receiving the first encryption result, the second terminal obtains the second information corresponding to the second user and encrypts the second information to obtain a second encryption result; the first encryption result and the second encryption result are matched to obtain a matching result; the target user corresponding to the first user is determined according to the matching result; the target user and the matching result are encrypted to obtain a third encryption result, and the third encryption result is sent to the first terminal;
[0099] Receive the third encryption result corresponding to the second terminal, and decrypt the third encryption result to obtain the target user and the matching result;
[0100] The information verification result corresponding to the first user is determined based on the target user and the matching result.
[0101] In some implementations, during the process of encrypting the first information to obtain the first encryption result, the processor 301 performs the following:
[0102] Obtain the second public key corresponding to the second terminal;
[0103] The first information is decomposed to obtain the first identifier information corresponding to the first user;
[0104] The first identification information is encrypted using the second public key to obtain the first encryption result.
[0105] In some implementations, during the process of decrypting the third encryption result to obtain the target user and the matching result, the processor 301 performs the following:
[0106] Obtain the first private key corresponding to the first terminal;
[0107] The target user and the matching result are obtained by decrypting the third encryption result using the first private key.
[0108] In some implementations, after obtaining the information verification result, the processor 301 further performs the following:
[0109] The number of users corresponding to the situation where the first user and the second user are the same is determined based on the information verification results;
[0110] Based on the number of users, information recommendation is performed to determine the user strategy corresponding to the target user.
[0111] In one embodiment, the processor is configured to run a computer program stored in memory, and when executing the computer program, perform the following steps:
[0112] Obtain the first encrypted result corresponding to the first user sent by the first terminal;
[0113] Obtain the second information corresponding to the second user, and encrypt the second information to obtain the second encryption result;
[0114] The first encryption result and the second encryption result are matched to obtain a matching result;
[0115] The target user corresponding to the first user is determined based on the matching result;
[0116] The target user and the matching result are encrypted to obtain a third encrypted result, and the third encrypted result is sent to the first terminal so that the first terminal can determine the information verification result corresponding to the first user based on the third encrypted result.
[0117] In some embodiments, during the process of encrypting the second information to obtain the second encryption result, the processor 301 performs the following:
[0118] Obtain the second public key corresponding to the second terminal;
[0119] The second information is decomposed to obtain the second identifier information corresponding to the second user;
[0120] The second identification information is encrypted using the second public key to obtain the second encryption result.
[0121] In some implementations, during the process of encrypting the target user and the matching result to obtain a third encrypted result, the processor 301 executes:
[0122] Obtain the first public key corresponding to the first terminal;
[0123] The third encrypted result is obtained by encrypting the target user and the matching result using the first public key.
[0124] In some embodiments, during the process of matching the first encryption result and the second encryption result to obtain a matching result, the processor 301 performs the following:
[0125] Set a verification function, and compare the first encryption result and the second encryption result bit by bit according to the verification function to obtain the comparison result;
[0126] When the comparison result meets the preset conditions, the first user corresponding to the first encryption result is added to the matching set;
[0127] The matching result is determined based on the matching set and the comparison result.
[0128] It should be noted that those skilled in the art will understand that, for the sake of convenience and brevity, the specific working process of the terminal device described above can be referred to the corresponding process in the aforementioned user information verification method embodiments, and will not be repeated here.
[0129] This invention also provides a storage medium for computer-readable storage, wherein the storage medium stores one or more programs that can be executed by one or more processors to implement the steps of any of the user information verification methods provided in the specification of this invention.
[0130] The storage medium can be an internal storage unit of the terminal device described in the foregoing embodiments, such as the hard drive or memory of the terminal device. Alternatively, the storage medium can be an external storage device of the terminal device, such as a plug-in hard drive, Smart Media Card (SMC), Secure Digital (SD) card, or Flash Card equipped on the terminal device.
[0131] It will be understood by those skilled in the art that all or some of the steps, systems, or apparatuses disclosed above, and their functional modules / units, can be implemented as software, firmware, hardware, or suitable combinations thereof. In hardware embodiments, the division between functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed collaboratively by several physical components. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include computer storage media (or non-transitory media) and communication media (or transient media). As is known to those skilled in the art, the term computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disc (DVD) or other optical disc storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and can be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically contain computer-readable instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.
[0132] It should be understood that the term "and / or" as used in this specification and the appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes such combinations. It should be noted that, herein, the terms "comprising," "including," or any other variations thereof are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or system that includes that element.
[0133] The sequence numbers of the above embodiments of the present invention are merely for descriptive purposes and do not represent the superiority or inferiority of the embodiments. The above descriptions are only specific embodiments of the present invention, but the scope of protection of the present invention is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present invention, and these modifications or substitutions should all be covered within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
Claims
1. A method for verifying user information, characterized in that, Applied to a first terminal, the method includes: Obtain first information corresponding to the first user and second public key corresponding to the second terminal; decompose the first information to obtain first identification information corresponding to the first user, and encrypt the first identification information using the second public key to obtain a first encryption result; The first encryption result corresponding to the first user is sent to the second terminal, so that after receiving the first encryption result, the second terminal obtains the second information corresponding to the second user and the second public key corresponding to the second terminal; the second information is decomposed to obtain the second identification information corresponding to the second user; the second identification information is encrypted using the second public key to obtain the second encryption result; The first encryption result and the second encryption result are matched to obtain a matching result; the target user corresponding to the first user is determined according to the matching result; the target user and the matching result are encrypted to obtain a third encryption result, and the third encryption result is sent to the first terminal; Receive the third encryption result corresponding to the second terminal and obtain the first private key corresponding to the first terminal; decrypt the third encryption result according to the first private key to obtain the target user and the matching result; The information verification result corresponding to the first user is determined based on the target user and the matching result.
2. The method according to claim 1, characterized in that, After obtaining the information verification result, the method further includes: The number of users corresponding to the situation where the first user and the second user are the same is determined based on the information verification results; Based on the number of users, information recommendation is performed to determine the user strategy corresponding to the target user.
3. A method for verifying user information, characterized in that, Applied to a second terminal, the method includes: Obtain the first encrypted result corresponding to the first user sent by the first terminal; Obtain the second information corresponding to the second user, and encrypt the second information to obtain the second encryption result; The first encryption result and the second encryption result are matched to obtain a matching result; The target user corresponding to the first user is determined based on the matching result; The target user and the matching result are encrypted to obtain a third encrypted result, and the third encrypted result is sent to the first terminal so that the first terminal can determine the information verification result corresponding to the first user based on the third encrypted result.
4. The method according to claim 3, characterized in that, The step of encrypting the second information to obtain the second encryption result includes: Obtain the second public key corresponding to the second terminal; The second information is decomposed to obtain the second identifier information corresponding to the second user; The second identification information is encrypted using the second public key to obtain the second encryption result.
5. The method according to claim 3, characterized in that, Encrypting the target user and the matching result to obtain a third encrypted result includes: Obtain the first public key corresponding to the first terminal; The third encrypted result is obtained by encrypting the target user and the matching result using the first public key.
6. The method according to claim 3, characterized in that, The step of matching the first encryption result and the second encryption result to obtain a matching result includes: Set a verification function, and compare the first encryption result and the second encryption result bit by bit according to the verification function to obtain the comparison result; When the comparison result meets the preset conditions, the first user corresponding to the first encryption result is added to the matching set; The matching result is determined based on the matching set and the comparison result.
7. A terminal device, characterized in that, The terminal device includes a processor and a memory; The memory is used to store computer programs; The processor is used to execute the computer program and, in executing the computer program, implement the user information verification method as described in any one of claims 1 to 6.
8. A computer storage medium for computer storage, characterized in that, The computer storage medium stores one or more programs, which can be executed by one or more processors to implement the steps of the user information verification method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Identity card reading terminal in identity card authentication system
CN106027474A
Privacy information protection method and system, server and receiving terminal
CN107786566A