CN108830366A - A kind of generation method and system of anti-fake spiral coloured silk code - Google Patents

A kind of generation method and system of anti-fake spiral coloured silk code Download PDF

Info

Publication number
CN108830366A
CN108830366A CN201810634694.2A CN201810634694A CN108830366A CN 108830366 A CN108830366 A CN 108830366A CN 201810634694 A CN201810634694 A CN 201810634694A CN 108830366 A CN108830366 A CN 108830366A
Authority
CN
China
Prior art keywords
code
color
product
spiral
logistics
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
CN201810634694.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.)
Guangzhou Baoshen Paper & Plastic Product Co Ltd
Original Assignee
Guangzhou Baoshen Paper & Plastic Product 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 Guangzhou Baoshen Paper & Plastic Product Co Ltd filed Critical Guangzhou Baoshen Paper & Plastic Product Co Ltd
Priority to CN201810634694.2A priority Critical patent/CN108830366A/en
Publication of CN108830366A publication Critical patent/CN108830366A/en
Pending legal-status Critical Current

Links

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
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K15/00Arrangements for producing a permanent visual presentation of the output data, e.g. computer output printers
    • G06K15/02Arrangements for producing a permanent visual presentation of the output data, e.g. computer output printers using printers
    • G06K15/18Conditioning data for presenting it to the physical printing elements
    • G06K15/1848Generation of the printable image
    • 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/06046Constructional details
    • G06K19/0614Constructional details the marking being selective to wavelength, e.g. color barcode or barcodes only visible under UV or IR
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/06Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols the encryption apparatus using shift registers or memories for block-wise or stream coding, e.g. DES systems or RC4; Hash functions; Pseudorandom sequence generators
    • H04L9/0618Block ciphers, i.e. encrypting groups of characters of a plain text message using fixed encryption transformation
    • H04L9/0625Block ciphers, i.e. encrypting groups of characters of a plain text message using fixed encryption transformation with splitting of the data block into left and right halves, e.g. Feistel based algorithms, DES, FEAL, IDEA or KASUMI
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/06Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols the encryption apparatus using shift registers or memories for block-wise or stream coding, e.g. DES systems or RC4; Hash functions; Pseudorandom sequence generators
    • H04L9/0618Block ciphers, i.e. encrypting groups of characters of a plain text message using fixed encryption transformation
    • H04L9/0631Substitution permutation network [SPN], i.e. cipher composed of a number of stages or rounds each involving linear and nonlinear transformations, e.g. AES algorithms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0861Generation of secret information including derivation or calculation of cryptographic keys or passwords
    • H04L9/0869Generation of secret information including derivation or calculation of cryptographic keys or passwords involving random numbers or seeds

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Storage Device Security (AREA)

Abstract

The invention belongs to information coding technique fields, and in particular to a kind of generation method and system of anti-fake spiral coloured silk code.The present invention passes through aes algorithm, the pattern acquiring product false proof code and logistics security code that DES algorithm and IDEA algorithm combine, then product spiral coloured silk code and two dimensional code and logistics spiral coloured silk code and two dimensional code are obtained respectively by defining color code, since each of spiral coloured silk code number has specific color, so it is very big to copy cost, the color of number can be by certified products production firm self-defining, also further difficulty is brought to counterfeiter, present invention combination spiral coloured silk code and two dimensional code, compared to it is traditional scan the two-dimensional code merely for can achieve better antifalse effect.

Description

A kind of generation method and system of anti-fake spiral coloured silk code
Technical field
The invention belongs to information coding technique fields, and in particular to a kind of generation method and system of anti-fake spiral coloured silk code.
Background technique
With the development of science and technology, the product of people's contact is more and more diversified, refines, and fraud technology makes respectively The appearance of the counterfeit best brand of product of kind, has greatly injured the interests of consumer.And it is directed to the appearance of these anti-fake products, each commodity Producer also has launched the anti-counterfeiting technology of product, such as bar code, anti-fake mark, and existing bar code, anti-fake mark It is only to do a simple label or individually progress two dimensional code setting, so that counterfeit producer is easily imitated, more The chaotic normal operation in market, so that consumer and producer have suffered huge loss.
Labeling is a kind of manufactured antifalsification label, certified products and printing some patterns, number or text in base Producer, can be by computer software, so that printing different anti-counterfeiting labels in the false proof layer of each anti-counterfeiting label when making labeling Know, labeling is usually applied to Commercial goods labels.Typically, label use be all single anti-counterfeiting mark such as:Single two dimensional code, SN Code etc. is anti-fake to carry out, and such method for anti-counterfeit is easy to be forged by people, such as:Adulterator only needs to carry out the list on duplication labeling A anti-counterfeiting mark can reach imitation and emit purpose, copy at low cost.
Summary of the invention
The object of the present invention is to provide the generation methods and system of a kind of anti-fake spiral coloured silk code.The present invention by aes algorithm, The pattern acquiring product false proof code and logistics security code that DES algorithm and IDEA algorithm combine, then by defining color code Product spiral coloured silk code and two dimensional code and logistics spiral coloured silk code and two dimensional code are obtained respectively, due to each number in spiral coloured silk code There is specific color, cost is very big so copying, and digital color can be by certified products production firm self-defining, also to counterfeit Person brings further difficulty, present invention combination spiral coloured silk code and two dimensional code, compared to traditional simple scan the two-dimensional code Speech can achieve better antifalse effect.
The technical scheme is that:
A kind of generation system of anti-fake spiral coloured silk code, including input unit, acquisition coding unit, code key generating unit, AES are obtained and are added Compact part, AES cutting part, DES obtain encryption unit, IDEA obtains encryption unit, color defines portion, spiral coloured silk code generating unit, two dimensional code Generating unit and printing portion;
Product information comprising logistics information is input to the acquisition coding unit by the input unit;
It is described obtain coding unit obtain the product information that is entered and according to pre-defined rule carry out coding generate it is corresponding Product ID;
The code key generating unit generates that be respectively used to aes algorithm, DES algorithm, the AES code key of IDEA algorithm, DES secret at random Key, IDEA code key;
The AES is obtained after encryption unit obtains product ID and AES code key and is carried out the operation of AES encryption algorithm, is added Ciphertext data;
Encryption data is divided into preceding encryption data and rear encryption data by the AES cutting part;
The DES is obtained and is carried out the operation of des encryption algorithm after encryption data and DES code key before encryption unit obtains, and obtains object Flow security code;
The IDEA is obtained and is carried out the operation of IDEA encryption algorithm after encryption data and IDEA code key after encryption unit obtains, and is obtained Product false proof code;
The color portion of definition defines color group, and color group includes multiple color codes, wherein each color code is right Answer a kind of color;
The spiral coloured silk code generating unit is according to logistics security code and corresponding color code, by each of logistics security code One color code of all random corresponding color group of number simultaneously generates corresponding logistics spiral coloured silk code;According to product false proof code and right The color code answered by a color code of all random corresponding color group of each bit digital of product false proof code and generates correspondence Product spiral coloured silk code;
Logistics security code and product false proof code are generated logistics two dimensional code and product two dimensional code by the two dimensional code generating unit;
The printing portion prints logistics spiral coloured silk code, logistics two dimensional code, product spiral coloured silk code and product two dimensional code.
A kind of generation method of anti-fake spiral coloured silk code, includes the following steps:
(1) coding is carried out according to pre-defined rule according to the product information comprising logistics information of input and generates corresponding production Product sequence number;
(2) it is secret to be respectively used to aes algorithm, DES algorithm, the AES code key of IDEA algorithm, DES code key, IDEA for random generation Key;
(3) product ID and AES code key carry out the operation of AES encryption algorithm, obtain encryption data;
(4) encryption data is divided into preceding encryption data and rear encryption data;
(5) operation of des encryption algorithm will be carried out after preceding encryption data and DES code key, obtain logistics security code;
(6) operation of IDEA encryption algorithm will be carried out after rear encryption data and IDEA code key, obtain product false proof code;
(7) color group is defined, color group includes multiple color codes, wherein each color code corresponds to a kind of color;
(8) according to logistics security code and corresponding color code, each bit digital of logistics security code is all corresponded at random One color code of color group simultaneously generates corresponding logistics spiral coloured silk code;According to product false proof code and corresponding color code, By a color code of all random corresponding color group of each bit digital of product false proof code and generate corresponding product spiral coloured silk Code;
(9) logistics security code and product false proof code are generated into logistics two dimensional code and product two dimensional code;
(10) logistics spiral coloured silk code, logistics two dimensional code, product spiral coloured silk code and product two dimensional code are printed.
Preferably, color group is in step (7):The corresponding color of color code 1 be it is red, color code 2 is corresponding green, face The corresponding indigo plant of color number 3, the corresponding Huang of color code 4, color code 5 are corresponding black.
Beneficial effects of the present invention are as follows:
Pattern acquiring product false proof code that invention is combined by aes algorithm, DES algorithm and IDEA algorithm and Logistics security code, then by define color code obtain respectively product spiral coloured silk code and two dimensional code and logistics spiral coloured silk code and Two dimensional code, since each of spiral coloured silk code number has specific color, so it is very big to copy cost, digital color can be with By certified products production firm self-defining, further difficulty, present invention combination spiral coloured silk code and two dimension also are brought to counterfeiter Code, compared to it is traditional scan the two-dimensional code merely for can achieve better antifalse effect.
Detailed description of the invention
Attached drawing 1 is the structural block diagram that anti-fake spiral coloured silk code generates system in the embodiment of the present invention;
Attached drawing 2 is AES encryption algorithm flow chart in the embodiment of the present invention;
Attached drawing 3 is des encryption algorithm flow chart in the embodiment of the present invention;
Attached drawing 4 is IDEA encryption algorithm flow chart in the embodiment of the present invention.
Specific embodiment
With reference to embodiment, technical solution of the present invention is described in further detail, but do not constituted pair Any restrictions of the invention.
Attached drawing 1 is the structural block diagram that anti-fake spiral coloured silk code generates system in the embodiment of the present invention.
As shown in Fig. 1, anti-fake spiral coloured silk code generates system and includes input unit, obtains coding unit, code key generating unit, AES Obtain encryption unit, AES cutting part, DES obtain encryption unit, IDEA obtain encryption unit, color define portion, spiral coloured silk code generating unit, Two dimensional code generating unit and printing portion.
During generating anti-fake spiral coloured silk code, obtains coding unit 2 and believed according to the product comprising logistics information of input unit 1 Breath carries out coding according to pre-defined rule and generates corresponding product ID;Code key generating unit 3 generates at random is respectively used to AES calculation Method, DES algorithm, the AES code key of IDEA algorithm, DES code key, IDEA code key;AES obtains encryption unit 4 for product ID and AES Code key carries out the operation of AES encryption algorithm, obtains encryption data;Encryption data is divided into preceding encryption data with after by AES cutting part 5 Encryption data;DES, which obtains encryption unit 6, the operation of des encryption algorithm is carried out after preceding encryption data and DES code key, and it is anti-to obtain logistics Pseudo-code;IDEA, which obtains encryption unit 7, the operation of IDEA encryption algorithm is carried out after rear encryption data and IDEA code key, obtains product false proof Code;Color defines portion 8 and defines color group, and color group includes multiple color codes, wherein each color code corresponds to a kind of face Color;Spiral coloured silk code generating unit 9 according to logistics security code and corresponding color code, by each bit digital of logistics security code all with One color code of machine corresponding color group simultaneously generates corresponding logistics spiral coloured silk code;According to product false proof code and corresponding color Number, by a color code of all random corresponding color group of each bit digital of product false proof code and generates corresponding product spiral shell Revolve color code;Logistics security code and product false proof code are generated logistics two dimensional code and product two dimensional code by two dimensional code generating unit 10;Printing Logistics spiral coloured silk code, logistics two dimensional code, product spiral coloured silk code and product two dimensional code are printed in portion 11.
Attached drawing 2 is AES encryption algorithm flow chart in the embodiment of the present invention;
AES obtains encryption unit 4 and obtains product ID and AES code key, carries out AES encryption algorithm fortune as shown in Fig. 2 It calculates, detailed process is:
The number of iterations Nr, i.e. 128 product IDs are determined according to the length of the length of product ID and AES code key AES code key with 128 determines that the number of iterations is 10 times.
(1) 10 extensions are carried out to AES code key and obtains the extension code key E of 10 groups of wheel code keys composition;
(2) XOR operation is carried out to product ID and the step-by-step of AES code key and obtains the 1st operation values C1;
(3) 9 AES encryption iteration are carried out to the 1st operation values C1 and obtains the 5th operation values C5.
(4) S box replacement operator is carried out to the 5th operation values C5 and obtains the 6th operation values C6;
(5) it carries out circulation shifting byte to the 6th every row of operation values C6 to operate to obtain the 7th operation values C7, i.e. the second row circulation is left Move 1, the third line ring shift left 2, the third line ring shift left 3;
(6) XOR operation is carried out to the 7th operation values and the 10th group of wheel code key E [10] step-by-step, obtains the encryption data M.
Wherein, the single AES encryption iteration in 10 AES encryption iteration includes the following steps:
(1) S box replacement operator is carried out to the 1st operation values C1 and obtains the 2nd operation values C2;
(2) it carries out circulation shifting byte to the 2nd every row of operation values C2 to operate to obtain the 3rd operation values C3, i.e. the second row circulation is left Move 1, the third line ring shift left 2, the third line ring shift left 3;
(3) mixed rank transformation is carried out to the 3rd operation values C3 to operate to obtain the 4th operation values C4, this is determined according to extension code key E The wheel code key E [i] of encryption iteration;
(4) XOR operation is carried out to the 4th operation values C4 and wheel code key E [i] step-by-step and obtains the 5th operation values C5.
AES encryption algorithm terminates to obtain encryption data M, subsequently into AES segmentation step:
AES cutting part 5 will be divided into two parts through the encrypted encryption data M of aes algorithm, i.e., preceding encryption data M1 is with after Encryption data M2.
Attached drawing 3 is des encryption algorithm flow chart in the embodiment of the present invention.
DES obtains encryption data M1 and DES code key before encryption unit 6 obtains, and carries out des encryption algorithm as shown in Fig. 3 The detailed process of operation, des encryption algorithm is:
(1) IP in-place computation is carried out to preceding encryption data M1 and obtains the 8th operation values C8, and the 8th operation values C8 is divided into Left data L and right data R;
(2) code key is carried out to DES code key to convert to obtain the DES code key group DS of 16 DES code keys composition;
(3) 16 des encryption iteration are carried out to left data L and right data R and obtains new left data NL and new right data NR;
(4) the new data N being made of new left data NL and new right data NR is subjected to last permutation function operation and obtains logistics Security code.
Wherein, the single des encryption iteration in 16 des encryption iteration includes the following steps:
(1) replacement operator is extended to right data L and obtains the 9th operation values C9, this is determined according to DES code key group DS The DES code key DS [i] of encryption iteration;
(2) the 9th operation values C9 and DES code key DS [i] is subjected to XOR operation and obtains the 10th operation knot value C10, and will 10th operation values C10 is divided into eight data blocks;
(3) S box replacement operator is carried out to eight data blocks respectively and obtains corresponding eight output datas;
(4) P box replacement operator is carried out to the 11st operation values C11 being made of eight output datas and obtains the 12nd operation values C12;
(5) XOR operation is carried out to the 12nd operation values C12 and left data L and obtains the 13rd operation values C13;
(6) it changes using left data L as new right data NR into next round using the 13rd operation values C13 as new left data NL Generation, des encryption algorithm terminate to obtain logistics security code.
Attached drawing 4 is IDEA encryption algorithm flow chart.
IDEA obtains encryption data M2 and IDEA code key after encryption unit 7 obtains, and carries out IDEA encryption as shown in Fig. 4 and calculates The detailed process of method operation, IDEA encryption algorithm is:
(1) operation is carried out to IDEA code key and obtains the sub- code key group IS of IDEA of the sub- code key composition of 52 IDEA;
(2) rear encryption data M2 is divided into the 1st data X1, the 2nd data X2, the 3rd data X3 and the 4th data X4;
(3) 8 IDEA encryption iteration are carried out to the 1st data X1, the 2nd data X2, the 3rd data X3 and the 4th data X4 to obtain New 1st data NX1, new 2nd data NX2, new 4 data NX4 of 3rd data NX3 and Xin;
(4) 2161 multiplication of mould is done to the sub- code key S [49] of new 1st data NX1 and 49IDEA and obtains the 1st subdata Z1; Mould 216 is done to the sub- code key S [50] of new 3rd data NX3 and 50IDEA plus operation obtains the 2nd subdata Z2;To new 2nd data The sub- code key S [51] of NX2 and 51IDEA does mould 216 plus operation obtains the 3rd subdata Z3;To new 4th data NX4 and 52IDEA Sub- code key S [52] does 2161 multiplication of mould and obtains the 4th subdata Z4;
(5) it carries out integrating in order by the 1st subdata Z1, the 2nd subdata Z2, the 3rd subdata Z3 and the 4th subdata Z4 To product false proof code.
Wherein, the single IDEA encryption iteration in 8 IDEA encryption iteration includes the following steps:
The sub- code key IS [1] of 1IDEA, the sub- code key IS of 2IDEA of current iteration are determined according to the sub- code key group IS of IDEA [2], the sub- code key IS [3] of 3IDEA, the sub- code key IS [4] of 4IDEA, the sub- code key IS [5] of 5IDEA and the sub- code key IS of 6IDEA [6]。
(1) 2161 multiplication of mould is done to the 1st sub- code key IS [1] of data X1 and 1IDEA and obtains the 14th operation values C14;It is right The 2nd sub- code key IS [2] of data X2 and 2IDEA does mould 216 plus operation obtains the 15th operation values C15;To the 3rd data X3 and The sub- code key IS [3] of 3IDEA does mould 216 plus operation obtains the 16th operation values C16;To the 4th sub- code key IS of data X4 and 4IDEA [4] it does 2161 multiplication of mould and obtains the 17th operation values C17;
(2) XOR operation is carried out to the 14th operation values C14 and the 16th operation values C16 and obtains the 18th operation values C18;To the 15th Operation values C15 and the 17th operation values C17 carries out XOR operation and obtains the 19th operation values C19;
(3) 2161 multiplication of mould is done to the 18th sub- code key S [5] of operation values C18 and 5IDEA and obtains the 20th operation values C20; Mould 216 is done to the 19th operation values C19 and the 20th operation values C20 plus operation obtains the 21st operation values C21;To the 21st operation values C21 2161 multiplication of mould, which is done, with the sub- code key S [6] of 6IDEA obtains the 22nd operation values C22;To the 20th operation values C20 and the 22nd operation Value C22 does mould 216 plus operation obtains the 23rd operation values C23;
(4) XOR operation is carried out to the 14th operation values C14 and the 22nd operation values C22 and obtains the 24th operation values C24;To the 16th Operation values C16 and the 22nd operation values C22 carries out XOR operation and obtains the 25th operation values C25;15th operation values C15 and the 23rd is transported Calculation value C23 carries out XOR operation and obtains the 26th operation values C26;Exclusive or fortune is carried out to the 17th operation values C17 and the 23rd operation values C23 Calculation obtains the 27th operation values C27;
(5) by the 24th operation values C24, the 26th operation values C26, the 25th operation values C25 and the 27th operation values C27 successively conduct New 1st data NX1, new 2nd data NX2, new 4 data NX4 of 3rd data NX3 and Xin, into next round iteration, IDEA encryption Algorithm terminates to obtain product false proof code.
The above embodiment is a preferred embodiment of the present invention, but embodiments of the present invention are not by above-described embodiment Limitation, other any changes, modifications, substitutions, combinations, simplifications made without departing from the spirit and principles of the present invention, It should be equivalent substitute mode, be included within the scope of the present invention.

Claims (3)

1. a kind of generation system of anti-fake spiral coloured silk code, which is characterized in that including input unit, obtain coding unit, code key generating unit, AES obtains encryption unit, AES cutting part, DES acquisition encryption unit, IDEA acquisition encryption unit, color and defines portion, the generation of spiral coloured silk code Portion, two dimensional code generating unit and printing portion;
Product information comprising logistics information is input to the acquisition coding unit by the input unit;
The coding unit that obtains obtains the product information being entered and carries out the corresponding product of coding generation according to pre-defined rule Sequence number;
The code key generating unit generate at random be respectively used to aes algorithm, DES algorithm, the AES code key of IDEA algorithm, DES code key, IDEA code key;
The AES is obtained after encryption unit obtains product ID and AES code key and is carried out the operation of AES encryption algorithm, obtains encryption number According to;
Encryption data is divided into preceding encryption data and rear encryption data by the AES cutting part;
The DES is obtained and is carried out the operation of des encryption algorithm after encryption data and DES code key before encryption unit obtains, and it is anti-to obtain logistics Pseudo-code;
The IDEA is obtained and is carried out the operation of IDEA encryption algorithm after encryption data and IDEA code key after encryption unit obtains, and obtains product Security code;
The color portion of definition defines color group, and color group includes multiple color codes, wherein each color code corresponding one Kind color;
The spiral coloured silk code generating unit is according to logistics security code and corresponding color code, by each bit digital of logistics security code One color code of all random corresponding color group simultaneously generates corresponding logistics spiral coloured silk code;According to product false proof code and corresponding Color code by a color code of all random corresponding color group of each bit digital of product false proof code and generates corresponding production Product spiral coloured silk code;
Logistics security code and product false proof code are generated logistics two dimensional code and product two dimensional code by the two dimensional code generating unit;
The printing portion prints logistics spiral coloured silk code, logistics two dimensional code, product spiral coloured silk code and product two dimensional code.
2. a kind of generation method of anti-fake spiral coloured silk code, which is characterized in that include the following steps:
(1) coding is carried out according to pre-defined rule according to the product information comprising logistics information of input and generates corresponding product sequence Row number;
(2) random generate is respectively used to aes algorithm, DES algorithm, the AES code key of IDEA algorithm, DES code key, IDEA code key;
(3) product ID and AES code key carry out the operation of AES encryption algorithm, obtain encryption data;
(4) encryption data is divided into preceding encryption data and rear encryption data;
(5) operation of des encryption algorithm will be carried out after preceding encryption data and DES code key, obtain logistics security code;
(6) operation of IDEA encryption algorithm will be carried out after rear encryption data and IDEA code key, obtain product false proof code;
(7) color group is defined, color group includes multiple color codes, wherein each color code corresponds to a kind of color;
(8) according to logistics security code and corresponding color code, by all random corresponding color of each bit digital of logistics security code One color code of group simultaneously generates corresponding logistics spiral coloured silk code;According to product false proof code and corresponding color code, will produce One color code of all random corresponding color group of each bit digital of product security code simultaneously generates corresponding product spiral coloured silk code;
(9) logistics security code and product false proof code are generated into logistics two dimensional code and product two dimensional code;
(10) logistics spiral coloured silk code, logistics two dimensional code, product spiral coloured silk code and product two dimensional code are printed.
3. a kind of generation method of anti-fake spiral coloured silk code according to claim 2, which is characterized in that color in step (7) Group is:The corresponding color of color code 1 be it is red, color code 2 is corresponding green, the corresponding indigo plant of color code 3, and color code 4 is right The Huang answered, color code 5 are corresponding black.
CN201810634694.2A 2018-06-20 2018-06-20 A kind of generation method and system of anti-fake spiral coloured silk code Pending CN108830366A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810634694.2A CN108830366A (en) 2018-06-20 2018-06-20 A kind of generation method and system of anti-fake spiral coloured silk code

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810634694.2A CN108830366A (en) 2018-06-20 2018-06-20 A kind of generation method and system of anti-fake spiral coloured silk code

Publications (1)

Publication Number Publication Date
CN108830366A true CN108830366A (en) 2018-11-16

Family

ID=64142862

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810634694.2A Pending CN108830366A (en) 2018-06-20 2018-06-20 A kind of generation method and system of anti-fake spiral coloured silk code

Country Status (1)

Country Link
CN (1) CN108830366A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111242259A (en) * 2020-01-08 2020-06-05 浙江码尚科技股份有限公司 Intelligent anti-counterfeiting code encoding and decoding method and system
CN111382820A (en) * 2020-02-25 2020-07-07 南通大学 Four-lattice pure-color commodity anti-counterfeiting code generation method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102521749A (en) * 2011-11-14 2012-06-27 贵州卓霖防伪科技有限公司 Color identification method for colorful security codes
CN102855510A (en) * 2011-07-01 2013-01-02 中国人民银行印制科学技术研究所 Anti-fake product and identification method thereof
CN103824197A (en) * 2014-03-10 2014-05-28 上海理工大学 Anti-counterfeit code generating device
CN105574570A (en) * 2015-12-21 2016-05-11 广州市宝绅纸塑有限公司 Generation method, system, label, and anti-counterfeiting method of spiral color codes
CN105930890A (en) * 2016-04-11 2016-09-07 胡燕祝 Magic square encryption algorithm-based multi-dimensional color code label technology

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102855510A (en) * 2011-07-01 2013-01-02 中国人民银行印制科学技术研究所 Anti-fake product and identification method thereof
CN102521749A (en) * 2011-11-14 2012-06-27 贵州卓霖防伪科技有限公司 Color identification method for colorful security codes
CN103824197A (en) * 2014-03-10 2014-05-28 上海理工大学 Anti-counterfeit code generating device
CN105574570A (en) * 2015-12-21 2016-05-11 广州市宝绅纸塑有限公司 Generation method, system, label, and anti-counterfeiting method of spiral color codes
CN105930890A (en) * 2016-04-11 2016-09-07 胡燕祝 Magic square encryption algorithm-based multi-dimensional color code label technology

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111242259A (en) * 2020-01-08 2020-06-05 浙江码尚科技股份有限公司 Intelligent anti-counterfeiting code encoding and decoding method and system
CN111382820A (en) * 2020-02-25 2020-07-07 南通大学 Four-lattice pure-color commodity anti-counterfeiting code generation method
CN111382820B (en) * 2020-02-25 2021-10-12 南通大学 Four-lattice pure-color commodity anti-counterfeiting code generation method

Similar Documents

Publication Publication Date Title
CN109472338B (en) Batch generation method of commodity anti-counterfeiting two-dimensional codes
CN104486073B (en) A kind of encryption and decryption method of character type data
CN110046513B (en) Plaintext associated image encryption method based on Hopfield chaotic neural network
CN105354717B (en) A kind of colour commodity counterfeit prevention code generating method
CN104680220B (en) A kind of commodity counterfeit prevention code Mass production method
CN112001467B (en) Commodity anti-counterfeiting code generation and identification method based on picture encryption and decryption
CN111985591B (en) Commodity anti-counterfeiting code generation method based on character string encryption
CN108830366A (en) A kind of generation method and system of anti-fake spiral coloured silk code
CN106204058B (en) A kind of colorful number matrix two-dimensional code and its method for anti-counterfeit
CN112163230B (en) Commodity anti-counterfeiting code generation method based on Chinese character encryption
CN112001468A (en) Character type commodity anti-counterfeiting code generation and identification method
CN107895340A (en) The null tone domain color digital image blind watermark method that a kind of fusion QR is decomposed
CN105574570B (en) Generation method, system, label and the method for anti-counterfeit of spiral coloured silk code
CN110033066A (en) A kind of generation method of colour garbage classification two dimensional code
CN106779739A (en) Antiforge system and method that a kind of combination two-dimensional code scanning technology is realized
CN112149774B (en) Chinese character commodity anti-counterfeiting code generation method
CN102750661A (en) Computer random color graphics anti-counterfeiting method
CN106156823B (en) A kind of colorful number sequence two dimensional code and its method for anti-counterfeit
CN103824197B (en) Security code generating means
CN112149773A (en) Commodity anti-counterfeiting code generation method based on Chinese character encryption
CN111382820B (en) Four-lattice pure-color commodity anti-counterfeiting code generation method
CN102842053B (en) A kind of false proof figure code label and manufacture method thereof
CN102663668A (en) Digital watermarking system based on continuous vector graphics and implementation method of digital watermarking system based on continuous vector graphics
CN113052286A (en) Commodity anti-counterfeiting two-dimensional code generation method based on scrambling encryption
CN104376307A (en) Fingerprint image information coding method

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20181116

RJ01 Rejection of invention patent application after publication