A method and device for using a one-time identity tag

Through the method of using a one-time identity identifier, a target identifier with one-time attributes is generated and new data is added in the database, ensuring that the identity identifier only expires after the first use, solving the problem of identity information leakage in the existing technology, and improving the identity Security of information.

CN113868607BActive Publication Date: 2024-10-18CHINA UNITED NETWORK COMM GRP CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111044511.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-07
Publication Date
2024-10-18
Estimated Expiration
2041-09-07

AI Technical Summary

Technical Problem

Existing identity verification methods can continue to be used after the identity is verified, resulting in leakage of identity information and low security of identity information protection.

Method used

Adopt a one-time identification method, generate a target identifier with one-time attributes through a preset method, add target data to the target database, and use the target algorithm to calculate multiple data to determine the validity of the identity and ensure the identity It is only deactivated after the first use to prevent secondary use.

Benefits of technology

It effectively improves the security of the identity information protected by the identity mark, prevents the leakage of identity information, ensures that the identity mark only becomes invalid after the first use, and enhances information security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113868607B_ABST
    Figure CN113868607B_ABST
Patent Text Reader

Abstract

The present invention discloses a method and device for using a one-time identity identification, which relates to the field of communication technology and is used to improve the security of identity identification protection of identity information, including: determining a target object, and generating a target identifier corresponding to the target object in a preset manner, the target identifier having a one-time attribute, and the target identifier and the one-time attribute constituting a one-time identity identification of the target object; creating a target database, and while generating the target identifier, adding target data to the target database, the target data being data corresponding to the target identifier, the target database including multiple data, each data corresponding to a one-time identity identification; when using the one-time identity identification of the target object, calculating multiple data through a target algorithm to determine the validity of the one-time identity identification of the target object. The embodiment of the present invention is applied to the scene of establishing and verifying the identity identification.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a method and device for using a one-time identity tag. Background Art

[0002] With the development of communication technology, due to the openness of wireless channels, information security has always been one of the primary technical issues to be considered in the development of current communication technology. With the increasing popularity of mobile communications, information security has received widespread attention, and a series of secure and efficient identity authentication methods have emerged.

[0003] At present, with the existing identity authentication methods, after the identity identifier has been verified (that is, the identity identifier has been used), the identity identifier can still continue to be used. That is, through the identity identifier, attackers (criminals) can obtain the corresponding identity information, thereby causing the leakage of identity information. Therefore, the security of the existing identity identifier in protecting identity information is relatively low. Summary of the invention

[0004] The embodiments of the present invention provide a method and device for using a one-time identity tag, which are used to improve the security of identity tag protection of identity information.

[0005] To achieve the above object, the embodiments of the present invention adopt the following technical solutions:

[0006] In a first aspect, a method for using a one-time identity identifier is provided, the method comprising: determining a target object, and generating a target identifier corresponding to the target object in a preset manner, the target identifier having a one-time attribute, the target identifier and the one-time attribute constituting a one-time identity identifier of the target object; creating a target database, and while generating the target identifier, adding target data to the target database, the target data being data corresponding to the target identifier, the target database comprising a plurality of data, each data corresponding to a one-time identity identifier; and when using the one-time identity identifier of the target object, calculating the plurality of data through a target algorithm to determine the validity of the one-time identity identifier of the target object.

[0007] In a possible implementation method, the preset method is any one of the following: DID identification method, ZID identification method, GS1 identification method, Handle identification method, OID identification method, Ecode identification method; each of the multiple data corresponds to an attribute value, and the attribute value is a "true" attribute or a "false" attribute; when the target data is added to the target database, the attribute value corresponding to the target data is determined to be a "true" attribute.

[0008] In a possible implementation, when the one-time identity of the target object is not used, the attribute value corresponding to the target data is a "true" attribute; and after the one-time identity of the target object is used for the first time, the attribute value corresponding to the target data is adjusted to a "false" attribute.

[0009] In a possible implementation, each of the multiple data has a prime number attribute; the multiple data are calculated using a target algorithm to determine the validity of the one-time identity identifier of the target object, including: calculating the product of all data with a "true" attribute in the multiple data included in the target database to obtain a target product result, and dividing the target product result by the target data to obtain a first calculation result; when the first calculation result is an integer, the one-time identity identifier of the target object is determined to be a valid identity identifier; when the first calculation result is a non-integer, the one-time identity identifier of the target object is determined to be an invalid identity identifier.

[0010] In a possible implementation, when using the one-time identity of the target object, before calculating multiple data through a target algorithm to determine the validity of the one-time identity of the target object, the method also includes: encrypting the target data to obtain first encrypted data, and storing the target data and the first encrypted data in a first blockchain corresponding to the target database, the first blockchain is a private blockchain, and the one-time attribute corresponding to the target object corresponds to the address of the target data in the first blockchain; when using the one-time identity of the target object, calculating multiple data through a target algorithm to determine the validity of the one-time identity of the target object, including: parsing to obtain a target identifier corresponding to the target object, and determining the target data and the first encrypted data corresponding to the target object; determining the validity of the one-time identity of the target object by determining whether the target data is included in the second blockchain, and the attribute value corresponding to all the data included in the second blockchain is a "false" attribute.

[0011] In a second aspect, a one-time identity identification usage device is provided, which includes: a determination unit, a generation unit and a creation unit; the determination unit is used to determine a target object; the generation unit is used to generate a target identifier corresponding to the target object in a preset manner, the target identifier has a one-time attribute, and the target identifier and the one-time attribute constitute the one-time identity identification of the target object; the creation unit is used to create a target database, and when generating the target identifier, add target data to the target database, the target data is data corresponding to the target identifier, and the target database includes multiple data, each data corresponds to a one-time identity identification; the determination unit is also used to calculate multiple data through a target algorithm when using the one-time identity identification of the target object, so as to determine the validity of the one-time identity identification of the target object.

[0012] In a third aspect, a computer-readable storage medium storing one or more programs is provided. The one or more programs include instructions. When the instructions are executed by a computer, the computer executes the method for using a one-time identity as in the first aspect.

[0013] In a fourth aspect, an electronic device comprises: a processor and a memory; wherein the memory is used to store one or more programs, and the one or more programs include computer execution instructions. When the electronic device is running, the processor executes the computer execution instructions stored in the memory to enable the electronic device to execute the method for using a one-time identity identification as in the first aspect.

[0014] The embodiment of the present invention provides a method and device for using a one-time identity identification, which is applied to the scene of establishing and verifying an identity identification. When it is necessary to establish a one-time identity identification for a certain target object, a target identifier corresponding to the target object can be generated in a preset manner, and the target identifier is set to have a one-time attribute, so that the one-time identity identification of the target object can be constituted by the target identifier and the one-time attribute. At the same time, the present invention also adopts the method of creating a target database, and when generating a target identifier corresponding to the target object, corresponding target data can be added to the target database. Therefore, when using the one-time identity identification of the target object, multiple data included in the target database can be calculated by a target algorithm to determine the validity of the one-time identity identification of the target object. Therefore, when the one-time identity identification of the target object is valid, the one-time identity identification of the target object can be used. When the one-time identity identification of the target object is invalid, the one-time identity identification of the target object cannot be used, further improving the security of identity identification protection of identity information. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] Figure 1A schematic diagram of the structure of an identity identification system provided by an embodiment of the present invention;

[0016] Figure 2 A one-time identity identification method for use according to an embodiment of the present invention Figure 1 ;

[0017] Figure 3 A one-time identity identification method for use according to an embodiment of the present invention Figure 2 ;

[0018] Figure 4 A one-time identity identification method for use according to an embodiment of the present invention Figure 3 ;

[0019] Figure 5 A schematic diagram of a one-time identity identification device provided by an embodiment of the present invention Figure 1 ;

[0020] Figure 6 A schematic diagram of a one-time identity identification device provided by an embodiment of the present invention Figure 2 ;

[0021] Figure 7 A schematic diagram of an electronic device structure provided by an embodiment of the present invention Figure 1 ;

[0022] Figure 8 A schematic diagram of an electronic device structure provided by an embodiment of the present invention Figure 2 . DETAILED DESCRIPTION

[0023] The technical solutions in the embodiments of the present invention will be described below in conjunction with the accompanying drawings in the embodiments of the present invention.

[0024] In the description of the present invention, unless otherwise specified, " / " means "or", for example, A / B can mean A or B. "And / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, "at least one" and "plurality" refer to two or more. The words "first", "second", etc. do not limit the quantity and execution order, and the words "first", "second", etc. do not limit them to be different.

[0025] The one-time identity identification method provided in the embodiment of the present invention can be applied to an identity identification system. Figure 1 FIG. 1 shows a structural diagram of the identity identification system. Figure 1As shown, the identity identification system 10 includes an electronic device 11 and a server 12. The electronic device 11 is connected to the server 12. The electronic device 11 and the server 12 may be connected in a wired manner or in a wireless manner, which is not limited in the embodiment of the present invention.

[0026] The electronic device 11 may be used in the Internet of Things, and the electronic device 11 may include hardware such as multiple central processing units (CPUs), multiple memories, and storage devices storing multiple operating systems.

[0027] The electronic device 11 can be used to exchange instructions or data with the server 12. For example, the electronic device 11 can obtain instructions or data sent by the server 12, and then execute the instructions sent by the server 12, or store the data sent by the server 12.

[0028] The server 12 can also be used in the Internet of Things to send instructions or data to the electronic device 11.

[0029] It should be noted that the electronic device 11 and the server 12 may be independent devices or integrated into the same device, and the present invention does not specifically limit this.

[0030] When the electronic device 11 and the server 12 are integrated into the same device, the communication between the electronic device 11 and the server 12 is the communication between the internal modules of the device. In this case, the communication process between the two is the same as "the communication process between the electronic device 11 and the server 12 when they are independent of each other".

[0031] In the following embodiments provided by the present invention, the present invention is described by taking the electronic device 11 and the server 12 as being independently configured.

[0032] The following describes a method for using a one-time identity token provided by an embodiment of the present invention in conjunction with the accompanying drawings.

[0033] like Figure 2 As shown, the one-time identity identification method provided in the embodiment of the present invention is applied to an electronic device including multiple memories and multiple central processing units (CPUs), including S201-S203:

[0034] S201: The electronic device determines a target object and generates a target identifier corresponding to the target object in a preset manner.

[0035] The target identifier has a one-time attribute, and the target identifier and the one-time attribute constitute a one-time identity of the target object.

[0036] As a possible implementation method, the electronic device determines the target object for which a one-time identity is to be established based on the user's instructions (i.e., input operation); the target object can be the user, in order to establish a one-time identity of the user; or the target object can be any real object or virtual object, in order to establish a corresponding one-time identity.

[0037] As a possible implementation method, when a target identifier corresponding to a target object is generated by a preset method, a correspondence can be established between the information corresponding to the target object (i.e., the privacy information of the target object) and the target identifier, so that the information corresponding to the target object can be obtained through the target identifier.

[0038] As a possible implementation method, the type of the target identifier can be a String type, or the type of the target identifier can be any of the following identifier types: byte type, short type, int type, long type, float type, double type, char type, boolean type, etc.

[0039] In one design, the preset method is any one of the following: DID identification method, ZID identification method, GS1 identification method, Handle identification method, OID identification method, and Ecode identification method.

[0040] As a possible implementation method, when the preset method is the DID identification method, the DID identity is generated through the DIDmethod, or, when the preset method is the Handle identification method, the Handle identifier is generated through the Handle system.

[0041] As a possible implementation method, the type of the one-time attribute of the target identifier can also be of String type, that is, the type of the one-time attribute of the target identifier can be the same as the type of the target identifier, or the type of the one-time attribute of the target identifier can be different from the type of the target identifier.

[0042] It can be understood that, in combination with Table 1, the structure of the one-time identification of the target object is: a corresponding unique identifier (unique identifier) ​​+ a one-off property (one-off property) generated by a preset method.

[0043] Table 1

[0044]

[0045] S202: The electronic device creates a target database, and while generating a target identifier, adds target data to the target database.

[0046] The target data is data corresponding to the target identifier, and the target database includes multiple data, each of which corresponds to a one-time identity identifier.

[0047] In one design, each of the multiple data in the target database corresponds to an attribute value, and the attribute value is a "true" attribute or a "false" attribute. When the target data is added to the target database, the attribute value corresponding to the target data is determined to be a "true" attribute.

[0048] As a possible implementation, when the electronic device creates a one-time identity for each object, a corresponding data is added to the target database, so that the target database increases with the increase of the one-time identity, and the target database is empty in the initial state.

[0049] As a possible implementation method, in combination with Table 2, when establishing a one-time identity of a target object, it is necessary to generate a target identifier and a corresponding target data, and add the target data to the target database.

[0050] Table 2

[0051]

[0052] S203: When using the one-time identification of the target object, the electronic device calculates multiple data using a target algorithm to determine the validity of the one-time identification of the target object.

[0053] In one design, when the one-time identification of the target object is not used, the attribute value corresponding to the target data is a "true" attribute; and after the one-time identification of the target object is used for the first time, the attribute value corresponding to the target data is adjusted to a "false" attribute.

[0054] As a possible implementation method, the above target algorithm is: calculate the product of all data in the target database whose attribute value is the "true" attribute. The product is represented by X. Each time identity authentication is performed, X needs to be recalculated.

[0055] As a possible implementation method, when the one-time identity identifier of the target object needs to be verified, the one-time identity identifier of the target object is obtained, and X is divided by the target data corresponding to the target object, and it is checked whether the result is an integer. If the result is an integer, the one-time identity identifier of the target object is a legal identity (that is, the one-time identity identifier of the target object is not used).

[0056] As a possible implementation method, the target data corresponding to the one-time identity identifier of the target object is parsed, X is divided by the target data, and it is checked whether the result is an integer. If the result is not an integer, it means that the one-time identity identifier has been revoked (or invalid), that is, the one-time identity identifier of the target object is an invalid identity identifier. At this time, the attribute value of the target data corresponding to the target object is the "false" attribute.

[0057] In an embodiment of the present invention, when it is necessary to establish a one-time identity identification of a target object and perform identity authentication, the electronic device can generate a target identifier corresponding to the target object in a preset manner, and determine that the target identifier has a one-time attribute, so that when the identity authentication of the target object is performed, the one-time identity identification of the target object can only be used once due to the limitation of the one-time attribute. And when generating the target identifier of the target object, it is also necessary to add target data corresponding to the target identifier to a pre-created target database, so that when using the one-time identity identification of the target object, the data included in the target database can be calculated through a target algorithm to determine the validity of the one-time identity identification of the target object through the target data corresponding to the target identifier, thereby improving the security of identity information protection by the identity identification.

[0058] In one design, each of the multiple data included in the target database has a prime number attribute. In order to determine the validity of the one-time identity of the target object, such as Figure 3 As shown, S203 provided in the embodiment of the present invention may specifically include the following S301-S303.

[0059] S301. The electronic device calculates the product of all data with a "true" attribute among a plurality of data included in a target database to obtain a target product result, and obtains a first calculation result by dividing the target product result by the target data.

[0060] As a possible implementation, when a one-time identity of an object is established, the corresponding data (prime number) is added to the target database. When data is added to the target database, the attribute value corresponding to the data is determined to be a "true" attribute.

[0061] S302: When the first calculation result is an integer, the electronic device determines that the one-time identity identifier of the target object is a valid identity identifier.

[0062] As a possible implementation method, assume that the target database includes multiple data: 2, 3, 5, 7, 11, 13, 17, where the attribute values ​​corresponding to 2, 3, 7, 11, 17 are all "true" attributes, and the attribute values ​​corresponding to 5 and 13 are all "false" attributes. The calculated target product result is the product of 2, 3, 7, 11, 17, which is 7854. When it is necessary to verify the one-time identity identifier of the object corresponding to 7, 7854 is divided by 7, and it is determined whether the result is an integer (the result is 1122, which is an integer). When the result is an integer, it can be determined that the one-time identity identifier of the object corresponding to 7 is a valid identity identifier.

[0063] S303: When the first calculation result is a non-integer, the electronic device determines that the one-time identity identifier of the target object is an invalid identity identifier.

[0064] As a possible implementation method, when it is necessary to verify the one-time identity identifier of the object corresponding to 13, 7854 is divided by 13, and it is determined whether the result is an integer (the result is 604.15, which is not an integer). When the result is not an integer, it can be determined that the one-time identity identifier of the object corresponding to 13 is an invalid identity identifier.

[0065] In an embodiment of the present invention, the data corresponding to the target identifier is set to a prime number, and the validity of the one-time identification of the target object can be simply and accurately determined by the nature of the prime number, by calculating the product of all prime numbers with the "true" attribute in the multiple data included in the target database, and dividing the product result by the target data corresponding to the target object to obtain the calculation result, so that when the calculation result is an integer, the one-time identification of the target object can be determined to be a valid identification; when the calculation result is a non-integer, the one-time identification of the target object is determined to be an invalid identification. It is easy to judge that when the target data corresponding to the target object has the "true" attribute, an integer result can be calculated according to the nature of the prime number, and when the target data corresponding to the target object has the "false" attribute, a non-integer result can be calculated according to the nature of the prime number. Therefore, the validity of the one-time identification of the target object can be simply and accurately determined by the nature of the prime number.

[0066] In one design, in order to ensure that the data in the target database is not tampered with, Figure 4 As shown, before S203 provided in the embodiment of the present invention, the following S401 may be specifically included, and S203 provided in the embodiment of the present invention may specifically include the following S402-S403.

[0067] S401. The electronic device encrypts the target data to obtain first encrypted data, and stores the target data and the first encrypted data in a first blockchain corresponding to the target database.

[0068] Among them, the first blockchain is a private blockchain, and the one-time attribute corresponding to the target object corresponds to the address of the target data in the first blockchain.

[0069] As a possible implementation method, the target database includes two data storage areas, namely the first blockchain and the second blockchain. The first blockchain is a private blockchain that can only be accessed by the system verifier and is not open to the outside world.

[0070] As a possible implementation method, when the plaintext prime number is directly placed in the target database, the data information is insecure and vulnerable to attack; the Brownian value (that is, the attribute value of the data) in the prime number database is easy to be changed. Therefore, blockchain technology can be used to assist in ensuring data security.

[0071] As a possible implementation, a one-time identity consists of a target identifier and a one-time attribute. When a one-time identity is created, a prime number (i.e., target data) is generated, which is still stored in the prime database (i.e., target database). The prime number is hashed at the same time, and the prime number and the prime number hash value are stored in the first blockchain in the form of 256 bits, and the one-time attribute of the one-time identity is filled with the address on the first blockchain corresponding to the prime number.

[0072] S402: The electronic device parses and obtains a target identifier corresponding to the target object, and determines target data and first encrypted data corresponding to the target object.

[0073] S403. The electronic device determines the validity of the one-time identity of the target object by determining whether the target data is included in the second blockchain.

[0074] Among them, the attribute value corresponding to all data included in the second blockchain is the "false" attribute.

[0075] As a possible implementation method, when verifying whether the one-time identity is valid, the one-time identity is parsed to obtain the field corresponding to the one-time attribute, and the corresponding prime number and prime number hash value are queried from the first blockchain. Compare whether the prime number is also included in the second blockchain.

[0076] As a possible implementation method, when the one-time identity identifier expires or is revoked, that is, when the attribute value (Brown value) of the corresponding prime number in the prime number database is modified to the "false" attribute, the prime number is synchronously stored on the second blockchain BBB, and the technical characteristics of the blockchain that are difficult to tamper with are used: when calculating the product result X, first obtain all the prime numbers on the second blockchain, and multiply the prime numbers other than the prime numbers on the second blockchain and existing in the prime number database to obtain the product result X value.

[0077] It can be understood that a one-time identity token corresponds to an object in the real world (physical object or virtual object). Once the one-time identity token is checked and passes the check, if the one-time identity token is checked again, it will never pass the check. Even if a one-time identity token that has been used before is stolen, it will not pass the check, and the corresponding information cannot be obtained a second time.

[0078] The embodiment of the present invention provides a method and device for using a one-time identity identification, which is applied to the scene of establishing and verifying an identity identification. When it is necessary to establish a one-time identity identification for a certain target object, a target identifier corresponding to the target object can be generated in a preset manner, and the target identifier is set to have a one-time attribute, so that the one-time identity identification of the target object can be constituted by the target identifier and the one-time attribute. At the same time, the present invention also adopts the method of creating a target database, and when generating a target identifier corresponding to the target object, corresponding target data can be added to the target database. Therefore, when using the one-time identity identification of the target object, multiple data included in the target database can be calculated by a target algorithm to determine the validity of the one-time identity identification of the target object. Therefore, when the one-time identity identification of the target object is valid, the one-time identity identification of the target object can be used. When the one-time identity identification of the target object is invalid, the one-time identity identification of the target object cannot be used, further improving the security of identity identification protection of identity information.

[0079] The above mainly introduces the solution provided by the embodiment of the present invention from the perspective of the method. In order to achieve the above functions, it includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiment disclosed in this article, the embodiment of the present invention can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.

[0080] The embodiment of the present invention can divide the functional modules of the disposable identity identification device according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware or in the form of software functional modules. Optionally, the division of modules in the embodiment of the present invention is schematic and is only a logical functional division. There may be other division methods in actual implementation.

[0081] Figure 5 A schematic diagram of a one-time identity identification device provided by an embodiment of the present invention. Figure 5 As shown, the one-time identity token using device 50 is used to create a one-time identity token and determine the validity of the one-time identity token, for example, to perform Figure 2 The one-time identity using method shown in the figure. The one-time identity using device 50 comprises: a determining unit 501, a generating unit 502 and a creating unit 503.

[0082] The determination unit 501 is used to determine the target object. Figure 2 As shown, the determining unit 501 can be used to execute part of the steps in S201.

[0083] The generating unit 502 is used to generate a target identifier corresponding to the target object in a preset manner, wherein the target identifier has a one-time attribute, and the target identifier and the one-time attribute constitute a one-time identity of the target object. Figure 2 As shown, the generating unit 502 can be used to execute part of the steps in S201.

[0084] The creation unit 503 is used to create a target database. When generating a target identifier, target data is added to the target database. The target data is data corresponding to the target identifier. The target database includes multiple data, each of which corresponds to a one-time identity identifier. Figure 2 As shown, the creation unit 503 can be used to execute S202.

[0085] The determination unit 501 is further configured to determine the validity of the one-time identification of the target object by calculating the multiple data using a target algorithm when using the one-time identification of the target object. Figure 2 As shown, the determining unit 501 can be used to execute S203.

[0086] Optional, such as Figure 5As shown, in the disposable identity identification device 50 provided in the embodiment of the invention, the preset method is any one of the following: DID identification method, ZID identification method, GS1 identification method, Handle identification method, OID identification method, Ecode identification method; each of the multiple data corresponds to an attribute value, and the attribute value is a "true" attribute or a "false" attribute; when the target data is added to the target database, the attribute value corresponding to the target data is determined to be a "true" attribute.

[0087] Optional, such as Figure 5 As shown, in the one-time identity identification using device 50 provided by the embodiment of the invention, when the one-time identity identification of the target object is not used, the attribute value corresponding to the target data is a "true" attribute; and after the one-time identity identification of the target object is used for the first time, the attribute value corresponding to the target data is adjusted to a "false" attribute.

[0088] Optional, such as Figure 5 As shown, each of the multiple data has a prime number attribute, and the determining unit 501 provided in the embodiment of the present invention is specifically used for:

[0089] The product of all data with the "true" attribute in the target database is calculated to obtain a target product result, and the first calculation result is obtained by dividing the target product result by the target data. Figure 3 As shown, the determining unit 501 can be used to execute S301.

[0090] When the first calculation result is an integer, the one-time identity of the target object is determined to be a valid identity. Figure 3 As shown, the determining unit 501 can be used to execute S302.

[0091] When the first calculation result is a non-integer, the one-time identity identifier of the target object is determined to be an invalid identity identifier. Figure 3 As shown, the determining unit 501 can be used to execute S303.

[0092] Optional, combined Figure 5 ,like Figure 6 As shown, the one-time identity token using device 50 provided in the embodiment of the present invention further includes: a processing unit 504 and a storage unit 505 .

[0093] The processing unit 504 is used to encrypt the target data to obtain first encrypted data before calculating the multiple data using the target algorithm to determine the validity of the one-time identification of the target object. Figure 4As shown, the processing unit 504 can be used to execute part of the steps in S401.

[0094] Storage unit 505 is used to store the target data and the first encrypted data in a first blockchain corresponding to the target database, the first blockchain is a private blockchain, and the one-time attribute corresponding to the target object corresponds to the address of the target data in the first blockchain. Figure 4 As shown, the storage unit 505 can be used to execute part of the steps in S401.

[0095] The determination unit 501 is specifically configured to parse and obtain a target identifier corresponding to a target object, and determine target data and first encrypted data corresponding to the target object. Figure 4 As shown, the determining unit 501 can be used to execute S402.

[0096] The determination unit 501 is further configured to determine the validity of the one-time identification of the target object by determining whether the target data is included in the second blockchain, and the attribute value corresponding to all the data included in the second blockchain is the "false" attribute. Figure 4 As shown, the determining unit 501 can be used to execute S403.

[0097] In the case of implementing the functions of the above-mentioned integrated modules in the form of hardware, the embodiment of the present invention provides another possible structural diagram of the electronic device involved in the above-mentioned embodiment. Figure 7 As shown, an electronic device 60 is used to create a one-time identity token and determine the validity of the one-time identity token, for example, to perform Figure 2 The electronic device 60 includes a processor 601, a memory 602 and a bus 603. The processor 601 and the memory 602 can be connected via the bus 603.

[0098] The processor 601 is the control center of the communication device, which can be a processor or a general term for multiple processing elements. For example, the processor 601 can be a general-purpose central processing unit (CPU) or other general-purpose processors. Among them, the general-purpose processor can be a microprocessor or any conventional processor.

[0099] As an embodiment, the processor 601 may include one or more CPUs, such as Figure 7 CPU 0 and CPU 1 are shown in .

[0100] The memory 602 may be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (RAM) or other type of dynamic storage device that can store information and instructions, an electrically erasable programmable read-only memory (EEPROM), a disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited to these.

[0101] As a possible implementation, the memory 602 may exist independently of the processor 601, and the memory 602 may be connected to the processor 601 via a bus 603 to store instructions or program codes. When the processor 601 calls and executes the instructions or program codes stored in the memory 602, the one-time identity identification method provided in the embodiment of the present invention can be implemented.

[0102] In another possible implementation, the memory 602 may also be integrated with the processor 601 .

[0103] The bus 603 may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 7 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0104] It should be pointed out that Figure 7 The structure shown does not constitute a limitation on the electronic device 60. Figure 7 In addition to the components shown, the electronic device 60 may include more or fewer components than shown, or combine certain components, or arrange the components differently.

[0105] As an example, combining Figure 5 The functions implemented by the determination unit 501, the generation unit 502 and the creation unit 503 in the electronic device are similar to those Figure 7 The function of processor 601 in is the same.

[0106] Optional, such as Figure 7 As shown, the electronic device 60 provided in this embodiment of the present invention may further include a communication interface 604 .

[0107] The communication interface 604 is used to connect with other devices through a communication network. The communication network may be Ethernet, wireless access network, wireless local area network (WLAN), etc. The communication interface 604 may include a receiving unit for receiving data and a sending unit for sending data.

[0108] In one design, in the electronic device provided by an embodiment of the present invention, the communication interface may also be integrated into the processor.

[0109] Figure 8 FIG. 2 shows another hardware structure of an electronic device in an embodiment of the present invention. Figure 8 As shown, the electronic device 80 may include a processor 801, a communication interface 802, a memory 803 and a bus 804. The processor 801 is coupled to the communication interface 802 and the memory 803.

[0110] The functions of the processor 801 may refer to the description of the processor 601. In addition, the processor 801 also has a storage function, which may refer to the function of the memory 602.

[0111] The communication interface 802 is used to provide data to the processor 801. The communication interface 802 may be an internal interface of the communication device, or an external interface of the communication device (equivalent to the communication interface 604).

[0112] It should be pointed out that Figure 8 The structure shown in the figure does not constitute a limitation on the electronic device 80, except Figure 8 In addition to the components shown, the electronic device 80 may include more or fewer components than shown, or combine certain components, or arrange the components differently.

[0113] Through the description of the above implementation methods, those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above functional units is used as an example. In practical applications, the above functions can be assigned to different functional units as needed, that is, the internal structure of the device can be divided into different functional units to complete all or part of the functions described above. The specific working process of the system, device and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0114] An embodiment of the present invention further provides a computer-readable storage medium, in which instructions are stored. When a computer executes the instructions, the computer executes each step in the method flow shown in the above method embodiment.

[0115] An embodiment of the present invention provides a computer program product including instructions. When the instructions are executed on a computer, the computer is enabled to execute the one-time identity identification using method in the above method embodiment.

[0116] Among them, the computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable computer disk, and a hard disk. Random Access Memory (RAM), Read-Only Memory (ROM), Erasable Programmable Read Only Memory (EPROM), registers, hard disks, optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any other form of computer-readable storage medium in a suitable combination of the above, or numerical values ​​in the art. An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an Application Specific Integrated Circuit (ASIC). In embodiments of the present invention, computer-readable storage media may be any tangible media that contains or stores a program that may be used by or in conjunction with an instruction execution system, apparatus, or device.

[0117] Since the electronic device, computer-readable storage medium, and computer program product in the embodiments of the present invention can be applied to the above method, the technical effects that can be obtained can also refer to the above method embodiments, and the embodiments of the present invention will not be described in detail here.

[0118] The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions within the technical scope disclosed by the present invention should be covered within the protection scope of the present invention.

Claims

1. A one-time identity identification method, applied to electronic equipment, characterized in that: include: Determine a target object, and generate a target identifier corresponding to the target object in a preset manner, wherein the target identifier has a one-time attribute, and the target identifier and the one-time attribute constitute a one-time identity of the target object; Creating a target database, while generating the target identifier, adding target data to the target database, the target data being data corresponding to the target identifier, the target database including multiple data, each data corresponding to a one-time identity identifier; while adding the target data to the target database, determining the attribute value corresponding to the target data as a "true" attribute; when the one-time identity identifier of the target object is not used, the attribute value corresponding to the target data is a "true" attribute; after the one-time identity identifier of the target object is used for the first time, adjusting the attribute value corresponding to the target data to a "false" attribute; each of the multiple data has a prime number attribute; In the case of using the one-time identification of the target object, calculating the plurality of data by a target algorithm to determine the validity of the one-time identification of the target object; The calculating the multiple data by using a target algorithm to determine the validity of the one-time identity identifier of the target object includes: Calculate the product of all data with a "true" attribute among the plurality of data included in the target database to obtain a target product result, and obtain a first calculation result by dividing the target product result by the target data; When the first calculation result is an integer, determining that the one-time identity identifier of the target object is a valid identity identifier; When the first calculation result is a non-integer, it is determined that the one-time identity identifier of the target object is an invalid identity identifier.

2. The method according to claim 1, characterized in that The preset method is any one of the following: DID identification method, ZID identification method, GS1 identification method, Handle identification method, OID identification method, Ecode identification method; each of the multiple data corresponds to an attribute value, and the attribute value is a "true" attribute or a "false" attribute.

3. The method according to claim 1, characterized in that Before calculating the plurality of data by a target algorithm to determine the validity of the one-time identification of the target object using the one-time identification of the target object, the method further includes: Encrypt the target data to obtain first encrypted data, and store the target data and the first encrypted data in a first blockchain corresponding to the target database, where the first blockchain is a private blockchain, and the one-time attribute corresponding to the target object corresponds to the address of the target data in the first blockchain; The step of calculating the plurality of data by a target algorithm to determine the validity of the one-time identity identifier of the target object when the one-time identity identifier of the target object is used includes: Parsing and acquiring the target identifier corresponding to the target object, and determining the target data and the first encrypted data corresponding to the target object; The validity of the one-time identity of the target object is determined by determining whether the target data is included in the second blockchain, and the attribute value corresponding to all the data included in the second blockchain is a "false" attribute.

4. A disposable identity identification device, characterized in that: include: Identify units, generate units, and create units; The determining unit is used to determine the target object; The generating unit is used to generate a target identifier corresponding to the target object in a preset manner, wherein the target identifier has a one-time attribute, and the target identifier and the one-time attribute constitute a one-time identity of the target object; The creation unit is used to create a target database, and when generating the target identifier, add target data to the target database, the target data is data corresponding to the target identifier, and the target database includes multiple data, each of which corresponds to a one-time identity identifier; when adding the target data to the target database, determine the attribute value corresponding to the target data as a "true" attribute; when the one-time identity identifier of the target object is not used, the attribute value corresponding to the target data is a "true" attribute; after the one-time identity identifier of the target object is used for the first time, adjust the attribute value corresponding to the target data to a "false" attribute; each of the multiple data has a prime number attribute; The determining unit is further configured to determine the validity of the one-time identification identifier of the target object by calculating the plurality of data using a target algorithm when the one-time identification identifier of the target object is used; The determining unit is specifically configured to calculate the product of all data having a "true" attribute among the plurality of data included in the target database to obtain a target product result, and to obtain a first calculation result by dividing the target product result by the target data; The determining unit is further configured to determine, when the first calculation result is an integer, that the one-time identity identifier of the target object is a valid identity identifier; The determining unit is further configured to determine, when the first calculation result is a non-integer, that the one-time identity identifier of the target object is an invalid identity identifier.

5. The disposable identity tag using device according to claim 4, characterized in that: The preset method is any one of the following: DID identification method, ZID identification method, GS1 identification method, Handle identification method, OID identification method, Ecode identification method; each of the multiple data corresponds to an attribute value, and the attribute value is a "true" attribute or a "false" attribute.

6. The disposable identity tag using device according to claim 4, characterized in that: The one-time identity identification using device further includes: a processing unit and a storage unit; The processing unit is configured to, when using the one-time identification of the target object, calculate the multiple data by a target algorithm, and before determining the validity of the one-time identification of the target object, encrypt the target data to obtain first encrypted data; The storage unit is used to store the target data and the first encrypted data in a first blockchain corresponding to the target database, where the first blockchain is a private blockchain, and the one-time attribute corresponding to the target object corresponds to the address of the target data in the first blockchain; The determining unit is specifically configured to parse and obtain the target identifier corresponding to the target object, and determine the target data and the first encrypted data corresponding to the target object; The determination unit is further specifically used to determine the validity of the one-time identity identifier of the target object by determining whether the target data is included in the second blockchain, and the attribute value corresponding to all the data included in the second blockchain is a "false" attribute.

7. A computer-readable storage medium storing one or more programs, characterized in that: The one or more programs include instructions, which, when executed by a computer, cause the computer to perform the method for using a one-time identification token according to any one of claims 1 to 3.

8. An electronic device, characterized in that: include: A processor and a memory; wherein the memory is used to store one or more programs, and the one or more programs include computer-executable instructions. When the electronic device is running, the processor executes the computer-executable instructions stored in the memory to enable the electronic device to execute the disposable identity identification method described in any one of claims 1-3.

Citation Information

Patent Citations

  • Public key cryptographic system using elliptic curves over rings

    EP0503119A1

  • Illegitimate entity tracing method in encryption processing system, encryption processing system, and illegitimate entity tracing processing apparatus and computer program

    JP2004221800A