CN113869913B - Anti-counterfeiting method, server, system, two-dimension code generation method and electronic product - Google Patents

Anti-counterfeiting method, server, system, two-dimension code generation method and electronic product Download PDF

Info

Publication number
CN113869913B
CN113869913B CN202111061553.4A CN202111061553A CN113869913B CN 113869913 B CN113869913 B CN 113869913B CN 202111061553 A CN202111061553 A CN 202111061553A CN 113869913 B CN113869913 B CN 113869913B
Authority
CN
China
Prior art keywords
counterfeiting
product
character string
real
time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111061553.4A
Other languages
Chinese (zh)
Other versions
CN113869913A (en
Inventor
奉强
刘金鑫
首召兵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Time Yaa Electronic Technology Co ltd
Original Assignee
Shenzhen Time Yaa Electronic Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Time Yaa Electronic Technology Co ltd filed Critical Shenzhen Time Yaa Electronic Technology Co ltd
Priority to CN202111061553.4A priority Critical patent/CN113869913B/en
Publication of CN113869913A publication Critical patent/CN113869913A/en
Application granted granted Critical
Publication of CN113869913B publication Critical patent/CN113869913B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/018Certifying business or products
    • G06Q30/0185Product, service or business identity fraud
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • G06F16/90335Query processing
    • G06F16/90344Query processing by using string matching techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9554Retrieval from the web using information identifiers, e.g. uniform resource locators [URL] by using bar codes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K19/06009Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking
    • G06K19/06037Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking multi-dimensional coding
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0207Discounts or incentives, e.g. coupons or rebates
    • G06Q30/0214Referral reward systems
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Accounting & Taxation (AREA)
  • Development Economics (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • Entrepreneurship & Innovation (AREA)
  • General Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Game Theory and Decision Science (AREA)
  • Computational Linguistics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses an anti-counterfeiting method, a server and an anti-counterfeiting system, comprising the following steps: identifying an initial two-dimensional code of the electronic product to obtain an initial anti-counterfeiting character string of the product; responding to a webpage address of a product real-time two-dimensional code access database scanned by a user side; obtaining a real-time anti-counterfeiting character string of the product according to the webpage address; and carrying out anti-counterfeiting verification on the real-time anti-counterfeiting character string according to the initial anti-counterfeiting character string to obtain a verification result and feeding the verification result back to the webpage address. The real-time anti-counterfeiting character string obtained through the real-time two-dimensional code can dynamically verify whether the product is stolen or not, and effectively enhances the anti-counterfeiting capacity of the product. And when the user inquires that the electronic product is fake, the user does not need to manually input the serial number inquiry of the product, and the user terminal directly scans the code for identification, so that the operation is convenient, and the experience is good. The invention also discloses a two-dimension code generation method and an electronic product, which are used for generating the initial two-dimension code and the real-time two-dimension code of the product, and the operation is simple and convenient.

Description

Anti-counterfeiting method, server, system, two-dimension code generation method and electronic product
Technical Field
The invention relates to the technical field of anti-counterfeiting verification, in particular to an anti-counterfeiting method, a server, a system, a two-dimensional code generation method and an electronic product.
Background
In order to make the information of products, manufacturing enterprises and the like more public and transparent, and receive the public supervision, prevent the phenomena of channel conflict and counterfeit and inferior, realize the whole process traceability of the products, promote the credibility of enterprises, shape the brand image, and the enterprises need to perform anti-counterfeit tracing on the products produced and sold by the enterprises.
At present, on the anti-counterfeiting and syn-source of electronic products, a widely adopted method is to input the serial number of the product into a database in advance, query the database again when querying, print anti-counterfeiting verification information on a packaging box, wherein the common anti-counterfeiting verification information is in the form of a two-dimensional code, but the two-dimensional code printed in the mode is a static code, and counterfeiters can finish imitation only by copying the two-dimensional code, so that the anti-counterfeiting strength is not high.
Therefore, how to realize reliable and efficient anti-counterfeiting of products, thereby guaranteeing reasonable rights and interests of enterprises and users is a technical problem to be solved urgently by those skilled in the art.
Disclosure of Invention
In order to solve the technical problems, the invention aims to provide an anti-counterfeiting method; the invention also provides a server, a two-dimensional code generation method, an electronic product and an anti-counterfeiting system.
The technical scheme provided by the invention is as follows:
an anti-counterfeiting method comprising:
identifying an initial two-dimensional code of the electronic product to obtain an initial anti-counterfeiting character string of the product;
responding to a webpage address accessed by a user side scanning product real-time two-dimensional code to obtain a product real-time anti-counterfeiting character string;
and carrying out anti-counterfeiting verification on the real-time anti-counterfeiting character string according to the initial anti-counterfeiting character string to obtain a verification result and feeding the verification result back to the webpage address.
By adopting the technical scheme, whether the product is stolen or not can be dynamically verified through the real-time anti-counterfeiting character string obtained through the real-time two-dimensional code, and the anti-counterfeiting capacity of the product is effectively enhanced. And when the user inquires that the electronic product is fake, the user does not need to manually input the serial number inquiry of the product, and the user side directly scans the code for identification, so that the operation is convenient and the experience is good.
Preferably, the initial anti-counterfeiting character string and the real-time anti-counterfeiting character string each comprise a sequence number parameter, a signature parameter and a random parameter;
the sequence number parameter consists of a sequence number and two-dimensional code generation times;
and obtaining the signature parameters according to a preset signature rule and the sequence number parameters.
By adopting the technical scheme, the sequence number parameter is divided into two sections and divided by the dividing symbol, the part in front of the dividing symbol is the equipment serial number, the part behind the dividing symbol is an incremental number, the length is 16 characters, the number is set to 0 before the product leaves the factory, the number is incremental when the two-dimensional code is generated each time after the product leaves the factory, and the server can verify whether the number is incremental through the number of the two-dimensional code generation times, because if the two-dimensional code is stolen by a person, the number generated at the two sides is in conflict and is not always incremental; the signature parameters are signature fields, and the sequence number parameters are obtained through a preset signature rule; the random parameters are random numbers, the random parameters are different each time, and the random parameters are reserved for filling the electronic products, so that the generated two-dimensional codes are more attractive, and the data can be aligned.
Preferably, the step of identifying the initial two-dimensional code of the electronic product to obtain the initial anti-counterfeiting character string of the product further comprises the following steps:
extracting the serial number of the electronic product from the initial anti-counterfeiting character string;
and associating with the product information stored in the database according to the electronic product serial number, and registering and storing.
By adopting the technical scheme, the initial anti-counterfeiting character string comprises the serial number of the electronic product, the server can extract the serial number of the electronic product, and the product information comprises product attributes, product production date and the like, for example: and a batch of red electronic cigarettes are input into the database, and the information of the batch of electronic cigarettes such as color, batch, production date and the like is associated with the serial number, registered and stored in the database, so that the user can inquire conveniently.
Preferably, the anti-counterfeit verification is performed on the real-time anti-counterfeit character string according to the initial anti-counterfeit character string, so as to obtain a verification result and feed the verification result back to the webpage address, including:
performing anti-counterfeiting verification according to the initial anti-counterfeiting character string and/or the real-time anti-counterfeiting character string;
if the two-dimensional code generation times of the real-time anti-counterfeiting character string are randomly increased relative to the two-dimensional code generation times of the initial anti-counterfeiting character string or relative to the two-dimensional code generation times of the real-time anti-counterfeiting character string when the anti-counterfeiting verification is performed last time, and the signature parameters of the real-time anti-counterfeiting character string are consistent with the signature parameters obtained by the preset signature rules, the verification is passed, and the product information of the electronic product associated in the database and the verification success result are fed back to the webpage address;
otherwise, the verification is not passed and the result of the verification failure is fed back to the webpage address.
By adopting the technical scheme, the two-dimensional code generation times which are increased each time are used, the signature rule for verifying the signature parameters is added into the server, and in production, the input of the production information of the plastic source is increased, so that the method has stronger universality and stronger anti-counterfeiting capacity.
Preferably, after the verification is passed and the product information of the electronic product and the result of successful verification associated in the database are fed back to the web page address, the method further comprises:
binding the user end with the product serial number to obtain a binding distribution relationship;
and when the equipment real-time two-dimensional code corresponding to the product serial number is scanned again, distributing the product, and distributing rewards to the user terminal based on the binding distributing relation.
By adopting the technical scheme, after the user scans the code and the electronic product is successfully verified, the real-time two-dimensional code can uniquely identify one electronic product, and then a binding distribution relation is established between the user and the electronic equipment, so that a distributor can conveniently conduct distribution agency.
A server, comprising:
a first memory for storing a first computer program;
a first processor for implementing the steps of a security method as claimed in any one of the preceding claims when executing said first computer program.
By adopting the technical scheme, the anti-counterfeiting method is presented in the form of computer readable codes and stored in the first memory, and after the first computer program is installed, when the first processor runs the computer readable codes in the first memory, the steps of the anti-counterfeiting method are executed to realize reliable and efficient anti-counterfeiting of products, so that reasonable rights and interests of enterprises and users are ensured.
A two-dimensional code generation method comprises the following steps:
generating an initial two-dimensional code according to the acquired product serial number;
acquiring a gravitational acceleration real-time value of a product;
comparing the real-time value of the gravitational acceleration according to a preset gravitational acceleration triggering threshold value;
if the gravity acceleration real-time value is not smaller than a preset gravity acceleration trigger threshold value, a trigger signal is generated;
and generating a real-time two-dimensional code according to the product serial number and the trigger signal.
By adopting the technical scheme, the electronic product generates the initial two-dimensional code according to the acquired product serial number before leaving the factory, and is convenient for scanning, registering and storing in the production and packaging process through screen display; after leaving the factory, when the user takes the electronic product to verify, the electronic product is rocked, the real-time two-dimensional code is triggered and displayed, and the user operation is simple and convenient.
An electronic product, comprising:
the gravity acceleration sensor is used for acquiring a gravity acceleration real-time value of the electronic product;
a second memory for storing a second computer program;
and a second processor for implementing the steps of a two-dimensional code generation method as described above when executing the second computer program.
By adopting the technical scheme, the two-dimensional code generation method is presented in the form of computer readable codes and stored in the second memory, and after the second computer program is installed, when the second processor runs the computer readable codes in the second memory, the steps of the two-dimensional code generation method are executed to obtain the real-time two-dimensional code, so that the operation is simple and convenient.
An anti-counterfeiting verification system based on a two-dimensional code, comprising:
the electronic product is the electronic product, and is used for generating the initial two-dimensional code of the product and the real-time two-dimensional code of the product;
the user end is used for responding to scanning the real-time two-dimensional code of the product and accessing a preset webpage address;
the server is used for acquiring the initial anti-counterfeiting character string of the product according to the initial two-dimensional code of the product; the real-time anti-counterfeiting character string is used for responding to the access of the user side to the webpage address to obtain a real-time anti-counterfeiting character string of the product; and the real-time anti-counterfeiting character string is subjected to anti-counterfeiting verification according to the initial anti-counterfeiting character string, so that a verification result is obtained and fed back to the webpage address.
By adopting the technical scheme, the electronic product is responsible for generating and displaying the initial two-dimensional code and the real-time two-dimensional code, the user side scans the real-time two-dimensional code of the product, accesses the pre-configured webpage address to identify the real-time two-dimensional code of the product, obtains the real-time anti-counterfeiting character string and sends the real-time anti-counterfeiting character string to the server, the server verifies the real-time anti-counterfeiting character string and the initial anti-counterfeiting character string which is pre-recorded and stored in the database, and the verification result is fed back to the webpage address for the user side to display. The real-time anti-counterfeiting character string obtained through the real-time two-dimensional code can dynamically verify whether the product is stolen or not, and effectively enhances the anti-counterfeiting capacity of the product. And when the user inquires that the electronic product is fake, the user does not need to manually input the serial number inquiry of the product, and the user terminal directly scans the code for identification, so that the operation is convenient, and the experience is good.
In summary, according to the anti-counterfeiting method provided by the invention, the initial two-dimensional code of the electronic product is identified to obtain the initial anti-counterfeiting character string of the product; responding to a webpage address of a product real-time two-dimensional code access database scanned by a user side; obtaining a real-time anti-counterfeiting character string of the product according to the webpage address; and carrying out anti-counterfeiting verification on the real-time anti-counterfeiting character string according to the initial anti-counterfeiting character string to obtain a verification result and feeding the verification result back to the webpage address. The real-time anti-counterfeiting character string obtained through the real-time two-dimensional code can dynamically verify whether the product is stolen or not, and effectively enhances the anti-counterfeiting capacity of the product. The server, the two-dimensional code generation method, the electronic product and the anti-counterfeiting system also solve the corresponding technical problems.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments described in the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic structural diagram of an anti-counterfeiting system according to an embodiment of the present invention.
Fig. 2 is a schematic flow chart of an anti-counterfeiting method according to an embodiment of the present invention.
Fig. 3 is a schematic diagram of performing anti-counterfeit verification on a real-time anti-counterfeit character string according to an initial anti-counterfeit character string to obtain a verification result and feeding the verification result back to a web address according to an embodiment of the present invention.
Fig. 4 is a schematic structural diagram of a server according to an embodiment of the present invention.
Fig. 5 is a flow chart of a two-dimensional code production method according to an embodiment of the present invention.
Fig. 6 is a schematic structural diagram of an electronic product according to an embodiment of the present invention.
Reference numerals: 1-an electronic product; 101-a gravitational acceleration sensor; 102-a second memory; 103-a second processor;
2-a user side;
3-a server; 301-a first memory; 302-a first processor.
Detailed Description
In order to better understand the technical solutions in the present application, the following description will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, shall fall within the scope of the present application.
It will be understood that when an element is referred to as being "fixed" or "disposed" on another element, it can be directly on the other element or be indirectly on the other element; when an element is referred to as being "connected to" another element, it can be directly connected to the other element or be indirectly connected to the other element.
It is to be understood that the terms "length," "width," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," and the like indicate or are based on the orientation or positional relationship shown in the drawings, merely to facilitate description of the present application and simplify description, and do not indicate or imply that the devices or elements referred to must have a particular orientation, be configured and operated in a particular orientation, and therefore should not be construed as limiting the present application.
Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature. In the description of the present application, the meaning of "a plurality" or "a number" is two or more, unless explicitly defined otherwise.
It should be understood that the structures, proportions, sizes, etc. shown in the drawings are for illustration purposes only and should not be construed as limiting the scope of the present disclosure, since any structural modifications, proportional changes, or dimensional adjustments made by those skilled in the art should not be made in the present disclosure without affecting the efficacy or achievement of the present disclosure.
The embodiment of the application is written in a progressive manner.
Referring to fig. 1, an anti-counterfeiting system provided in an embodiment of the present invention includes:
the electronic product 1 is used for generating an initial two-dimensional code of the product and a real-time two-dimensional code of the product;
the user terminal 2 is used for responding to the scanned real-time two-dimensional code of the product and accessing a preset webpage address;
the server 3 is used for acquiring an initial anti-counterfeiting character string of the product according to the initial two-dimensional code of the product; the method comprises the steps of responding to the access of a user side to a webpage address to obtain a real-time anti-counterfeiting character string of a product; and the real-time anti-counterfeiting character string is subjected to anti-counterfeiting verification according to the initial anti-counterfeiting character string, and a verification result is obtained and fed back to the webpage address.
In the embodiment of the invention, a chip is arranged in the electronic product 1, a unique product serial number and a program are burnt in the chip, an initial two-dimensional code and a real-time two-dimensional code can be generated and displayed, the initial two-dimensional code is generated before the electronic product leaves a factory, and enterprise staff scans the initial two-dimensional code through code scanning equipment to collect the serial number of the generated electronic product; after the electronic product leaves the factory, the electronic product exits from the product information configuration mode after the initial two-dimensional code is successfully identified by running a program set by the chip, and the initial two-dimensional code disappears. The user purchases the electronic product, generates a real-time two-dimensional code by shaking the electronic product, scans the real-time two-dimensional code of the product by the user terminal 2, accesses the pre-configured webpage address to identify the real-time two-dimensional code of the product, obtains a real-time anti-counterfeiting character string and sends the real-time anti-counterfeiting character string to the server 3. The server 3 responds to the webpage address to acquire the real-time anti-counterfeiting character string, and performs verification with the initial anti-counterfeiting character string which is pre-recorded and stored in the database, the database stores a plurality of pieces of product information, matching and verification of the product information and the product serial number of the electronic product can be completed, and a verification result is fed back to the webpage address for display by the user side. The real-time anti-counterfeiting character string obtained through the real-time two-dimensional code can dynamically verify whether the product is stolen or not, and effectively enhances the anti-counterfeiting capacity of the product. And when the user inquires that the electronic product is fake, the user does not need to manually input the serial number inquiry of the product, and the user terminal directly scans the code for identification, so that the operation is convenient, and the experience is good.
Referring to fig. 2, in combination with the above anti-counterfeiting system, an embodiment of the present invention provides an anti-counterfeiting method based on a server 3, including:
s201, identifying an initial two-dimensional code of an electronic product to obtain an initial anti-counterfeiting character string of the product;
in the embodiment, before the electronic product is produced, packed and delivered, the electronic product generates an initial two-dimensional code, enterprise staff scans the initial two-dimensional code through a code scanning device, and transmits a code scanning signal to a server to obtain an initial anti-counterfeiting character string of the product through decoding and identification. Compared with the traditional packaging process, the method for collecting the generated serial numbers of the electronic products by scanning the initial two-dimensional codes does not need to increase production cost, and optimizes enterprise benefits.
S202, responding to a webpage address accessed by a product real-time two-dimensional code scanned by a user side, and obtaining a product real-time anti-counterfeiting character string;
in this embodiment, after the electronic product leaves the factory, the user receives the electronic product, and then scans the real-time two-dimensional code of the electronic product by the user terminal to generate the web address of the access database, and the server responds to the access. The common user terminal is a mobile phone, which is not limited to a mobile phone, but may be other electronic devices that can be used for scanning access. And the server obtains the real-time anti-counterfeiting character string of the product according to the webpage address. The domain name of the webpage address is configured according to the actual situation of the server.
S203, performing anti-counterfeiting verification on the real-time anti-counterfeiting character string according to the initial anti-counterfeiting character string, obtaining a verification result and feeding back the verification result to the webpage address.
In this embodiment, the server performs anti-counterfeiting verification according to the initial anti-counterfeiting character string and the real-time anti-counterfeiting character string, and feeds back a verification result to the webpage address, and the user side displays according to the verification result fed back by the webpage address, so as to complete one-time anti-counterfeiting verification of the electronic product.
In the embodiment of the invention, a server identifies an initial two-dimensional code of an electronic product to obtain an initial anti-counterfeiting character string of the product; responding to a webpage address of a product real-time two-dimensional code access database scanned by a user side; obtaining real-time anti-counterfeiting character strings of products according to the webpage addresses; and carrying out anti-counterfeiting verification on the real-time anti-counterfeiting character string according to the initial anti-counterfeiting character string, obtaining a verification result and feeding back the verification result to the webpage address. The real-time anti-counterfeiting character string obtained through the real-time two-dimensional code can dynamically verify whether the product is stolen or not, and effectively enhances the anti-counterfeiting capacity of the product. And when the user inquires that the electronic product is fake, the user does not need to manually input the serial number inquiry of the product, and the user side directly scans the code for identification, so that the operation is convenient and the experience is good.
In the above embodiments, the initial anti-counterfeit character string and the real-time anti-counterfeit character string are not described in detail, and optionally, the initial anti-counterfeit character string and the real-time anti-counterfeit character string each include a sequence number parameter, a signature parameter and a random parameter; the sequence number parameter consists of a sequence number and two-dimensional code generation times; and obtaining signature parameters according to preset signature rules and sequence number parameters.
The preset signature rule is as follows:
1) MD5 (Message Digest Algorithm MD, fifth edition of message digest algorithm) is performed on the sequence number parameter, and the calculated result is 16 bytes and is marked as md5_i
2) Defining a key, the key server also stores the key for use in verification, the key length is 16 bytes, recorded as key
3) Taking out each byte of the calculated Md5_i, circularly calculating the following values, marking the taken data as Md5_a, taking the modulus of 16, and marking the result after taking the modulus as key_idx
4) Taking out the key_idx in the Key, carrying out exclusive OR on the MD5_a and the key_idx, and storing the exclusive OR result
5) And performing Hex coding on the exclusive OR result of 16 bytes, wherein the result after coding is the signature parameter.
In the embodiment of the invention, the webpage address and the anti-counterfeiting character string are exemplified as follows: the web page address of the two-dimension code access database of the scanned electronic product is http:// abcd.efg.com/di=00000000001111111x00000000 & s=0CC175B9C0F6A831C399E269772661 & r=abcd; the http:// abcd.efg.com/d is a domain name and is configured according to the actual situation of the server; the sequence number parameter i is divided into two sections and is divided by an x symbol, the part in front of the x symbol is an equipment serial number, the part behind the x symbol is an incremental number, the length is 16 characters, the number is set to 0 before the product leaves the factory, a two-dimensional code is generated once after the product leaves the factory, and the incremental number is randomly increased by 1-20; the signature parameter s is a signature field, and the sequence number parameter i is obtained through a preset signature rule; the random parameter r is a random number and is different every time, meanwhile, the random parameter r is reserved for filling the electronic product, at least 1 byte is needed to be ignored, so that the generated two-dimensional code is more attractive, and data alignment can be achieved.
In the above embodiment, in order to facilitate the user to query the product information, it is necessary to associate the serial number of the electronic product with the product information and enter the serial number and the product information into the database of the server, so optionally, in step S201, the identifying the initial two-dimensional code of the electronic product obtains the initial anti-counterfeiting character string of the product, and then further includes:
extracting the serial number of the electronic product from the initial anti-counterfeiting character string;
and associating with the product information stored in the database according to the serial number of the electronic product, and registering and storing.
In the embodiment of the invention, the initial anti-counterfeiting character string contains the serial number of the electronic product, the server can extract the serial number of the electronic product, and the product information comprises product attributes, product production date and the like, for example: and a batch of red electronic cigarettes are input into the database, and the information of the batch of electronic cigarettes such as color, batch, production date and the like is associated with the serial number, registered and stored in the database, so that the user can inquire conveniently.
In step S203 of the embodiment in fig. 2, anti-counterfeit verification is performed on the real-time anti-counterfeit character string according to the initial anti-counterfeit character string, so as to obtain a verification result and feedback the verification result to the web address for detailed description, as shown in fig. 3, fig. 3 is a schematic diagram of performing anti-counterfeit verification on the real-time anti-counterfeit character string according to the initial anti-counterfeit character string, so as to obtain the verification result and feedback the verification result to the web address, where the method includes:
s2031, performing anti-counterfeiting verification according to the initial anti-counterfeiting character string and/or the real-time anti-counterfeiting character string;
s2032, if the number of times of generating the two-dimensional code of the real-time anti-counterfeiting character string is increased randomly relative to the number of times of generating the two-dimensional code of the initial anti-counterfeiting character string or relative to the number of times of generating the two-dimensional code of the real-time anti-counterfeiting character string when the anti-counterfeiting verification is performed last time, and the signature parameter of the real-time anti-counterfeiting character string is consistent with the signature parameter obtained by the operation of a preset signature rule, the verification is passed, and the product information of the electronic product associated with the database and the verification success result are fed back to the webpage address;
s2033, if not, the verification is failed and the result of the verification failure is fed back to the web page address.
In the embodiment of the invention, after a user takes the electronic product, a real-time two-dimensional code interface is opened, the corresponding webpage address can be opened by using the code scanning identification of the user side, the server responds to the access of the webpage address to report the real-time anti-counterfeiting character string to the database, after the database receives the real-time anti-counterfeiting character string, the signature rule consistent with the electronic product is used for verifying whether the real-time anti-counterfeiting character string is tampered or not, if not tampered, the number of times of generating the two-dimensional code is smaller than that of the last verification, because the number of times parameter is increased, if the number of times parameter is reduced, the two-dimensional code is possibly stolen, all the verification is performed by inquiring the production information corresponding to the serial number of the electronic product in the database, the verification result is returned to the webpage address, and the user side feeds back the content according to the webpage address and displays the content. The successful verification result comprises verification times, last verification places, last verification time and other information.
In the above embodiment, in order to facilitate the distributor to conduct the distribution agency, the distribution user needs to be bound with the electronic product, optionally, if the verification is passed, the verification is notified, the product information and the verification result are fed back, and then the method further includes:
binding the user end with the product serial number to obtain a binding distribution relationship;
and when the equipment real-time two-dimensional code corresponding to the product serial number is scanned again, distributing the distribution, and distributing distribution rewards to the user side based on the binding distribution relation.
In the embodiment of the invention, after the verification of the electronic product by the user code scanning is successful, the real-time two-dimensional code can uniquely identify one electronic product, then the user bound with the electronic product can be found according to the electronic product, and a binding distribution relationship is established between the user and the electronic equipment. For example, after a user a buys an electronic product and registers and binds, the user a feels very good, and then recommends the electronic product to a user B, and the user B clicks a preset commodity purchasing link in an obtained verification result display interface to guide the user to enter an electronic mall for purchasing, so that a distribution relation can be bound, and then a certain proportion of cashback rewards are given to the user a in the background. The distribution mode is very suitable for portable equipment, such as electronic cigarettes and the like.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a server 3 according to an embodiment of the present invention.
The server 3 provided in the embodiment of the present invention includes:
a first memory 301 for storing a first computer program;
a first processor 302 for implementing the steps of a security method as described in any of the embodiments above when executing a first computer program.
The description of the relevant parts in the server provided by the embodiment of the invention is referred to the detailed description of the corresponding parts in the anti-counterfeiting method provided by the embodiment of the invention, and is not repeated here.
Based on the electronic product 1, the invention also provides a two-dimensional code generation method, which has the corresponding effect of the electronic product 1 provided by the embodiment of the invention. Referring to fig. 5, fig. 5 is a flow chart of a two-dimensional code production method according to an embodiment of the invention.
The two-dimensional code production method provided by the embodiment of the invention is applied to the electronic product described in any embodiment, and can comprise the following steps:
s501, generating an initial two-dimensional code according to the acquired product serial number;
s502, acquiring a gravitational acceleration real-time value of a product;
s503, comparing the real-time value of the gravitational acceleration according to a preset gravitational acceleration triggering threshold value;
s504, if the real-time value of the gravity acceleration is not smaller than a preset gravity acceleration trigger threshold value, generating a trigger signal;
s505, generating a real-time two-dimensional code according to the product serial number and the trigger signal.
In the embodiment of the invention, the initial two-dimensional code is generated according to the acquired product serial number before the electronic product leaves the factory, and the initial two-dimensional code is displayed through a screen, so that the scanning, registering and storing in the production and packaging process are facilitated; after leaving the factory, when the user takes the electronic product to verify, the electronic product is rocked, the real-time two-dimensional code is triggered and displayed, and the user operation is simple and convenient.
Referring to fig. 6, fig. 6 is a schematic structural diagram of an electronic product 1 according to an embodiment of the invention.
The electronic product 1 provided by the embodiment of the invention comprises:
a gravitational acceleration sensor 101 for acquiring a gravitational acceleration real-time value of the electronic product;
a second memory 102 for storing a second computer program;
a second processor 103 for implementing the steps of a two-dimensional code generation method as described above when executing a second computer program.
The description of the relevant parts in the electronic product provided by the embodiment of the invention is referred to in detail of the corresponding parts in the two-dimensional code production method provided by the embodiment of the invention, and is not repeated here.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (3)

1. An anti-counterfeiting method, comprising:
identifying an initial two-dimensional code of the electronic product to obtain an initial anti-counterfeiting character string of the product, generating the initial two-dimensional code of the electronic product before leaving the factory, and collecting a serial number of the generated electronic product by scanning the initial two-dimensional code through a code scanning device; after the electronic product leaves the factory, the electronic product exits from a product information configuration mode after the initial two-dimensional code is successfully identified by running a program set by a chip, and the initial two-dimensional code disappears;
responding to a webpage address accessed by a user side scanning product real-time two-dimensional code to obtain a product real-time anti-counterfeiting character string;
performing anti-counterfeiting verification on the real-time anti-counterfeiting character string according to the initial anti-counterfeiting character string to obtain a verification result and feeding the verification result back to the webpage address;
the initial anti-counterfeiting character string and the real-time anti-counterfeiting character string comprise sequence number parameters, signature parameters and random parameters;
the sequence number parameter consists of a sequence number and two-dimension code generation times, the sequence number parameter is divided into two sections and is separated by a separation symbol, the part in front of the separation symbol is an electronic product sequence number, the part behind the separation symbol is an incremental number, the length of the separation symbol is 16 characters, the number is set to 0 before the product leaves the factory, and the number is increased when the two-dimension code is generated each time after the product leaves the factory;
obtaining the signature parameters according to a preset signature rule and the sequence number parameters;
identifying the initial two-dimensional code of the electronic product to obtain an initial anti-counterfeiting character string of the product, and then further comprising:
extracting the serial number of the electronic product from the initial anti-counterfeiting character string;
according to the serial number of the electronic product, correlating with the product information stored in the database, and registering and storing;
performing anti-counterfeiting verification on the real-time anti-counterfeiting character string according to the initial anti-counterfeiting character string to obtain a verification result and feeding the verification result back to the webpage address, wherein the anti-counterfeiting verification comprises the following steps:
performing anti-counterfeiting verification according to the initial anti-counterfeiting character string and the real-time anti-counterfeiting character string;
if the two-dimensional code generation times of the real-time anti-counterfeiting character string are randomly increased relative to the two-dimensional code generation times of the initial anti-counterfeiting character string or relative to the two-dimensional code generation times of the real-time anti-counterfeiting character string when the anti-counterfeiting verification is performed last time, and the signature parameters of the real-time anti-counterfeiting character string are consistent with the signature parameters obtained by the preset signature rules, the verification is passed, and the product information of the electronic product associated in the database and the verification success result are fed back to the webpage address;
otherwise, the verification is not passed and the result of verification failure is fed back to the webpage address;
and responding to the webpage address accessed by the product real-time two-dimensional code scanned by the user side to obtain the product real-time anti-counterfeiting character string, wherein the webpage address comprises the product real-time anti-counterfeiting character string and the domain name.
2. The anti-counterfeiting method according to claim 1, wherein after the verification is passed and the product information of the electronic product associated in the database and the result of the verification success are fed back to the web address, further comprising:
binding the user end with the serial number of the electronic product to obtain a binding and distributing relationship;
and when the equipment real-time two-dimensional code corresponding to the product serial number is scanned again, distributing the product, and distributing rewards to the user terminal based on the binding distributing relation.
3. A server, comprising:
a first memory for storing a first computer program;
a first processor for implementing the steps of a security method as claimed in any one of claims 1 to 2 when executing said first computer program.
CN202111061553.4A 2021-09-10 2021-09-10 Anti-counterfeiting method, server, system, two-dimension code generation method and electronic product Active CN113869913B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111061553.4A CN113869913B (en) 2021-09-10 2021-09-10 Anti-counterfeiting method, server, system, two-dimension code generation method and electronic product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111061553.4A CN113869913B (en) 2021-09-10 2021-09-10 Anti-counterfeiting method, server, system, two-dimension code generation method and electronic product

Publications (2)

Publication Number Publication Date
CN113869913A CN113869913A (en) 2021-12-31
CN113869913B true CN113869913B (en) 2023-06-27

Family

ID=78995214

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111061553.4A Active CN113869913B (en) 2021-09-10 2021-09-10 Anti-counterfeiting method, server, system, two-dimension code generation method and electronic product

Country Status (1)

Country Link
CN (1) CN113869913B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117745299A (en) * 2023-10-31 2024-03-22 北京国立信科技术有限公司 Two-dimensional code-based anti-counterfeiting method and system

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104281954A (en) * 2014-04-30 2015-01-14 上海高研明鉴信息技术有限公司 Anti-counterfeiting method for product

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109360008B (en) * 2018-11-20 2021-08-10 吴祥富 Product anti-counterfeiting authentication updating method and system
CN111210229A (en) * 2019-12-27 2020-05-29 绍兴心越科技有限公司 Product circulation authenticity verification method

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104281954A (en) * 2014-04-30 2015-01-14 上海高研明鉴信息技术有限公司 Anti-counterfeiting method for product

Also Published As

Publication number Publication date
CN113869913A (en) 2021-12-31

Similar Documents

Publication Publication Date Title
CN111587445A (en) Security tag
CN105046504A (en) Multiple key checking, inspection and forgery prevention source forming method and forgery prevention label
CN102663590B (en) Based on commodity counterfeit prevention Verification System and the method for restriction certification number of times
CN104835046A (en) Data identification method for two-dimension code safety verification
CN104951943A (en) Anti-counterfeiting method based on random plain and secret code association examination
CN103295142B (en) A kind of method for anti-counterfeit based on Quick Response Code and system
CN105761091A (en) Red packet code two-stage two-dimensional code security coding method
CN108604261B (en) Method and system for preventing the sale of unauthorized products on an online site
CN113869913B (en) Anti-counterfeiting method, server, system, two-dimension code generation method and electronic product
CN109165958A (en) A kind of commodity traceability system and method based on image information safe practice
JP2021533468A (en) Anti-counterfeiting protection for digital files
JP2017511548A (en) Product counterfeit prevention verification system
KR20140040231A (en) Method and device for authenticating a tag
CN111951026A (en) Commodity anti-counterfeiting verification method, device, equipment and system based on two-dimensional code
CN112085511A (en) Anti-counterfeiting tracing code generation method, anti-counterfeiting tracing method and related system
KR100524176B1 (en) Mobile phone capable of reading genuine article verifying information stored in a RF-tag and method for administrating service management executable in a computer communicating with the same phone
CN106683564A (en) Multilayer anti-false label
CN104156645A (en) Copy verification system and application method thereof
US20140185934A1 (en) Process and system for authenticating ownership of a physical book to a third party via a mobile application
KR20160041680A (en) QR code for counterfeit and forgery prevention, a system for automatically producing QR codes for counterfeit and forgery prevention and the operating method therefor
CN101326528B (en) Method and device for linking a digital content to a person
EP2722807A1 (en) A verifying system and a method thereof
CN109871930B (en) Method and device for issuing quality codes and verifying quality codes by block chain
TWI617989B (en) Anti-fake analyzing method
CN205375971U (en) Multilayer antifalsification label and verification system thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant