CN113159251A - Strong-encryption anti-counterfeiting anti-channel conflict commodity code and manufacturing method thereof - Google Patents

Strong-encryption anti-counterfeiting anti-channel conflict commodity code and manufacturing method thereof Download PDF

Info

Publication number
CN113159251A
CN113159251A CN202110372029.2A CN202110372029A CN113159251A CN 113159251 A CN113159251 A CN 113159251A CN 202110372029 A CN202110372029 A CN 202110372029A CN 113159251 A CN113159251 A CN 113159251A
Authority
CN
China
Prior art keywords
code
sequence
check
commodity
rule
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
CN202110372029.2A
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN202110372029.2A priority Critical patent/CN113159251A/en
Publication of CN113159251A publication Critical patent/CN113159251A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K19/06009Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking
    • G06K19/06037Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking multi-dimensional coding
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • 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

Abstract

The invention discloses a strong-encryption anti-counterfeiting anti-channel conflict commodity code and a manufacturing method thereof, wherein the commodity code is in a two-dimensional code form, and the commodity code carries link information which is formed by adding an encrypted intermediate code into a link website; the intermediate code consists of a sequence code and a check code, and the check code comprises an insertion bit rule and a scrambling rule; and (4) scrambling and recombining the sequence codes according to rules, then adding the attribute codes and inserting the attribute codes into the check codes so as to form the intermediate codes. By adopting the commodity code and the manufacturing method thereof, the commodity code has better encryption effect and stronger goods fleeing prevention capability.

Description

Strong-encryption anti-counterfeiting anti-channel conflict commodity code and manufacturing method thereof
Technical Field
The invention relates to the technical field of anti-counterfeiting commodity codes, in particular to a strong-encryption anti-counterfeiting anti-channel conflict commodity code and a manufacturing method thereof.
Background
In order to distinguish products of the same type in the market and prevent counterfeiting and goods fleeing, manufacturers generally spray-print commodity codes on the products. The commodity codes are mainly divided into two categories, namely bar codes and two-dimensional codes, and because the bar codes carry less information, the commodity codes gradually adopt a two-dimensional code form.
The goods code comprises link website information, a check bit and sequence code information after being analyzed, and the check bit and the sequence code information are connected behind the website information. Some high-value products also use a mixed ordering of multiple sets of check bits and sequence codes, and then further encrypt the check bits and sequence codes. Although the encryption method is good in encryption, the encryption method is common and easy to crack violently, and therefore a large amount of channel conflict is generated.
Disclosure of Invention
The invention aims to provide a strong-encryption anti-counterfeiting anti-channel conflict commodity code and a manufacturing method thereof, and solves the problem that the commodity code is easy to crack violently.
In order to achieve the purpose, the invention provides a strong-encryption anti-counterfeiting anti-channel conflict commodity code which is in a two-dimensional code form, wherein the commodity code carries link information, the link information is formed by adding an encrypted intermediate code into a link website, and the intermediate code consists of a sequence code and a check code; the sequence code is an outgoing factory code of the product, the check code is an n-bit digital code randomly generated by the system, and the first bit is not 0; the sequence code is equally divided into n segments, then the sequence code segments are rearranged according to the size of each digit of the check code to form a recombined code, the front end of the recombined code is added with the attribute code and is inserted into the back of the insertion bit of the check code, so that a middle code is formed, and the insertion bit is the first digit of the check code.
Preferably, the sequence code is composed of numbers and letters.
Preferably, the link information is formed by adding the intermediate code to the link website after being encrypted by 3 DES.
Preferably, the commodity code is divided into a main code and an auxiliary code, the colors of the data codes of the main code and the auxiliary code are opposite, and the colors of the color blocks in other areas are the same.
The invention also provides a manufacturing method of the strong encryption anti-counterfeiting anti-channel conflict commodity code, which comprises the following steps:
s1: generating a check code and a sequence code, wherein the check code and the sequence code are generated by a system, the check code is an n-bit digital code of a random sequence, the first bit of the n-bit digital code is not 0, and the sequence code is an outgoing factory code of a product;
s2: dividing the fragments, and equally dividing the sequence code into n fragments;
s3: rule generation, generating insertion bit rule P according to first digit of check code1Generating a scrambling rule { P) from the check code1,P2,P3,......,Pn};
S4: generating recombination code, recombining sequence code segments according to a scrambling rule, and correspondingly scrambling the ith sequence code segmentRule PiI +1 th sequence code segment corresponds to a scrambling rule Pi+1(ii) a If Pi>Pi+1If so, the ith sequence code segment is inserted into the (i + 1) th sequence code segment;
s5: adding an attribute code, namely adding a product attribute code at the front end of the recombination code;
s6: generating intermediate code, inserting recombination code carrying attribute information into P-th of check code according to insertion position rule1Bit and P1Between +1 bits, if P1+1>n, directly inserting the recombination code carrying the attribute information into the rear end of the check code;
s7: the system encryption is carried out, and data encryption is carried out on the intermediate code according to an encryption rule;
s8: synthesizing a link, and merging the encrypted intermediate code into a link website;
s9: and (4) form generation, namely outputting the link in a two-dimensional code form.
Preferably, the step S8 is divided into a main code generation step and a sub code generation step, the main code is generated by directly converting the link into a two-dimensional code form, and the sub code is formed by inverting the data bit color block of the main code on the basis of the main code.
According to the strong-encryption anti-counterfeiting anti-channel conflict commodity code and the manufacturing method thereof, the two-dimensional code information is encrypted and improved to a new height by combining the check code and the sequence code and combining 3DES encryption, so that the anti-counterfeiting performance is higher. The anti-counterfeiting performance of the commodity code is further ensured by skillfully combining the main code and the auxiliary code.
Drawings
FIG. 1 is a flow chart of commodity code generation in an embodiment of the present invention;
FIG. 2 is a flowchart of midamble generation in an embodiment of the present invention;
FIG. 3 is a flow chart of merchandise code query in an embodiment of the present invention;
FIG. 4 is a flowchart of a serial code lookup in an embodiment of the present invention;
fig. 5 is a two-dimensional code image of a conventional structure.
Reference numerals
1. The version information color block; 2. positioning the color blocks; 3. a blank region; 4. a position detection image patch; 5. correcting the pattern color blocks; 6. format information color blocks; 7. and (5) data code blocks.
Detailed Description
The technical scheme of the invention is further explained by combining the drawings and the embodiment.
As shown in fig. 1-5, the strong encryption anti-counterfeiting anti-channel conflict commodity code is in a two-dimensional code form, and carries link information, wherein the link information is formed by adding an intermediate code after being encrypted by 3DES to a link website.
The intermediate code consists of a sequence code and a check code, wherein the sequence code is an factory code of a product, the check code is an n-bit digital code randomly generated by a system, and the first bit is not 0. In order to enhance the anti-counterfeiting property, the sequence code consists of numbers and letters.
The sequence code is equally divided into n segments, then the sequence code segments are rearranged according to the check code to form a recombined code, and the attribute code is added at the front end of the recombined code and inserted into the insertion position of the check code, thereby forming the intermediate code. The insertion bit is the first digit of the check code.
The specific generation process of the commodity code is as follows:
s1: generating a check code and a sequence code, wherein the check code and the sequence code are generated by a system, the check code is an n-bit digital code of a random sequence, the first bit of the n-bit digital code is not 0, and the sequence code is an outgoing factory code of a product;
s2: dividing the fragments, and equally dividing the sequence code into n fragments;
s3: rule generation, generating insertion bit rule P according to first digit of check code1Generating a scrambling rule { P) from the check code1,P2,P3,......,Pn};
S4: generating recombination code, recombining sequence code segments according to a scrambling rule, wherein the ith sequence code segment corresponds to the scrambling rule PiI +1 th sequence code segment corresponds to a scrambling rule Pi+1(ii) a If Pi>Pi+1If so, the ith sequence code segment is inserted into the (i + 1) th sequence code segment;
s5: adding an attribute code, namely adding a product attribute code at the front end of the recombination code;
s6: generating intermediate code, inserting recombination code carrying attribute information into P-th of check code according to insertion position rule1Bit and P1Between +1 bits, if P1+1>n, directly inserting the recombination code carrying the attribute information into the rear end of the check code;
s7: the system encryption is carried out, and data encryption is carried out on the intermediate code according to an encryption rule;
s8: synthesizing a link, and merging the encrypted intermediate code into a link website;
s9: and (4) form generation, namely outputting the link in a two-dimensional code form.
The step S8 includes generating a main code and generating an auxiliary code, where the main code is generated by directly converting a link into a two-dimensional code form, and the auxiliary code is formed by inverting a data bit color block of the main code based on the main code. Corresponding to the two-dimensional code form of fig. 5, the version information color blocks 1, the positioning bar color blocks 2, the blank region 3, the position detection image color blocks 4, the correction pattern color blocks 5, and the format information color blocks 6 of the main code and the auxiliary code are all the same in position color, but the data code color blocks 7 are opposite in color.
For ease of understanding, the present application provides a specific example, the encryption process is as follows:
the check code generated by the system is 39362, and the sequence code is 12345A678901B2345678
The rule of insertion bit is 3, and the rule of scrambling is {3, 9, 3, 6, 2}
The sequence code segment is 12345A678901B2345678
The fragment after the disruption is 567812348901B2345A67
C567812348901B2345A67 after filling in item attribute code (SKU) C
Intermediate code 393C567812348901B2345A6762
The commodity code information is as follows (omitting 3DES encryption process)
https://abc.example.com/api/sc=393C567812348901B2345A6762
If the check code is 79362, the intermediate code is 79362C56788901B23412345A 67.
The decryption process is as follows (ignoring 3DES decryption):
intermediate code 393C567812348901B2345A6762
According to the first 3, it can be seen that the attribute code and the reconfiguration code start from the fourth bit, so the attribute code is C, the reconfiguration code is 567812348901B2345a67, and the check code is 39362.
The disorder rule is {3, 9, 3, 6, 2}
The sequence code is 12345A678901B2345678
When the consumer inquires about the authenticity, the commodity code is firstly scanned by using a two-dimensional code scanning tool. If the consumer scans the main code, the interface program can directly identify the website link; if the consumer scans the auxiliary code, the website address identified by the interface program is linked wrongly or can not be identified, and at the moment, the interface program automatically turns over the commodity code color block and then identifies again.
And if the website link is not the link set by the manufacturer, automatically judging the product as a pirate product.
If the website link is correct, the server performs 3DES decoding on the commodity code information, then sequentially extracts the intermediate code and the sequence code, and finally queries the sequence code in a database. If the serial code does not exist, the product is automatically regarded as a pirate product. If the sequence code exists, further inquiring whether the sequence code is the first inquiry. If the query is the first query, the query is directly regarded as a genuine product, and if the query is the multiple queries, a prompt (genuine product, Nth query) is provided for the user.
In conclusion, by adopting the strong-encryption anti-counterfeiting anti-channel conflict commodity code with the structure and the manufacturing method thereof, the sequence code is further encrypted through the check code on the basis of the combination encryption of the existing check code and the sequence code, and finally, the anti-counterfeiting of the commodity code is improved to a new height by using a 3DES encryption mode, so that the anti-counterfeiting anti-channel conflict capability is obviously improved.
The above is a specific embodiment of the present invention, but the scope of the present invention should not be limited thereto. Any changes or substitutions that can be easily made by those skilled in the art within the technical scope of the present invention are included in the protection scope of the present invention, and therefore, the protection scope of the present invention is subject to the protection scope defined by the appended claims.

Claims (6)

1. The utility model provides a strong anti-fake goods of scurrying code of encrypting, commodity code are the two-dimensional code form, carry the linking information on the commodity code, its characterized in that: the link information is formed by adding encrypted intermediate code to a link website, wherein the intermediate code consists of a sequence code and a check code; the sequence code is an outgoing factory code of the product, the check code is an n-bit digital code randomly generated by the system, and the first bit is not 0; the sequence code is equally divided into n segments, then the sequence code segments are rearranged according to the size of each digit of the check code to form a recombined code, the front end of the recombined code is added with the attribute code and is inserted into the back of the insertion bit of the check code, so that a middle code is formed, and the insertion bit is the first digit of the check code.
2. The strong encryption anti-counterfeiting anti-channel conflict commodity code according to claim 1, which is characterized in that: the sequence code is composed of numbers and letters.
3. The strong encryption anti-counterfeiting anti-channel conflict commodity code according to claim 1, which is characterized in that: the link information is formed by adding the intermediate code after being encrypted by 3DES into a link website.
4. The strong encryption anti-counterfeiting anti-channel conflict commodity code according to claim 1, which is characterized in that: the commodity code is divided into a main code and an auxiliary code, the colors of the data codes of the main code and the auxiliary code are opposite, and the colors of the color blocks in other areas are the same.
5. The method for manufacturing the strong encryption anti-counterfeiting anti-channel conflict commodity code according to the claims 1 to 4, which is characterized by comprising the following steps:
s1: generating a check code and a sequence code, wherein the check code and the sequence code are generated by a system, the check code is an n-bit digital code of a random sequence, the first bit of the n-bit digital code is not 0, and the sequence code is an outgoing factory code of a product;
s2: dividing the fragments, and equally dividing the sequence code into n fragments;
s3: rule generation according to check codeFirst digit generation insertion rule P1Generating a scrambling rule { P) from the check code1,P2,P3,......,Pn};
S4: generating recombination code, recombining sequence code segments according to a scrambling rule, wherein the ith sequence code segment corresponds to the scrambling rule PiI +1 th sequence code segment corresponds to a scrambling rule Pi+1(ii) a If Pi>Pi+1If so, the ith sequence code segment is inserted into the (i + 1) th sequence code segment;
s5: adding an attribute code, namely adding a product attribute code at the front end of the recombination code;
s6: generating intermediate code, inserting recombination code carrying attribute information into P-th of check code according to insertion position rule1Bit and P1Between +1 bits, if P1+1>n, directly inserting the recombination code carrying the attribute information into the rear end of the check code;
s7: the system encryption is carried out, and data encryption is carried out on the intermediate code according to an encryption rule;
s8: synthesizing a link, and merging the encrypted intermediate code into a link website;
s9: and (4) form generation, namely outputting the link in a two-dimensional code form.
6. The method for manufacturing the strong encryption anti-counterfeiting anti-channel conflict commodity code according to claim 5, characterized in that: and step S8, the method comprises main code generation and auxiliary code generation, wherein the main code is generated by directly converting the link into a two-dimensional code form, and the auxiliary code is formed by inverting the data bit color block of the main code on the basis of the main code.
CN202110372029.2A 2021-04-07 2021-04-07 Strong-encryption anti-counterfeiting anti-channel conflict commodity code and manufacturing method thereof Pending CN113159251A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110372029.2A CN113159251A (en) 2021-04-07 2021-04-07 Strong-encryption anti-counterfeiting anti-channel conflict commodity code and manufacturing method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110372029.2A CN113159251A (en) 2021-04-07 2021-04-07 Strong-encryption anti-counterfeiting anti-channel conflict commodity code and manufacturing method thereof

Publications (1)

Publication Number Publication Date
CN113159251A true CN113159251A (en) 2021-07-23

Family

ID=76888876

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110372029.2A Pending CN113159251A (en) 2021-04-07 2021-04-07 Strong-encryption anti-counterfeiting anti-channel conflict commodity code and manufacturing method thereof

Country Status (1)

Country Link
CN (1) CN113159251A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101895390A (en) * 2010-02-05 2010-11-24 上海复旦天臣新技术有限公司 Method, device and system for encryption and decryption
CN102184506A (en) * 2011-05-10 2011-09-14 南通大学 Digital anti-counterfeiting method based on chaos password encryption
CN106548353A (en) * 2016-09-30 2017-03-29 昆明理工大学 A kind of commodity counterfeit prevention code is generated and verification method
CN107507012A (en) * 2017-09-08 2017-12-22 胡辉萍 A kind of method and system verified commodity true and false and the quick after-sale service of commodity is provided
CN115358362A (en) * 2022-05-10 2022-11-18 江苏工程职业技术学院 Garbage classification two-dimensional code generation method based on chaotic encryption

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101895390A (en) * 2010-02-05 2010-11-24 上海复旦天臣新技术有限公司 Method, device and system for encryption and decryption
CN102184506A (en) * 2011-05-10 2011-09-14 南通大学 Digital anti-counterfeiting method based on chaos password encryption
CN106548353A (en) * 2016-09-30 2017-03-29 昆明理工大学 A kind of commodity counterfeit prevention code is generated and verification method
CN107507012A (en) * 2017-09-08 2017-12-22 胡辉萍 A kind of method and system verified commodity true and false and the quick after-sale service of commodity is provided
CN115358362A (en) * 2022-05-10 2022-11-18 江苏工程职业技术学院 Garbage classification two-dimensional code generation method based on chaotic encryption

Similar Documents

Publication Publication Date Title
AU2012345478B2 (en) A method of generation and transmission of secure tokens based on tokens generated by TRNG and split into shares and the system thereof
AU2005255946C1 (en) Systems and methods for digital content security
CN103401679B (en) Method for encrypting and decoding two-dimensional codes
Wajgade et al. Enhancing data security using video steganography
CN103093361A (en) Commodity double-layer anti-fake method based on technologies of internet of things
CN105099712A (en) Data encryption method based on double-code verification
US20160234191A1 (en) Method for transmitting authentication password and method for acquiring authentication password by mobile terminal
Yang et al. ARTcode: preserve art and code in any image
CN106779739B (en) Anti-counterfeiting system and method realized by combining two-dimensional code scanning technology
CN102968726A (en) Two-dimensional code network anti-fake method with secondary encryption characteristics
Tabatabaei et al. Secure and robust two-phase image authentication
CN106921485A (en) Encrypting and decrypting method based on matrix operation
CN108960387B (en) Anti-counterfeiting two-dimensional code and generation and identification method thereof
Rejani et al. Pixel pattern based steganography on images
CN105119924A (en) Information transmission method
Wang et al. Application of chaotic Josephus scrambling and RNA computing in image encryption
Ye et al. Noise-free thumbnail-preserving image encryption based on MSB prediction
Arora et al. Image steganography using enhanced LSB substitution technique
CN112929151B (en) Entity alignment method based on privacy protection and computer storage medium
CN113159251A (en) Strong-encryption anti-counterfeiting anti-channel conflict commodity code and manufacturing method thereof
Roy et al. A hybrid secured approach combining LSB steganography and AES using mosaic images for ensuring data security
CN108305298A (en) A kind of image based on the only matrix index of number can restore information concealing method
US7181405B1 (en) Electronic tender system
CN108596309B (en) Two-dimensional code generation and verification method
CN115511030A (en) Anti-counterfeiting verification method and device and electronic equipment

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