CN117745299A - Two-dimensional code-based anti-counterfeiting method and system - Google Patents

Two-dimensional code-based anti-counterfeiting method and system Download PDF

Info

Publication number
CN117745299A
CN117745299A CN202311434201.8A CN202311434201A CN117745299A CN 117745299 A CN117745299 A CN 117745299A CN 202311434201 A CN202311434201 A CN 202311434201A CN 117745299 A CN117745299 A CN 117745299A
Authority
CN
China
Prior art keywords
counterfeiting
character
special
data
product
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.)
Granted
Application number
CN202311434201.8A
Other languages
Chinese (zh)
Other versions
CN117745299B (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.)
Beijing Guolixinke Technology Co ltd
Original Assignee
Beijing Guolixinke 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 Beijing Guolixinke Technology Co ltd filed Critical Beijing Guolixinke Technology Co ltd
Priority to CN202311434201.8A priority Critical patent/CN117745299B/en
Publication of CN117745299A publication Critical patent/CN117745299A/en
Application granted granted Critical
Publication of CN117745299B publication Critical patent/CN117745299B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

The application discloses a method and a system based on two-dimension code anti-counterfeiting, wherein the method comprises the following steps: receiving input product original data; invoking a preset anti-counterfeiting system to generate a first special-shaped character sequence corresponding to the original data of the product; combining the input product original data with the storage address of the anti-counterfeiting system, and generating an anti-counterfeiting two-dimensional code; the first special character sequence and the anti-counterfeiting two-dimensional code are used for being jet-printed on the surface of the product outer package; when the anti-counterfeiting two-dimensional code is used for being scanned by a user, the anti-counterfeiting system can be called, and a second special-shaped character sequence is generated according to the original data of the product. According to the method, because the special-shaped character library is designed by a manufacturer, an illegal vendor cannot obtain a corresponding special-shaped character comparison table, and a counterfeiter cannot copy basically; meanwhile, a data transformation algorithm cannot be acquired, so that the difficulty of two-dimensional code counterfeiting is increased; therefore, the anti-counterfeiting safety of the product is greatly improved.

Description

Two-dimensional code-based anti-counterfeiting method and system
Technical Field
The application relates to the technical field of product anti-counterfeiting, in particular to an anti-counterfeiting method and an anti-counterfeiting system.
Background
At present, the address of the product data and the anti-counterfeiting query system is generally arranged in a two-dimensional code, and a user scans the two-dimensional code to query the product data in the anti-counterfeiting query system so as to judge the authenticity of the product; however, once the illegal vendor obtains the product data, the technology can conveniently print a large amount of two-dimensional codes, and paste the printed two-dimensional codes on counterfeit and inferior products, so that the user cannot inquire the authenticity, and the anti-counterfeiting safety of the products is reduced.
Disclosure of Invention
Based on the above, aiming at the technical problems, a two-dimensional code based anti-counterfeiting method and a two-dimensional code based anti-counterfeiting system are provided, so that the anti-counterfeiting safety of products is improved.
In a first aspect, a two-dimensional code-based anti-counterfeiting method is characterized by comprising the following steps:
receiving input product original data;
invoking a preset anti-counterfeiting system to generate a first special-shaped character sequence corresponding to the original data of the product;
combining the input product original data with the storage address of the anti-counterfeiting system, and generating an anti-counterfeiting two-dimensional code; the first special-shaped character sequence and the anti-counterfeiting two-dimensional code are used for being jet-printed on the surface of the product outer package; when the anti-counterfeiting two-dimensional code is used for being scanned by a user, the anti-counterfeiting system can be called according to the address of the anti-counterfeiting system, and a second special-shaped character sequence is generated according to the original data of the product.
In the above scheme, optionally, the anti-counterfeiting system comprises a data conversion module and a special-shaped character matching module.
In the above solution, further optionally, the calling a preset anti-counterfeiting system, and generating the first special-shaped character corresponding to the original data of the product includes:
calling a data conversion module to convert the original data of the product to obtain anti-counterfeiting characteristic data;
invoking a special-shaped character matching module to search special-shaped characters corresponding to each character in the anti-counterfeiting characteristic data in sequence to obtain a first special-shaped character sequence; the special-shaped character matching module is pre-stored with a special-shaped character library comparison table.
In the above solution, further optionally, the character comparison table is established by:
determining initial characters in the character pair label table, respectively acquiring ascii code values corresponding to the initial characters, and sorting for the first time from large to small according to the acquired ascii code values corresponding to the initial characters, and marking the first sequence as a first ascii code value sequence; the initial character comprises numbers 0-9, uppercase letters A-Z and lowercase letters a-Z;
performing second sorting on the ascii code values corresponding to the initial characters according to set conditions, and marking the second sorting as a second ascii code value sequence; the setting conditions include: dividing the ascii code values corresponding to all initial characters by a second set value and obtaining remainder, sorting the corresponding ascii code values according to the obtained remainder values from small to large, and arranging according to the ascii code values from large to small when the remainder values are the same;
sequencing the initial characters according to the sequencing positions of the corresponding ascii code values in the second ascii code value sequence to obtain a third initial character sequence; and correlating the third initial character sequence with the numbers of the same ordering positions in the first ascii code value sequence one by one, wherein the obtained correlation table is a character comparison table.
In the above solution, further optionally, the transferring the original data to the data conversion module to obtain the anti-counterfeiting feature data includes:
searching for first transformation data of an ascii code value corresponding to each character in the original data of the product respectively;
searching initial characters corresponding to each character in the first transformation data when the character is taken as an initial character corresponding value based on the character comparison table, and recording all acquired initial characters as second transformation data;
searching a corresponding ascii code value of each character in the second transformation data;
adding even numbers in all the ascii code values of the second transformation data to obtain a first sum, adding odd numbers in all the ascii code values of the second transformation data to obtain a second sum, and adding all the ascii code values of the second transformation data to obtain a third sum;
dividing the first sum, the second sum and the third sum by a first set value in turn, taking remainder, and combining the remainder obtained in turn to obtain the anti-counterfeiting characteristic data.
In the above scheme, further optionally, the establishment of the special-shaped character library comparison table designs corresponding special-shaped characters for numbers 0-100 respectively.
In a second aspect, a two-dimensional code based anti-counterfeiting system is characterized in that the system comprises:
and a data receiving module: the method comprises the steps of receiving product original data input by a user;
anti-counterfeiting system storage module: the anti-counterfeiting system is used for storing the anti-counterfeiting system;
and a data calling module: the anti-counterfeiting system is used for calling the anti-counterfeiting system according to the original product data input by the user to generate a first special-shaped character sequence corresponding to the original product data; the first special-shaped character sequence is used for being jet-printed on the surface of the product outer package;
the two-dimensional code generation module: combining the original data of the product input by the user and received by the data receiving module with the address of the digital anti-counterfeiting system storage module to generate an anti-counterfeiting two-dimensional code; the anti-counterfeiting two-dimensional code is used for being spray-printed on the surface of the product outer package.
In a third aspect, a computer device includes a memory and a processor, where the memory stores a computer program, and the processor implements the steps of the two-dimensional code based anti-counterfeiting method according to the first aspect when the processor executes the computer program.
In a fourth aspect, a computer readable storage medium has stored thereon a computer program, which when executed by a processor, implements the steps of a two-dimensional code based anti-counterfeiting method according to the first aspect.
The application has at least the following beneficial effects:
according to the method, the original data of the product are transformed through the anti-counterfeiting system to generate the corresponding special-shaped characters, the original data of the product are combined with the anti-counterfeiting system to generate the two-dimensional code, and the two-dimensional code and the special-shaped characters are printed on the surface of the outer package of the product in a spraying mode; when a user scans the two-dimensional code, the anti-counterfeiting system is called to generate special-shaped characters, and the scanned special-shaped characters are compared with special-shaped characters printed on a product, so that authenticity is judged. Because the special-shaped character library is designed by a manufacturer, an illegal vendor cannot acquire a corresponding special-shaped character comparison table, special-shaped characters are printed on the surface of a product, the direct copying difficulty is very high, the scanning copying difficulty is also very high, and a counterfeiter cannot copy basically; meanwhile, a data transformation algorithm cannot be acquired, so that the difficulty of two-dimensional code counterfeiting is increased; therefore, the difficulty of counterfeiting the two-dimensional code and the special-shaped character is high, so that the anti-counterfeiting safety of the product is greatly improved.
Drawings
Fig. 1 is a schematic flow chart of a method for anti-counterfeiting based on two-dimension codes according to an embodiment of the present application;
fig. 2 is an effect diagram of anti-counterfeiting two-dimensional codes and special-shaped characters provided by an embodiment of the application on an outer package of a product in a jet printing mode;
fig. 3 is a result diagram of scanning anti-counterfeiting two-dimensional codes according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
In the description of the present application: unless otherwise indicated, the meaning of "a plurality" is two or more. The terms "first," "second," "third," and the like in this application are intended to distinguish between the referenced objects without a special meaning in terms of technical connotation (e.g., should not be construed as emphasis on degree or order of importance, etc.). The expressions "comprising", "including", "having", etc. also mean "not limited to" (certain units, components, materials, steps, etc.).
In one embodiment, as shown in fig. 1, a two-dimensional code based anti-counterfeiting method is provided, which comprises the following steps:
step S101, receiving original data of a product input by a user;
the original data of the products are one-object data, namely each product has different original data, and each data represents information of the corresponding product.
Step S102, calling a preset anti-counterfeiting system to generate a first special-shaped character sequence corresponding to original data of a product;
in step S102, the anti-counterfeiting system includes a data conversion module and a special-shaped character matching module; therefore, calling a preset anti-counterfeiting system, and generating a first special-shaped character sequence corresponding to the original data of the product comprises the following steps:
calling a data conversion module to convert the original data of the product to obtain anti-counterfeiting characteristic data;
invoking a special-shaped character matching module to search special-shaped characters corresponding to each character in the anti-counterfeiting characteristic data in sequence to obtain a first special-shaped character sequence; the special-shaped character matching module is pre-stored with a special-shaped character library comparison table.
The special-shaped character library comparison table is a character library for designing special-shaped characters by using computer vector design software; aiming at 0-100, a random deformed special character is correspondingly designed. In the special character design process, each font can be tested to be printed by a high-resolution ink-jet printer and can be accurately recognized by naked eyes.
Step S103, combining the input product original data with the address of the anti-counterfeiting system, and generating an anti-counterfeiting two-dimensional code; the first special-shaped character sequence and the anti-counterfeiting two-dimensional code are used for being jet-printed on the surface of the product outer package; when the anti-counterfeiting two-dimensional code is used for being scanned by a user, the anti-counterfeiting system can be called according to the address of the anti-counterfeiting system, and a second special-shaped character sequence is generated according to the original data of the product.
Specifically, the anti-counterfeiting system is an executable file, and can be accessed by clicking the address of the anti-counterfeiting system; and combining the address of the anti-counterfeiting system with the input product original data to generate an anti-counterfeiting two-dimensional code.
Binding the original data with a first special character sequence corresponding to the special character, and generating an encrypted code file and exporting the encrypted code file; this encryption refers to the original content of the file, which can only be read by the national printing software, cannot be opened by other software, and is also the unique code.
In the adhesive tape factory, the national printing software is deployed, the national printing software stores the website information of the anti-counterfeiting system, and the address of the anti-counterfeiting system, such as https:// fw2. Gulifw.com/mp/, can be jumped through the two-dimensional code identification equipment. Raw data is imported and loaded to generate, and the national printing software combines the content in the code file and the website information to become: https:// fw2. Gulifw.com/mp/12345. After the file is loaded, the national printing software drives the ink jet printer to work, and the content is printed on the adhesive tape in a spraying mode.
When a user scans the anti-counterfeiting two-dimensional code, the anti-counterfeiting system can be called according to the address of the anti-counterfeiting system, a special-shaped character sequence is generated according to the original data of the product, the user compares the scanned sequence with the sequence sprayed on the outer packaging of the product, if the scanned sequence is consistent, the scanned sequence is a genuine product, and if the scanned sequence is inconsistent, the scanned sequence is a counterfeit product.
In the method based on the two-dimensional code anti-counterfeiting, the original data of the product is transformed through the anti-counterfeiting system to generate the corresponding special-shaped character, the original data of the product and the anti-counterfeiting system are combined to generate the two-dimensional code, and the two-dimensional code and the special-shaped character are printed on the surface of the outer package of the product in a spraying mode; when a user scans the two-dimensional code, the anti-counterfeiting system is called to generate special-shaped characters, and the scanned special-shaped characters are compared with special-shaped characters printed on a product, so that authenticity is judged. Because the special-shaped character library is designed by a manufacturer, an illegal vendor cannot acquire a corresponding special-shaped character comparison table or acquire a data transformation algorithm, so that the manufacturing cost of the two-dimensional code is increased; the special-shaped characters are printed on the surface of the product, the direct copying difficulty is very high, the scanning copying difficulty is also very high, and the counterfeiter can not copy the special-shaped characters basically. Therefore, the difficulty of counterfeiting the two-dimensional code and the special-shaped character is high, so that the anti-counterfeiting safety of the product is greatly improved.
In one embodiment, the character comparison table is created by:
step S201: determining initial characters in the character pair label table, respectively acquiring ascii code values corresponding to the initial characters, and sorting for the first time from large to small according to the acquired ascii code values corresponding to the initial characters, and marking the first sequence as a first ascii code value sequence; the initial character comprises numbers 0-9, uppercase letters A-Z and lowercase letters a-Z;
step S202: performing second sorting on the ascii code values corresponding to the initial characters according to set conditions, and marking the second sorting as a second ascii code value sequence; the setting conditions include: dividing the ascii code values corresponding to all initial characters by a second set value and obtaining remainder, sorting the corresponding ascii code values according to the obtained remainder values from small to large, and arranging according to the ascii code values from large to small when the remainder values are the same;
step S203: sequencing the initial characters according to the sequencing positions of the corresponding ascii code values in the second ascii code value sequence to obtain a third initial character sequence; the third initial character sequence is associated with the numbers of the same ordering positions in the first ascii code value sequence one by one, and the obtained association table is marked as a character comparison table; and marking each value attribute in the first ascii code value sequence in the association table as an ascii code conversion value, and marking each value attribute in the third initial character sequence in the association table as an initial character.
Specifically, the initial characters 0 to 9, A-Z, a-Z, and the ascii code value contents are obtained to produce an ascii code value comparison table, as shown in Table 1,
TABLE 1
Initial character 0 1 2 3 4 5 6 7 8 9
ascii code 48 49 50 51 52 53 54 55 56 57
Initial character A B C D E F G H I J
ascii code 65 66 67 68 69 70 71 72 73 74
Initial character K L M N O P Q R S T
ascii code 75 76 77 78 79 80 81 82 83 84
Initial character U V W X Y Z a b c d
ascii code 85 86 87 88 89 90 97 98 99 100
Initial character e f g h i g k l m n
ascii code 101 102 103 104 105 106 107 108 109 110
Initial character o p q r s t u v w x
ascii code 111 112 113 114 115 116 117 118 119 120
Initial character y z
ascii code 121 122
Dividing the corresponding values of all characters in the table by the set value, if the set value is 9, obtaining a result, as shown in table 2:
TABLE 2
The initial data is ordered from small to large according to the remainder value, and if the remainder values are the same, the initial data is ordered to the front. The ranking results are shown in table 3:
TABLE 3 Table 3
Initial character u l c Z Q H 6 v m d
ascii code 117 108 99 90 81 72 54 118 109 100
Remainder 0 0 0 0 0 0 0 1 1 1
Initial character R I 7 w n e S J A 8
ascii code 82 73 55 119 110 101 83 74 65 56
Remainder 1 1 1 2 2 2 2 2 2 2
Initial character x o f T K B 9 0 y p
ascii code 120 111 102 84 75 66 57 48 121 112
Remainder 3 3 3 3 3 3 3 3 4 4
Initial character g U L C 1 z q h V M
ascii code 103 85 76 67 49 122 113 104 86 77
Remainder 4 4 4 4 4 5 5 5 5 5
Initial character D 2 r i W N E 3 s j
ascii code 68 50 114 105 87 78 69 51 115 106
Remainder 5 5 6 6 6 6 6 6 7 7
Initial character a X O F 4 t k b Y P
ascii code 97 88 79 70 52 116 107 98 89 80
Remainder 7 7 7 7 7 8 8 8 8 8
Initial character G 5
ascii code 71 53
Remainder 8 8
After the sorting is completed, resetting the corresponding value for the initial character, and sequentially taking the corresponding value of the original ascii code sequence to obtain a character comparison table, as shown in table 4:
TABLE 4 Table 4
In one embodiment, the invoking the data transformation module to transform the raw data to obtain the anti-counterfeiting feature data includes:
step S301: searching for first transformation data of an ascii code value corresponding to each character in the original data of the product respectively;
step S302: searching initial characters corresponding to each character in the first transformation data when the character is taken as an initial character corresponding value based on the character comparison table, and recording all acquired initial characters as second transformation data;
step S303: searching a corresponding ascii code value of each character in the second transformation data;
step S304: adding even numbers in all the ascii code values of the second transformation data to obtain a first sum, adding odd numbers in all the ascii code values of the second transformation data to obtain a second sum, and adding all the ascii code values of the second transformation data to obtain a third sum;
step S305: dividing the first sum, the second sum and the third sum by a first set value in turn, taking remainder, and combining the remainder obtained in turn to obtain the anti-counterfeiting characteristic data.
Specifically, the content of a two-dimensional code (unique code) is generated through a random number sequence and a national encryption algorithm standard; for example, 12345, first, the original value corresponding to each character in the ascii code comparison table is found to obtain
1->49
2->50
3->51
4->52
5->53
Secondly, the obtained corresponding result is sent to an initial character comparison table to search the corresponding characters again, and the result is as follows:
49->l
50->c
51->Z
52->Q
53->H
thus, the original data is transformed into second transformed data, i.e., 12345 is changed to lcZQH;
finally, the lcZQH group of numbers is encrypted three times by three sets of encryption algorithms:
1) The first encryption is carried out, and an ascii code value of each character of the lcZQH, namely 108,99,90,81,72, is obtained; adding (108+90+72) the even numbers, dividing the added result (270) by 10 and taking the remainder, which is the result of 0;
2) The second encryption is carried out, and an ascii code value of each character of the lcZQH, namely 108,99,90,81,72, is obtained; adding (99+81) the odd numbers, dividing the added result (180) by 10 and taking the remainder, wherein the remainder is 0;
3) Thirdly, encrypting to obtain an ascii code value of each character of the lcZQH, namely 108,99,90,81,72;
adding all the numbers (108+99+90+81+72), dividing the added result (450) by 10 and taking the remainder, which is the result of 0;
the obtained 000 is the anti-counterfeiting characteristic data obtained through algorithm transformation.
In one embodiment, after the anti-counterfeiting feature data is obtained, a special-shaped character matching module is called to search special-shaped characters corresponding to each character in the anti-counterfeiting feature data in sequence to obtain a first special-shaped character sequence.
In this embodiment, according to the comparison table of the heteromorphic character library, query 00 corresponds to the defined heteromorphic character, and the final heteromorphic character, such as NNN, is obtained.
And storing the designed special-shaped characters in a picture format and generating a TTF file format. The binding result is used to generate and export an encrypted code file (the encryption refers to the original content of the unique code or the content of the file, which can only be read by the national printing software and cannot be opened by other software).
When a consumer scans the two-dimensional code on the adhesive tape by using the two-dimensional code recognition tool, the content of the two-dimensional code is analyzed, and if a website is detected, the web page of the anti-counterfeiting system is automatically jumped to;
when the webpage is jumped, the unique code content 12345 carried behind the website is transmitted to a server of the anti-counterfeiting system for analysis:
in the analysis process, the server can call the encryption algorithm of the data transformation module in the anti-counterfeiting system again, 12345 is calculated to be corresponding to 000, and the corresponding special-shaped character is found in the comparison table, so that the result is calculated.
The server can inquire the code scanning times, the code scanning time, the code scanning place and other information at the same time, and calculate the result.
After the analysis is successful, the analysis result is displayed on the query page of the mobile phone of the code scanner, and finally the code scanner obtains a page, displays the information such as the code scanning times, the code scanning time, the code scanning places and the like in the two-dimensional code, and prompts the form of the special-shaped character, as shown in fig. 2. At this time, the consumer can compare with naked eyes, and whether the real object is consistent with the result on the query page or not.
In one embodiment, a two-dimensional code based anti-counterfeiting system is provided, which is characterized in that the system comprises:
and a data receiving module: the method comprises the steps of receiving product original data input by a user;
anti-counterfeiting system storage module: the anti-counterfeiting system is used for storing the anti-counterfeiting system;
and a data calling module: the anti-counterfeiting system is used for calling the anti-counterfeiting system according to the original product data input by the user to generate a first special-shaped character sequence corresponding to the original product data; the first special-shaped character sequence is used for being jet-printed on the surface of the product outer package;
the two-dimensional code generation module: combining the original data of the product input by the user and received by the data receiving module with the address of the digital anti-counterfeiting system storage module to generate an anti-counterfeiting two-dimensional code; the anti-counterfeiting two-dimensional code is used for being spray-printed on the surface of the product outer package.
For a specific limitation of a two-dimensional code based anti-counterfeiting system, reference may be made to the limitation of a two-dimensional code based anti-counterfeiting method, and the description thereof will not be repeated here. All or part of each module in the two-dimensional code-based anti-counterfeiting system can be realized by software, hardware and a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a server. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by the processor to realize the anti-counterfeiting method based on the two-dimension code.
In an embodiment, a computer readable storage medium is also provided, on which a computer program is stored, involving all or part of the flow of the method of the above embodiment.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, or the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples merely represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the invention. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application is to be determined by the claims appended hereto.

Claims (9)

1. The anti-counterfeiting method based on the two-dimensional code is characterized by comprising the following steps of:
receiving input product original data;
invoking a preset anti-counterfeiting system to generate a first special-shaped character sequence corresponding to the original data of the product;
combining the input product original data with the storage address of the anti-counterfeiting system, and generating an anti-counterfeiting two-dimensional code; the first special-shaped character sequence and the anti-counterfeiting two-dimensional code are used for being jet-printed on the surface of the product outer package; when the anti-counterfeiting two-dimensional code is used for being scanned by a user, the anti-counterfeiting system can be called according to the address of the anti-counterfeiting system, and a second special-shaped character sequence is generated according to the original data of the product.
2. The two-dimensional code-based anti-counterfeiting method according to claim 1, wherein the anti-counterfeiting system comprises a data conversion module and a special-shaped character matching module.
3. The two-dimensional code based anti-counterfeiting method according to claim 2, wherein the calling the preset anti-counterfeiting system to generate the first special-shaped character corresponding to the original data of the product comprises:
calling a data conversion module to convert the original data of the product to obtain anti-counterfeiting characteristic data;
invoking a special-shaped character matching module to search special-shaped characters corresponding to each character in the anti-counterfeiting characteristic data in sequence to obtain a first special-shaped character sequence; the special-shaped character matching module is pre-stored with a special-shaped character library comparison table.
4. The two-dimensional code based anti-counterfeiting method according to claim 3, wherein the character comparison table is established by the following steps:
determining initial characters in the character pair label table, respectively acquiring ascii code values corresponding to the initial characters, and sorting for the first time from large to small according to the acquired ascii code values corresponding to the initial characters, and marking the first sequence as a first ascii code value sequence; the initial character comprises numbers 0-9, uppercase letters A-Z and lowercase letters a-Z;
performing second sorting on the ascii code values corresponding to the initial characters according to set conditions, and marking the second sorting as a second ascii code value sequence; the setting conditions include: dividing the ascii code values corresponding to all initial characters by a second set value and obtaining remainder, sorting the corresponding ascii code values according to the obtained remainder values from small to large, and arranging according to the ascii code values from large to small when the remainder values are the same;
sequencing the initial characters according to the sequencing positions of the corresponding ascii code values in the second ascii code value sequence to obtain a third initial character sequence; and correlating the third initial character sequence with the numbers of the same ordering positions in the first ascii code value sequence one by one, wherein the obtained correlation table is a character comparison table.
5. The two-dimensional code based anti-counterfeiting method according to claim 4, wherein the calling the data transformation module to transform the original data to obtain the anti-counterfeiting characteristic data comprises:
searching for first transformation data of an ascii code value corresponding to each character in the original data of the product respectively;
searching initial characters corresponding to each character in the first transformation data when the character is taken as an initial character corresponding value based on the character comparison table, and recording all acquired initial characters as second transformation data;
searching a corresponding ascii code value of each character in the second transformation data;
adding even numbers in all the ascii code values of the second transformation data to obtain a first sum, adding odd numbers in all the ascii code values of the second transformation data to obtain a second sum, and adding all the ascii code values of the second transformation data to obtain a third sum;
dividing the first sum, the second sum and the third sum by a first set value in turn, taking remainder, and combining the remainder obtained in turn to obtain the anti-counterfeiting characteristic data.
6. The two-dimensional code-based anti-counterfeiting method according to claim 3, wherein the establishment of the special-shaped character library comparison table is realized by respectively designing corresponding special-shaped characters for numbers 0-100.
7. A two-dimensional code based anti-counterfeiting system, the system comprising:
and a data receiving module: the method comprises the steps of receiving product original data input by a user;
anti-counterfeiting system storage module: the anti-counterfeiting system is used for storing the anti-counterfeiting system;
and a data calling module: the anti-counterfeiting system is used for calling the anti-counterfeiting system according to the original product data input by the user to generate a first special-shaped character sequence corresponding to the original product data; the first special-shaped character sequence is used for being jet-printed on the surface of the product outer package;
the two-dimensional code generation module: combining the original data of the product input by the user and received by the data receiving module with the address of the digital anti-counterfeiting system storage module to generate an anti-counterfeiting two-dimensional code; the anti-counterfeiting two-dimensional code is used for being spray-printed on the surface of the product outer package.
8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 6 when the computer program is executed.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
CN202311434201.8A 2023-10-31 2023-10-31 Two-dimensional code-based anti-counterfeiting method and system Active CN117745299B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311434201.8A CN117745299B (en) 2023-10-31 2023-10-31 Two-dimensional code-based anti-counterfeiting method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311434201.8A CN117745299B (en) 2023-10-31 2023-10-31 Two-dimensional code-based anti-counterfeiting method and system

Publications (2)

Publication Number Publication Date
CN117745299A true CN117745299A (en) 2024-03-22
CN117745299B CN117745299B (en) 2024-07-19

Family

ID=90279990

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311434201.8A Active CN117745299B (en) 2023-10-31 2023-10-31 Two-dimensional code-based anti-counterfeiting method and system

Country Status (1)

Country Link
CN (1) CN117745299B (en)

Citations (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103257977A (en) * 2012-02-21 2013-08-21 阿里巴巴集团控股有限公司 Method and device for obtaining identification numbers
WO2014154109A1 (en) * 2013-03-26 2014-10-02 ***股份有限公司 Generating method, verifying method for electronic bill with anti-fake two dimension (2d) code and system for same
CN104091519A (en) * 2014-07-04 2014-10-08 李峰 Character anti-fake structure and manufacturing method thereof
CN104992208A (en) * 2015-06-30 2015-10-21 合肥中玛信息科技有限公司 Anti-counterfeiting method through comparison identification with encryption patterns by use of two-dimensional codes
CN105184595A (en) * 2015-11-02 2015-12-23 罗翔宇 Mobile internet big data analysis technique based two-dimension code anti-counterfeiting cloud system and application method thereof
CN105930892A (en) * 2016-04-22 2016-09-07 深圳活悦网络科技有限公司 Variable logo two-dimensional code anti-counterfeiting method and system
WO2016169423A1 (en) * 2015-04-20 2016-10-27 信码互通(北京)科技有限公司 Data authenticity identification method for safety check of two-dimensional code
CN106779739A (en) * 2016-12-01 2017-05-31 联信摩贝软件(北京)有限公司 Antiforge system and method that a kind of combination two-dimensional code scanning technology is realized
CN106991461A (en) * 2017-03-03 2017-07-28 深圳市中选科技有限公司 A kind of code and its generation method, method for anti-counterfeit
WO2018027337A1 (en) * 2016-08-10 2018-02-15 沈洪德 Internet-based multi-level two-dimensional code anti-counterfeiting method, device and system
US20180121933A1 (en) * 2016-10-28 2018-05-03 Dande Image Master Co., Ltd., Zhuhai Inspection system and inspection method for commodity uniqueness confirmation
WO2018103756A1 (en) * 2016-12-09 2018-06-14 北京大码技术有限公司 Combined two-dimensional code anti-counterfeiting system and method, combined two-dimensional code and reading apparatus
CN109284803A (en) * 2018-11-19 2019-01-29 南通大学 A kind of commodity anti-counterfeit two-dimensional bar code generation method
CN110348855A (en) * 2019-03-18 2019-10-18 王政铭 A kind of code group anti-counterfeiting technology that any plain code private mark group is constituted
CN111368960A (en) * 2020-03-04 2020-07-03 合肥量芯科技有限公司 Quantum anti-counterfeiting two-dimensional code generation method and scanning method
CN111612476A (en) * 2020-05-09 2020-09-01 艾斯芸防伪科技(福建)有限公司 Secondary check anti-counterfeiting method, device, equipment and storage medium
CN113869913A (en) * 2021-09-10 2021-12-31 深圳市太美亚电子科技有限公司 Anti-counterfeiting method, server, system, two-dimensional code generation method and electronic product
CN114861237A (en) * 2022-04-29 2022-08-05 山东泰宝信息科技集团有限公司 Method, system, equipment and storage medium for generating anti-counterfeiting code by product number
CN115293311A (en) * 2022-10-08 2022-11-04 北京微点科学技术有限公司 Color watermark anti-counterfeiting method and device based on micro-point code
CN115329919A (en) * 2022-10-08 2022-11-11 北京微点科学技术有限公司 Random additional point anti-counterfeiting method and device based on micro-point code
CN115759161A (en) * 2022-11-22 2023-03-07 南京环印防伪科技有限公司 Two-dimensional code anti-counterfeiting method, two-dimensional code anti-counterfeiting code generation system and verification system
CN115860033A (en) * 2023-01-31 2023-03-28 北京微点科学技术有限公司 Anti-counterfeiting method and device for color partition micro-point code identification capable of grading and identifying counterfeiting
CN115994769A (en) * 2018-04-16 2023-04-21 盈多伙伴(北京)科技有限公司 Anti-counterfeiting method and device for commodity identification and verification method and device for commodity authenticity
CN116681098A (en) * 2023-06-07 2023-09-01 上海中商网络股份有限公司 Method and system for generating anti-counterfeiting mark image based on two-dimensional code generation

Patent Citations (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103257977A (en) * 2012-02-21 2013-08-21 阿里巴巴集团控股有限公司 Method and device for obtaining identification numbers
WO2014154109A1 (en) * 2013-03-26 2014-10-02 ***股份有限公司 Generating method, verifying method for electronic bill with anti-fake two dimension (2d) code and system for same
CN104091519A (en) * 2014-07-04 2014-10-08 李峰 Character anti-fake structure and manufacturing method thereof
WO2016169423A1 (en) * 2015-04-20 2016-10-27 信码互通(北京)科技有限公司 Data authenticity identification method for safety check of two-dimensional code
CN104992208A (en) * 2015-06-30 2015-10-21 合肥中玛信息科技有限公司 Anti-counterfeiting method through comparison identification with encryption patterns by use of two-dimensional codes
CN105184595A (en) * 2015-11-02 2015-12-23 罗翔宇 Mobile internet big data analysis technique based two-dimension code anti-counterfeiting cloud system and application method thereof
CN105930892A (en) * 2016-04-22 2016-09-07 深圳活悦网络科技有限公司 Variable logo two-dimensional code anti-counterfeiting method and system
WO2018027337A1 (en) * 2016-08-10 2018-02-15 沈洪德 Internet-based multi-level two-dimensional code anti-counterfeiting method, device and system
US20180121933A1 (en) * 2016-10-28 2018-05-03 Dande Image Master Co., Ltd., Zhuhai Inspection system and inspection method for commodity uniqueness confirmation
CN106779739A (en) * 2016-12-01 2017-05-31 联信摩贝软件(北京)有限公司 Antiforge system and method that a kind of combination two-dimensional code scanning technology is realized
WO2018103756A1 (en) * 2016-12-09 2018-06-14 北京大码技术有限公司 Combined two-dimensional code anti-counterfeiting system and method, combined two-dimensional code and reading apparatus
CN106991461A (en) * 2017-03-03 2017-07-28 深圳市中选科技有限公司 A kind of code and its generation method, method for anti-counterfeit
CN115994769A (en) * 2018-04-16 2023-04-21 盈多伙伴(北京)科技有限公司 Anti-counterfeiting method and device for commodity identification and verification method and device for commodity authenticity
CN109284803A (en) * 2018-11-19 2019-01-29 南通大学 A kind of commodity anti-counterfeit two-dimensional bar code generation method
CN110348855A (en) * 2019-03-18 2019-10-18 王政铭 A kind of code group anti-counterfeiting technology that any plain code private mark group is constituted
CN111368960A (en) * 2020-03-04 2020-07-03 合肥量芯科技有限公司 Quantum anti-counterfeiting two-dimensional code generation method and scanning method
CN111612476A (en) * 2020-05-09 2020-09-01 艾斯芸防伪科技(福建)有限公司 Secondary check anti-counterfeiting method, device, equipment and storage medium
CN113869913A (en) * 2021-09-10 2021-12-31 深圳市太美亚电子科技有限公司 Anti-counterfeiting method, server, system, two-dimensional code generation method and electronic product
CN114861237A (en) * 2022-04-29 2022-08-05 山东泰宝信息科技集团有限公司 Method, system, equipment and storage medium for generating anti-counterfeiting code by product number
CN115293311A (en) * 2022-10-08 2022-11-04 北京微点科学技术有限公司 Color watermark anti-counterfeiting method and device based on micro-point code
CN115329919A (en) * 2022-10-08 2022-11-11 北京微点科学技术有限公司 Random additional point anti-counterfeiting method and device based on micro-point code
CN115759161A (en) * 2022-11-22 2023-03-07 南京环印防伪科技有限公司 Two-dimensional code anti-counterfeiting method, two-dimensional code anti-counterfeiting code generation system and verification system
CN115860033A (en) * 2023-01-31 2023-03-28 北京微点科学技术有限公司 Anti-counterfeiting method and device for color partition micro-point code identification capable of grading and identifying counterfeiting
CN116681098A (en) * 2023-06-07 2023-09-01 上海中商网络股份有限公司 Method and system for generating anti-counterfeiting mark image based on two-dimensional code generation

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
朱丽华: "二维码防伪查询***的设计与实现", 《信息与电脑(理论版)》, no. 2, 25 January 2018 (2018-01-25) *
涂辉: "基于.net QRCoder实现的二维码", 《中国自动识别技术》, no. 5, 15 October 2019 (2019-10-15) *
王毅: "论二维码技术与防伪技术的结合之道", 《标签技术》, no. 02, 20 February 2016 (2016-02-20) *

Also Published As

Publication number Publication date
CN117745299B (en) 2024-07-19

Similar Documents

Publication Publication Date Title
KR102122373B1 (en) Method and apparatus for obtaining user portrait
US20160171627A1 (en) Processing electronic documents for invoice recognition
CN109409349B (en) Credit certificate authentication method, credit certificate authentication device, credit certificate authentication terminal and computer readable storage medium
CN107852412A (en) For phishing and the system and method for brand protection
CN106875303A (en) The method and apparatus for realizing electronic protocol signing
CN107302645A (en) A kind of image processing apparatus and its image processing method
CN107392270B (en) Two-dimensional code generation method
CN104618350A (en) Generation method of image checking code
CN113610545A (en) Product anti-counterfeiting method, system, equipment and storage medium
CN109454997B (en) Two-dimensional code printing generation system with electronic texture
CN104657479A (en) Method and system for displaying updated data on webpage
CN105184595A (en) Mobile internet big data analysis technique based two-dimension code anti-counterfeiting cloud system and application method thereof
CN114529933A (en) Contract data difference comparison method, device, equipment and medium
CN117745299B (en) Two-dimensional code-based anti-counterfeiting method and system
US20210397798A1 (en) Information processing apparatus and non-transitory computer readable medium
US10691884B2 (en) System and method for cheque image data masking using data file and template cheque image
CN109214362A (en) Bill processing method and relevant device
US8973843B2 (en) System for generating an incrementally completed security mark
CN113160126B (en) Hardware Trojan detection method, hardware Trojan detection device, computer equipment and storage medium
US8864041B2 (en) System for generating an incrementally completed 2D security mark
CN107944878A (en) A kind of verification method of anti-counterfeiting information, collecting device and server
CN113674083A (en) Internet financial platform credit risk monitoring method, device and computer system
JP2022019445A (en) Image processing apparatus, method, and program
US20210142133A1 (en) Reflection and inversion invariant codes
CN105574454A (en) Management method and device of two-dimensional code information

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