Detailed Description
To make the objects, technical solutions and advantages of one or more embodiments of the present disclosure more apparent, the technical solutions of one or more embodiments of the present disclosure will be described in detail and completely with reference to the specific embodiments of the present disclosure and the accompanying drawings. It is to be understood that the embodiments described are only a few embodiments of the present specification, and not all embodiments. All other embodiments that can be derived by a person skilled in the art from the embodiments given herein without making any creative effort fall within the scope of protection of one or more embodiments of the present specification.
The technical solutions provided by the embodiments of the present description are described in detail below with reference to the accompanying drawings.
Currently, in a financial transaction service application of a network application, the identity of an applicant needs to be verified and real-name authentication is performed, and the manner of verifying the identity information of the applicant is generally to determine whether the identity verification of the applicant is passed through the identity information provided by the applicant, such as name, home address, telephone or identification card information.
However, when determining whether the applicant belongs to a credit blacklisted user or a foreign user only through the identity information provided by the applicant to determine whether the applicant passes the verification, since the financial model, such as network insurance, is transacted through the internet, the identity information provided by the applicant may be false identity information, for example, the identity information provided by the applicant may be the identity information of another person, thereby resulting in low accuracy of the identity verification.
In addition, for the foreign users, if the foreign users stay in china for a short time, the foreign users usually consume the cards or cash in china. However, as mobile payment is more and more popular in china, the consumption experience scenes of the foreign visitors are limited to a certain extent by card swiping and cash payment modes. In the existing cross-border payment mode, when a foreign user wants to use an application program of a financial transaction class, since many application programs of the financial transaction class only support a mode of binding a Chinese bank to authenticate the identity, the mode of verifying the identity of the foreign user is usually completed by binding a Chinese bank card of the foreign user, so that the function of paying in China by the foreign user is realized. However, in such a manner, the foreign nationality user firstly needs to pay attention to the bank by virtue of the entity to open an account, transact the bank card, and then bind the bank card with the application program to complete the identity verification, and the flow of the identity verification is relatively complex; resulting in a low authentication pass rate for the foreign user.
In order to solve the defects in the prior art, the following embodiments are provided in the present disclosure, and an identity verification method provided in the embodiments of the description will be specifically described with reference to the accompanying drawings:
fig. 1 is a schematic flow chart of an identity verification method provided in an embodiment of the present specification. From the viewpoint of a program, the execution subject of the flow may be a program installed in an application server or an application client. In this embodiment, the execution subject may be a server corresponding to the target program. In the scheme, when the identity of the foreign user is verified, the identity of the foreign user is verified through the electronic passport of the foreign user. And after the authentication of the foreign user is passed, the foreign user is allowed to use the related functions of the target program.
As shown in fig. 1, the process may include the following steps:
step 110: acquiring passport information obtained by reading an entity passport by a user terminal of a user; the passport information includes encrypted identification information of the user.
The user terminal may be a mobile communication terminal, such as: the computer equipment and the user terminal can comprise a smart phone, a notebook, a tablet computer, a POS machine and even a vehicle-mounted computer and the like. In the embodiment of the present disclosure, the user terminal may be a mobile terminal having a Near Field Communication (NFC) function, and has a Near Field Communication function. By integrating the functions of an induction type card reader, an induction type card and point-to-point communication on a single chip, data exchange can be carried out under the condition of mutual approach, and the applications of mobile payment, electronic ticketing, entrance guard, mobile identity recognition, anti-counterfeiting and the like are realized by utilizing a mobile terminal.
The NFC technology allows non-contact point-to-point data transmission between electronic devices, taking a smart phone as an example, an NFC chip is built in the phone to form a part of an RFID module, and may be used as an RFID passive tag, for example: for payment of a fee; can also be used as an RFID reader-writer, for example: used for data exchange and acquisition. NFC devices can be used as contactless smart cards, reader terminals for smart cards, and data transmission links from device to device.
The entity passport can comprise: the information of country code, name, photo, date of birth, number on passport, type of passport, place of birth, issuing organization, issuing date, validity period, signature and passport statement, etc. the photo and data of the holder are printed by laser printer, automatically generate international standard machine-readable code, and are transferred and sealed by special anti-fake film.
The physical passport in the embodiments of the present specification may be an electronic passport added with a smart chip. An electronic passport (Biometric passport) is a passport in which a minute radio frequency identification contactless chip containing Biometric information of a person to be cared is built, and the identity of a holder of a travel document can be verified by using a Biometric function such as face recognition or signature. An electronic chip can be embedded in the electronic passport and store the personal basic data of the holder, face image, fingerprint and other biological characteristics in the electronic chip, the electronic chip can be used for anti-counterfeiting, and all information in the physical passport can be stored in the chip.
The passport information may include encrypted identification information. The identity information may include information such as the user's name, photograph, date of birth, avatar, and household registration.
The user terminal with the built-in NFC chip is close to the chip of the entity passport, and the passport information stored in the chip of the entity passport can be read by the user terminal. The passport information may include: country information, identity information of the user, issuing authority information, and a digest value corresponding to identity sub-information in the passport information.
The read passport information may be passport information of the electronic passport to be verified.
Step 120: determining country information for issuing the physical passport based on the passport information.
In a specific implementation process, the country information of the entity passport is issued may be determined based on country identification information in the passport information, where the country identification information may be a country code, and the country code may be a code for representing a country.
Countries with passport issuers, where passports are issued by local electronic passport issuers, for example: the provincial/jurisdictional city power sub-passport issuing agency (DS) is responsible for making a signature for the data of the electronic passport chip and issuing a passport. Each issuing organization has an issuing certificate issued by the national passport issuing center (CSCA). The production standard of the electronic passport is made by the international civil aviation qualification. The International Civil Aviation Organization (ICAO for short) is a special Organization of united nations, and is established for promoting the safe and orderly development of Civil Aviation all over the world. One of its responsibilities/rights is to establish the standards of an electronic passport.
Step 130: and decrypting the passport information based on the country information to obtain the decrypted passport information.
The decryption process in this step may be a process of decrypting the private key using the corresponding public key.
Step 140: and matching the decrypted passport information with prestored passport information in the chip of the entity passport to obtain a first matching result.
After the passport information is successfully decrypted, it is required to compare whether the passport content in the electronic passport to be verified is consistent with the pre-stored passport content. If the two passports are identical, the electronic passport to be authenticated is determined to be a real passport, and otherwise, the electronic passport is determined to be a fake passport.
In the specific comparison, in order to prevent the data leakage, the specific content data in the electronic passport does not need to be actually compared, and only the corresponding abstract value needs to be compared.
Step 150: and when the first matching result shows that the matching degree of the decrypted passport information and the prestored passport information is greater than a preset threshold value, acquiring the face image information of the user.
After the passport content in the electronic passport to be verified is identical to the pre-stored passport content, and the electronic passport to be verified is determined to be a real passport, the identity of the foreign user cannot be determined, for example: when a user holds the passports of other users for identity verification, the passport is a real passport, but the identity information of the user cannot be determined, and whether the biological feature information of the foreign user to be verified is the same as the biological feature in the electronic passport needs to be further determined, and if the biological feature information is the same as the biological feature in the electronic passport, the real electronic passport is determined to be owned by the foreign user, and the identity verification is successful.
It should be noted that the matching degree in this step may include the following two cases:
in case one, the matching degree may represent a ratio of the number of verification processes that pass verification to the total number of verification processes:
in this embodiment of the present specification, when performing identity authentication, four authentication processes may be included:
1) the private key of the DS is verified using the public key in the CSCA's public key certificate.
2) And verifying the encrypted SOD passport information by using a public key in a public key certificate of the DS.
3) Verifying identity sub-information DG1。
4) Verifying identity sub-information DG2。
Wherein the identity sub-information in the decrypted passport information is divided into DGs1And DG2,DG1The abstract value can be corresponding to name, ID card number, address information and the like; DG2May be the digest value corresponding to the birth date and age.
The four verification processes do not need to be verified in each verification process when verifying the authenticity of the electronic passport, and three verification processes can be set to pass so as to determine that the electronic passport to be verified is a real passport. At this time, the matching degree may represent the number of the electronic passport to be authenticated corresponding to the authentication process of the authentication. Of course, the number of divisions of the verification process and the number of verification processes to be verified corresponding to the specifically set real passport can be set according to actual conditions, and this is not specifically limited in the embodiments of the present specification.
In case two, the matching degree may represent the ratio of the number of identity sub-information verification passes to the total number:
after the encrypted passport information is successfully decrypted, for all identity sub-information in the decrypted passport information, the digest value of all identity sub-information is not required to be the same as the digest value pre-stored in the SOD, the matching degree can be calculated, and the preset threshold value of the matching degree is preset. As long as the preset threshold is met. That is, the abstract values of most of the identity sub-information are the same as the abstract values pre-stored in the SOD. Of course, the verification passing proportion of the identity sub-information corresponding to the matching degree can also be set according to the actual application scenario.
Step 160: and matching the acquired face image information with the face information contained in the passport information to obtain a second matching result.
In this embodiment of the present specification, it may be verified whether the identity information of the user matches the identity information in the passport by acquiring the face image information, and in other embodiments, it may also be verified that the identity of the user is verified by acquiring other biometric information of the user and comparing the biometric information with the other biometric information.
Step 170: and when the second matching result indicates that the acquired face image information is consistent with the face information contained in the passport information, allowing the user to execute a target operation on a target program.
When the collected face image information is the same as the face information in the passport information, it may be determined that the authenticated passport belongs to the user, and the user identity authentication is successful, allowing the user to perform a target operation on the target program.
It should be noted that the target program may represent an application program for financial transactions, such as: payment applications, lending applications, spending credit applications, shopping applications, and the like.
The target operation may be an acquisition operation of a usage right for a target function of the target program. For example: an acquisition operation of a usage right for a payment function in the payment application, an acquisition operation of a usage right for a credit function in the payment application, and the like. The target operation may include: registering the target program, using the application in the target program, and authenticating the identity of the target program.
It should be understood that the order of some steps in the method described in one or more embodiments of the present disclosure may be interchanged according to actual needs, or some steps may be omitted or deleted.
The method in fig. 1 includes acquiring passport information including encrypted identity information, which is obtained by reading an entity passport by a user terminal of a user, determining country information of issuing the entity passport based on the passport information, decrypting the passport information based on the country information to obtain decrypted passport information, and matching the decrypted passport information with passport information prestored in a chip of the entity passport to obtain a first matching result; when the first matching result shows that the matching degree of the decrypted passport information and the prestored passport information is larger than a preset threshold value, acquiring the face image information of the user; matching the collected face image information with the face information contained in the passport information to obtain a second matching result; and when the second matching result indicates that the acquired face image information is consistent with the face information contained in the passport information, allowing the user to execute a target operation on a target program. The identity verification is carried out on the user through the passport information, and the identity verification efficiency and the identity verification success rate are improved. And after the user identity is successfully verified, allowing the user to execute the target operation on the target program, thereby ensuring the identity authenticity of the user using the target application program function.
Based on the process of fig. 1, some specific embodiments of the process are also provided in the examples of this specification, which are described below.
Optionally, the decrypting the passport information based on the country information to obtain the decrypted passport information may specifically include:
acquiring an encrypted first public key of the issuing organization;
acquiring a second public key corresponding to the country information based on the country information;
decrypting the encrypted first public key of the issuing organization by adopting the second public key to obtain a decrypted first public key;
decrypting the encrypted identity information by using the first public key information to obtain decrypted identity information; the encrypted identity information is obtained by encrypting the private key information of the issuing organization.
When the passport information is encrypted and decrypted, a specific flow may be described with reference to fig. 2:
fig. 2 is a schematic diagram illustrating a process of encrypting and decrypting information of an electronic passport according to an embodiment of the present disclosure.
As shown in fig. 2, the subject objects involved in encryption include the internationalcivil aviation organization 210, the nationalpassport issuance center 220, and the electronicpassport issuance mechanism 230.
When the passport information is encrypted, the private key of the electronic passport issuing authority is used for encryption, the encrypted passport information can be unlocked only by the public key in the public key certificate of the electronic passport issuing authority, and the public key certificate of the electronic passport issuing authority is encrypted by the private key of the national passport issuing center, so that the public key certificate of the electronic passport issuing authority can be unlocked only by the public key of the public key certificate of the national passport issuing center. The specific encryption flow is as follows:
the international civil aviation organization is a maker of passport production standards, and can issue a set of key certificates for each country with passport issuance function, wherein the key certificates can include key pairs, specifically public keys and private keys, and when being specifically understood, the key certificates can include public key certificates and private key certificates. But what can be obtained or stored is only a public key certificate, and a private key certificate cannot be obtained by other parties.
The international civil aviation organization is responsible for generating a public key and a private key of a national passport issuance center, wherein the private key of the national passport issuance center is used for signing a public key certificate of an electronic passport issuance authority.
The national passport issuance center is responsible for generating the public key and the private key of the electronic passport issuance authority, and the private key of the electronic passport issuance authority is used for signing the passport secure data object SOD.
The encrypted passport information may include a public key certificate of the electronic passport issuer, an encrypted signature value, and digest values of the individual identification information in the passport information.
It should be noted that the secure Data Object (SOD for short) mainly includes Data Groups (DG for short) in the logical Data structureS) Hash value logical data structure secure object and signature value SOD of secure datasigndgX-hash in FIG. 2 may represent a hash value logical data structure security object for a data group in a logical data structure. SOD may contain, for example: the specific identity information in the passport information and the abstract value of the name are DG1The abstract value of the ID card number is DG2… …, the digest value of the address information is DGn.
The decryption process is as follows:
the country information can be acquired from the read passport information, and the public key certificate of the national passport issuance center corresponding to the country information is acquired from the international civil aviation organization based on the country information.
And decrypting the public key certificate of the electronic passport issuing agency by using the public key in the public key certificate of the national passport issuing center.
And decrypting the passport information by using the public key in the public key certificate of the decrypted electronic passport issue mechanism to obtain the decrypted passport information.
Through the encryption and decryption processes, the electronic passport generated by each electronic passport issuing mechanism can be ensured to have a strong anti-counterfeiting function, and the security of the electronic passport is improved.
More specifically, the key certificate of each national passport issue center may be stored in a database established by the international civil aviation organization, such as: the key certificate of the national passport issuance center may be stored in the PKI root directory of the international civil aviation organization.
Besides, the key certificate of the national passport issuance center can also be stored in the server of a specific application platform, for example: may be stored in a server of the payment application platform. In practical applications, in order to ensure the security of the electronic passport, the key certificate of the passport issuance center of each country may be updated periodically, for example: however, since the passport information of the electronic passport is encrypted using the key certificate before the key certificate is replaced, the original key certificate cannot be deleted even if the key certificate is updated, and thus, a plurality of key certificates can be associated with each national passport issuance center. During storage, the key certificates can be classified and stored according to country information, and the key certificates corresponding to one country are stored in a data table. It should be noted that, in the storage, only the public keys corresponding to the countries are stored.
By the method, when the key certificate corresponding to the country is inquired subsequently, the inquiry is carried out according to the country information, so that the inquiry efficiency can be improved.
Optionally, before obtaining the first public key information corresponding to the country information based on the country information, the method may further include:
judging whether the country information has a corresponding key certificate or not based on the country information;
and when the country information corresponds to the key certificate, acquiring first public key information corresponding to the country information.
For the issue of the passport, not all countries have the passport issue function, and part of the countries do not have the passport issue function, so after the country information of the passport information is acquired, before the first public key information corresponding to the country information is acquired, whether the country corresponding to the country information has the passport issue function or not can be judged, and if not, the electronic passport to be verified is directly determined to be a forged passport. Specifically, in determining whether a country has a passport issuance function, it is possible to determine whether the country has a corresponding key certificate.
By the method, before the public key information corresponding to the country information is acquired, whether the issuing country corresponding to the electronic passport to be verified has the passport issuing function or not can be judged, and when the country corresponding to the country information does not have the passport issuing function, the passport to be verified can be directly judged to be a forged passport, so that subsequent verification steps are saved, and the verification efficiency is improved.
Optionally, the matching the decrypted passport information with the pre-stored passport information in the chip of the entity passport to obtain a first matching result may specifically include:
determining a plurality of identity sub-information in the decrypted passport information;
respectively calculating the abstract value corresponding to each identity sub-information in the plurality of identity sub-information;
and matching the abstract value corresponding to each identity sub-information with the abstract value prestored in the chip of the entity passport to obtain a matching result.
Optionally, the matching the digest value corresponding to each identity sub-information with the digest value pre-stored in the chip of the entity passport to obtain a matching result may specifically include:
for one piece of identity sub-information, carrying out Hash calculation on the identity sub-information to obtain an abstract value of the identity sub-information;
the abstract value is checked with the abstract value of the identity sub-information prestored in the chip of the entity passport;
and when the abstract value is the same as the abstract value of the identity sub-information prestored in the chip of the entity passport, obtaining a matching result indicating that the identity sub-information is checked correctly.
After the encrypted passport information is decrypted, it is necessary to determine whether the user identification information in the passport information is authentic, and in this case, it should be compared whether the passport content in the decrypted passport information matches the passport content at the time of generation of the passport. In the specific comparison process, in order to ensure that the user identity information is not leaked, each item of identity information in the passport can be compared one by one, and only the digest value corresponding to each item of identity information needs to be compared.
For example, in the decrypted passport information, the identity sub-information may include a name, an identification number, a birth date, address information, and the like, and for each identity sub-information, a digest value is calculated, for example: the abstract value of a name is DG1Comparing the name with the abstract value of the name in the SOD; the digest value of the ID card number is DG2Comparing the obtained result with the abstract value of the identity card number in the SOD; … …, the summary value of the address information is DGn, and is compared with the summary value of the address information in the SOD.
In calculating the digest value, the digest value may be calculated based on a pre-agreed algorithm, for example: and calculating the digest value of each identity sub-message by using a predefined hash algorithm.
When the abstract values are compared, certain fault tolerance can be allowed, the abstract values of all the identity sub-information are not required to be the same as the abstract values stored in the SOD in advance, the matching degree can be calculated, and a preset threshold value of the matching degree is preset. As long as the preset threshold is met. That is, the abstract values of most of the identity sub-information are the same as the abstract values pre-stored in the SOD.
Optionally, before acquiring the face image information of the target user when the comparison result indicates that the matching degree of the decrypted passport information and the pre-stored passport information is greater than a preset threshold, the method may further include:
and calculating the matching degree of the decrypted passport information and the prestored passport information based on the matching result.
Optionally, the calculating the matching degree between the decrypted passport information and the pre-stored passport information may specifically include:
determining the number of identity sub-information which is successfully matched with the decrypted passport information;
determining the total number of identity sub-information in the decrypted passport information;
and calculating the ratio of the number of the identity sub-information successfully matched to the total number of the identity sub-information, and determining the ratio as the matching degree.
By the method, the authenticity of the user passport information can be verified while the privacy security of the user identity information is ensured, and the passport verification efficiency is improved.
The method in the above embodiment takes the authentication of the identity of the foreign user as an example, and when the foreign user wants to use a certain function in a certain payment application, the foreign user needs to be authenticated by the real name. The specific process can be explained with reference to fig. 3:
fig. 3 is a schematic diagram illustrating an authentication process of a foreign user according to an embodiment of the present disclosure.
As shown in fig. 3, the method may specifically include the following steps:
step 301: the foreign user enters an authentication interface of the payment application program to guide the foreign user to read the electronic passport information by using the NFC, wherein the electronic passport information may include a DS root certificate, SOD data, and the like. Wherein, the DS root certificate may be the aforementioned DS key certificate.
Step 303: the country of issuance of the electronic passport is extracted from the read electronic passport information.
Step 305: according to the country information of the issuing country, whether a CSCA root certificate corresponding to the issuing country exists in the memory is queried, and the CSCA root certificate may be the above-mentioned CSCA key certificate. If not, go to step 317.
Step 307: and when the CSCA root certificate corresponding to the issuing country exists, circularly adopting the CSCA root certificate to verify the DS root certificate.
Step 309: and if one of the verification passes, jumping out of the loop, verifying the data security object in the electronic passport according to the DS public key certificate, and verifying the abstract value.
Step 311: and if the verification is passed, determining that the electronic passport is a real passport, and guiding the user to brush the face of the living body. If the verification fails, the process proceeds to step 317.
Step 313: and comparing whether the acquired living body face image information is the same as the face image information in the passport.
Step 315: if the identity of the foreign user is the same, the authentication of the foreign user is successful. If not, go to step 317.
Step 317: the verification fails.
It should be noted that the method in the above steps is only one implementation manner of the embodiment of this specification, and the DS public key certificate is decrypted by using the public key of the public key certificate of the CSCA, and then the encrypted passport data is decrypted by using the public key of the DS public key certificate. After the passport data is decrypted, the abstract values of the identity information (such as the name and the identification card number) in the passport data are compared. However, in practical application scenarios, even if the public key of CSCA is used to unlock the public key certificate of DS, only the DS certificate can be authenticated. However, the country issuing identification can be obtained from the DS public key certificate in the read passport information, and the CSCA country certificate corresponding to the country identification can also be obtained to determine whether the electronic passport is normally issued, and if the verification fails, the identity information in the SOD can be continuously verified, but the credibility is not high. But do not indicate that the preceding and following steps among the above-described steps are indispensable. The sequence can also be adjusted according to the actual application scenario.
By the method, the identity of the user is verified through the passport information, and the identity verification efficiency and the identity verification success rate are improved. And after the user identity is successfully verified, allowing the user to execute the target operation on the target program, thereby ensuring the identity authenticity of the user using the target application program function.
The method in the embodiment of the specification adopts the NFC technology to identify the electronic passport, and ensures that the electronic passport is real, effective and free of tampering; the mode of acquiring the comparison between the living human face and the passport human face in real time is adopted to ensure that the electronic passport is not used.
Based on the same idea, the embodiment of the present specification further provides a device corresponding to the above method. Fig. 4 is a schematic structural diagram of an identity verification apparatus provided in an embodiment of the present disclosure. As shown in fig. 4, the apparatus may include:
a passportinformation reading module 410, configured to acquire passport information obtained by reading an entity passport by a user terminal of a user; the passport information comprises encrypted identity information of the user;
a countryinformation determination module 420 for determining country information of issuing the entity passport based on the passport information;
the passportinformation decryption module 430 is configured to decrypt the passport information based on the country information to obtain decrypted passport information;
thefirst matching module 440 is configured to match the decrypted passport information with pre-stored passport information in the chip of the entity passport to obtain a first matching result;
a face imageinformation collecting module 450, configured to collect face image information of the user when the first matching result indicates that the matching degree between the decrypted passport information and the pre-stored passport information is greater than a preset threshold;
thesecond matching module 460 is configured to match the acquired face image information with the face information included in the passport information to obtain a second matching result;
and a target operationauthority granting module 470, configured to allow the user to perform a target operation on a target program when the second matching result indicates that the acquired face image information is consistent with the face information included in the passport information.
The examples of this specification also provide some specific embodiments of the process based on the apparatus of fig. 4, which is described below.
Optionally, the passportinformation decryption module 430 may specifically include:
a first public key obtaining unit, configured to obtain an encrypted first public key of the issuing authority;
a second public key obtaining unit, configured to obtain, based on the country information, a second public key corresponding to the country information;
the first decryption unit is used for decrypting the encrypted first public key of the issuing organization by adopting the second public key to obtain a decrypted first public key;
the second decryption unit is used for decrypting the encrypted identity information by adopting the first public key information to obtain decrypted identity information; and the encrypted identity information is obtained by encrypting the private key information of the issuing organization.
Optionally, thefirst matching module 440 may specifically include:
an identity sub-information determining unit, configured to determine a plurality of identity sub-information in the decrypted passport information;
the identity sub-information abstract value calculation unit is used for calculating the abstract value corresponding to each identity sub-information in the plurality of identity sub-information respectively;
and the first matching unit is used for matching the abstract value corresponding to each identity sub-information with the abstract value prestored in the chip of the entity passport to obtain a matching result.
Optionally, the first matching unit may specifically include:
the hash calculation subunit is configured to perform hash calculation on one piece of identity sub-information to obtain an abstract value of the identity sub-information;
the abstract value checking subunit is used for checking the abstract value with an abstract value of the identity sub-information prestored in a chip of the entity passport;
and the matching result determining subunit is used for obtaining a matching result indicating that the identity sub-information is checked correctly when the abstract value is the same as the abstract value of the identity sub-information prestored in the chip of the entity passport.
Optionally, the apparatus may further include:
and the matching degree calculating module is used for calculating the matching degree of the decrypted passport information and the prestored passport information based on the matching result.
Optionally, the matching degree calculating module may specifically include:
the matching success identity sub-information quantity determining unit is used for determining the quantity of the identity sub-information which is successfully matched with the decrypted passport information;
the identity sub information total number determining unit is used for determining the total number of the identity sub information in the decrypted passport information;
and the ratio calculating unit is used for calculating the ratio of the number of the successfully matched identity sub-information to the total number of the identity sub-information and determining the ratio as the matching degree.
Optionally, the apparatus may further include:
the key certificate acquisition module is used for acquiring key certificates of all countries; the key certificate comprises a public key;
and the classified storage module is used for storing the key certificate in a classified manner according to the country information.
Optionally, the apparatus may further include:
the judging module is used for judging whether the country information has a corresponding key certificate or not based on the country information;
and the first public key information acquisition module is used for acquiring first public key information corresponding to the country information when the country information corresponds to a key certificate.
Alternatively, the target program may be a program for performing a financial transaction.
Optionally, the target operation may be an operation of acquiring a usage right of a target function of the target program.
Optionally, the passportinformation reading module 410 may specifically include:
and the passport information reading unit is used for acquiring the passport information stored in the chip of the entity passport and read by the user terminal through the NFC module.
Based on the same idea, the embodiment of the present specification further provides a device corresponding to the above method.
Fig. 5 is a schematic structural diagram of an identity verification apparatus provided in an embodiment of the present specification. As shown in fig. 5, theapparatus 500 may include:
at least one processor 510; and the number of the first and second groups,
a memory 530 communicatively coupled to the at least one processor; wherein,
the memory 530 stores instructions 520 executable by the at least one processor 510 to enable the at least one processor 510 to:
acquiring passport information obtained by reading an entity passport by a user terminal of a user; the passport information comprises encrypted identity information of the user;
determining country information for issuing the entity passport based on the passport information;
decrypting the passport information based on the country information to obtain decrypted passport information;
matching the decrypted passport information with prestored passport information in a chip of the entity passport to obtain a first matching result;
when the first matching result shows that the matching degree of the decrypted passport information and the pre-stored passport information is larger than a preset threshold value, acquiring the face image information of the user;
matching the collected face image information with the face information contained in the passport information to obtain a second matching result;
and when the second matching result indicates that the acquired face image information is consistent with the face information contained in the passport information, allowing the user to execute a target operation on a target program.
Based on the same idea, the embodiments of the present specification also provide a computer-readable medium corresponding to the above method. The computer readable medium has computer readable instructions stored thereon that are executable by a processor to implement the method of:
acquiring passport information obtained by reading an entity passport by a user terminal of a user; the passport information comprises encrypted identity information of the user;
determining country information for issuing the entity passport based on the passport information;
decrypting the passport information based on the country information to obtain decrypted passport information;
matching the decrypted passport information with prestored passport information in a chip of the entity passport to obtain a first matching result;
when the first matching result shows that the matching degree of the decrypted passport information and the prestored passport information is larger than a preset threshold value, acquiring the face image information of the user;
matching the collected face image information with the face information contained in the passport information to obtain a second matching result;
when the second matching result indicates that the acquired face image information is consistent with the face information contained in the passport information, allowing the user to perform a target operation on a target program.
All the embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments may be referred to each other, and the embodiments are mainly described as different from other embodiments. In particular, for the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
In the 90 s of the 20 th century, improvements in a technology could clearly distinguish between improvements in hardware (e.g., improvements in circuit structures such as diodes, transistors, switches, etc.) and improvements in software (improvements in process flow). However, as technology advances, many of today's process flow improvements have been seen as direct improvements in hardware circuit architecture. Designers almost always obtain the corresponding hardware circuit structure by programming an improved method flow into the hardware circuit. Thus, it cannot be said that an improvement in the process flow cannot be realized by hardware physical modules. For example, a Programmable Logic Device (PLD), such as a Field Programmable Gate Array (FPGA), is an integrated circuit whose Logic functions are determined by programming the Device by a user. A digital character system is "integrated" on a PLD by the designer's own programming without requiring the chip manufacturer to design and fabricate a dedicated integrated circuit chip. Furthermore, nowadays, instead of manually manufacturing an Integrated Circuit chip, such Programming is often implemented by "logic compiler" software, which is similar to the software compiler used in program development, but the original code before compiling is also written in a specific Programming Language, which is called Hardware Description Language (HDL), and the HDL is not only one kind but many kinds, such as abel (advanced boot Expression Language), ahdl (alternate Language Description Language), communication, CUPL (computer universal Programming Language), HDCal (Java Hardware Description Language), langa, Lola, mylar, HDL, PALASM, rhydl (runtime Description Language), vhjhdul (Hardware Description Language), and vhygl-Language, which are currently used commonly. It will also be apparent to those skilled in the art that hardware circuitry that implements the logical method flows can be readily obtained by merely slightly programming the method flows into an integrated circuit using the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, an Application Specific Integrated Circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include, but are not limited to, the following microcontrollers: the ARC625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic for the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller as pure computer readable program code, the same functionality can be implemented by logically programming method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Such a controller may thus be considered a hardware component, and the means included therein for performing the various functions may also be considered as a structure within the hardware component. Or even means for performing the functions may be conceived to be both a software module implementing the method and a structure within a hardware component.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functionality of the units may be implemented in one or more software and/or hardware when implementing the present application.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Disks (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices, or any other non-transmission medium which can be used to store information which can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.