Biometric storage method, device, equipment and storage medium
By determining the storage location of the distributed host based on the password summary in the biometric storage solution, and migrating the data when the threshold is reached, the problem of data unevenness in the traditional solution is solved and the data retrieval efficiency of biometric identification is improved.
Patent Information
- Application Number
- CN202011364980.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-27
- Publication Date
- 2025-01-17
- Estimated Expiration
- 2040-11-27
AI Technical Summary
Traditional biometric storage schemes have uneven distribution of passwords or password digests, resulting in uneven data in the partition database, resulting in low efficiency in retrieval of data.
By obtaining biometric features and their corresponding password summaries from the biometric database, the storage locations in multiple distributed hosts are determined based on the password summaries, and when the preset quantity threshold or storage space threshold is reached, the data is migrated to other locations. Distributed host to achieve uniform distribution of biometric characteristics.
The biometric features in the biometric database are evenly distributed on multiple distributed hosts, which improves the data retrieval efficiency during biometric identification.
Smart Images

Figure CN112395469B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data storage technology, and in particular to a biometric storage method, device, equipment and storage medium. Background Art
[0002] With the development of artificial intelligence technology, biometrics based on artificial intelligence technology are widely used in various fields, such as face payment, fingerprint payment, iris payment, etc.
[0003] At present, traditional biometric storage solutions usually divide the biometric database based on passwords or password summaries and store the results of the division. However, due to the uneven distribution of passwords or password summaries, the data in the division database is often uneven, resulting in low efficiency in data retrieval. Summary of the invention
[0004] The embodiments of the present application provide a biometric storage method, apparatus, device and storage medium, which can evenly distribute the biometrics in a biometric database on multiple distributed hosts.
[0005] In a first aspect, an embodiment of the present application provides a biometric storage method, the method comprising:
[0006] Obtaining a first biometric feature and a first password digest corresponding to the first biometric feature from a biometric feature base database;
[0007] Determining a first distributed host from a plurality of preset distributed hosts according to the first password digest;
[0008] storing the first biometric characteristic and the first password digest in association with each other in the first distributed host;
[0009] When the number of biometric features corresponding to the first password summary in the first distributed host reaches a preset number threshold and / or the storage space of the first distributed host reaches a preset first storage space threshold, the first biometric feature and the first password summary are associated and stored in a second distributed host associated with the first distributed host, wherein the second distributed host is a distributed host other than the first distributed host among the multiple distributed hosts.
[0010] In a second aspect, an embodiment of the present application provides a biometric storage device, the device comprising:
[0011] An acquisition module, used for acquiring a first biometric feature and a first password digest corresponding to the first biometric feature from a biometric feature base database;
[0012] A determination module, configured to determine a first distributed host from a plurality of preset distributed hosts according to a first password digest;
[0013] A storage module, configured to associate and store the first biometric feature and the first password digest in a first distributed host;
[0014] The storage module is further used to associate and store the first biometric feature and the first password summary in a second distributed host associated with the first distributed host when the number of biometric features corresponding to the first password summary in the first distributed host reaches a preset number threshold and / or the storage space of the first distributed host reaches a preset first storage space threshold, wherein the second distributed host is a distributed host other than the first distributed host among the multiple distributed hosts.
[0015] In a third aspect, an embodiment of the present application provides a biometric storage device, which includes: a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, the biometric storage method described in the first aspect is implemented.
[0016] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the biometric storage method described in the first aspect is implemented.
[0017] The embodiments of the present application provide a biometric storage method, device, equipment and storage medium, which can obtain a first biometric and its corresponding first password summary from a biometric base, and determine a first distributed host from a preset plurality of distributed hosts according to the first password summary. The first biometric and the first password summary are stored in association with the first distributed host. When the number of biometrics corresponding to the first password summary in the first distributed host reaches a preset number threshold and / or the storage space of the first distributed host reaches a preset first storage space threshold, the first biometric and the first password summary are stored in association with the second distributed host associated with the first distributed host. The second distributed host is a distributed host other than the first distributed host among the plurality of distributed hosts. In this way, the biometrics in the biometric base can be evenly distributed on a plurality of distributed hosts, which facilitates rapid retrieval of data during subsequent biometric identification and improves the efficiency of biometric identification. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solution of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0019] Figure 1 It is a schematic diagram of the architecture of a biometric storage system provided in an embodiment of the present application;
[0020] Figure 2It is a flowchart of a biometric storage method provided in an embodiment of the present application;
[0021] Figure 3 It is a flowchart of another biometric storage method provided in an embodiment of the present application;
[0022] Figure 4 This is a schematic diagram of a data storage structure provided by an embodiment of the present application;
[0023] Figure 5 is a schematic diagram of the structure of a biometric storage device provided in an embodiment of the present application;
[0024] Figure 6 It is a structural schematic diagram of a biometric storage device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0025] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and Examples. It should be understood that the specific embodiments described herein only explain the present application, rather than limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.
[0026] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0027] In order to solve the problems of the prior art, the embodiments of the present application provide a biometric storage method, device, equipment and storage medium. A first biometric and its corresponding first password digest can be obtained from a biometric base database, and a first distributed host can be determined from a preset plurality of distributed hosts according to the first password digest. The first biometric and the first password digest are associated and stored in the first distributed host. When the number of biometrics corresponding to the first password digest in the first distributed host reaches a preset number threshold and / or the storage space of the first distributed host reaches a preset first storage space threshold, the first biometric and the first password digest are associated and stored in a second distributed host associated with the first distributed host. The second distributed host is a distributed host other than the first distributed host among the plurality of distributed hosts. In this way, the biometrics in the biometric base database can be evenly distributed on a plurality of distributed hosts, which facilitates rapid retrieval of data during subsequent biometric identification and improves the efficiency of biometric identification.
[0028] The following, in conjunction with the accompanying drawings, describes in detail the biometric storage method, device, equipment and storage medium provided in the embodiments of the present application through specific embodiments and their application scenarios.
[0029] Figure 1 is a schematic diagram of the architecture of a biometric storage system provided in an embodiment of the present application, such as Figure 1 As shown, the biometric storage system may include an electronic device 110, a server 120, and a plurality of distributed hosts 130. The electronic device 110 may be a server, a network attached storage (NAS) or a personal computer (PC), etc. Exemplarily, the electronic device 110 may also be any one of the distributed hosts 130. The server 120 may be a server corresponding to services such as finance, social networking or entertainment, on which a biometric database including the biometrics of all registered users is provided. The electronic device 110 may communicate with the server 120 and the distributed hosts 130 respectively through a network, wherein the network may be a wired communication network or a wireless communication network.
[0030] As an example, the biometric storage system can be applied to application scenarios involving biometrics such as face recognition, fingerprint recognition, iris recognition or voiceprint recognition. Specifically, it can be applied to application scenarios of face payment, which is not limited here.
[0031] See also Figure 1, the electronic device 110 can obtain the first biometric feature and the first password digest corresponding to the first biometric feature from the biometric feature base in the server 120, and determine the first distributed host from the multiple distributed hosts 130, that is, the preset multiple distributed hosts according to the first password digest. Then, the first biometric feature and the first password digest are associated and stored in the first distributed host. When the number of biometric features corresponding to the first password digest in the first distributed host reaches the preset number threshold and / or the storage space of the first distributed host reaches the preset first storage space threshold, the first biometric feature and the first password digest are associated and stored in the second distributed host associated with the first distributed host. Among them, the second distributed host is a distributed host other than the first distributed host in the distributed hosts 130. Similarly, when the first distributed host also appears in the second distributed host, the first biometric feature and the first password digest can be associated and stored in the distributed host associated with the second distributed host in the distributed host 130, and so on. In this way, the biometric features in the biometric feature base can be evenly distributed on multiple distributed hosts.
[0032] The following is a detailed description of the biometric storage method provided by the embodiment of the present application. The execution subject of the biometric storage method may be Figure 1 The electronic device 110 in the biometric storage system shown, or a module in the electronic device 110.
[0033] Figure 2 is a flow chart of a biometric storage method provided in an embodiment of the present application, such as Figure 2 As shown, the biometric storage method may include the following steps:
[0034] S210: Obtain a first biometric feature and a first password digest corresponding to the first biometric feature from a biometric feature base database.
[0035] The biometric database may be a facial database, a fingerprint database, an iris database, or a voiceprint database, etc. Accordingly, the first biometric may be a facial feature, a fingerprint database, an iris database, or a voiceprint database, etc. of the registered user. The first password digest is calculated from the first password, and illustratively, the first password may be the password of the registered user.
[0036] S220: Determine a first distributed host from a plurality of preset distributed hosts according to the first password digest.
[0037] In one embodiment, a hash value of the first password digest may be calculated, and the first distributed host may be determined from a plurality of preset distributed hosts according to the hash value.
[0038] Optionally, a hash value of the first password digest may be calculated according to a hash algorithm, and the hash value and the number of distributed hosts may be modulo-calculated to obtain a modulus value of the hash value. According to preset relationship information between the modulus value and the distributed hosts, the distributed host corresponding to the modulus value is determined to be the first distributed host. Exemplarily, when the number of distributed hosts is N, the preset relationship information may be that when the modulus value is 0, the distributed host with a serial number of N is selected as the second distributed host, and when 1≤modulus value≤N-1, the distributed host with the corresponding serial number is selected as the first distributed host.
[0039] For example, there are 10 distributed hosts, namely distributed host 1, distributed host 2, ..., distributed host 10. After calculation, the hash value of password summary 1 is 1. 1 and 10 are calculated modulo and the modulus value is 1. Therefore, according to the preset relationship information, the distributed host 1 corresponding to the modulus value 1 can be determined as the first distributed host.
[0040] In addition, the hash value of the first password digest may be calculated according to the hash algorithm, and the hash value and the number of distributed hosts may be modulo calculated to obtain a remainder value of the hash value. The distributed host corresponding to the remainder value is determined as the first distributed host according to the preset relationship information between the remainder value and the distributed hosts. The specific details are similar to those in the embodiment of modulo calculation and are not described in detail here.
[0041] S230: associate the first biometric feature with the first password digest and store it in the first distributed host.
[0042] S240, when the number of biometric features corresponding to the first password summary in the first distributed host reaches a preset number threshold and / or the storage space of the first distributed host reaches a preset first storage space threshold, the first biometric feature and the first password summary are associated and stored in a second distributed host associated with the first distributed host.
[0043] Specifically, it can be determined whether the number of biometric features corresponding to the first password digest in the first distributed host reaches a preset number threshold, and whether the storage space of the first distributed host reaches a preset first storage space threshold. In the case that the number of biometric features corresponding to the first password digest in the first distributed host reaches the preset number threshold and / or the storage space of the first distributed host reaches the preset first storage space threshold, the first biometric feature and the first password digest are associated and stored in a second distributed host associated with the first distributed host. The second distributed host is a host other than the first distributed host among the multiple distributed hosts.
[0044] Exemplarily, the number of distributed hosts is N, the serial number of the first distributed host is A, and the serial number of the second distributed host is B, where B=(A+C)mod N, where A, B, and C are positive integers, and A≤N, B≤N, and 1≤C≤N-1. For example, if the number of distributed hosts is 10, the serial number of the first distributed host is 2, and C is 1, then the serial number of the second distributed host is 3; if the number of distributed hosts is 20, the serial number of the first distributed host is 20, and C is 5, then the serial number of the second distributed host is 5.
[0045] Similarly, when the first distributed host also appears in the second distributed host, the first biometric feature and the first password digest can be associated and stored in the distributed host associated with the second distributed host in the distributed host, and so on.
[0046] In an embodiment of the present application, a first distributed host is determined from a plurality of preset distributed hosts according to a first password digest. The first biometric feature and the first password digest are associated and stored in the first distributed host. When the number of biometric features corresponding to the first password digest in the first distributed host reaches a preset number threshold and / or the storage space of the first distributed host reaches a preset first storage space threshold, the first biometric feature and the first password digest are associated and stored in a second distributed host associated with the first distributed host, and so on. The biometric features in the biometric feature base database can be evenly distributed on multiple distributed hosts, which facilitates rapid retrieval of data during subsequent biometric feature identification and improves the efficiency of biometric feature identification.
[0047] In one embodiment, the method may further include:
[0048] A registration request sent by a receiving terminal is received. The terminal may be a user's device, such as a mobile phone, a tablet computer, a notebook, etc., or a merchant's device, such as a cash register, a self-service vending machine, an ATM, etc. The registration request includes the user's second biometric feature and a second password. Exemplarily, the second biometric feature is a biometric feature collected by the terminal when the user registers, and the second password is a password entered by the user when registering.
[0049] Next, a second password digest of the second password is calculated, and a third distributed host is determined from the plurality of distributed hosts according to the second password digest.
[0050] The second biometric feature and the second password digest are then associated and stored in a third distributed host. Figure 1 The illustrated embodiment is similar and will not be described in detail here. In this way, the biometrics and password digests of the newly registered user can be evenly stored on the distributed hosts.
[0051] It is worth noting that the second biometric feature and the second password summary need to be stored in the biometric feature base database.
[0052] In one embodiment, the method may further include:
[0053] The update request sent by the receiving terminal includes the user's third biometric feature, the first password and the third password. It can be understood that the third biometric feature is the latest biometric feature collected, the first password is the old password used by the registered user, and the third password is the new password to be used by the registered user.
[0054] Then, a first password digest of the first password and a third password digest of the third password are calculated, and at least one first target distributed host is determined from multiple distributed hosts according to the first password digest, that is, a distributed host storing a biometric feature corresponding to the first password digest.
[0055] Then, according to the first password digest, the first target biometric feature matching the third biometric feature is retrieved in at least one first target distributed host. Specifically, the biometric feature associated with the first password digest in at least one first target distributed host can be feature matched with the third biometric feature, and the biometric feature with the closest matching result is determined to be the first target biometric feature. Then, the first target biometric feature and the password digest associated with the first target biometric feature are deleted.
[0056] In addition, a fourth distributed host needs to be determined from the plurality of distributed hosts according to the third password digest, and the third biometric feature and the third password digest are associated and stored in the fourth distributed host. Figure 1 The illustrated embodiment is similar and will not be described in detail here. In this way, user information can be updated so that the updated biometric features and password digests are evenly stored on the distributed hosts.
[0057] Optionally, to avoid the overhead caused by frequent updates, user information may be updated in a timed batch update manner.
[0058] In one embodiment, the method may further include: obtaining a first communication identifier corresponding to the first biometric feature from a biometric feature base. The communication identifier may be a mobile phone number or a last digit of a mobile phone number of a registered user. It is understood that when multiple users use the same device, the multiple users share a mobile phone number or a last digit of a mobile phone number. Moreover, the last digits of mobile phones of users of different devices may also be the same.
[0059] Optionally, the first biometric feature, the first password digest and the first communication identifier may be associated and stored in the first distributed host.
[0060] In another embodiment, the method may further include: generating a first user identifier corresponding to the first biometric feature, wherein the first user identifier is an identifier that uniquely represents the biometric feature.
[0061] Optionally, the first biometric feature, the first password summary and the first user identification may be stored in association with the first distributed host. In addition, the first biometric feature, the first password summary, the first communication identification and the first user identification may also be stored in association with the first distributed host.
[0062] After the biometric features are stored in the distributed host, they can be used for biometric identification. Optionally, the method may also include:
[0063] A first identification request sent by the terminal is received, wherein the first identification request includes a fourth biometric feature and a fourth password of the user, that is, the biometric feature and password collected by the terminal when the user performs biometric identification.
[0064] Next, a fourth password digest of the fourth password is calculated, and at least one second target distributed host is determined from the plurality of distributed hosts according to the fourth password digest.
[0065] Then, according to the fourth password summary, a second target biometric feature matching the fourth biometric feature is retrieved from at least one second target distributed host. In this way, the target biometric feature matching the current biometric feature can be quickly retrieved based on the password summary, thereby improving the efficiency of biometric feature recognition.
[0066] As a specific example, when a user goes to a merchant to buy goods, at the time of checkout, the cash register with a camera takes a picture of the user's face, collects the user's facial features, and obtains the password entered by the user. Figure 1 The electronic device 130 in the payment method sends an identification request including facial features and password. The electronic device 130 calculates a digest of the password and determines at least one target distributed host storing the biometric features corresponding to the digest from among multiple distributed hosts based on the digest. Then, based on the digest, the target facial features matching the facial features are retrieved from the target distributed host to complete the biometric identification and make the payment.
[0067] Optionally, the method may further include:
[0068] The second identification request sent by the terminal is received, wherein the second identification request includes the fifth biometric feature, the fifth password and the second communication identifier of the user, that is, the biometric feature, the password and the communication identifier collected by the terminal when the user performs biometric identification.
[0069] Next, a fifth password digest of the fifth password is calculated, and at least one third target distributed host is determined from the plurality of distributed hosts according to the fifth password digest.
[0070] Then, according to the fifth password summary and the second communication identifier, a third target biometric matching the fifth biometric is retrieved from at least one third target distributed host. Compared with the first identification request, the second identification request adds a communication identifier, which can narrow the search scope and improve the efficiency of biometric identification.
[0071] Optionally, the method may further include:
[0072] The third identification request sent by the receiving terminal includes the sixth biometric feature of the user and the terminal identifier, which can be understood as the biometric feature collected by the terminal and the identifier that uniquely represents the terminal when the user selects password-free biometric identification.
[0073] Then obtain the first password list corresponding to the terminal identifier. The first password list is generated based on the user using the terminal for biometric identification, including the sixth password summary and the second user identifier, such as the password summary and user identifier of the user recorded when the user uses the terminal for biometric identification. In addition, the first password list may also include information such as the communication identifier and update time. As an example, as shown in Table 1, the first password list uses the terminal identifier as the list name, and the cash register a list records the password summary, user identifier and update time of users who have made purchases at the merchant where cash register a is located.
[0074] Table 1
[0075]
[0076]
[0077] Then, at least one fourth target distributed host is determined from the plurality of distributed hosts according to the sixth password digest.
[0078] Then, according to the sixth password summary and the second user identifier, a fourth target biometric feature matching the sixth biometric feature is retrieved in at least one fourth target distributed host. Specifically, the biometric feature associated with the sixth password summary and the second user identifier in each fourth target distributed host can be feature matched with the sixth biometric feature, and the biometric feature with the closest matching result is determined to be the fourth target biometric feature, so that face recognition can be achieved without the user entering a password.
[0079] Optionally, the method may further include:
[0080] The fourth identification request sent by the receiving terminal includes the seventh biometric feature of the user, the terminal identifier and the seventh password, and the seventh biometric feature and the seventh password can be understood as the biometric feature and password collected by the terminal when the user selects biometric identification with password.
[0081] Then, the seventh password digest of the seventh password is calculated, and a second password list corresponding to the terminal identifier and the seventh password digest is obtained, wherein the second password list includes the third user identifier.
[0082] The second password list is generated based on the user using the terminal for biometric identification, including the third user identifier. In addition, the second password list may also include information such as the communication identifier and the update time. As an example, as shown in Table 2, the second password list uses the terminal identifier plus the password summary as the list name, and the cash register a+password summary 1 list is a refinement of Table 1.
[0083] Table 2
[0084] Cash register a+ password summary 1 list User 1+Update time User 12+ Update time User 3+ Update Time …
[0085] Then, at least one fifth target distributed host is determined from the plurality of distributed hosts according to the seventh password digest.
[0086] Then, according to the seventh password summary and the third user identifier, the fifth target biometric feature matching the seventh biometric feature is retrieved in the fifth target distributed host. Compared with the first password list, the second password list is more detailed. Retrieval based on the second password list can narrow the retrieval scope and improve the efficiency of biometric feature recognition.
[0087] Exemplarily, the first password list and the second password list may be maintained, and the maintenance methods include but are not limited to deleting invalid records when the user logs out, regularly deleting old records according to update time, and maintaining the list length at an appropriate length.
[0088] In one embodiment, the method may further include: generating a prompt message when the total storage space of the plurality of distributed hosts reaches a second storage space threshold, the prompt message being used to prompt the user to add a distributed host. Exemplarily, when the storage space of the plurality of distributed hosts is no longer able to store, the capacity may be expanded by adding distributed hosts in parallel, and after the capacity is expanded, Figure 1 In the embodiment shown, biometric features are reallocated for storage, so the embodiment of the present application has strong scalability.
[0089] As a specific example, the following combines Figure 3 , the biometric storage method provided in the embodiment of the present application is described in detail. Figure 3 As shown, the number of distributed hosts is 10, namely distributed host 1, distributed host 2, ..., distributed host 10. Digest 1 represents a password digest with a hash value of 1, user 1, and M represents the Mth user corresponding to the password digest, that is, the Mth biometric feature. At the same time, M is a preset quantity threshold.
[0090] When loading the first biometric feature into the memory of the distributed host, the hash value of the first password digest corresponding to the first biometric feature is first calculated, and then the hash value is modulo-calculated with 10, and when the modulus value is 0, the distributed host 10 is selected as the first distributed host, when the modulus value is 1, the distributed host 1 is selected as the first distributed host, when the modulus value is 2, the distributed host 2 is selected as the first distributed host, ..., when the modulus value is 9, the distributed host 9 is selected as the first distributed host. Then, the first biometric feature and the first password digest are associated and stored in the first distributed host.
[0091] like Figure 3 As shown, when the number of users, i.e., the number of biometric features, corresponding to the summary 11 in the distributed host 1 reaches the preset number threshold M, the sequence number of the stored distributed host increases by 1, and thus the M+1th user, i.e., biometric features, are stored in the distributed host 2. However, when the number of users, i.e., biometric features, corresponding to the summary 11 in the distributed host 2 reaches the 10th, the storage space of the distributed host 2 reaches the preset first storage space threshold, and the sequence number of the stored distributed host increases by 1, and thus the M+11th user, i.e., biometric features, are stored in the distributed host 3. By way of example, each distributed host may include two hosts, a master and a backup host.
[0092] The data storage structure during storage can be as follows: Figure 4 As shown in the data layer in , it includes password summary, user ID, mobile phone number and characteristic value, i.e., biometrics. The data layer can use a hash table or a linked list. When performing data retrieval, the primary index (password summary) or the primary index + secondary index (password summary + mobile phone number) can be used for retrieval to determine the matching data. For example, the password summary 11 can be used as the primary index to extract the characteristic values "XXXXX", "YYYYY", "ZZZZZ", "BBBBB" under the password summary 11, and perform feature matching with the currently collected biometrics, or the password summary 11 and the mobile phone number 1234 can be used as the primary index + secondary index to extract the characteristic values "XXXXX", "YYYYY" under the password summary 11 and the mobile phone number 1234, and perform feature matching with the currently collected biometrics. Optionally, a tertiary index and the like can be added in addition to the primary index and the secondary index.
[0093] Based on the biometric storage method provided in the embodiment of the present application, the embodiment of the present application also provides a biometric storage device, such as Figure 5 As shown, the biometric storage device 500 may include: an acquisition module 510 , a determination module 520 , and a storage module 530 .
[0094] The acquisition module 510 is used to acquire the first biometric feature and the first password digest corresponding to the first biometric feature from the biometric feature base database.
[0095] The determination module 520 is configured to determine a first distributed host from a plurality of preset distributed hosts according to the first password digest.
[0096] The storage module 530 is used to associate and store the first biometric feature and the first password digest in the first distributed host.
[0097] The storage module 530 is further configured to associate and store the first biometric feature and the first password summary in a second distributed host associated with the first distributed host when the number of biometric features corresponding to the first password summary in the first distributed host reaches a preset number threshold and / or the storage space of the first distributed host reaches a preset first storage space threshold, wherein the second distributed host is a distributed host other than the first distributed host among the multiple distributed hosts.
[0098] In one embodiment, the determination module 520 includes:
[0099] The computing unit is configured to compute a hash value of the first password digest.
[0100] The determining unit is used to determine a first distributed host from a plurality of preset distributed hosts according to the hash value.
[0101] In one embodiment, the determining unit includes:
[0102] The calculation subunit is used to perform a modulus calculation on the hash value and the number of distributed hosts to obtain a modulus value of the hash value.
[0103] The determination subunit is used to determine, according to the preset relationship information between the module value and the distributed hosts, that the distributed host corresponding to the module value is the first distributed host.
[0104] In one embodiment, the biometric storage device 500 further includes:
[0105] The first receiving module is used to receive a registration request sent by a terminal, wherein the registration request includes a second biometric feature and a second password of the user.
[0106] The first calculation module is used to calculate a second password digest of the second password.
[0107] The determination module is further configured to determine a third distributed host from the plurality of distributed hosts according to the second password digest.
[0108] The storage module is further used to associate and store the second biometric feature and the second password summary in the third distributed host.
[0109] In one embodiment, the biometric storage device 500 further includes:
[0110] The second receiving module is used to receive an update request sent by the terminal, wherein the update request includes the user's third biometric feature, the first password and the third password, and the first password summary is calculated from the first password.
[0111] The second calculation module is used to calculate a first password digest of the first password and a third password digest of the third password.
[0112] The determination module is further configured to determine at least one first target distributed host from a plurality of distributed hosts according to the first password digest.
[0113] The first retrieval module is used to retrieve a first target biometric feature matching a third biometric feature in a first target distributed host according to the first password digest.
[0114] The deleting module is used to delete the first target biometric feature and the password digest associated with the first target biometric feature.
[0115] The determination module is further configured to determine a fourth distributed host from the plurality of distributed hosts according to the third password digest.
[0116] The storage module is further used to associate and store the third biometric feature and the third password summary in the fourth distributed host.
[0117] In one embodiment, the biometric storage device 500 further includes:
[0118] The acquisition module is also used to acquire the first communication identifier corresponding to the first biometric feature from the biometric feature base database.
[0119] The storage module is specifically used to associate and store the first biometric feature, the first password summary and the first communication identifier in the first distributed host.
[0120] In one embodiment, the biometric storage device 500 further includes:
[0121] The first generating module is used to generate a first user identification corresponding to the first biological feature.
[0122] The storage module is specifically used to associate and store the first biometric feature, the first password summary and the first user identification in the first distributed host.
[0123] In one embodiment, the biometric storage device 500 further includes:
[0124] The third receiving module is used to receive a first identification request sent by the terminal, wherein the first identification request includes a fourth biometric feature and a fourth password of the user.
[0125] The third calculation module is used to calculate a fourth password digest of a fourth password.
[0126] The determination module is further configured to determine at least one second target distributed host from a plurality of distributed hosts according to the fourth password digest.
[0127] The second retrieval module is used to retrieve a second target biometric feature matching the fourth biometric feature in a second target distributed host according to the fourth password digest.
[0128] In one embodiment, the biometric storage device 500 further includes:
[0129] The fourth receiving module is used to receive a second identification request sent by the terminal, wherein the second identification request includes the user's fifth biometric feature, fifth password and second communication identifier.
[0130] The fourth calculation module is used to calculate a fifth password digest of the fifth password.
[0131] The determination module is further configured to determine at least one third target distributed host from the plurality of distributed hosts according to the fifth password digest.
[0132] The third retrieval module is used to retrieve a third target biometric feature matching the fifth biometric feature in a third target distributed host according to the fifth password summary and the second communication identifier.
[0133] In one embodiment, the biometric storage device 500 further includes:
[0134] The fifth receiving module is used to receive a third identification request sent by the terminal, wherein the third identification request includes the sixth biometric feature of the user and the terminal identification.
[0135] The acquisition module is further used to acquire a first password list corresponding to the terminal identifier, wherein the first password list includes a sixth password summary and a second user identifier.
[0136] The determination module is further configured to determine at least one fourth target distributed host from the plurality of distributed hosts according to the sixth password digest.
[0137] The fourth retrieval module is used to retrieve a fourth target biometric feature matching the sixth biometric feature in a fourth target distributed host according to the sixth password summary and the second user identifier.
[0138] In one embodiment, the biometric storage device 500 further includes:
[0139] The sixth receiving module is used to receive a fourth identification request sent by the terminal, wherein the fourth identification request includes a seventh biometric feature of the user, a terminal identifier and a seventh password.
[0140] The fifth calculation module is used to calculate a seventh password digest of the seventh password.
[0141] The acquisition module is further used to acquire a second password list corresponding to the terminal identifier and the seventh password digest, wherein the second password list includes the third user identifier.
[0142] The determination module is further configured to determine at least one fifth target distributed host from a plurality of distributed hosts according to the seventh password digest.
[0143] The fifth retrieval module is used to retrieve a fifth target biometric feature matching the seventh biometric feature in a fifth target distributed host according to the seventh password digest and the third user identifier.
[0144] In one embodiment, the biometric storage device 500 further includes:
[0145] The second generating module is used to generate prompt information when the total storage space of the plurality of distributed hosts reaches a second storage space threshold, wherein the prompt information is used to prompt the user to add a distributed host.
[0146] Understandably, Figure 5 Each module / unit in the biometric storage device 500 shown has the function of implementing each step in the biometric storage method provided in the embodiment of the present application and can achieve its corresponding technical effect. For the sake of brevity, it will not be repeated here.
[0147] Figure 6 It is a structural schematic diagram of a biometric storage device provided in an embodiment of the present application.
[0148] like Figure 6 As shown, the biometric storage device 600 in this embodiment includes an input device 601, an input interface 602, a central processor 603, a memory 604, an output interface 605, and an output device 606. The input interface 602, the central processor 603, the memory 604, and the output interface 605 are interconnected through a bus 610, and the input device 601 and the output device 606 are connected to the bus 610 through the input interface 602 and the output interface 605, respectively, and then connected to other components of the biometric storage device 600.
[0149] Specifically, the input device 601 receives input information from the outside and transmits the input information to the central processing unit 603 through the input interface 602; the central processing unit 603 processes the input information based on the computer executable instructions stored in the memory 604 to generate output information, temporarily or permanently stores the output information in the memory 604, and then transmits the output information to the output device 606 through the output interface 605; the output device 606 outputs the output information to the outside of the biometric storage device 600 for user use.
[0150] In one embodiment, Figure 6 The biometric storage device 600 shown includes: a memory 604 for storing programs; a processor 603 for running the programs stored in the memory to implement the biometric storage method provided in the embodiment of the present application.
[0151] The embodiment of the present application also provides a computer-readable storage medium, on which computer program instructions are stored; when the computer program instructions are executed by a processor, the biometric storage method provided in the embodiment of the present application is implemented.
[0152] It should be clear that each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other. For the sake of brevity, no further description is given. The present application is not limited to the specific configurations and processes described above and shown in the figures. For the sake of simplicity, a detailed description of the known methods is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.
[0153] The functional blocks shown in the structural block diagram described above can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), appropriate firmware, plug-in, function card, etc. When implemented in software, the elements of the present application are programs or code segments used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or communication link by a data signal carried in a carrier. "Machine-readable medium" may include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, read-only memories (Read-Only Memory, ROM), flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (Radio Frequency, RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.
[0154] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.
[0155] Aspects of the present disclosure are described above with reference to the flowchart and / or block diagram of the method, device (system) and computer program product according to the embodiment of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field programmable logic circuit. It can also be understood that each box in the block diagram and / or flowchart and the combination of boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs a specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.
[0156] The above is only a specific implementation of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.
Claims
1. A biometric storage method, characterized in that: The method comprises: Obtaining a first biometric feature and a first password digest corresponding to the first biometric feature from a biometric feature base database; Determining a first distributed host from a plurality of preset distributed hosts according to the first password digest; storing the first biometric characteristic and the first password digest in association with each other in the first distributed host; When the number of biometric features corresponding to the first password digest in the first distributed host reaches a preset number threshold, the first biometric feature and the first password digest are associated and stored in a second distributed host associated with the first distributed host, wherein the second distributed host is a distributed host other than the first distributed host among the multiple distributed hosts, and the second distributed host is a distributed host determined by adding 1 to the sequence number of the first distributed host, the sequence numbers of the multiple distributed hosts correspond to the modulus values of the hash values one by one, and the modulus value of the hash value is a value obtained by performing a modulo calculation on the hash value of the password digest and the number of the distributed hosts; When the storage space of the second distributed host reaches the preset first storage space threshold, the next distributed host is determined by adding 1 to the sequence number of the second distributed host, and the first biometric feature and the first password digest are associated and stored in the next distributed host; The method further comprises: generating a first user identifier corresponding to the first biometric feature; The associating and storing the first biometric feature and the first password digest in the first distributed host includes: storing the first biometric feature, the first password summary, and the first user identification in association with each other in the first distributed host; The method further comprises: Receiving a third identification request sent by the terminal, wherein the third identification request includes a sixth biometric feature of the user and a terminal identifier; Acquire a first password list corresponding to the terminal identifier, wherein the first password list includes a sixth password summary and a second user identifier; Determine at least one fourth target distributed host from the plurality of distributed hosts according to the sixth password digest; Retrieving a fourth target biometric feature matching the sixth biometric feature from the fourth target distributed host according to the sixth password digest and the second user identifier; or, The method further comprises: Receiving a fourth identification request sent by the terminal, wherein the fourth identification request includes a seventh biometric feature of the user, a terminal identifier, and a seventh password; calculating a seventh password digest of the seventh password; Acquire a second password list corresponding to the terminal identifier and the seventh password digest, wherein the second password list includes a third user identifier; determining at least one fifth target distributed host from the plurality of distributed hosts according to the seventh password digest; According to the seventh password digest and the third user identifier, a fifth target biometric feature matching the seventh biometric feature is retrieved from the fifth target distributed host.
2. The method according to claim 1, characterized in that The determining a first distributed host from a plurality of preset distributed hosts according to the first password digest includes: Calculating a hash value of the first password digest; A first distributed host is determined from a plurality of preset distributed hosts according to the hash value.
3. The method according to claim 2, characterized in that The determining a first distributed host from a plurality of preset distributed hosts according to the hash value includes: Performing a modulus calculation on the hash value and the number of distributed hosts to obtain a modulus value of the hash value; According to preset relationship information between the module value and the distributed host, the distributed host corresponding to the module value is determined as the first distributed host.
4. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: Receiving a registration request sent by a terminal, wherein the registration request includes a second biometric feature and a second password of the user; calculating a second password digest of the second password; determining a third distributed host from the plurality of distributed hosts according to the second password digest; The second biometric characteristic and the second password digest are associated and stored in the third distributed host.
5. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: Receiving an update request sent by a terminal, wherein the update request includes a third biometric feature of the user, a first password, and a third password, and the first password digest is calculated from the first password; calculating a first password digest of the first password and a third password digest of the third password; Determine at least one first target distributed host from the plurality of distributed hosts according to the first password digest; Retrieving, in the first target distributed host, a first target biometric feature that matches the third biometric feature based on the first password digest; deleting the first target biometric characteristic and the password digest associated with the first target biometric characteristic; determining a fourth distributed host from a plurality of distributed hosts according to the third password digest; The third biometric characteristic and the third password digest are associated and stored in the fourth distributed host.
6. The method according to claim 1, characterized in that The method further comprises: Acquire a first communication identifier corresponding to the first biometric feature from the biometric feature base database; The associating and storing the first biometric feature and the first password digest in the first distributed host includes: The first biometric feature, the first password summary, and the first communication identifier are associated and stored in the first distributed host.
7. The method according to claim 1, characterized in that The method further comprises: Receiving a first identification request sent by a terminal, wherein the first identification request includes a fourth biometric feature and a fourth password of the user; calculating a fourth password digest of the fourth password; determining at least one second target distributed host from the plurality of distributed hosts according to the fourth password digest; Based on the fourth password digest, a second target biometric characteristic matching the fourth biometric characteristic is retrieved from the second target distributed host.
8. The method according to claim 6, characterized in that The method further comprises: Receiving a second identification request sent by the terminal, wherein the second identification request includes a fifth biometric feature, a fifth password and a second communication identifier of the user; calculating a fifth password digest of the fifth password; Determine at least one third target distributed host from the plurality of distributed hosts according to the fifth password digest; According to the fifth password digest and the second communication identifier, a third target biometric feature matching the fifth biometric feature is retrieved from the third target distributed host.
9. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: When the total storage space of the plurality of distributed hosts reaches a second storage space threshold, a prompt message is generated, where the prompt message is used to prompt a user to add a distributed host.
10. A biometric storage device, characterized in that: The device comprises: An acquisition module, used for acquiring a first biometric feature and a first password digest corresponding to the first biometric feature from a biometric feature base database; A determination module, configured to determine a first distributed host from a plurality of preset distributed hosts according to the first password digest; A storage module, configured to associate and store the first biometric feature and the first password digest in the first distributed host; The storage module is further configured to, when the number of biometric features corresponding to the first password digest in the first distributed host reaches a preset number threshold, associate the first biometric feature with the first password digest and store it in a second distributed host associated with the first distributed host, wherein the second distributed host is a distributed host other than the first distributed host among the multiple distributed hosts, and the second distributed host is a distributed host determined by adding 1 to the sequence number of the first distributed host, the sequence numbers of the multiple distributed hosts correspond to the modulus values of the hash values one by one, and the modulus value of the hash value is a value obtained by performing a modulo calculation on the hash value of the password digest and the number of the distributed hosts; The storage module is further configured to determine the next distributed host by adding 1 to the sequence number of the second distributed host when the storage space of the second distributed host reaches a preset first storage space threshold, and associate the first biometric feature with the first password digest and store them in the next distributed host; The device also includes: A first generating module, used to generate a first user identifier corresponding to the first biometric feature; The storage module is specifically used to associate and store the first biometric feature, the first password summary and the first user identification in the first distributed host; The device also includes: a fifth receiving module, configured to receive a third identification request sent by the terminal, wherein the third identification request includes a sixth biometric feature of the user and a terminal identifier; The acquisition module is further used to acquire a first password list corresponding to the terminal identifier, wherein the first password list includes a sixth password summary and a second user identifier; The determination module is further configured to determine at least one fourth target distributed host from the plurality of distributed hosts according to the sixth password digest; a fourth retrieval module, configured to retrieve a fourth target biometric feature matching the sixth biometric feature in the fourth target distributed host according to the sixth password digest and the second user identifier; or, The device also includes: a sixth receiving module, configured to receive a fourth identification request sent by the terminal, wherein the fourth identification request includes a seventh biometric feature of the user, a terminal identifier, and a seventh password; a fifth calculation module, configured to calculate a seventh password digest of the seventh password; The acquisition module is further used to acquire a second password list corresponding to the terminal identifier and the seventh password digest, wherein the second password list includes a third user identifier; The determination module is further configured to determine at least one fifth target distributed host from the plurality of distributed hosts according to the seventh password digest; A fifth retrieval module is used to retrieve a fifth target biometric feature matching the seventh biometric feature in the fifth target distributed host according to the seventh password digest and the third user identifier.
11. The device according to claim 10, characterized in that The determination module comprises: A calculation unit, configured to calculate a hash value of the first password digest; A determining unit is used to determine a first distributed host from a plurality of preset distributed hosts according to the hash value.
12. The device according to claim 11, characterized in that The determining unit comprises: a calculation subunit, configured to perform a modulus calculation on the hash value and the number of distributed hosts to obtain a modulus value of the hash value; The determination subunit is used to determine, according to preset relationship information between the module value and the distributed host, that the distributed host corresponding to the module value is the first distributed host.
13. The device according to any one of claims 10 to 12, characterized in that: The device also includes: A first receiving module, configured to receive a registration request sent by a terminal, wherein the registration request includes a second biometric feature and a second password of the user; A first calculation module, configured to calculate a second password digest of the second password; The determining module is further configured to determine a third distributed host from the plurality of distributed hosts according to the second password digest; The storage module is further used to associate and store the second biometric feature and the second password summary in the third distributed host.
14. The device according to any one of claims 10 to 12, characterized in that: The device also includes: A second receiving module is configured to receive an update request sent by a terminal, wherein the update request includes a third biometric feature of the user, a first password and a third password, and the first password digest is calculated from the first password; a second calculation module, configured to calculate a first password digest of the first password and a third password digest of the third password; The determination module is further configured to determine at least one first target distributed host from the plurality of distributed hosts according to the first password digest; a first retrieval module, configured to retrieve, in the first target distributed host, a first target biometric feature that matches the third biometric feature according to the first password digest; a deletion module, configured to delete the first target biometric characteristic and a password digest associated with the first target biometric characteristic; The determination module is further configured to determine a fourth distributed host from a plurality of distributed hosts according to the third password digest; The storage module is further used to associate and store the third biometric feature and the third password summary in the fourth distributed host.
15. The device according to claim 10, characterized in that The device also includes: The acquisition module is further used to acquire a first communication identifier corresponding to the first biometric feature from the biometric feature base database; The storage module is specifically used to associate and store the first biometric feature, the first password summary and the first communication identifier in the first distributed host.
16. The device according to claim 10, characterized in that The device also includes: A third receiving module, configured to receive a first identification request sent by the terminal, wherein the first identification request includes a fourth biometric feature and a fourth password of the user; A third calculation module, used for calculating a fourth password digest of the fourth password; The determination module is further configured to determine at least one second target distributed host from the plurality of distributed hosts according to the fourth password digest; The second retrieval module is used to retrieve a second target biometric feature matching the fourth biometric feature in the second target distributed host according to the fourth password digest.
17. The device according to claim 15, characterized in that The device also includes: A fourth receiving module, configured to receive a second identification request sent by the terminal, wherein the second identification request includes a fifth biometric feature of the user, a fifth password, and a second communication identifier; a fourth calculation module, configured to calculate a fifth password digest of the fifth password; The determination module is further configured to determine at least one third target distributed host from the plurality of distributed hosts according to the fifth password digest; The third retrieval module is used to retrieve a third target biometric feature matching the fifth biometric feature in the third target distributed host according to the fifth password digest and the second communication identifier.
18. The device according to any one of claims 10 to 12, characterized in that: The device also includes: The second generating module is used to generate prompt information when the total storage space of the plurality of distributed hosts reaches a second storage space threshold, wherein the prompt information is used to prompt a user to add a distributed host.
19. A biometric storage device, characterized in that: The device comprises: a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, the biometric storage method according to any one of claims 1 to 9 is implemented.
20. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the biometric storage method according to any one of claims 1 to 9 is implemented.
Citation Information
Patent Citations
A distributed storage method and a distributed storage device
CN109407976A
Payment method and device, storage medium and electronic equipment
CN109685514A