CN113902456A - Product anti-counterfeiting method and device - Google Patents

Product anti-counterfeiting method and device Download PDF

Info

Publication number
CN113902456A
CN113902456A CN202111335523.8A CN202111335523A CN113902456A CN 113902456 A CN113902456 A CN 113902456A CN 202111335523 A CN202111335523 A CN 202111335523A CN 113902456 A CN113902456 A CN 113902456A
Authority
CN
China
Prior art keywords
counterfeiting
basic
code
preset
codes
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.)
Pending
Application number
CN202111335523.8A
Other languages
Chinese (zh)
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.)
Beijing Fatoan Technology Group Co ltd
Original Assignee
Beijing Fatoan Technology Group 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 Beijing Fatoan Technology Group Co ltd filed Critical Beijing Fatoan Technology Group Co ltd
Priority to CN202111335523.8A priority Critical patent/CN113902456A/en
Publication of CN113902456A publication Critical patent/CN113902456A/en
Pending legal-status Critical Current

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
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1408Methods for optical code recognition the method being specifically adapted for the type of code
    • G06K7/14172D bar codes

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Finance (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Strategic Management (AREA)
  • Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Development Economics (AREA)
  • Accounting & Taxation (AREA)
  • Marketing (AREA)
  • Health & Medical Sciences (AREA)
  • Electromagnetism (AREA)
  • General Health & Medical Sciences (AREA)
  • Toxicology (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application relates to a product anti-counterfeiting method and a device, wherein the method comprises the following steps: when a starting signal is received, acquiring an anti-counterfeiting code setting requirement input by a user terminal, wherein the anti-counterfeiting code setting requirement comprises a two-dimensional code margin size and a preset yield value; calculating the digit of the anti-counterfeiting basic code according to a preset calculation rule, anti-counterfeiting code setting requirements and the number of characters in a preset character set, and feeding back the digit of the anti-counterfeiting basic code to a user terminal; acquiring anti-counterfeiting basic code format information input by a user terminal, wherein the anti-counterfeiting basic code format information comprises set positions of random bits and grouping bits; and generating a plurality of groups of anti-counterfeiting basic codes with grouping bits as grouping identifiers based on the anti-counterfeiting basic code format information and a preset character set. The application has the technical effects that: the method and the device have the advantages that the requirement of users on the product order of magnitude is met, and meanwhile, the possibility of overlong data bits of the anti-counterfeiting basic code is reduced, so that the usability of the anti-counterfeiting basic code after the two-dimensional code is generated is guaranteed.

Description

Product anti-counterfeiting method and device
Technical Field
The invention relates to the technical field of anti-counterfeiting codes, in particular to a product anti-counterfeiting method and a product anti-counterfeiting device.
Background
The anti-counterfeiting code is an anti-counterfeiting mark printed on the outer package of the product, is a unique code given to each product by a manufacturer, and can be distinguished by a consumer by inquiring the code. At present, the anti-counterfeiting code is mainly displayed in a two-dimensional code form, and a consumer can enter a preset anti-counterfeiting system to check after scanning the two-dimensional code through a mobile terminal so as to distinguish the authenticity of a product.
In the related technology, the product production capacity of some industries is huge, especially in the food industry, in order to meet the requirements of uniqueness of one object and one code and the order of magnitude of products, a manufacturer generally adopts a timestamp as an anti-counterfeiting basic code and forms an anti-counterfeiting code in an encryption mode, wherein the timestamp is a character string formed by combining numbers and special characters and is mainly used for authenticating the data generation time to prevent the data from being tampered after being generated, so that the uniqueness of the anti-counterfeiting code is ensured; and because the data bit of the anti-counterfeiting code that the timestamp generated is longer, can satisfy the order of magnitude requirement of food class product, the anti-counterfeiting code converts the two-dimensional code into through predetermined coding mode again, and it is worth noting that the size of leaving a blank of two-dimensional code is positive correlation with the length of anti-counterfeiting code, and when anti-counterfeiting code length was longer promptly, the size of leaving a blank of two-dimensional code needed to be some big to guarantee the definition after the two-dimensional code printed, thereby convenience of customers scans.
In the course of implementing the present application, the inventors consider that the above-described technique has at least the following problems: because the data bit of the anti-counterfeiting code formed by the timestamp encryption is very long, when the two-dimensional code is left blank on the outer package of the product, the dot matrix density of the two-dimensional code can only be increased in order to accommodate the very long anti-counterfeiting code of the data bit, and when the printing precision of the anti-counterfeiting code printing machine is not high, the two-dimensional code printed on the outer package of the product is easy to blur, so that a consumer wastes time and labor when using a mobile terminal to identify the two-dimensional code, and the usability of the anti-counterfeiting code of the product is reduced.
Disclosure of Invention
In order to solve the problem that the usability of an anti-counterfeiting code of a product is reduced, the application provides an anti-counterfeiting method and an anti-counterfeiting device of the product.
In a first aspect, the present application provides an anti-counterfeiting method for a product, which adopts the following technical scheme:
when a starting signal is received, acquiring an anti-counterfeiting code setting requirement input by a user terminal, wherein the anti-counterfeiting code setting requirement comprises a two-dimensional code margin size and a preset yield value;
calculating the digit of the anti-counterfeiting basic code according to a preset calculation rule, anti-counterfeiting code setting requirements and the number of characters in a preset character set, and feeding back the digit of the anti-counterfeiting basic code to a user terminal;
acquiring anti-counterfeiting basic code format information input by the user terminal, wherein the anti-counterfeiting basic code format information comprises set positions of random bits and grouping bits;
and generating a plurality of groups of anti-counterfeiting basic codes with the grouping bits as grouping identifiers based on the anti-counterfeiting basic code format information and a preset character set.
By adopting the technical scheme, the system calculates the digit of the anti-counterfeiting basic code according to the anti-counterfeiting code setting requirement input by the user terminal and the preset calculation rule, then randomly generates a plurality of anti-counterfeiting basic codes according to the anti-counterfeiting basic code format information set by the user and the preset character set so as to ensure the reasonability of the numeric value of the anti-counterfeiting basic code, and reduces the possibility of overlong data bits of the anti-counterfeiting basic code while ensuring that the requirement of the user on the product magnitude is met, thereby ensuring the usability of the anti-counterfeiting basic code after the two-dimensional code is generated.
Optionally, the anti-counterfeiting basic code format information further includes a position of a check bit;
the generating of the plurality of groups of anti-counterfeiting basic codes with the grouping bits as grouping identifiers based on the anti-counterfeiting basic code format information and a preset character set comprises:
based on the anti-counterfeiting basic code format information, filling the grouping bits and the random bits with optional characters from a preset character set;
and generating check characters related to the random bits and the grouping bits according to a preset check bit setting rule, filling the check characters in the check bits, and generating a plurality of groups of anti-counterfeiting basic codes taking the grouping bits as grouping identifiers.
By adopting the technical scheme, the check bits related to the random bits and the grouping bits are set in the anti-counterfeiting basic code according to the preset check bit setting rule, so that the risk of the anti-counterfeiting basic code caused by tampering or imitation is reduced.
Optionally, after generating a plurality of groups of anti-counterfeiting basic codes using the grouping bits as grouping identifiers based on the anti-counterfeiting basic code format information and a preset character set, the method further includes:
grouping all anti-counterfeiting basic codes according to the grouping identification;
traversing each group of anti-counterfeiting basic codes according to a preset duplication checking rule, and deleting the corresponding anti-counterfeiting basic codes when repeated anti-counterfeiting basic codes exist;
and storing each of the rest anti-counterfeiting basic codes into a folder corresponding to the grouping bit of the anti-counterfeiting basic code.
By adopting the technical scheme, the anti-counterfeiting basic codes are grouped according to the grouping identification, the duplicate checking is carried out on each group of anti-counterfeiting basic codes by using the preset duplicate checking rule after grouping, and when the same anti-counterfeiting basic codes exist in a certain group of anti-counterfeiting basic codes, the repeated anti-counterfeiting basic codes are deleted, so that the uniqueness of the anti-counterfeiting basic codes is ensured.
Optionally, after storing each of the rest of the anti-counterfeit basic codes into the folder corresponding to its own grouping bit, the method further includes:
identifying a user name in the anti-counterfeiting code setting requirement;
reading the folders in sequence;
acquiring an enterprise identifier bound with the user name and based on an industrial internet, and splicing the enterprise identifier and an anti-counterfeiting basic code to generate a product anti-counterfeiting code;
and updating the anti-counterfeiting basic codes in each folder into corresponding product anti-counterfeiting codes.
By adopting the technical scheme, the enterprise identification in the industrial internet is inquired according to the user name, the industrial internet is an infrastructure which is mainly distributed by the Ministry of industry and information, the purpose is to realize intercommunication and interconnection among industries, and the tracing of the whole life cycle of a product is realized by analyzing the product identification, so that the enterprise identification is the identification which is authenticated by the Ministry of industry and information, has enough public credibility, and is beneficial to improving the public credibility of the anti-counterfeiting code of the product by combining the enterprise identification based on the industrial internet with the anti-counterfeiting basic code.
Optionally, after the anti-counterfeiting basic code in each folder is updated to the corresponding product anti-counterfeiting code, the method further includes:
reading each folder in sequence again;
generating a two-dimensional code picture corresponding to the product anti-counterfeiting code according to a preset coding mode;
and according to the grouping identification, sequentially storing each two-dimensional code picture into a picture folder corresponding to the grouping identification.
By adopting the technical scheme, after each anti-counterfeiting basic code is stored into the corresponding folder according to the grouping identification, the two-dimensional code picture corresponding to the product anti-counterfeiting code is generated by utilizing the preset coding mode.
Optionally, the anti-counterfeiting code setting requirement carries a user name;
before calculating the digit of the anti-counterfeiting basic code according to the preset calculation rule, the anti-counterfeiting code setting requirement and the number of the characters in the preset character set and feeding back the digit of the anti-counterfeiting basic code to the user terminal, the method further comprises the following steps:
identifying a user name in the anti-counterfeiting code setting requirement;
inquiring whether the user name exists in a preset database, if so, extracting a historical anti-counterfeiting code setting requirement corresponding to the user name from the preset database, judging whether a two-dimensional code margin size in the historical anti-counterfeiting code setting requirement is consistent with a two-dimensional code margin size in the anti-counterfeiting code setting requirement, if so, counting the number of unused anti-counterfeiting basic codes in an anti-counterfeiting basic code generation record corresponding to the historical anti-counterfeiting code setting requirement in the preset database, comparing the number of the unused anti-counterfeiting basic codes with a preset yield value in the anti-counterfeiting code setting requirement, and if not, selecting the anti-counterfeiting basic codes matched with the anti-counterfeiting code setting requirement from the unused anti-counterfeiting basic codes;
and if the number of the unused anti-counterfeiting basic codes is smaller than a preset output value, generating a supplementary basic code matched with the anti-counterfeiting code setting requirement according to a preset supplementary rule.
By adopting the technical scheme, when the anti-counterfeiting code setting requirement of a user is input, the possibility that the anti-counterfeiting code setting requirement input by the same user exists in a system is considered, when the two-dimensional code margin size in the historical anti-counterfeiting code setting requirement is consistent with the two-dimensional code margin size in the current anti-counterfeiting code setting requirement, the system firstly judges whether the number of the unused anti-counterfeiting basic codes meets the preset yield value, if so, the system does not need to recalculate the digit of the anti-counterfeiting basic codes, and directly uses the unused anti-counterfeiting basic codes as the supplementary basic codes; when the setting requirement of the historical anti-counterfeiting code is inconsistent with the setting requirement of the current anti-counterfeiting code, the system generates a supplementary basic code according to a preset supplementary rule, so that the utilization sufficiency of the anti-counterfeiting basic code is ensured; and helps to reduce waste of system resources.
Optionally, if the number of the unused anti-counterfeit basic codes is smaller than a preset output value, generating, according to a preset supplement rule, a supplement basic code matching the anti-counterfeit code setting requirement, including:
if the number of the unused anti-counterfeiting basic codes is smaller than the preset yield value, subtracting the number of the unused anti-counterfeiting basic codes from the preset yield value to obtain the number of the anti-counterfeiting basic codes to be supplemented;
calculating the total number of the anti-counterfeiting basic codes which can be generated according to the digits of the anti-counterfeiting basic codes in the anti-counterfeiting basic code generation record and the number of characters in a preset character set;
subtracting the total number of the anti-counterfeiting basic codes from the number of the used anti-counterfeiting basic codes to obtain the number of the anti-counterfeiting basic codes to be used;
comparing the number of the anti-counterfeiting basic codes to be used with the number of the anti-counterfeiting basic codes to be supplemented, if the number of the anti-counterfeiting basic codes to be used is not less than the number of the anti-counterfeiting basic codes to be supplemented, generating anti-counterfeiting basic code format information and a preset character set in a record based on the anti-counterfeiting basic codes, and generating supplementary basic codes of which the number is matched with the number of the anti-counterfeiting basic codes to be supplemented;
otherwise, adding supplementary bits in the anti-counterfeiting basic code to form a new anti-counterfeiting basic code format, and generating supplementary basic codes with the quantity matched with a preset yield value according to the new anti-counterfeiting basic code format information and a preset character set.
By adopting the technical scheme, when the number of the unused anti-counterfeiting basic codes is smaller than the preset yield value, the system needs to compare the number of the anti-counterfeiting basic codes to be used with the number of the anti-counterfeiting basic codes to be supplemented, and if the number of the anti-counterfeiting basic codes to be used is not smaller than the number of the anti-counterfeiting basic codes to be supplemented, the number of the anti-counterfeiting basic codes to be used is enough to meet the preset yield value; if the number of the anti-counterfeiting basic codes to be used is smaller than that of the anti-counterfeiting basic codes to be supplemented, the system needs to add the supplementing bits in the anti-counterfeiting basic codes to expand the length of the anti-counterfeiting basic codes, so that the number of the generated anti-counterfeiting basic codes can meet the preset output value.
In a second aspect, the present application provides an anti-counterfeiting device for a product, which adopts the following technical scheme: the system comprises:
the system comprises a requirement acquisition module, a starting module and a processing module, wherein the requirement acquisition module is used for acquiring an anti-counterfeiting code setting requirement input by a user terminal when receiving a starting signal, and the anti-counterfeiting code setting requirement comprises a two-dimensional code margin size and a preset yield value;
the calculation module is used for calculating the digit of the anti-counterfeiting basic code according to a preset calculation rule, anti-counterfeiting code setting requirements and the number of characters in a preset character set, and feeding back the digit of the anti-counterfeiting basic code to the user terminal;
the format information acquisition module is used for acquiring anti-counterfeiting basic code format information input by the user terminal, wherein the anti-counterfeiting basic code format information comprises set positions of random bits and grouping bits;
and the anti-counterfeiting basic code generating module is used for generating a plurality of groups of anti-counterfeiting basic codes with the grouping bits as grouping identifiers based on the anti-counterfeiting basic code format information and a preset character set.
By adopting the technical scheme, the system calculates the digit of the anti-counterfeiting basic code according to the anti-counterfeiting code setting requirement input by the user terminal and the preset calculation rule, then randomly generates a plurality of anti-counterfeiting basic codes according to the anti-counterfeiting basic code format information set by the user and the preset character set so as to ensure the reasonability of the numeric value of the anti-counterfeiting basic code, and reduces the possibility of overlong data bits of the anti-counterfeiting basic code while ensuring that the requirement of the user on the product magnitude is met, thereby ensuring the usability of the anti-counterfeiting basic code after the two-dimensional code is generated.
In a third aspect, the present application provides a computer device, which adopts the following technical solution: the anti-counterfeiting system comprises a memory and a processor, wherein the memory stores a computer program which can be loaded by the processor and can execute any product anti-counterfeiting method.
By adopting the technical scheme, the system calculates the digit of the anti-counterfeiting basic code according to the anti-counterfeiting code setting requirement input by the user terminal and the preset calculation rule, then randomly generates a plurality of anti-counterfeiting basic codes according to the anti-counterfeiting basic code format information set by the user and the preset character set so as to ensure the reasonability of the numeric value of the anti-counterfeiting basic code, and reduces the possibility of overlong data bits of the anti-counterfeiting basic code while ensuring that the requirement of the user on the product magnitude is met, thereby ensuring the usability of the anti-counterfeiting basic code after the two-dimensional code is generated.
In a fourth aspect, the present application provides a storage medium, which adopts the following technical solutions: a computer program is stored which can be loaded by a processor and which implements any of the above-described methods of product counterfeiting.
By adopting the technical scheme, the system calculates the digit of the anti-counterfeiting basic code according to the anti-counterfeiting code setting requirement input by the user terminal and the preset calculation rule, then randomly generates a plurality of anti-counterfeiting basic codes according to the anti-counterfeiting basic code format information set by the user and the preset character set so as to ensure the reasonability of the numeric value of the anti-counterfeiting basic code, and reduces the possibility of overlong data bits of the anti-counterfeiting basic code while ensuring that the requirement of the user on the product magnitude is met, thereby ensuring the usability of the anti-counterfeiting basic code after the two-dimensional code is generated.
In summary, the present application includes at least one of the following beneficial technical effects:
1. the system calculates the digit of the anti-counterfeiting basic code according to the anti-counterfeiting code setting requirement input by the user terminal and a preset calculation rule, then randomly generates a plurality of anti-counterfeiting basic codes according to the anti-counterfeiting basic code format information set by the user and a preset character set so as to ensure the reasonability of the numeric value of the anti-counterfeiting basic code, and reduces the possibility of overlong data bit of the anti-counterfeiting basic code while ensuring that the requirement of the user on the product order is met, thereby ensuring the usability of the anti-counterfeiting basic code after the two-dimensional code is generated;
2. setting check bits related to the random bits and the grouping bits in the anti-counterfeiting basic code according to a preset check bit setting rule so as to reduce the risk of the anti-counterfeiting basic code caused by tampering or imitation;
3. grouping the anti-counterfeiting basic codes according to the grouping identification, checking the duplication of each group of anti-counterfeiting basic codes by using a preset duplication checking rule after grouping, and deleting the repeated anti-counterfeiting basic codes when the same anti-counterfeiting basic codes exist in a certain group of anti-counterfeiting basic codes, thereby ensuring the uniqueness of the anti-counterfeiting basic codes;
4. considering that when the system inputs the anti-counterfeiting code setting requirement of a user, the possibility that the anti-counterfeiting code setting requirement input by the same user exists in the system, when the two-dimensional code margin size in the historical anti-counterfeiting code setting requirement is consistent with the two-dimensional code margin size in the current anti-counterfeiting code setting requirement, the system firstly judges whether the number of the unused anti-counterfeiting basic codes meets the preset yield value, if so, the system does not need to recalculate the digit of the anti-counterfeiting basic codes, and directly uses the unused anti-counterfeiting basic codes as the supplementary basic codes; when the setting requirement of the historical anti-counterfeiting code is inconsistent with the setting requirement of the current anti-counterfeiting code, the system generates a supplementary basic code according to a preset supplementary rule, so that the utilization sufficiency of the anti-counterfeiting basic code is ensured; and helps to reduce waste of system resources.
Drawings
Fig. 1 is a flowchart of a product anti-counterfeiting method in an embodiment of the present application.
Fig. 2 is a block diagram of a product anti-counterfeiting device according to an embodiment of the present disclosure.
Description of reference numerals: 201. a demand acquisition module; 202. a calculation module; 203. a format information acquisition module; 204. and the anti-counterfeiting basic code generation module.
Detailed Description
The present application is described in further detail below with reference to figures 1-2.
The embodiment of the application discloses a product anti-counterfeiting method, which can be applied to a product anti-counterfeiting system, wherein the anti-counterfeiting system is suitable for scenes with high requirements on the quantity level of product anti-counterfeiting codes, such as the order of magnitude requirements of the food industry on billions, billions or even trillions of anti-counterfeiting codes, and the execution main body of the method is a background control center in the product anti-counterfeiting system.
As shown in fig. 1, the method comprises the steps of:
and S100, acquiring the anti-counterfeiting code setting requirement input by the user terminal when the starting signal is received.
Specifically, the user terminal includes, but is not limited to, one or more interactive devices such as a computer and a tablet, when the product anti-counterfeiting system receives the start signal, the anti-counterfeiting code setting requirement is a setting requirement about the product anti-counterfeiting code input by the user through the user terminal, and the user in the application refers to an enterprise-level user. The anti-counterfeiting code setting requirements comprise two-dimensional code margin size and a preset yield value. The two-dimensional code margin is usually a square margin area on the outer package of the product, and has a specification size of 1.2cm × 1.2cm, for example. The preset production value may be a one or half year projected production value for the product set by the enterprise level user. When the system starts to work, the background control center firstly acquires the anti-counterfeiting code setting requirement input by the user terminal.
S200, calculating the digit of the anti-counterfeiting basic code according to a preset calculation rule, anti-counterfeiting code setting requirements and the number of characters in a preset character set, and feeding back the digit of the anti-counterfeiting basic code to the user terminal.
The preset character set is a character combination selected by a user, characters in the character set comprise conventional characters such as numbers 0-9, lower case letters a-Z and upper case letters A-Z, and the number of the preset character set in the embodiment of the application is 62.
Specifically, the background control center divides the preset yield value by 62 times to obtain the digit of the anti-counterfeiting basic code, wherein the number 62 is determined by the number of characters in the preset character set. It is worth noting that the number of digits of the anti-counterfeiting basic code is obtained by rounding up the root-opened result. And the background control center feeds back the calculated digits of the anti-counterfeiting basic code to the user terminal so that a user can set an anti-counterfeiting basic code format according to the digits of the anti-counterfeiting basic code.
S300, acquiring anti-counterfeiting basic code format information input by the user terminal.
The anti-counterfeiting basic code format information is set by a user at a user terminal based on the digit of the anti-counterfeiting basic code, and comprises set positions of random bits and grouping bits.
Specifically, after the user sets the positions of the random bits and the grouping bits, the numbers of the random bits and the grouping bits are correspondingly determined, and the grouping bits are set, so that the subsequent system can be grouped according to the grouping bits after generating the anti-counterfeiting code. For example, the number of bits of the anti-counterfeiting basic code calculated by the background control center is 12 bits, wherein 6 bits are random bits, 3 bits are grouping bits, and the remaining 3 bits can be used as supplementary bits.
S400, generating a plurality of groups of anti-counterfeiting basic codes with grouping bits as grouping identifiers based on the anti-counterfeiting basic code format information and a preset character set.
Specifically, after acquiring the anti-counterfeiting basic code format information set by an enterprise, the background control center randomly generates a plurality of anti-counterfeiting basic codes according to a preset character set and by using a random algorithm, and the background control center can group the anti-counterfeiting basic codes according to grouping bits, that is, the anti-counterfeiting basic codes with the same grouping bits are the same group.
Optionally, in the same embodiment, in view of the security of the anti-counterfeiting basic code during use, that is, in order to reduce the possibility that the anti-counterfeiting basic code is randomly tampered or copied, a check bit needs to be added to the anti-counterfeiting basic code, so that when a background control center generates a plurality of sets of anti-counterfeiting basic codes using packet bits as packet identifiers based on the anti-counterfeiting basic code format information and a preset character set, the following processing procedures may exist:
based on the anti-counterfeiting basic code format information and a preset character set, optional characters in the preset character set are used for filling the grouping bits and the random bits.
Specifically, the information of the anti-counterfeiting basic code format is entered by a user terminal, and a user can set the positions of random bits and grouping bits, for example, the first 6 bits are random bits, the middle 3 bits are grouping bits, and the rest 3 bits are complementary bits, as can be seen from the foregoing, the background control center selects one character from 62 preset characters for each random bit and selects one character from 62 preset characters for each grouping bit from a preset character set
In the embodiment, after the background control center completes the filling of the grouping bits and the random bits, check characters about the random bits and the grouping bits are generated according to a preset check bit setting rule, the check characters are filled in the check bits, and a plurality of groups of anti-counterfeiting basic codes with the grouping bits as grouping identifiers are generated.
Specifically, a preset check bit setting rule is customized by an enterprise-level user, and the embodiment of the application discloses a check bit setting rule, firstly, the digit of the anti-counterfeiting basic code takes 12 bits as an example, wherein the first 6 bits are random bits, the middle 3 bits are grouping bits, the complementary bits, namely the remaining 3 bits, are set as check bits, and it is noted that the check bit setting rule is based on a set of user-defined decoding rules, except for numbers 0-9, characters a-Z and A-Z all have corresponding Arabic digit sequence numbers, for example, a lowercase letter a takes 10 as an example. After the system generates random bits and grouping bits, taking the last digit of the result obtained by adding the digit number corresponding to the character on the first random bit of each initial basic code and the digit number corresponding to the character on the fourth random bit as the character on the first check bit of the initial basic code; then the last digit of the result obtained by adding the digit number corresponding to the character on the third random bit of each initial basic code and the digit number corresponding to the character on the fifth random bit is taken as the character on the second bit check bit of the initial basic code; and then the last digit of the result obtained by adding the digit serial number corresponding to the character on the first packet bit and the digit serial number corresponding to the character on the second packet bit of each initial basic code is used as the character on the third check bit of the initial basic code, so that the final anti-counterfeiting basic code is formed, the possibility that the anti-counterfeiting basic code is tampered or imitated is favorably reduced, and the usability and the safety of the anti-counterfeiting basic code are further improved.
Optionally, in the same embodiment, in order to ensure the uniqueness of the anti-counterfeiting basic code, after generating a plurality of groups of anti-counterfeiting basic codes using grouping bits as grouping identifiers based on the anti-counterfeiting basic code format information and a preset character set, the following processing may also be performed:
traversing each group of anti-counterfeiting basic codes according to a preset duplication checking rule, deleting the corresponding anti-counterfeiting basic codes by the background control center when repeated anti-counterfeiting basic codes exist, and storing the rest of each anti-counterfeiting basic code into a folder corresponding to the own grouping bit.
Specifically, the preset duplication checking rule in the embodiment of the application may be an equals algorithm, the background control center traverses each group of anti-counterfeiting basic codes by using the equals algorithm, and when repeated anti-counterfeiting basic codes exist, the corresponding anti-counterfeiting basic codes are deleted to ensure the uniqueness of the anti-counterfeiting basic codes. In order to improve the traversal efficiency, the background control center can firstly group all the anti-counterfeiting basic codes according to the grouping identification, and then traverse the anti-counterfeiting basic codes in each group.
Optionally, in the same embodiment, in order to improve the public confidence of the anti-counterfeiting code, after the system stores each of the remaining anti-counterfeiting basic codes into the folder corresponding to its own grouping bit, the following processing procedures may also exist:
and identifying the user name in the anti-counterfeiting code setting requirement, acquiring an enterprise identifier bound with the user name and based on the industrial internet, and splicing the enterprise identifier and the anti-counterfeiting basic code to generate the product anti-counterfeiting code.
Wherein, when the user terminal inputs the anti-counterfeit code setting requirement of the user, the user identity information, including the user name, the number on the business license of the enterprise, the number on the organization code card, etc., needs to be input first, the user identity information in the embodiment of the application can be called as an example by the user name, the user name can be the name of the enterprise, when the user terminal inputs the anti-counterfeiting code setting requirement of the user, the background control center can acquire the user name corresponding to the user, the enterprise mark bound with the user name based on the industrial internet can be inquired in the industrial internet, and then the enterprise mark and the anti-counterfeiting basic code are spliced to generate the product anti-counterfeiting code, in the embodiment of the application, the enterprise mark can be used as a prefix to be arranged in front of the anti-counterfeiting basic code, and an enterprise identification suffix customized by a user is additionally arranged behind the anti-counterfeiting basic code, so that a final anti-counterfeiting code is formed. For example, 86.121.66/F57AH121Y7#. F, wherein 86.121.66 is the enterprise id of an enterprise user,/F57 AH121Y7# is the 12-bit anti-counterfeiting basic code,. F is the suffix of the enterprise id defined by the enterprise user. Because the enterprise identification based on the industrial internet is authenticated by the national ministry of industry and trust and has absolute public trust, the enterprise identification is combined with the anti-counterfeiting basic code, and the public trust of the anti-counterfeiting code of the product is favorably improved.
In the embodiment, after the enterprise identifier and the anti-counterfeiting basic code are spliced to generate the product anti-counterfeiting code, the background control center updates the anti-counterfeiting basic code in each folder into the corresponding product anti-counterfeiting code.
Specifically, the anti-counterfeiting basic codes are stored in the folders corresponding to the grouping bits, and when the background control center acquires the enterprise identifier, the enterprise identifier is spliced with each anti-counterfeiting basic code in each folder to form the product anti-counterfeiting code, and the product anti-counterfeiting code is stored.
Optionally, in the same embodiment, in order to facilitate the consumer to verify the authenticity of the purchased product, after the anti-counterfeit base code in each folder is updated to the corresponding product anti-counterfeit code, the method further includes:
and generating two-dimensional code pictures corresponding to the product anti-counterfeiting codes according to a preset coding mode, and sequentially storing each two-dimensional code picture into a picture folder corresponding to the grouping identification according to the grouping identification.
Specifically, the preset coding mode is a two-dimensional code generation method, the background control center reads each folder in sequence again after generating the product anti-counterfeiting codes, and based on the preset two-dimensional code margin size, generates a corresponding two-dimensional code picture from each anti-counterfeiting code in each folder by using the two-dimensional code generation method, and stores the two-dimensional code picture into the corresponding picture folder. Because consumers almost develop the habit of scanning the two-dimensional code through terminals such as mobile phones at present, the information of the product anti-counterfeiting code is stored in the two-dimensional code, and convenience of identifying the authenticity of the product by a user is facilitated to be improved. The anti-counterfeiting code finally generated in the application is similar to an index, when a consumer uses the terminal equipment to scan a two-dimensional code picture on an outer package of a product, the terminal equipment jumps to an anti-counterfeiting platform set by an enterprise-level user according to the analyzed anti-counterfeiting code, the anti-counterfeiting platform is authenticated by the national Ministry of industry, and in the anti-counterfeiting platform, the consumer can trace all production processes of the product, such as the source of raw materials, growth records, processing flows, health information of related workers, product transportation records and other links, so that the trust of the user on the authenticity of the product is really improved, meanwhile, in the aspect of product quality, higher requirements are provided for enterprises, particularly manufacturing industries, and justness and disclosure of a whole industrial chain are achieved.
Optionally, in the same embodiment, when the user inputs the anti-counterfeit code setting requirement, a situation that the two-dimensional code margin size in the historical anti-counterfeit code setting requirement input by the user is consistent with the two-dimensional code margin size in the anti-counterfeit code setting requirement may exist in the system, at this time, the background control center does not need to recalculate the digit of the anti-counterfeit basic code, so that system resources are saved, so before calculating the digit of the anti-counterfeit basic code according to the preset calculation rule, the anti-counterfeit code setting requirement, and the number of characters in the preset character set, the following processing may also exist:
and identifying the user name in the anti-counterfeiting code setting requirement, inquiring the corresponding historical anti-counterfeiting code setting requirement according to the user name, and comparing the historical anti-counterfeiting code setting requirement with the current anti-counterfeiting code setting requirement.
Specifically, the anti-counterfeiting code setting requirement of a user input by a user terminal carries a user name, the background control center can simultaneously obtain the user name when obtaining the anti-counterfeiting code setting requirement, when the background control center obtains the user name, whether the user name exists is inquired in a preset database, and if the user name exists, the historical anti-counterfeiting code setting requirement corresponding to the user name is extracted from the preset database. The preset database is used for recording and storing anti-counterfeiting code setting requirements input by the user terminal, and each anti-counterfeiting code setting requirement and the user name are in a corresponding relation.
In this embodiment, after the background control center extracts the setting requirement of the historical anti-counterfeiting code corresponding to the user name, the background control center judges whether the size of the two-dimension code margin in the historical anti-counterfeiting code setting requirement is consistent with the size of the two-dimension code margin in the anti-counterfeiting code setting requirement, if so, counting the number of the unused anti-counterfeiting basic codes in the anti-counterfeiting basic code generation record corresponding to the historical anti-counterfeiting code setting requirement in the preset database, comparing the number of the unused anti-counterfeiting basic codes with the preset yield value in the anti-counterfeiting code setting requirement, if the number of the unused anti-counterfeiting basic codes is not less than the preset yield value, the unused anti-counterfeiting basic code is indicated to be used sufficiently, the background control center does not need to recalculate the digit of the anti-counterfeiting basic code and does not need to generate the anti-counterfeiting basic code again, but the anti-counterfeiting basic code matched with the anti-counterfeiting code setting requirement is selected from the unused anti-counterfeiting basic codes.
And if the number of the unused anti-counterfeiting basic codes is smaller than the preset output value, the background control center generates the supplementary basic codes matched with the anti-counterfeiting code setting requirements according to the preset supplementary rules.
Specifically, when the number of the unused anti-counterfeiting basic codes in the anti-counterfeiting basic code generation record is smaller than a preset yield value, it is indicated that the number of the unused anti-counterfeiting basic codes cannot meet the preset yield value, at the moment, the background control center firstly subtracts the preset yield value from the number of the unused anti-counterfeiting basic codes to obtain the number of the anti-counterfeiting basic codes to be supplemented, then calculates the total number of the anti-counterfeiting basic codes which can be generated according to the digits of the anti-counterfeiting basic codes in the anti-counterfeiting basic code generation record and the number of characters in a preset character set, and then subtracts the total number of the anti-counterfeiting basic codes from the number of the used anti-counterfeiting basic codes to obtain the number of the anti-counterfeiting basic codes to be used.
At this time, the background control center needs to execute corresponding operations according to the size relationship between the number of the anti-counterfeiting basic codes to be used and the number of the anti-counterfeiting basic codes to be supplemented, and the specific operation process is as follows:
and the background control center compares the number of the anti-counterfeiting basic codes to be used with the number of the anti-counterfeiting basic codes to be supplemented, and if the number of the anti-counterfeiting basic codes to be used is not less than the number of the anti-counterfeiting basic codes to be supplemented, the anti-counterfeiting basic code format information and the preset character set in the record are generated based on the anti-counterfeiting basic codes, so that the number of the supplementary basic codes matched with the number of the anti-counterfeiting basic codes to be supplemented is generated.
In this embodiment, if the number of the anti-counterfeiting basic codes to be used is less than the number of the anti-counterfeiting basic codes to be supplemented, the supplementing bits are added to the anti-counterfeiting basic codes to form a new anti-counterfeiting basic code format, and the supplementing basic codes with the number matched with the preset yield value are generated according to the new anti-counterfeiting basic code format information and the preset character set.
Specifically, when the number of the anti-counterfeiting basic codes to be used is smaller than the number of the anti-counterfeiting basic codes to be supplemented, it is indicated that the anti-counterfeiting basic code format corresponding to the setting requirement of the historical anti-counterfeiting codes cannot meet the requirement of the enterprise-level user, at this time, the background control center needs to add a supplement bit, the supplement bit can be a random bit or a grouping bit, and the background control center can still select one character from a preset character set to fill the supplement bit, so that the number of the newly generated anti-counterfeiting basic codes is matched with a preset yield value.
In this embodiment, if the two-dimensional code margin size in the historical anti-counterfeiting code setting requirement is not consistent with the two-dimensional code margin size in the anti-counterfeiting code setting requirement, or the background control center does not inquire the user name in a preset database, the digit of the anti-counterfeiting basic code is calculated according to the preset calculation rule, the anti-counterfeiting code setting requirement and the number of characters in the preset character set, the digit of the anti-counterfeiting basic code is fed back to the user terminal, the anti-counterfeiting basic code format information input by the user terminal is acquired, and a plurality of groups of anti-counterfeiting basic codes with grouping bits as grouping identifiers are generated based on the anti-counterfeiting basic code format information and the preset character set.
The implementation principle of the embodiment of the application is as follows: the system calculates the digit of the anti-counterfeiting basic code according to the anti-counterfeiting code setting requirement input by the user terminal and a preset calculation rule, and then randomly generates a plurality of anti-counterfeiting basic codes according to the anti-counterfeiting basic code format information set by the user and a preset character set, so that the possibility of overlong data bits of the anti-counterfeiting basic code is reduced while the requirement of the user on the product order of magnitude is met, and the usability of the anti-counterfeiting basic code after the two-dimensional code is generated is improved.
Based on the method, the embodiment of the application also discloses a product anti-counterfeiting system.
In connection with fig. 2, the system comprises the following modules:
the demand acquisition module 201 is configured to acquire an anti-counterfeit code setting demand input by a user terminal when receiving a start signal, where the anti-counterfeit code setting demand includes a two-dimensional code margin size and a preset yield value;
the calculation module 202 is used for calculating the digit of the anti-counterfeiting basic code according to a preset calculation rule, anti-counterfeiting code setting requirements and the number of characters in a preset character set, and feeding back the digit of the anti-counterfeiting basic code to the user terminal;
the format information acquisition module 203 is used for acquiring anti-counterfeiting basic code format information input by the user terminal, wherein the anti-counterfeiting basic code format information comprises set positions of random bits and grouping bits;
the anti-counterfeiting basic code generating module 204 is configured to generate a plurality of groups of anti-counterfeiting basic codes with grouping bits as grouping identifiers based on anti-counterfeiting basic code format information and a preset character set;
the method can also be used for generating check characters related to the random bits and the grouping bits according to a preset check bit setting rule, filling the check characters in the check bits and generating a plurality of groups of anti-counterfeiting basic codes taking the grouping bits as grouping identifiers;
in the same embodiment, the system may further include:
the duplication checking module is used for traversing each group of anti-counterfeiting basic codes according to a preset duplication checking rule, deleting the corresponding anti-counterfeiting basic codes by the background control center when repeated anti-counterfeiting basic codes exist, and storing the rest of each anti-counterfeiting basic code into a folder corresponding to the grouping bit of the anti-counterfeiting basic code;
the optimization module is used for identifying a user name in anti-counterfeiting code setting requirements, acquiring an enterprise identifier bound with the user name and based on the industrial Internet, and splicing the enterprise identifier and the anti-counterfeiting basic code to generate a product anti-counterfeiting code;
the two-dimensional code picture generating module is used for generating two-dimensional code pictures corresponding to the product anti-counterfeiting codes according to a preset coding mode and sequentially storing each two-dimensional code picture into a picture folder corresponding to the grouping identification according to the grouping identification;
the judging module is used for identifying a user name in anti-counterfeiting code setting requirements, inquiring whether the user name exists in a preset database, if so, extracting historical anti-counterfeiting code setting requirements corresponding to the user name from the preset database, judging whether a two-dimensional code margin size in the historical anti-counterfeiting code setting requirements is consistent with a two-dimensional code margin size in the anti-counterfeiting code setting requirements, if so, counting the number of unused anti-counterfeiting basic codes in an anti-counterfeiting basic code generation record corresponding to the historical anti-counterfeiting code setting requirements in the preset database, comparing the number of the unused anti-counterfeiting basic codes with a preset yield value in the anti-counterfeiting code setting requirements, and if the number of the unused anti-counterfeiting basic codes is not less than the preset yield value, selecting anti-counterfeiting basic codes matched with the anti-counterfeiting code setting requirements from the unused anti-counterfeiting basic codes; otherwise, generating a supplementary basic code matched with the anti-counterfeiting code setting requirement according to a preset supplementary rule;
the supplementary basic code generating module is used for calculating the number of the anti-counterfeiting basic codes to be supplemented, the total number of the anti-counterfeiting basic codes which can be generated by the anti-counterfeiting basic code generating record and the number of the anti-counterfeiting basic codes to be used, comparing the number of the anti-counterfeiting basic codes to be used with the number of the anti-counterfeiting basic codes to be supplemented, and generating supplementary basic codes of which the number is matched with the number of the anti-counterfeiting basic codes to be supplemented on the basis of the anti-counterfeiting basic code format information and a preset character set in the anti-counterfeiting basic code generating record if the number of the anti-counterfeiting basic codes to be used is not less than the number of the anti-counterfeiting basic codes to be supplemented; if the number of the anti-counterfeiting basic codes to be used is smaller than that of the anti-counterfeiting basic codes to be supplemented, the supplementing bits are added in the anti-counterfeiting basic codes to form a new anti-counterfeiting basic code format, and the supplementing basic codes with the number matched with the preset yield value are generated according to the new anti-counterfeiting basic code format information and the preset character set.
The embodiment of the application also discloses computer equipment.
Specifically, the device comprises a memory and a processor, wherein the memory is stored with a computer program which can be loaded by the processor and can execute the product anti-counterfeiting method.
The embodiment of the application also discloses a computer readable storage medium.
Specifically, the computer readable storage medium stores a computer program capable of being loaded by a processor and executing the anti-counterfeiting method for the product, and the computer readable storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The embodiments of the present invention are preferred embodiments of the present application, and the scope of protection of the present application is not limited by the embodiments, so: all equivalent changes made according to the structure, shape and principle of the present application shall be covered by the protection scope of the present application.

Claims (10)

1. A method for preventing counterfeiting of a product, comprising:
when a starting signal is received, acquiring an anti-counterfeiting code setting requirement input by a user terminal, wherein the anti-counterfeiting code setting requirement comprises a two-dimensional code margin size and a preset yield value;
calculating the digit of the anti-counterfeiting basic code according to a preset calculation rule, anti-counterfeiting code setting requirements and the number of characters in a preset character set, and feeding back the digit of the anti-counterfeiting basic code to a user terminal;
acquiring anti-counterfeiting basic code format information input by the user terminal, wherein the anti-counterfeiting basic code format information comprises set positions of random bits and grouping bits;
and generating a plurality of groups of anti-counterfeiting basic codes with the grouping bits as grouping identifiers based on the anti-counterfeiting basic code format information and a preset character set.
2. The method of claim 1, wherein the anti-counterfeiting basic code format information further comprises a position of a check bit;
the generating of the plurality of groups of anti-counterfeiting basic codes with the grouping bits as grouping identifiers based on the anti-counterfeiting basic code format information and a preset character set comprises:
based on the anti-counterfeiting basic code format information, filling the grouping bits and the random bits with optional characters from a preset character set;
and generating check characters related to the random bits and the grouping bits according to a preset check bit setting rule, filling the check characters in the check bits, and generating a plurality of groups of anti-counterfeiting basic codes taking the grouping bits as grouping identifiers.
3. The method as claimed in claim 1, wherein after generating a plurality of groups of anti-counterfeit basic codes identified by the grouping bits based on the format information of the anti-counterfeit basic codes and a predetermined character set, the method further comprises:
grouping all anti-counterfeiting basic codes according to the grouping identification;
traversing each group of anti-counterfeiting basic codes according to a preset duplication checking rule, and deleting the corresponding anti-counterfeiting basic codes when repeated anti-counterfeiting basic codes exist;
and storing each of the rest anti-counterfeiting basic codes into a folder corresponding to the grouping bit of the anti-counterfeiting basic code.
4. The method for preventing counterfeit of a product according to claim 3, further comprising, after storing each of the remaining counterfeit-preventing basic codes in the folder corresponding to its grouping bit:
identifying a user name in the anti-counterfeiting code setting requirement;
reading the folders in sequence;
acquiring an enterprise identifier bound with the user name and based on an industrial internet, and splicing the enterprise identifier and an anti-counterfeiting basic code to generate a product anti-counterfeiting code;
and updating the anti-counterfeiting basic codes in each folder into corresponding product anti-counterfeiting codes.
5. The method for preventing counterfeit of products according to claim 4, further comprising, after the updating the counterfeit-prevention basic code in each folder to the corresponding product counterfeit-prevention code:
reading each folder in sequence again;
generating a two-dimensional code picture corresponding to the product anti-counterfeiting code according to a preset coding mode;
and according to the grouping identification, sequentially storing each two-dimensional code picture into a picture folder corresponding to the grouping identification.
6. The product anti-counterfeiting method according to claim 1, wherein the anti-counterfeiting code setting requirement carries a user name;
before calculating the digit of the anti-counterfeiting basic code according to the preset calculation rule, the anti-counterfeiting code setting requirement and the number of the characters in the preset character set and feeding back the digit of the anti-counterfeiting basic code to the user terminal, the method further comprises the following steps:
identifying a user name in the anti-counterfeiting code setting requirement;
inquiring whether the user name exists in a preset database, if so, extracting a historical anti-counterfeiting code setting requirement corresponding to the user name from the preset database, judging whether a two-dimensional code margin size in the historical anti-counterfeiting code setting requirement is consistent with a two-dimensional code margin size in the anti-counterfeiting code setting requirement, if so, counting the number of unused anti-counterfeiting basic codes in an anti-counterfeiting basic code generation record corresponding to the historical anti-counterfeiting code setting requirement in the preset database, comparing the number of the unused anti-counterfeiting basic codes with a preset yield value in the anti-counterfeiting code setting requirement, and if not, selecting the anti-counterfeiting basic codes matched with the anti-counterfeiting code setting requirement from the unused anti-counterfeiting basic codes;
and if the number of the unused anti-counterfeiting basic codes is smaller than a preset output value, generating a supplementary basic code matched with the anti-counterfeiting code setting requirement according to a preset supplementary rule.
7. The product anti-counterfeiting method according to claim 6, wherein if the number of the unused anti-counterfeiting basic codes is smaller than a preset output value, generating a supplementary basic code matched with the anti-counterfeiting code setting requirement according to a preset supplementary rule, comprises:
if the number of the unused anti-counterfeiting basic codes is smaller than the preset yield value, subtracting the number of the unused anti-counterfeiting basic codes from the preset yield value to obtain the number of the anti-counterfeiting basic codes to be supplemented;
calculating the total number of the anti-counterfeiting basic codes which can be generated according to the digits of the anti-counterfeiting basic codes in the anti-counterfeiting basic code generation record and the number of characters in a preset character set;
subtracting the total number of the anti-counterfeiting basic codes from the number of the used anti-counterfeiting basic codes to obtain the number of the anti-counterfeiting basic codes to be used;
comparing the number of the anti-counterfeiting basic codes to be used with the number of the anti-counterfeiting basic codes to be supplemented, if the number of the anti-counterfeiting basic codes to be used is not less than the number of the anti-counterfeiting basic codes to be supplemented, generating anti-counterfeiting basic code format information and a preset character set in a record based on the anti-counterfeiting basic codes, and generating supplementary basic codes of which the number is matched with the number of the anti-counterfeiting basic codes to be supplemented;
otherwise, adding supplementary bits in the anti-counterfeiting basic code to form a new anti-counterfeiting basic code format, and generating supplementary basic codes with the quantity matched with a preset yield value according to the new anti-counterfeiting basic code format information and a preset character set.
8. A product authentication device, the system comprising:
the system comprises a requirement acquisition module (201) and a starting module, wherein the requirement acquisition module is used for acquiring an anti-counterfeiting code setting requirement input by a user terminal when receiving a starting signal, and the anti-counterfeiting code setting requirement comprises a two-dimensional code margin size and a preset yield value;
the calculation module (202) is used for calculating the digit of the anti-counterfeiting basic code according to a preset calculation rule, anti-counterfeiting code setting requirements and the number of characters in a preset character set, and feeding back the digit of the anti-counterfeiting basic code to the user terminal;
a format information acquisition module (203) for acquiring anti-counterfeiting basic code format information input by the user terminal, wherein the anti-counterfeiting basic code format information comprises set positions of random bits and grouping bits;
and the anti-counterfeiting basic code generating module (204) is used for generating a plurality of groups of anti-counterfeiting basic codes with the grouping bits as grouping identifiers based on the anti-counterfeiting basic code format information and a preset character set.
9. A computer device, characterized by: comprising a memory and a processor, the memory having stored thereon a computer program that can be loaded by the processor and that executes the method of anti-counterfeiting of a product according to any one of claims 1 to 7.
10. A computer-readable storage medium, in which a computer program is stored which can be loaded by a processor and which implements a method for counterfeit protection according to any one of claims 1 to 7.
CN202111335523.8A 2021-11-11 2021-11-11 Product anti-counterfeiting method and device Pending CN113902456A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111335523.8A CN113902456A (en) 2021-11-11 2021-11-11 Product anti-counterfeiting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111335523.8A CN113902456A (en) 2021-11-11 2021-11-11 Product anti-counterfeiting method and device

Publications (1)

Publication Number Publication Date
CN113902456A true CN113902456A (en) 2022-01-07

Family

ID=79194205

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111335523.8A Pending CN113902456A (en) 2021-11-11 2021-11-11 Product anti-counterfeiting method and device

Country Status (1)

Country Link
CN (1) CN113902456A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117291218A (en) * 2023-09-22 2023-12-26 广东龙眼数字科技有限公司 Application method and device of manufacturing anti-counterfeiting code and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117291218A (en) * 2023-09-22 2023-12-26 广东龙眼数字科技有限公司 Application method and device of manufacturing anti-counterfeiting code and electronic equipment
CN117291218B (en) * 2023-09-22 2024-03-29 广东龙眼数字科技有限公司 Application method and device of manufacturing anti-counterfeiting code and electronic equipment

Similar Documents

Publication Publication Date Title
AU2018101148A4 (en) A system and method for document information authenticity verification
US10235618B2 (en) Authentication feature in a barcode
CN106384143B (en) Dynamic electronic two-dimensional code generation method and identification method
CN109190736B (en) Anti-counterfeiting two-dimensional code and generation method and generation application system thereof
CN111639734B (en) Novel two-dimensional code encoding and anti-counterfeiting application method embedded with QR code
CN112508145B (en) Electronic seal generation and verification method and device, electronic equipment and storage medium
CN111008923A (en) Watermark embedding method, watermark extracting method, watermark embedding device, watermark extracting device and watermark extracting equipment
CN103577986A (en) Multi-level two-dimension code fake preventing method
CN111539502A (en) Anti-counterfeiting two-dimensional code generation method and device, server and storage medium
CN116029745A (en) Digital label anti-counterfeiting tracing method, device and system based on blockchain
EP2628123B1 (en) A system for generating an incrementally completed 3d security mark
CN109831309A (en) A kind of safety code principle and method with multiple-authentication
CN113988242A (en) Multi-region-based anti-counterfeiting code generation and verification method, system, equipment and medium
CN113902456A (en) Product anti-counterfeiting method and device
CN104899748A (en) Two-dimensional code and scratch-off code composite identifying method based on identity authentication technology
CN114998922A (en) Electronic contract generation method based on format template
US20140191027A1 (en) Generating an Incremental Information Object
CN108256610A (en) A kind of word is around the generation system and generation method of Quick Response Code
US20140027515A1 (en) Grayscale Incremental Information Object
CN105117878A (en) Method and device for treating remaining article amount
JP2017033351A (en) Enterprise information matching apparatus and program for enterprise information matching
CN115511030A (en) Anti-counterfeiting verification method and device and electronic equipment
CN103502996B (en) Anti-double increment information object
CN111783917A (en) Encrypted two-dimensional code with tracing and anti-counterfeiting functions
CN112732948B (en) Identity verification method, device and storage medium

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