Product verification method, device, electronic device and computer-readable storage medium

By obtaining and decrypting the anti-counterfeiting information of the target product and matching it with the verification information stored in the database, the problem of anti-counterfeiting logos being misappropriated is solved, and the accuracy and security of product verification are achieved.

CN115361124BActive Publication Date: 2025-02-11BOE TECHNOLOGY GROUP CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210999853.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-19
Publication Date
2025-02-11
Estimated Expiration
2042-08-19

AI Technical Summary

Technical Problem

In the prior art, the anti-counterfeiting label of the product is easily stolen, making it difficult to accurately identify the authenticity of the product.

Method used

By obtaining the anti-counterfeiting information of the target product, decrypting it using the decryption algorithm dynamically determined by the preset encryption algorithm, obtaining the target verification information, and matching it with the product verification information stored in the database to determine the product verification result.

Benefits of technology

It realizes dynamic correspondence between anti-counterfeiting information and products, avoids theft of anti-counterfeiting information, and improves the accuracy of product verification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115361124B_ABST
    Figure CN115361124B_ABST
Patent Text Reader

Abstract

The embodiments of the present application provide a product verification method, device, electronic device and computer-readable storage medium, which relate to the field of computer technology. The method includes: obtaining anti-counterfeiting information of a target product; wherein the anti-counterfeiting information is dynamically determined based on the target verification information, random verification information and a preset encryption algorithm of the target product; decrypting the anti-counterfeiting information based on a decryption algorithm corresponding to the preset encryption algorithm to obtain the target verification information; matching the target verification information with the product verification information pre-stored in the first database to obtain the verification result of the target product. The embodiments of the present application dynamically verify the target product based on decrypting the dynamically generated anti-counterfeiting information of the target product to obtain the target verification information, thereby preventing the anti-counterfeiting information from being stolen while improving the accuracy of the verification result of the target product.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and more specifically, to a product verification method, device, electronic device, and computer-readable storage medium. Background Art

[0002] With the development of technology, users and manufacturers have gradually become more aware of anti-counterfeiting, and manufacturers usually provide anti-counterfeiting verification services. For example, in the process of product authenticity verification, an anti-counterfeiting mark of the product is usually attached to the product, such as a QR code, barcode, etc. The authenticity of the product can be determined by checking the anti-counterfeiting mark.

[0003] However, the anti-counterfeiting mark of a product can be easily misappropriated (for example, by attaching the anti-counterfeiting mark of a real product to a counterfeit product), for example, causing one code to be used for multiple purposes, making it difficult to truly identify the authenticity of the product. Summary of the invention

[0004] The embodiment of the present application provides a product verification method to solve the problem in the related art that the anti-counterfeiting mark of a product is easily misused.

[0005] Correspondingly, an embodiment of the present application also provides a product verification device, an electronic device and a computer-readable storage medium to ensure the implementation and application of the above method.

[0006] According to one aspect of an embodiment of the present application, a product verification method is provided, which is applied to a server and includes:

[0007] Obtaining anti-counterfeiting information of a target product; wherein the anti-counterfeiting information is dynamically determined based on target verification information, random verification information, and a preset encryption algorithm of the target product;

[0008] Decrypting the anti-counterfeiting information based on a decryption algorithm corresponding to the preset encryption algorithm to obtain the target verification information;

[0009] The target verification information is matched with the product verification information pre-stored in the first database to obtain the verification result of the target product.

[0010] According to another aspect of an embodiment of the present application, a product verification method is provided, which is applied to a client, and the method includes:

[0011] Obtaining anti-counterfeiting information of a target product; wherein the anti-counterfeiting information is dynamically determined based on the target verification information, random verification information and a preset encryption algorithm of the target product;

[0012] Sending the anti-counterfeiting information to a server, instructing the server to decrypt the anti-counterfeiting information based on a decryption algorithm corresponding to the preset encryption algorithm to obtain the target verification information; matching the target verification information with the product verification information pre-stored in the first database to obtain the verification result of the target product;

[0013] Receive the verification result sent by the above server.

[0014] According to another aspect of an embodiment of the present application, a product verification device is provided, which is applied to a server and includes:

[0015] An information acquisition module, used to acquire anti-counterfeiting information of a target product; wherein the anti-counterfeiting information is dynamically determined based on the target verification information, random verification information and a preset encryption algorithm of the target product;

[0016] A decryption module, used to decrypt the anti-counterfeiting information based on a decryption algorithm corresponding to the preset encryption algorithm to obtain the target verification information;

[0017] The matching module is used to match the target verification information with the product verification information pre-stored in the first database to obtain the verification result of the target product.

[0018] According to another aspect provided by an embodiment of the present application, a product verification device is provided, which is applied to a client and includes:

[0019] An information acquisition module, used to acquire anti-counterfeiting information of a target product; wherein the anti-counterfeiting information is dynamically determined based on the target verification information, random verification information and a preset encryption algorithm of the target product;

[0020] An information sending module, used to send the anti-counterfeiting information to a server, instruct the server to decrypt the anti-counterfeiting information based on a decryption algorithm corresponding to the preset encryption algorithm to obtain the target verification information; match the target verification information with the product verification information pre-stored in the first database to obtain the verification result of the target product;

[0021] The result receiving module is used to receive the verification result sent by the above server.

[0022] According to another aspect of an embodiment of the present application, an electronic device is provided. The electronic device includes a memory, a processor, and a computer program stored in the memory. The processor executes the computer program to implement the above method.

[0023] According to another aspect of the embodiments of the present application, a computer-readable storage medium is provided, on which a computer program is stored, and the computer program implements the above method when executed by a processor.

[0024] According to another aspect of the embodiments of the present application, a computer program product is provided, including a computer program, and the computer program implements the above method when executed by a processor.

[0025] The beneficial effects of the technical solution provided by the embodiment of the present application are:

[0026] In the product verification method provided in the embodiment of the present application, the anti-counterfeiting information is dynamically determined based on the target verification information of the target product, the random verification information and the preset encryption algorithm, which realizes the dynamic correspondence between the target product and the anti-counterfeiting information, and avoids the situation where one code is used for multiple purposes due to the theft of the anti-counterfeiting information. By obtaining the anti-counterfeiting information of the target product, decrypting the anti-counterfeiting information based on the decryption algorithm corresponding to the preset encryption algorithm to obtain the target verification information, and matching the target verification information with the product verification information pre-stored in the first database to obtain the verification result of the target product, the target product can be dynamically verified based on the target verification information obtained by decrypting the dynamically generated anti-counterfeiting information of the target product, so as to prevent the anti-counterfeiting information from being stolen and improve the accuracy of the verification result of the target product. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in describing the embodiments of the present application are briefly introduced below.

[0028] Figure 1 A flowchart of a product verification method provided by an embodiment of the present application is shown;

[0029] Figure 2 A structural diagram of a target product provided by an embodiment of the present application is shown;

[0030] Figure 3 A flowchart of an encryption process provided by an embodiment of the present application is shown;

[0031] Figure 4 A flowchart of a decryption process provided by an embodiment of the present application is shown;

[0032] Figure 5 A schematic diagram showing product attribute information of a target product provided by an embodiment of the present application;

[0033] Figure 6 A flowchart of another product verification method provided by an embodiment of the present application is shown;

[0034] Figure 7A schematic diagram of an application scenario of a product verification method provided by an embodiment of the present application is shown;

[0035] Figure 8 A flowchart of obtaining user authorization information provided by an embodiment of the present application is shown;

[0036] Fig. 9 A user interface diagram of a client provided in an embodiment of the present application is shown;

[0037] Fig.10 Another user interface diagram of a client provided in an embodiment of the present application is shown;

[0038] Fig.11 A diagram showing a user interface of another client provided in an embodiment of the present application is shown;

[0039] Fig.12 A diagram showing a user interface of another client provided in an embodiment of the present application is shown;

[0040] Fig.13 A diagram showing a user interface of another client provided in an embodiment of the present application is shown;

[0041] Fig.14 A user interface diagram of another client provided in an embodiment of the present application is shown.

[0042] Fig.15 A schematic diagram of a product verification device provided in an embodiment of the present application is shown;

[0043] Fig.16 A schematic diagram of another product authentication device provided in an embodiment of the present application is shown;

[0044] Fig.17 A schematic structural diagram of an electronic device applicable to an embodiment of the present application is shown. DETAILED DESCRIPTION

[0045] The embodiments of the present application are described below in conjunction with the drawings in the present application. It should be understood that the implementation methods described below in conjunction with the drawings are exemplary descriptions for explaining the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions of the embodiments of the present application.

[0046] It will be understood by those skilled in the art that, unless specifically stated, the singular forms "one", "said", and "the" used herein may also include plural forms. It should be further understood that the terms "including" and "comprising" used in the embodiments of the present application refer to that the corresponding features can be implemented as the presented features, information, data, steps, operations, elements and / or components, but do not exclude the implementation as other features, information, data, steps, operations, elements, components and / or combinations thereof supported by the technical field. It should be understood that when we say that an element is "connected" or "coupled" to another element, the one element may be directly connected or coupled to the other element, or it may refer to that the one element and the other element establish a connection relationship through an intermediate element. In addition, the "connection" or "coupling" used herein may include wireless connection or wireless coupling. The term "and / or" used herein indicates at least one of the items defined by the term, for example, "A and / or B" may be implemented as "A", or as "B", or as "A and B".

[0047] The following describes several exemplary embodiments to illustrate the technical solutions of the embodiments of the present application and the technical effects produced by the technical solutions of the present application. It should be noted that the following embodiments can refer to, draw on or combine with each other, and the same terms, similar features and similar implementation steps in different embodiments will not be described repeatedly.

[0048] Figure 1 A flow chart of a product verification method provided by an embodiment of the present application is shown. The product verification method is applied to a server, which can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server or server cluster that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms.

[0049] Those skilled in the art should understand that the above-mentioned servers are only examples, and other existing or future servers that are applicable to the present application should also be included in the protection scope of the present application and are included here by reference.

[0050] like Figure 1 As shown, the method includes:

[0051] Step S11: Obtain anti-counterfeiting information of the target product; wherein the anti-counterfeiting information is dynamically determined based on the target verification information, random verification information and a preset encryption algorithm of the target product.

[0052] The target product may be any product, including but not limited to display screens (specifically, for example, spliced ​​screens), mobile phones, computers, etc., and the embodiments of the present application do not impose any restrictions on this.

[0053] In the embodiments of the present application, there is no limitation on the form of the anti-counterfeiting information, which may include but is not limited to anti-counterfeiting character strings, anti-counterfeiting codes, anti-counterfeiting images, etc.

[0054] The anti-counterfeiting image may include an anti-counterfeiting string or an anti-counterfeiting code, etc. The anti-counterfeiting code may specifically be a QR code, a barcode, etc.

[0055] The anti-counterfeiting string may include, but is not limited to, a string formed by a combination of one or at least two of Arabic numerals, English letters, and special characters, and the embodiment of the present application does not limit the number of digits of the anti-counterfeiting string. For example, the anti-counterfeiting string may be set to a string obtained by encoding 20 digits (i.e., code code), and the anti-counterfeiting string includes a combination of Arabic numerals and uppercase English letters (except I and O).

[0056] It can be unique verification information generated based on the target product, corresponding target verification information can be set for each target product, or the same target verification information can be set for target products of the same type. In order to increase the difficulty of counterfeiting the target product and prevent the target verification information from being counterfeited, it is preferred to set corresponding target verification information for each target product.

[0057] Random verification information, that is, verification information randomly generated each time the anti-counterfeiting information of the target product is obtained. Each time the anti-counterfeiting information of the target product is generated, the generated random verification information is different, and correspondingly, the obtained anti-counterfeiting information is also different, thereby improving the security of the anti-counterfeiting information to prevent the anti-counterfeiting information from being stolen.

[0058] In the specific implementation process, the target verification information and the random verification information may also include, but are not limited to, a string formed by a combination of one or at least two of Arabic numerals, English letters, and special characters. When the random verification information is a string composed of Arabic numerals, it may also be called a random number.

[0059] In the process of generating anti-counterfeiting information, a preset encryption algorithm can be integrated into a processor pre-built into the target product, and the target verification information of the target product can be set. The processor can dynamically determine the anti-counterfeiting information of the target product based on the target verification information, random verification information and the preset encryption algorithm of the target product in response to a preset operation of the user.

[0060] For example, Figure 2 As shown, the algorithm module in the mainboard of the spliced ​​screen can generate anti-counterfeiting information (code).

[0061] When the target product is a splicing screen, a control for obtaining anti-counterfeiting information of the splicing screen (also called an "anti-counterfeiting menu") can be added to the setting interface of the splicing screen. When the processor detects that the user triggers the control, the anti-counterfeiting information of the target product is generated.

[0062] When the processor generates anti-counterfeiting information, it can specifically include: first dynamically generating an anti-counterfeiting string of the target product based on the target verification information, random verification information and a preset encryption algorithm of the target product, and then determining the presentation method of the anti-counterfeiting information based on the target product's requirements for the presentation of the anti-counterfeiting information, and determining the final anti-counterfeiting information based on the generated anti-counterfeiting string and the determined presentation method.

[0063] Step S12: Based on a decryption algorithm corresponding to the preset encryption algorithm, the anti-counterfeiting information is decrypted to obtain the target verification information.

[0064] In step S12, a decryption algorithm symmetrical to a preset encryption algorithm may be pre-set on the server to obtain target verification information for the anti-counterfeiting information.

[0065] Step S13: Match the target verification information with the product verification information pre-stored in the first database to obtain the verification result of the target product.

[0066] In step S13, after the production process of each product is completed, the product verification information of each product can be stored in the first database to facilitate subsequent verification of each product.

[0067] Considering that the identification forms of product verification information of different products may be different, a corresponding first database may be set according to the product type of each product. For example, a first database may be set for a spliced ​​screen, and a first database may be set for an Android phone.

[0068] Specifically, the verification information of the target product can be determined based on the matching result between the target verification information and the first database. That is, if there is product verification information identical to the target verification information in the first database, the verification result of the target product is determined to be that the target verification information is correct, that is, the target product is a genuine product. If there is no product verification information identical to the target verification information in the first database, the verification result of the target product is determined to be that the target verification information is wrong, that is, the target product is a counterfeit product.

[0069] Of course, in order to prevent the anti-counterfeiting information from being acquired incorrectly, when the verification result is that the target verification information is incorrect, a prompt message "Please re-acquire the anti-counterfeiting information" may be further generated to more accurately acquire the verification result of the target product.

[0070] In order to further prevent the anti-counterfeiting information from being stolen, when the verification result shows that the target verification information is correct, the number of times the target verification information is verified can be further counted, and based on the number of times the anti-counterfeiting information is verified, it can be further determined whether there is a risk of the anti-counterfeiting information being stolen.

[0071] In the product verification method provided in the embodiment of the present application, since the anti-counterfeiting information is dynamically determined based on the target verification information of the target product, the random verification information and the preset encryption algorithm, a dynamic correspondence between the target product and the anti-counterfeiting information is achieved, thereby avoiding the situation where one code is used for multiple purposes due to the theft of anti-counterfeiting information.

[0072] By obtaining the anti-counterfeiting information of the target product, decrypting the anti-counterfeiting information based on a decryption algorithm corresponding to a preset encryption algorithm to obtain target verification information, and matching the target verification information with the product verification information pre-stored in the first database to obtain a verification result of the target product, the target product can be dynamically verified based on the target verification information obtained by decrypting the dynamically generated anti-counterfeiting information of the target product, thereby preventing the anti-counterfeiting information from being stolen and improving the accuracy of the verification result of the target product.

[0073] In order to explain the above encryption process more clearly, the following Figure 3 The encryption algorithm shown takes the target verification information as a string "A1B2C3D4EF56" containing Arabic numerals and uppercase English letters, the dynamically generated random verification information as a three-digit random number "789", and the anti-counterfeiting information as an anti-counterfeiting string "DH2072RB19N2Q48FE" obtained by combining 17 Arabic numerals and uppercase English letters (except I and O) as an example to illustrate the encryption process provided in the embodiment of the present application:

[0074] Step S31: replace each Arabic numeral in the target verification information with the binary character "0", and replace each uppercase English letter in the target verification information with the binary character "1", to obtain a second character string "1010101100" corresponding to the target verification information, and the second character string is a binary character string.

[0075] Since the position of each character in the second character string is the same as the position of the corresponding character in the target verification information, the second character string may also be referred to as the code point character string of the target verification information.

[0076] Step S32: Divide the target verification information to obtain a third character string "123456" obtained by combining Arabic numerals in the target verification information, and a fourth character string "ABCDEF" obtained by combining uppercase English letters in the target verification information.

[0077] The embodiment of the present application does not limit the execution order of step S31 and step S32. Step S31 may be executed first, and then step S32; step S32 may be executed first, and then step S31; or step S31 and step S32 may be executed simultaneously.

[0078] Step S33: convert each character in the fourth character string into ASCII code, and concatenate the characters according to their positions in the fourth character string to obtain a fifth character string "272829303132".

[0079] Step S34: concatenate the fifth character string to the third character string to obtain a sixth character string "123456272829303132".

[0080] Step S35: Add a character "1" to the left of the second character string (ie, the position where the high bit is located), and convert the obtained character string "11010101100" into a seventh character string "519" in decimal.

[0081] It should be noted that in step S35, it is taken into consideration that during computer processing, if the first digit on the left side of a binary string is the character "0", it may cause incorrect recognition of the binary string. Therefore, by adding a character "1" to the left side of the second string, the availability of the obtained second string can be guaranteed, thereby facilitating accurate execution of the encryption process.

[0082] Step S36: The sixth character string is concatenated with the seventh character string to obtain a first decimal character string "519123456272829303132".

[0083] Step S37: concatenate the first character string to the preset number of random verification information "789" to obtain a ninth decimal character string "789519123456272829303132".

[0084] Step S38: Convert the ninth character string into base-34 to obtain the tenth character string "DH272RB19N2Q48FE".

[0085] Step S39: Convert the digit "3" of the seventh character string into base 34 to obtain "0". Insert the character "0" at the preset position (eg, the 4th digit) of the tenth character string to obtain the anti-counterfeiting information "DH2072RB19N2Q48FE".

[0086] In step S39, the preset position may be the middle position between any two adjacent characters in the anti-counterfeiting information, which is not limited in the embodiment of the present application and may be set according to actual conditions.

[0087] Through the encryption process, accurate anti-counterfeiting information can be obtained, and due to the complexity of the encryption algorithm itself, the difficulty of cracking the obtained anti-counterfeiting information is increased, so that the verification result of the target product can be uniquely determined based on the anti-counterfeiting information.

[0088] In a possible implementation, decrypting the anti-counterfeiting information based on a decryption algorithm corresponding to the preset encryption algorithm to obtain the target verification information may include:

[0089] Decrypting the anti-counterfeiting information based on a first decryption algorithm in the decryption algorithms to obtain a first character string corresponding to the target verification information;

[0090] Based on the second decryption algorithm in the above decryption algorithm, the above first character string is decrypted to obtain the above target verification information.

[0091] In this implementation, the first decryption algorithm may be a decryption algorithm corresponding to the above steps S37 to S39, and the second decryption algorithm may be a decryption algorithm corresponding to the above steps S31 to S36.

[0092] By decrypting the anti-counterfeiting information with the first decryption algorithm, the first character string and random verification information corresponding to the target verification information can be obtained. Then, by further decrypting the first character string with the second decryption algorithm, the target verification information can be obtained.

[0093] Through this method, the anti-counterfeiting information can be split into information related to the target product (first character string) and information unrelated to the target product (random verification information), which facilitates the subsequent decryption of the first character string to obtain the target verification information for verifying the target product.

[0094] In a possible implementation, decrypting the first character string based on the second decryption algorithm in the decryption algorithm to obtain the target verification information may include:

[0095] Based on the second decryption algorithm, the first character string is decrypted to obtain a second character string, a third character string and a fourth character string;

[0096] The encoding methods of the second character string, the third character string and the fourth character string are different;

[0097] Replace the first character in the second string with the character in the third string, and replace the second character in the second string with the character in the fourth string;

[0098] Based on the replaced second character string, the above-mentioned target verification information is obtained.

[0099] As described above, the second character string is the code bit character string of the target verification information, and its encoding method can be binary. The third character string is the character string composed of Arabic numerals in the target verification information, and its encoding method can be decimal. The fourth character string is the character string composed of English letters in the target verification information, and its encoding method can be ASCII encoding.

[0100] By further decrypting the information related to the target product obtained by splitting the anti-counterfeiting information, target verification information for verifying the target product can be obtained.

[0101] The following combination Figure 4 The decryption algorithm shown continues to take the above example (the target verification information is a string "A1B2C3D4EF56" obtained by combining Arabic numerals and uppercase English letters, the dynamically generated random verification information is a three-digit random number "789", and the anti-counterfeiting information is an anti-counterfeiting string "DH2072RB19N2Q48FE" obtained by combining 17 Arabic numerals and uppercase English letters (except I and O)) as an example to illustrate the decryption process provided by the embodiment of the present application:

[0102] Step S41: Take out the character “0” at a preset position (for example, the 4th position) in the anti-counterfeiting character string “DH2072RB19N2Q48FE” to obtain the tenth character string “DH272RB19N2Q48FE”.

[0103] Step S42: Perform inverse 34-decimal conversion on the tenth character string to obtain a decimal ninth character string "789519123456272829303132".

[0104] Step S43: Starting from the first digit on the left of the ninth character string, delete the preset number of random verification information "789" to obtain the first decimal character string "519123456272829303132".

[0105] Step S44: Perform inverse 34-decimal conversion on the character “0” at the preset position to obtain the number of digits “3” of the seventh character string.

[0106] Step S45: split the first character string to obtain the first 3 decimal digits of the first character string, a seventh character string "519", and the remaining digits of the sixth character string "123456272829303132".

[0107] Step S46: Perform binary conversion on the seventh character string "519" to obtain the character string "11010101100", and delete the highest-order character "1" to obtain the code bit map of the target verification information, that is, the second character string "1010101100".

[0108] Step S47: Determine that the total number of digits of the second character string is 12, that is, the decrypted target verification information includes 12 characters, of which the number of characters "1" in the second character string is 6 and the number of characters "0" is 6. Take out the first 6 characters of the sixth character string, and use the taken character string as the third character string "123456", and the remaining character string as the fifth character string "272829303132".

[0109] Step S48: Starting from the high bit of the fifth character string, perform an ASCII code inverse transformation on every two bits to obtain the fourth character string "ABCDEF".

[0110] Step S49: Replace the characters "1" in the second character string with the characters in the third character string in sequence, and replace the characters "0" in the second character string with the characters in the fourth character string in sequence, to obtain the target verification information "A1B2C3D4EF56".

[0111] In a possible implementation, the above-mentioned obtaining the anti-counterfeiting information of the target product may include:

[0112] In the case where the anti-counterfeiting information is an anti-counterfeiting character string, the anti-counterfeiting character string is used as the anti-counterfeiting information;

[0113] and / or

[0114] In the case where the anti-counterfeiting information is an anti-counterfeiting image, an anti-counterfeiting character string in the anti-counterfeiting image is identified, and the identified anti-counterfeiting character string is used as the anti-counterfeiting information.

[0115] In this implementation, when the anti-counterfeiting information is an anti-counterfeiting image, the anti-counterfeiting string in the anti-counterfeiting image can be identified by image recognition technology. The embodiment of the present application does not limit the specific image recognition technology used. For example, OCR recognition (Optical Character Recognition) technology can be used to identify the anti-counterfeiting string in the anti-counterfeiting image. Among them, OCR recognition technology refers to scanning an image, determining the target shape corresponding to the image according to the changes in darkness and lightness of different areas of the image during the scanning process, and then translating the target shape into computer text.

[0116] Through the above method, the anti-counterfeiting character string of the target product can be accurately determined based on the original anti-counterfeiting information of the target product obtained, thus paving the way for further verification of the target product.

[0117] Considering that when the anti-counterfeiting information is an anti-counterfeiting image, the clarity of the anti-counterfeiting image may affect the acquisition of the anti-counterfeiting characters, the embodiment of the present application also provides the following possible implementation methods:

[0118] The above method may further include:

[0119] Receiving image acquisition attribute information for the anti-counterfeiting image sent by the client;

[0120] When it is determined that the image acquisition attribute information meets the preset condition, issuing first indication information;

[0121] The first instruction information instructs the client to obtain and send the anti-counterfeiting image;

[0122] If it is determined that the image acquisition attribute information does not meet the preset condition, issuing a second indication information;

[0123] The second indication information instructs the client to update and send the image acquisition attribute information.

[0124] The image acquisition attribute information may be device information of the image acquisition device, such as the focal length of the image acquisition device, frame data of the image acquired by the image acquisition device, etc. The clarity of the image may be determined based on the frame data of the image acquired by the image acquisition device.

[0125] The preset condition may be that the definition reaches a preset threshold (eg, 610 lines).

[0126] By instructing the client to obtain and send the anti-counterfeiting image when the image acquisition attribute information meets the preset conditions; and instructing the client to update and send the updated image acquisition attribute information when the image acquisition attribute information does not meet the preset conditions, it is helpful to obtain a clear anti-counterfeiting image, paving the way for further obtaining anti-counterfeiting information and verifying the product.

[0127] Specifically, the above method may further include:

[0128] If the verification result is any of the following, an alarm message is generated:

[0129] There is no product verification information matching the target verification information in the first database;

[0130] The number of inquiries for the target product within a preset time period is greater than a first threshold; wherein the preset time period is greater than a second threshold.

[0131] Considering that usually, after obtaining the target product, some users will repeatedly verify the target product within a certain period of time. If the target product is determined to be a genuine product, the target product will not be verified again. In order to prevent the anti-counterfeiting information from being misappropriated, the second threshold can be set to 1 minute and the first threshold to 10. If the target product is continuously verified beyond the concentrated time period, there may be a risk of misappropriation, and a corresponding alarm message can be generated.

[0132] When there is no product verification information matching the target verification information in the first database (i.e., the verification result is that the target verification information is wrong), relevant personnel can return or exchange the target product to avoid problems in the subsequent use of the product. When the number of queries for the target product within a preset time period is greater than a first threshold, an alarm message is generated, which can effectively prevent the occurrence of inaccurate verification results due to the misappropriation of anti-counterfeiting information.

[0133] Of course, when generating target verification information, the verification time and verification times can also be used together as the verification result. Based on the above, the verification result of the target product can include any of the following:

[0134] The verification time and target verification information are incorrect. Please obtain the anti-counterfeiting information again.

[0135] Verification time and target verification information are correct, and the target product is an original complete product;

[0136] The verification time and target verification information are correct, the target product is an original complete product, but the target product has been verified N times.

[0137] In a possible implementation, the above method may further include:

[0138] Obtaining identification information of the above target product;

[0139] The identification information is matched with the product attribute information pre-stored in the second database to obtain the product attribute information of the target product.

[0140] In this implementation, the identification information of the target product may be the SN code (Serial Number, i.e., machine code) of the target product, which is the unique identification of the target product. For example, the combination of the product model and the order number of the target product may be used as the identification information of the target product.

[0141] Product attribute information may include but is not limited to Figure 5 Displays the order number, product type, product model, operator, upload time and operation, etc.

[0142] In the specific implementation process, Figure 5 The various product attribute information shown are associated with the product identification information, and the associated information is saved in the second database, so as to determine the product attribute information of the target product according to the identification information of the target product.

[0143] Among them, in the actual production process, it can also be based on Figure 5 The product attribute table shown is used to perform product maintenance management.

[0144] In this implementation, if Figure 2 As shown, the anti-counterfeiting information (code) and identification information (SN code) of the target product can be obtained at the same time, or the anti-counterfeiting information and identification information can be obtained separately, and the embodiment of the present application does not limit this. In addition, the verification result and product attribute information of the target product can also be obtained at the same time, or the verification result and product attribute information of the target product can also be obtained separately, and the embodiment of the present application does not limit this.

[0145] By verifying the target product according to its anti-counterfeiting information and determining its product attribute information according to its identification information, the verification result and product attribute information of the target product can be obtained simultaneously, thus enriching the product verification result.

[0146] Of course, if the verification result of the target product is a counterfeit product, it is not necessary to continue to obtain the identification information of the target product to determine the product attribute information of the target product.

[0147] Based on the same principle as the product verification method applied to the server side provided in the embodiment of the present application, a product verification method applied to the client side is also provided in the embodiment of the present application. The product verification method is applied to the client, and the client [also referred to as a user terminal or user equipment (UE)] can be a smart phone, a tablet computer, a laptop computer, a desktop computer, etc. In the specific implementation process, the method can be executed by an APP (application) of the client or a small program in an application in the client.

[0148] Figure 6 FIG. 2 is a flow chart showing another product verification method provided by an embodiment of the present application. Figure 6 As shown, the method includes:

[0149] Step S61: Acquire anti-counterfeiting information of the target product; wherein the anti-counterfeiting information is dynamically determined based on the target verification information, random verification information and a preset encryption algorithm of the target product.

[0150] When obtaining the anti-counterfeiting information of the target product, the anti-counterfeiting information (for example, the anti-counterfeiting string mentioned above, etc.) can be directly entered into the input box of the user interface of the client, or the anti-counterfeiting information (for example, the anti-counterfeiting image mentioned above, anti-counterfeiting code, etc.) can be obtained through the client's own image acquisition device or an external image acquisition device.

[0151] Step S62: Send the anti-counterfeiting information to the server, instruct the server to decrypt the anti-counterfeiting information based on the decryption algorithm corresponding to the preset encryption algorithm to obtain the target verification information; match the target verification information with the product verification information pre-stored in the first database to obtain the verification result of the target product.

[0152] The server can be the executor of the aforementioned product verification method, and the specific implementation process can refer to the specific steps in the aforementioned product verification method.

[0153] Step S63: Receive the verification result sent by the above server.

[0154] In a specific implementation process, after receiving the verification result, the verification result can be directly displayed through the user interface of the client, or the verification result can be played through voice or other means.

[0155] In the product verification method provided in the embodiment of the present application, since the anti-counterfeiting information is dynamically determined based on the target verification information of the target product, the random verification information and the preset encryption algorithm, a dynamic correspondence between the target product and the anti-counterfeiting information is achieved, thereby avoiding the situation where one code is used for multiple purposes due to the theft of anti-counterfeiting information.

[0156] By obtaining the anti-counterfeiting information of the target product and sending the anti-counterfeiting information to the server, the server is instructed to decrypt the anti-counterfeiting information based on a decryption algorithm corresponding to a preset encryption algorithm to obtain target verification information, and the target verification information is matched with the product verification information pre-stored in the first database to obtain the verification result of the target product, and the verification result sent by the server is received. The target product can be dynamically verified by instructing the server based on the target verification information obtained by decrypting the dynamically generated anti-counterfeiting information of the target product, so as to prevent the anti-counterfeiting information from being misused and improve the accuracy of the verification result of the target product.

[0157] In a possible implementation, the above-mentioned obtaining the anti-counterfeiting information of the target product may include:

[0158] Upon obtaining the user authorization information corresponding to the client, obtaining the anti-counterfeiting information;

[0159] The user authorization information includes at least one of the following: user identification, user location information, and user contact information.

[0160] The user identification may include but is not limited to a user nickname, a user avatar, etc.

[0161] The user location information can be located by any positioning tool (for example, a positioning tool carried by the client itself or a positioning tool external to the client), and the location information obtained by positioning is used as the user location information. Wherein, in the case where the positioning tool is a positioning tool external to the client, the location information obtained by positioning can also be sent to the client as the user location information.

[0162] In order to more clearly illustrate the product verification method provided in the embodiment of the present application, the following Figure 7 The method is described by the interaction between the server 71, the client 72 (specifically the B anti-counterfeiting system applet) and the splicing screen 73 (the specific steps of step S701 to step S703 can be referred to Figure 8 ):

[0163] Step S701: In response to the operation of opening the anti-counterfeiting system applet, in response to the user's triggering operation of the "allow" control, obtaining the user nickname and user avatar authorization information (such as Fig. 9 shown).

[0164] Step S702: After jumping to the user login authorization interface, in response to the user input of various user information, bind the user information (such as Fig.10 After jumping to the user location information authorization interface, in response to the user's triggering operation of the "Allow" control, the user location information is obtained (as shown in Fig.11 After jumping to the user contact authorization interface, in response to the user's triggering operation of the "Allow" control, the user's mobile phone number is obtained (as shown in Fig.12 shown).

[0165] Step S703: Send the above authorization information to the server and jump to the query interface (such as Fig.13 shown).

[0166] Step S704: Open the anti-counterfeiting menu in the "Settings" of the spliced ​​screen to display the screen anti-counterfeiting verification code.

[0167] Step S705: Control the image acquisition device of the client to align with the anti-counterfeiting verification code area of ​​the spliced ​​screen, and respond to the user's Fig.13 The scanning control 131 shown in the figure is clicked to obtain the anti-counterfeiting image, and in response to the user's Fig.13 By clicking the "click query" control 132 in the example, the anti-counterfeiting image is sent to the server.

[0168] Of course, the anti-counterfeiting string can also be input in response to the user's input operation on the input control 133, and the anti-counterfeiting string can be input in response to the user's input operation on the input control 133. Fig.13 By clicking the "click query" control 132 in the example, the anti-counterfeiting image is sent to the server.

[0169] Step S706: The server receives the anti-counterfeiting image sent by the client, and instructs the server to identify the SN code and the code code in the anti-counterfeiting image by calling the OCR service.

[0170] Step S707: The server obtains the verification result of the spliced ​​screen according to the SN code and code code returned by the OCR service, and sends the verification result to the client.

[0171] Step S708: The client displays the verification result (such as Fig.14 shown).

[0172] In the product verification method applied on the client side, the operations performed by the client instructing the server are similar to the implementation principles of the above-mentioned product verification method applied on the service side. The specific steps performed correspond to the steps in the product verification method applied on the service side in each embodiment of the present application. For details, please refer to the description of the corresponding method shown in the previous text, which will not be repeated here.

[0173] Based on the same principle as the product verification method applied to the server side provided in the embodiment of the present application, a product verification device is also provided in the embodiment of the present application. Fig.15 FIG. 1 is a schematic diagram of a product verification device provided by an embodiment of the present application. Fig.15 As shown, the device 150 is applied to a server and includes:

[0174] The information acquisition module 151 is used to acquire the anti-counterfeiting information of the target product; wherein the anti-counterfeiting information is dynamically determined based on the target verification information, random verification information and a preset encryption algorithm of the target product;

[0175] A decryption module 152, configured to decrypt the anti-counterfeiting information based on a decryption algorithm corresponding to the preset encryption algorithm to obtain the target verification information;

[0176] The matching module 153 is used to match the target verification information with the product verification information pre-stored in the first database to obtain the verification result of the target product.

[0177] In a possible implementation, when the decryption module 152 decrypts the anti-counterfeiting information based on a decryption algorithm corresponding to the preset encryption algorithm to obtain the target verification information, it can be specifically used to:

[0178] Decrypting the anti-counterfeiting information based on a first decryption algorithm in the decryption algorithms to obtain a first character string corresponding to the target verification information;

[0179] Based on the second decryption algorithm in the above decryption algorithm, the above first character string is decrypted to obtain the above target verification information.

[0180] In a possible implementation, when the decryption module 152 decrypts the first character string based on the second decryption algorithm in the decryption algorithm to obtain the target verification information, it can be specifically used to:

[0181] Based on the second decryption algorithm, the first character string is decrypted to obtain a second character string, a third character string and a fourth character string;

[0182] The encoding methods of the second character string, the third character string and the fourth character string are different;

[0183] Replace the first character in the second string with the character in the third string, and replace the second character in the second string with the character in the fourth string;

[0184] Based on the replaced second character string, the above-mentioned target verification information is obtained.

[0185] In one possible implementation,

[0186] The information acquisition module 151 is also used to acquire the identification information of the target product;

[0187] The matching module 153 is further used to match the identification information with the product attribute information pre-stored in the second database to obtain the product attribute information of the target product.

[0188] In a possible implementation, when acquiring the anti-counterfeiting information of the target product, the information acquisition module 151 may be specifically used to:

[0189] In the case where the anti-counterfeiting information is an anti-counterfeiting character string, the anti-counterfeiting character string is used as the anti-counterfeiting information;

[0190] and / or

[0191] In the case where the anti-counterfeiting information is an anti-counterfeiting image, an anti-counterfeiting character string in the anti-counterfeiting image is identified, and the identified anti-counterfeiting character string is used as the anti-counterfeiting information.

[0192] In a possible implementation, the information acquisition module 151 may also be used to:

[0193] Receiving image acquisition attribute information for the anti-counterfeiting image sent by the client;

[0194] When it is determined that the image acquisition attribute information meets the preset condition, issuing first indication information;

[0195] The first instruction information instructs the client to obtain and send the anti-counterfeiting image;

[0196] If it is determined that the image acquisition attribute information does not meet the preset condition, issuing a second indication information;

[0197] The second indication information instructs the client to update and send the image acquisition attribute information.

[0198] In a possible implementation, the device 150 may further include an alarm module.

[0199] The alarm module is used to generate an alarm message when the verification result is any of the following:

[0200] There is no product verification information matching the target verification information in the first database;

[0201] The number of inquiries for the target product within a preset time period is greater than a first threshold; wherein the preset time period is greater than a second threshold.

[0202] The device of the embodiments of the present application can execute the method provided by the embodiments of the present application, and the implementation principles are similar. The actions performed by each module in the device of each embodiment of the present application correspond to the steps in the method of each embodiment of the present application. For the detailed functional description of each module of the device, please refer to the description in the corresponding method shown in the previous text, which will not be repeated here.

[0203] Based on the same principle as the product verification method applied to the client side provided in the embodiment of the present application, a product verification device is also provided in the embodiment of the present application. Fig.16 FIG. 2 is a schematic diagram of another product verification device provided by an embodiment of the present application. Fig.16 As shown, the device 160 is applied to a client and includes:

[0204] The information acquisition module 161 is used to acquire the anti-counterfeiting information of the target product; wherein the anti-counterfeiting information is dynamically determined based on the target verification information, random verification information and a preset encryption algorithm of the target product;

[0205] The information sending module 162 is used to send the anti-counterfeiting information to the server, instruct the server to decrypt the anti-counterfeiting information based on the decryption algorithm corresponding to the preset encryption algorithm to obtain the target verification information; match the target verification information with the product verification information pre-stored in the first database to obtain the verification result of the target product;

[0206] The result receiving module 163 is used to receive the verification result sent by the server.

[0207] In a possible implementation, when acquiring the anti-counterfeiting information of the target product, the information acquisition module 161 may be specifically used to:

[0208] Upon obtaining the user authorization information corresponding to the client, obtaining the anti-counterfeiting information;

[0209] The user authorization information includes at least one of the following: user identification, user location information, and user contact information.

[0210] The device of the embodiments of the present application can execute the method provided by the embodiments of the present application, and the implementation principles are similar. The actions performed by each module in the device of each embodiment of the present application correspond to the steps in the method of each embodiment of the present application. For the detailed functional description of each module of the device, please refer to the description in the corresponding method shown in the previous text, which will not be repeated here.

[0211] Based on the same principle as the product verification method and device provided in the embodiments of the present application, an electronic device (such as a server) is also provided in the embodiments of the present application. The electronic device may include a memory, a processor and a computer program stored in the memory. The processor executes the above-mentioned computer program to implement the method provided in any optional embodiment of the present application.

[0212] Optionally, Fig.17 A schematic diagram of the structure of an electronic device applicable to the embodiment of the present application is shown. Fig.17 As shown, Fig.17 The electronic device 1700 shown includes: a processor 1701 and a memory 1703. The processor 1701 and the memory 1703 are connected, such as through a bus 1702. Optionally, the electronic device 1700 may also include a transceiver 1704, which may be used for data interaction between the electronic device and other electronic devices, such as data transmission and / or data reception. It should be noted that in actual applications, the transceiver 1704 is not limited to one, and the structure of the electronic device 1700 does not constitute a limitation on the embodiments of the present application.

[0213] Processor 1701 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. Processor 1701 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.

[0214] The bus 1702 may include a path to transmit information between the above components. The bus 1702 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus 1702 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.17 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.

[0215] The memory 1703 may be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), magnetic disk storage media, other magnetic storage devices, or any other medium that can be used to carry or store computer programs and can be read by a computer, without limitation herein.

[0216] The memory 1703 is used to store the computer program for executing the embodiment of the present application, and the execution is controlled by the processor 1701. The processor 1701 is used to execute the computer program stored in the memory 1703 to implement the steps shown in the above method embodiment.

[0217] An embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the aforementioned method can be implemented.

[0218] The embodiment of the present application also provides a computer program product, including a computer program, which can implement the above method when executed by a processor.

[0219] The terms "first", "second", "third", "fourth", "1", "2", etc. (if any) in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than that shown or described in the drawings.

[0220] It should be understood that, although each operation step is indicated by arrows in the flowchart of the embodiment of the present application, the implementation order of these steps is not limited to the order indicated by the arrows. Unless clearly stated herein, in some implementation scenarios of the embodiment of the present application, the implementation steps in each flowchart can be performed in other orders according to demand. In addition, some or all of the steps in each flowchart may include multiple sub-steps or multiple stages based on actual implementation scenarios. Some or all of these sub-steps or stages may be executed at the same time, and each sub-step or stage in these sub-steps or stages may also be executed at different times respectively. In different scenarios of execution time, the execution order of these sub-steps or stages may be flexibly configured according to demand, and the embodiment of the present application does not limit this.

[0221] The above is only an optional implementation method for some implementation scenarios of the present application. It should be pointed out that for ordinary technicians in this technical field, without departing from the technical concept of the solution of the present application, other similar implementation methods based on the technical ideas of the present application are also within the protection scope of the embodiments of the present application.

Claims

1. A product verification method, applied to a server, characterized in that: The method comprises: Acquire anti-counterfeiting information of a target product; wherein the anti-counterfeiting information is dynamically determined based on target verification information, random verification information, and a preset encryption algorithm of the target product; Decrypting the anti-counterfeiting information based on a decryption algorithm corresponding to the preset encryption algorithm to obtain the target verification information; Matching the target verification information with the product verification information pre-stored in the first database to obtain the verification result of the target product; The decrypting the anti-counterfeiting information based on a decryption algorithm corresponding to the preset encryption algorithm to obtain the target verification information includes: Decrypting the anti-counterfeiting information based on a first decryption algorithm in the decryption algorithms to obtain a first character string corresponding to the target verification information; Decrypting the first character string based on a second decryption algorithm in the decryption algorithm to obtain the target verification information; The decrypting the first character string based on the second decryption algorithm in the decryption algorithm to obtain the target verification information includes: Decrypting the first character string based on the second decryption algorithm to obtain a second character string, a third character string, and a fourth character string; The second character string, the third character string and the fourth character string are encoded in different ways; Replace the first character in the second string with the character in the third string, and replace the second character in the second string with the character in the fourth string; Based on the replaced second character string, the target verification information is obtained.

2. The method according to claim 1, characterized in that: The method further comprises: Obtaining identification information of the target product; The identification information is matched with the product attribute information pre-stored in the second database to obtain the product attribute information of the target product.

3. The method according to any one of claims 1 to 2, characterized in that The obtaining of anti-counterfeiting information of the target product includes: In the case where the anti-counterfeiting information is an anti-counterfeiting character string, using the anti-counterfeiting character string as the anti-counterfeiting information; and / or In the case that the anti-counterfeiting information is an anti-counterfeiting image, an anti-counterfeiting character string in the anti-counterfeiting image is identified, and the identified anti-counterfeiting character string is used as the anti-counterfeiting information.

4. The method according to claim 3, characterized in that The method further comprises: Receiving image acquisition attribute information for the anti-counterfeiting image sent by a client; When it is determined that the image acquisition attribute information meets a preset condition, issuing first indication information; Wherein, the first instruction information instructs the anti-counterfeiting terminal to obtain and send the anti-counterfeiting image; If it is determined that the image acquisition attribute information does not meet the preset condition, issuing second indication information; The second indication information instructs the anti-counterfeiting terminal to update and send the image acquisition attribute information.

5. The method according to claim 1, characterized in that The method further comprises: If the verification result is any of the following, an alarm message is generated: There is no product verification information matching the target verification information in the first database; The number of inquiries for the target product within a preset time period is greater than a first threshold; wherein the preset time period is greater than a second threshold.

6. A product verification method, applied to a client, characterized in that: The method comprises: Acquire anti-counterfeiting information of a target product; wherein the anti-counterfeiting information is dynamically determined based on target verification information, random verification information, and a preset encryption algorithm of the target product; Sending the anti-counterfeiting information to a server, instructing the server to decrypt the anti-counterfeiting information based on a decryption algorithm corresponding to the preset encryption algorithm to obtain the target verification information; matching the target verification information with the product verification information pre-stored in the first database to obtain the verification result of the target product; Receiving a verification result sent by the server; The server decrypts the anti-counterfeiting information based on a decryption algorithm corresponding to the preset encryption algorithm to obtain the target verification information, including: Decrypting the anti-counterfeiting information based on a first decryption algorithm in the decryption algorithms to obtain a first character string corresponding to the target verification information; Decrypting the first character string based on a second decryption algorithm in the decryption algorithm to obtain the target verification information; The server decrypts the first character string based on a second decryption algorithm in the decryption algorithm to obtain the target verification information, including: Decrypting the first character string based on the second decryption algorithm to obtain a second character string, a third character string, and a fourth character string; The second character string, the third character string and the fourth character string are encoded in different ways; Replace the first character in the second string with the character in the third string, and replace the second character in the second string with the character in the fourth string; Based on the replaced second character string, the target verification information is obtained.

7. The method according to claim 6, characterized in that The obtaining of anti-counterfeiting information of the target product includes: When the user authorization information corresponding to the client is obtained, the anti-counterfeiting information is obtained; The user authorization information includes at least one of the following: user identification, user location information, and user contact information.

8. A product verification device, applied to a server, characterized in that: The device comprises: An information acquisition module, used to acquire anti-counterfeiting information of a target product; wherein the anti-counterfeiting information is dynamically determined based on target verification information, random verification information and a preset encryption algorithm of the target product; A decryption module, used to decrypt the anti-counterfeiting information based on a decryption algorithm corresponding to the preset encryption algorithm to obtain the target verification information; A matching module, used to match the target verification information with the product verification information pre-stored in the first database to obtain the verification result of the target product; The decryption module is specifically used to decrypt the anti-counterfeiting information based on a first decryption algorithm in the decryption algorithm to obtain a first character string corresponding to the target verification information; Decrypting the first character string based on a second decryption algorithm in the decryption algorithm to obtain the target verification information; The decryption module is specifically used to decrypt the first character string based on the second decryption algorithm to obtain a second character string, a third character string and a fourth character string; The second character string, the third character string and the fourth character string are encoded in different ways; Replace the first character in the second string with the character in the third string, and replace the second character in the second string with the character in the fourth string; Based on the replaced second character string, the target verification information is obtained.

9. A product verification device, applied to a client, characterized in that: include: An information acquisition module, used to acquire anti-counterfeiting information of a target product; wherein the anti-counterfeiting information is dynamically determined based on target verification information, random verification information and a preset encryption algorithm of the target product; An information sending module, used to send the anti-counterfeiting information to a server, instruct the server to decrypt the anti-counterfeiting information based on a decryption algorithm corresponding to the preset encryption algorithm to obtain the target verification information; match the target verification information with the product verification information pre-stored in the first database to obtain the verification result of the target product; A result receiving module, used for receiving the verification result sent by the server; The server decrypts the anti-counterfeiting information based on a decryption algorithm corresponding to the preset encryption algorithm to obtain the target verification information, including: Decrypting the anti-counterfeiting information based on a first decryption algorithm in the decryption algorithms to obtain a first character string corresponding to the target verification information; Decrypting the first character string based on a second decryption algorithm in the decryption algorithm to obtain the target verification information; The server decrypts the first character string based on a second decryption algorithm in the decryption algorithm to obtain the target verification information, including: Decrypting the first character string based on the second decryption algorithm to obtain a second character string, a third character string, and a fourth character string; The second character string, the third character string and the fourth character string are encoded in different ways; Replace the first character in the second string with the character in the third string, and replace the second character in the second string with the character in the fourth string; Based on the replaced second character string, the target verification information is obtained.

10. An electronic device comprising a memory, a processor and a computer program stored in the memory, characterized in that: The processor executes the computer program to implement the method of any one of claims 1 to 5 or the method of any one of claims 6 to 7.

11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 5 or the method according to any one of claims 6 to 7 is implemented.

Citation Information

Patent Citations

  • Dynamic information anti-counterfeiting system with electronic ink technology and anti-counterfeiting method thereof

    CN106709537A

  • Anti-counterfeiting system and method with dynamic anti-counterfeiting information

    CN107886333A

  • Anti-fake method and system based on two-dimensional identifier on commodity

    CN108830354A