CN106339877A - Anti-counterfeiting method based on product feature deformation combination and mutual authentication - Google Patents
Anti-counterfeiting method based on product feature deformation combination and mutual authentication Download PDFInfo
- Publication number
- CN106339877A CN106339877A CN201510408417.6A CN201510408417A CN106339877A CN 106339877 A CN106339877 A CN 106339877A CN 201510408417 A CN201510408417 A CN 201510408417A CN 106339877 A CN106339877 A CN 106339877A
- Authority
- CN
- China
- Prior art keywords
- product
- code
- information
- security code
- counterfeiting
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 32
- 238000004519 manufacturing process Methods 0.000 claims abstract description 47
- 239000011248 coating agent Substances 0.000 claims description 6
- 238000000576 coating method Methods 0.000 claims description 6
- 238000012795 verification Methods 0.000 claims description 3
- 239000000047 product Substances 0.000 claims 50
- 230000002123 temporal effect Effects 0.000 claims 11
- 239000006227 byproduct Substances 0.000 claims 1
- 239000000284 extract Substances 0.000 claims 1
- 235000019504 cigarettes Nutrition 0.000 description 6
- 230000008569 process Effects 0.000 description 6
- 238000004364 calculation method Methods 0.000 description 5
- 238000004458 analytical method Methods 0.000 description 3
- 241000208125 Nicotiana Species 0.000 description 2
- 235000002637 Nicotiana tabacum Nutrition 0.000 description 2
- 230000006872 improvement Effects 0.000 description 2
- 238000007689 inspection Methods 0.000 description 2
- 208000031301 Suspected counterfeit product Diseases 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000002427 irreversible effect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000004806 packaging method and process Methods 0.000 description 1
- 239000007921 spray Substances 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
- 230000001131 transforming effect Effects 0.000 description 1
Landscapes
- Credit Cards Or The Like (AREA)
Abstract
本发明公开了一种基于产品特征变形组合与相互认证的防伪方法,依据产品信息和产品生产时间绑定的产品特征,采用变形组合方式生成防伪码,产品特征和防伪码两者信息不同,相互之间却有着一一对应关系,产品真伪的查询认证方便可行;防伪码不需要存放在查询认证数据库,数据库的安全性得到了保障。本发明仅将产品信息和生产时间录入查询认证数据库;消费者验证产品真伪时,可发送该防伪码至查询认证系统,系统通过该防伪码演算出产品特征的信息,或验证真伪后反馈信息给消费者,或提供信息供消费者自行验证;并且在数据库中对该记录做出相应标记,可以防止不良商家使用已经验证过的防伪码进行产品伪造,大大提高产品的防伪性能。
The invention discloses an anti-counterfeiting method based on product feature deformation combination and mutual authentication. According to product information and product features bound to product production time, an anti-counterfeiting code is generated by using a deformation combination method. The information of the product feature and the anti-counterfeiting code is different and mutual There is a one-to-one correspondence between them, and the query and authentication of product authenticity is convenient and feasible; the anti-counterfeiting code does not need to be stored in the query authentication database, and the security of the database is guaranteed. The invention only enters the product information and production time into the query authentication database; when consumers verify the authenticity of the product, they can send the anti-counterfeit code to the query authentication system, and the system calculates the product feature information through the anti-counterfeit code, or gives feedback after verifying the authenticity Provide information to consumers, or provide information for consumers to verify by themselves; and mark the record in the database accordingly, which can prevent unscrupulous merchants from using verified anti-counterfeiting codes to counterfeit products, and greatly improve the anti-counterfeiting performance of products.
Description
技术领域technical field
本发明属于防伪、信息溯源及数据安全技术领域,更具体地,涉及一种基于产品特征变形组合与相互认证的防伪方法。The invention belongs to the technical field of anti-counterfeiting, information traceability and data security, and more specifically relates to an anti-counterfeiting method based on product feature deformation combination and mutual authentication.
背景技术Background technique
产品特征是产品自身构造所形成的特色,一般指产品的外形、质量、功能、商标和包装等,能反映产品对顾客的吸引力。在防伪领域中,通常以产品名称等公开信息作为产品的特征,这些特征是消费者凭借自身具有的价值观、信仰和过去的经验来评价和形成的,成为影响消费者购买、使用产品的主要因素,具有十分重要的作用。Product characteristics are the characteristics formed by the product's own structure, generally referring to the product's appearance, quality, function, trademark and packaging, etc., which can reflect the attractiveness of the product to customers. In the field of anti-counterfeiting, public information such as product names is usually used as the characteristics of products. These characteristics are evaluated and formed by consumers based on their own values, beliefs and past experiences, and become the main factors affecting consumers' purchase and use of products. , has a very important role.
名优产品固有的特征数量有限,不能像密码一样可以随时更换重复利用,而且一旦产品固有的特征暴露或被非法盗用于其它目的,将导致巨大的经济损失。例如在指纹特征识别技术应用中,国际上每年都会因为客户指纹信息的丢失等原因,而使得银行指纹识别系统被攻破,造成数亿美元的损失。另一方面,在产品溯源系统中,大量的产品防伪数据需存放在数据库中,这使得数据安全遭受威胁,产品假冒成为可能。The inherent features of famous and high-quality products are limited, and they cannot be replaced and reused at any time like passwords. Moreover, once the inherent features of the product are exposed or illegally used for other purposes, huge economic losses will result. For example, in the application of fingerprint feature recognition technology, due to the loss of customer fingerprint information and other reasons in the world, the bank's fingerprint recognition system is broken every year, resulting in losses of hundreds of millions of dollars. On the other hand, in the product traceability system, a large amount of product anti-counterfeiting data needs to be stored in the database, which threatens data security and makes product counterfeiting possible.
发明内容Contents of the invention
针对现有技术的以上缺陷或改进需求,本发明提供一种基于产品特征变形组合与相互认证的防伪方法,本发明借鉴了可撤销生物特征(cancelable biometrics)的概念,应用某种可重复操作的不可逆变换,对产品特征信息进行变形组合,解决产品特征被滥用以及防伪数据库安全性和隐秘性不高的问题。Aiming at the above defects or improvement needs of the prior art, the present invention provides an anti-counterfeiting method based on product feature deformation combination and mutual authentication. The present invention draws on the concept of cancelable biometrics and applies a certain Irreversible transformation, transforming and combining product feature information to solve the problems of misuse of product features and low security and privacy of anti-counterfeiting databases.
为实现上述目的,按照本发明的一个方面,提供一种基于产品特征变形组合与相互认证的防伪方法,包括以下步骤:In order to achieve the above purpose, according to one aspect of the present invention, an anti-counterfeiting method based on product feature deformation combination and mutual authentication is provided, including the following steps:
步骤1为每件产品生成产品特征信息,并将所述产品特征信息添加进数据库,所述产品特征信息包括产品型号M和产品生产日期B;Step 1 generates product feature information for each product, and adds the product feature information into the database, the product feature information includes product model M and product production date B;
步骤2根据所述产品特征信息为每件产品生成一个唯一防伪码K并印制,所述防伪码K采用明码和暗码的组合形式,所述防伪码K的暗码部分的印刷采用油墨方式覆盖,其中,所述防伪码K的生成包括以下子步骤:Step 2 generates and prints a unique anti-counterfeiting code K for each product according to the product feature information, the anti-counterfeiting code K adopts a combination of plain code and secret code, and the printing of the dark code part of the anti-counterfeiting code K is covered by ink, Wherein, the generation of described security code K comprises the following substeps:
(2-1)生成所述防伪码K的明码O=M|B,表示由产品型号M与产品生产日期B连接而成;(2-1) Generate the clear code O=M|B of the anti-counterfeiting code K, which means that the product model M is connected with the product production date B;
(2-2)生成所述防伪码K的暗码C=decode(code(b)|R),code表示编码操作,decode表示解码操作,则所述防伪码K=(M|B|C),生成所述暗码C包括以下子步骤:(2-2) Generate the secret code C=decode(code(b)|R) of the anti-counterfeiting code K, code represents the encoding operation, and decode represents the decoding operation, then the anti-counterfeiting code K=(M|B|C), Generating the password C includes the following substeps:
(2-1-1)计算关系码R=fun(M,T)=code(M)^code(T),其中,T表示产品时间信息,fun(M,T)表示对M、T的编码进行按位异或运算;(2-1-1) Calculate relational code R=fun(M,T)=code(M)^code(T), wherein, T represents product time information, and fun(M,T) represents the coding of M and T Perform a bitwise XOR operation;
(2-1-2)根据对所述产品时间信息T的编码规则,对产品生产时间b进行编码;(2-1-2) Coding the product production time b according to the coding rules for the product time information T;
(2-1-3)将所述步骤(2-1-2)得到的编码和所述关系码R连接后转换为十六进制数即为所述暗码C;(2-1-3) converting the encoding obtained in the step (2-1-2) into the hexadecimal number after being connected with the relation code R to be the password C;
步骤3将所述防伪码K发送至官方查询系统进行产品查询认证和信息反馈。Step 3: Send the anti-counterfeiting code K to the official inquiry system for product inquiry authentication and information feedback.
按照本发明的另一方面,提供一种基于产品特征变形组合与相互认证的防伪方法,包括以下步骤:According to another aspect of the present invention, an anti-counterfeiting method based on product feature deformation combination and mutual authentication is provided, comprising the following steps:
步骤1为每件产品生成产品特征信息,并将所述产品特征信息添加进数据库,所述产品特征信息包括产品型号M和产品时间信息T;Step 1 generates product feature information for each product, and adds the product feature information into the database, the product feature information includes product model M and product time information T;
步骤2根据所述产品特征信息为每件产品生成一个唯一防伪码K并印制,所述防伪码K采用全油墨方式覆盖,其中,所述防伪码K的生成包括以下子步骤:Step 2 generates and prints a unique anti-counterfeit code K for each product according to the product feature information, and the anti-counterfeit code K is covered with full ink, wherein the generation of the anti-counterfeit code K includes the following sub-steps:
(2-1)对所述产品时间信息T进行二进制编码,所述产品时间信息T=B|b,表示由产品生产日期B与产品生产时间b连接而成,其中所述产品生产日期B记录产品生产的年月日,所述产品生产时间b记录产品生产的时分秒;(2-1) Carry out binary coding on the product time information T, the product time information T=B|b, which means that the product production date B is connected with the product production time b, wherein the product production date B records The year, month, and day of product production, and the product production time b records the time, minutes, and seconds of product production;
(2-2)计算关系码R=fun(M,T)=code(M)^code(T),其中,M表示产品型号,code表示编码操作,fun(M,T)表示对M、T的编码进行按位异或运算;(2-2) Calculation relation code R=fun (M, T)=code (M) ^ code (T), wherein, M represents product model, and code represents coding operation, and fun (M, T) represent pair M, T The encoding of the bitwise XOR operation;
(2-3)将所述步骤(2-1)编码的结果与所述关系码R进行连接,并将结果以十六进制形式表示得到所述防伪码K;(2-3) connecting the result encoded in the step (2-1) with the relation code R, and expressing the result in hexadecimal form to obtain the anti-counterfeiting code K;
步骤3将所述防伪码K发送至官方查询系统进行产品查询认证和信息反馈。Step 3: Send the anti-counterfeiting code K to the official inquiry system for product inquiry authentication and information feedback.
总体而言,通过本发明所构思的以上技术方案与现有技术相比,具有以下有益效果:Generally speaking, compared with the prior art, the above technical solution conceived by the present invention has the following beneficial effects:
产品特征信息是不可撤销的,而产品特征和随机数结合的编码是可撤销的,因此可以防止因为产品特征数据被滥用而导致的损失。将本发明应用于防伪,能够有效地提高产品防伪的性能。本发明解决产品特征被滥用和提高防伪数据库安全性、隐秘性的方法是防伪领域的一个发展方向;The product characteristic information is irrevocable, and the encoding of the product characteristic and the random number combination is revocable, so it can prevent the loss caused by the misuse of the product characteristic data. Applying the invention to anti-counterfeiting can effectively improve the anti-counterfeiting performance of products. The method of the present invention to solve the abuse of product features and improve the security and privacy of the anti-counterfeiting database is a development direction in the field of anti-counterfeiting;
本发明以产品名称等其特定可公开信息生成产品特征码,将其作为唯一的标识码,用于追踪流通产品信息,或以可公开信息生成唯一防伪码,以明码或暗码形式印制在产品上,以供消费者查询真伪。消费者可用手机或网络客户端联网查询,亦可以将防伪码以短信形式发送至查询系统验证真伪;The invention generates a product feature code based on the product name and other specific public information, and uses it as a unique identification code to track the information of the product in circulation, or generates a unique anti-counterfeiting code based on the public information, and prints it on the product in the form of a clear code or a secret code. on, for consumers to check the authenticity. Consumers can use mobile phones or web clients to inquire online, and can also send the anti-counterfeiting code to the inquiry system in the form of SMS to verify the authenticity;
本发明具备以下安全性与功能:The present invention has the following security and functions:
1、造假者即使取得数据库内容,也无法根据数据库内容制作出防伪码;1. Even if counterfeiters obtain the contents of the database, they cannot make anti-counterfeiting codes based on the contents of the database;
2、每件产品拥有唯一特定防伪码,使伪造防伪码具有相当大的难度;2. Each product has a unique anti-counterfeiting code, which makes it very difficult to forge the anti-counterfeiting code;
3、具有真伪辨别和假冒报警功能;3. It has the functions of authenticity identification and counterfeit alarm;
4、本防伪码具有相互认证功能,并可以提供多种查询反馈方式,亦可让消费者自行判断真伪。4. This anti-counterfeiting code has the function of mutual authentication, and can provide a variety of query feedback methods, and also allows consumers to judge the authenticity by themselves.
附图说明Description of drawings
图1为本发明基于产品特征变形组合与相互认证的防伪方法的流程图;Fig. 1 is the flowchart of the anti-counterfeiting method based on product feature deformation combination and mutual authentication of the present invention;
图2为本发明暗码(C)生成算法流程图;Fig. 2 is the flow chart of generation algorithm of password (C) of the present invention;
图3为本发明形式一防伪码(K)的结构示意图;Fig. 3 is the structural representation of form one anti-counterfeiting code (K) of the present invention;
图4为本发明方案一查询认证流程图;Fig. 4 is a flow chart of query authentication of scheme one of the present invention;
图5为本发明B|C解析流程图;Fig. 5 is the flow chart of B|C analysis of the present invention;
图6为本发明形式二防伪码(K)生成算法流程图;Fig. 6 is the generation algorithm flowchart of form two anti-counterfeiting codes (K) of the present invention;
图7为本发明方案二查询认证流程图。Fig. 7 is a flow chart of the second query authentication of the present invention.
具体实施方式detailed description
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。此外,下面所描述的本发明各个实施方式中所涉及到的技术特征只要彼此之间未构成冲突就可以相互组合。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not constitute a conflict with each other.
为了清晰描述本发明产品特征变形组合与相互认证的防伪码产生过程和方法,首先给出其中的变量说明和相关操作说明。下表1中列出了文中所有字母变量的含义。In order to clearly describe the anti-counterfeiting code generation process and method of product feature deformation combination and mutual authentication in the present invention, variable descriptions and related operation instructions are given first. Table 1 below lists the meanings of all letter variables in the text.
表1Table 1
本发明涉及一种运算(fun)和三个核心数据,即产品型号信息(M)、产品时间信息(T)、关系码(R)。对于z=fun(x,y),指z的二进制编码等于x与y的二进制编码按位异或运算。另外,x=fun(y,z),y=fun(z,x)。本发明中M、T在产品生产时就被确定,并且写进查询认证数据库。R=fun(M,T)提供了关系码的生成,而R又是防伪码K生成的基础。M=fun(T,R)、T=fun(R,M)为查询认证提供了依据:根据前式,若K中包含着T与R,通过推算可以得到产品型号M;后式是在得到M后,由R与M,又可运算推算出T,得到了M与T,就可以与数据库中保存的信息进行验证比对鉴别真伪。The invention relates to an operation (fun) and three core data, namely product model information (M), product time information (T) and relationship code (R). For z=fun(x, y), it means that the binary code of z is equal to the bitwise XOR operation of the binary codes of x and y. In addition, x=fun(y, z), y=fun(z, x). In the present invention, M and T are determined when the product is produced, and written into the query authentication database. R=fun(M, T) provides the generation of the relational code, and R is the basis for the generation of the anti-counterfeiting code K. M=fun(T,R) and T=fun(R,M) provide the basis for query authentication: According to the previous formula, if K contains T and R, the product model M can be obtained through calculation; the latter formula is obtained After M, T can be calculated from R and M, and after obtaining M and T, it can be verified and compared with the information stored in the database to identify the authenticity.
在本发明实施例中,设code表示编码操作;decode表示解码或16进制转换操作;“|”表示连接操作,A|B表示将A和B的字符进行连接。In the embodiment of the present invention, let code represent an encoding operation; decode represent a decoding or hexadecimal conversion operation; "|" represent a connection operation, and A|B represent the connection of A and B characters.
(1)产品型号:用字母M表示,由若干英文字母组成。例如产品大中华香烟的产品型号M可用DZH表示。(1) Product model: represented by the letter M, composed of several English letters. For example, the product model M of the product Dazhong Cigarette can be represented by DZH.
(2)产品时间信息:用字母T表示,具体可精确到秒、甚至可以更小的时间单位,以确保同种型号产品不存在2个及以上产品有相同的生产时间。数据库中可取14位十进制数字,精确到秒。例如2014年12月30日23点10分20秒,则T=20141230231020。(2) Product time information: represented by the letter T, which can be accurate to seconds or even smaller time units, so as to ensure that no two or more products of the same model have the same production time. 14 decimal digits are available in the database, accurate to the second. For example, at 23:10:20 on December 30, 2014, T=20141230231020.
(3)产品特征信息:用字母D表示。D=M|T,其中‘|’表示连接操作,即产品型号M后连接产品具体生产时间T。在本发明实施例中,T是14位十进制数字。设M、T如上所示,则D=DZH20141230231020。(3) Product characteristic information: represented by the letter D. D=M|T, where '|' indicates the connection operation, that is, the specific production time T of the connected product after the product model M. In the embodiment of the present invention, T is a 14-digit decimal number. Suppose M and T are as above, then D=DZH20141230231020.
(4)产品生产日期:用英字母B表示。在本发明实施例中,取产品生产的年月日形成8位十进制数,例如B=20141230。(4) Production date of the product: indicated by the letter B. In the embodiment of the present invention, the year, month, and day of product production are taken to form an 8-digit decimal number, for example, B=20141230.
(5)产品生产时间:用英字母b表示。在本发明实施例中,取产品生产的时分秒形成6位十进制数,例如b=231020。(5) Product production time: indicated by the letter b. In the embodiment of the present invention, the hours, minutes and seconds of product production are taken to form a 6-digit decimal number, for example, b=231020.
(6)关系码:关系码用字母R表示,是31位二进制数,由M、T计算得到,R=fun(M,T),具体计算过程如下所示:(6) Relationship code: the relationship code is represented by the letter R, which is a 31-bit binary number, calculated from M and T, and R=fun(M, T). The specific calculation process is as follows:
①将产品型号M、T分别编码成31位二进制码;① Encode the product models M and T into 31-bit binary codes respectively;
a)产品型号M的编码:a) Coding of product model M:
可事先建立一个编解码对应关系,例如当M=DZH时:A codec correspondence can be established in advance, for example, when M=DZH:
code(M)=1111111111111111111111111111111。code(M)=11111111111111111111111111111.
b)产品时间信息T的编码:b) Coding of product time information T:
对产品时间信息T的具体编码过程是按照年月日时分秒的十进制数编码成其对应的二进制数。在本发明实施例中,年、月、日、时、分、秒分配二进制位数分别为5、4、5、5、6、6位,表示年份的后两位数5位+月份位数4位+日的位数5位+小时位数5位+分钟位数6位+秒位数6位。对于产品生产日期B和产品生产时间b的编码方法与产品生产日期T的编码方法相同。The specific encoding process of the product time information T is to encode the decimal numbers of the year, month, day, hour, minute, and second into their corresponding binary numbers. In the embodiment of the present invention, the year, month, day, hour, minute, and second are assigned binary digits of 5, 4, 5, 5, 6, and 6 digits respectively, representing the last two digits of the year 5 digits + the digits of the month 4 digits + 5 digits of the day + 5 digits of the hour + 6 digits of the minute + 6 digits of the second. The coding method for the product production date B and the product production time b is the same as the coding method for the product production date T.
在本发明实施例中,对年份的编码采用5位二进制数,是取年份的后2位对32求余再二进制化,例如2001年和2033年的5位二进制数相同;对月份的编码采用4位二进制数表示,直接取月份数的二进制数,例如12月的4位二进制数为1100;日采用5位二进制数表示,例如30号的5位二进制数为11110;时采用0-24计时,位数用5位,例如23时的5位二进制数为100111;分采用0-60分计,秒也采用0-60秒计,位数均用6位,例如10分20秒的两个6位二进制数为001010、010100。In the embodiment of the present invention, the coding of the year adopts 5 binary numbers, which is to take the last 2 digits of the year and then binarize the remainder of 32, for example, the 5 binary numbers of 2001 and 2033 are the same; the coding of the month adopts 4-digit binary number representation, directly take the binary number of the month number, for example, the 4-digit binary number of December is 1100; the day is represented by 5-digit binary number, for example, the 5-digit binary number of the 30th is 11110; the time is 0-24 , the number of digits is 5 digits, for example, the 5-digit binary number at 23 is 100111; minutes are counted from 0-60 minutes, seconds are also counted from 0-60 seconds, and the digits are all 6 digits, for example, two digits of 10 minutes and 20 seconds The 6-bit binary number is 001010, 010100.
所以,若T=20141230231020,则T的编码(用code表示)为:Therefore, if T=20141230231020, then the encoding of T (indicated by code) is:
code(T)=01110 1100 11110 10111 001010 010100。code(T)=01110 1100 11110 10111 001010 010100.
②对M、T的二进制编码进行按位异或运算得到31位二进制关系码R;② Perform bitwise XOR operation on the binary codes of M and T to obtain the 31-bit binary relational code R;
例如2014年12月30日23点10分20秒生产的大中华烟:For example, the Great China Tobacco produced at 23:10:20 on December 30, 2014:
M=DZH,T=20141230231020M=DZH, T=20141230231020
R=fun(M,T)=code(M)^code(T)R=fun(M,T)=code(M)^code(T)
=(1111111111111111111111111111111)^(0111011001111010111001010010100)=(11111111111111111111111111111)^(0111011001111010111001010010100)
=1000100110000101000110101101011。=1000100110000101000110101101011.
本发明实施例提供两种查询认证系统方案,两种方案采用各自的防伪码形式。其中,形式一防伪码采用明码和暗码的组合形式,暗码部分采用油墨方式覆盖,形式二防伪码采用全油墨方式覆盖。现以2014年12月30日23点10分20秒生产的大中华烟为例对每种方案进行详细描述。The embodiment of the present invention provides two schemes of the query authentication system, and the two schemes adopt their own forms of anti-counterfeit codes. Among them, the anti-counterfeit code of form 1 adopts the combination form of clear code and secret code, and the part of the code is covered with ink, and the anti-counterfeit code of form 2 is covered with full ink. Now take the Greater China Tobacco produced at 23:10:20 on December 30, 2014 as an example to describe each scheme in detail.
图1所示为本发明基于产品特征变形组合与相互认证的防伪方法的流程图,本发明实施例查询认证系统方案一(采用形式一防伪码)的具体实施步骤包括:Fig. 1 shows that the present invention is based on the flow chart of the anti-counterfeiting method of product feature deformation combination and mutual authentication, and the specific implementation steps of the embodiment of the present invention query authentication system scheme one (using form one anti-counterfeiting code) include:
步骤1在产品生产阶段为每件产品显示注明产品型号M(DZH)、产品生产日期(2014.12.30),并将每件产品的产品特征信息D(DZH20141230231020)写进数据库;Step 1 shows and indicates the product model M (DZH) and product production date (2014.12.30) for each product in the product production stage, and writes the product feature information D (DZH20141230231020) of each product into the database;
步骤2防伪码的生成与印制,包括以下子步骤:The generation and printing of the anti-counterfeiting code in step 2 includes the following sub-steps:
(2-1)防伪码生成:(2-1) Anti-counterfeiting code generation:
形式一防伪码K:采用明码和暗码的组合形式,明码部分用英文字母O表示,其中O=M|B,由产品型号M与产品生产日期B连接而成;暗码部分用英文字母C表示,C=decode(code(b)|R),是12位十六进制数,C采用暗码生成算法得到。图2所示为本发明暗码(C)生成算法流程图,具体包括以下步骤:Form 1 Anti-counterfeiting code K: It adopts the combination of plain code and secret code. The plain code part is represented by the English letter O, where O=M|B, which is formed by connecting the product model M and the product production date B; the secret code part is represented by the English letter C. C=decode(code(b)|R), which is a 12-digit hexadecimal number, and C is obtained by using a password generation algorithm. Fig. 2 is shown as the flow chart of generation algorithm of password (C) of the present invention, specifically comprises the following steps:
(2-1-1)计算关系码R:(2-1-1) Calculate the relation code R:
关系码R的计算前文已经做相关说明,在本发明实施例中,R=1000100110000101000110101101011。The calculation of the relation code R has been described above. In the embodiment of the present invention, R=1000100110000101000110101101011.
(2-1-2)根据时间编码规则,将产品生产时间b编码成17位二进制:b=231020,code(b)=10111 001010 010100。(2-1-2) According to the time coding rule, code the production time b of the product into 17-bit binary: b=231020, code(b)=10111 001010 010100.
(2-1-3)将步骤(2-1-2)所求二进制数和关系码R组合成48位二进制数并表示成12位十六进制数即为暗码C:(2-1-3) Combine the binary number obtained in step (2-1-2) and the relational code R into a 48-bit binary number and express it as a 12-digit hexadecimal number, which is the password C:
C=decode(code(b)|R)C=decode(code(b)|R)
=decode(101110010100101001000100110000101000110101101011)=decode(101110010100101001000100110000101000110101101011)
=B94A44C28D6B。=B94A44C28D6B.
图3所示为本发明形式一的防伪码(K)的结构示意图,其中K=M|B|C,即由产品型号M与8位十进制数字和12位十六进制数字组成(产品生产日期B是8位,暗码C是12位)组成。故K=DZH20141230B94A44C28D6B。Fig. 3 shows the structural representation of the anti-counterfeiting code (K) of form one of the present invention, wherein K=M|B|C, promptly is made up of product model M and 8 decimal numbers and 12 hexadecimal numbers (product production The date B is 8 digits, and the password C is 12 digits). Therefore K=DZH20141230B94A44C28D6B.
(2-2)防伪码印制:(2-2) Anti-counterfeiting code printing:
形式一防伪码K以明码与暗码组合形式呈现,明码部分为O(M|B),暗码部分为C。明码和暗码都要印制在产品上,但暗码部分需采用油墨方式覆盖,供检测验证时,刮开油墨涂层并输入系统进行认证。Form 1 The anti-counterfeiting code K is presented in the form of a combination of plain code and secret code, the plain code part is O(M|B), and the secret code part is C. Both the plain code and the secret code must be printed on the product, but the part of the secret code must be covered with ink. For inspection and verification, the ink coating is scratched off and input into the system for authentication.
步骤3消费者查询认证和信息反馈。图4所示为方案一查询认证流程图,具体包括以下子步骤:Step 3: Consumers inquire about authentication and information feedback. Figure 4 shows the flow chart of scheme 1 query authentication, which specifically includes the following sub-steps:
(3-1)校对明码部分产品型号与产品具体生产日期是否与产品商标和日期喷码一致;(3-1) Check whether the product model of the clearly coded part and the specific production date of the product are consistent with the product trademark and date spray code;
(3-2)刮开暗码覆盖的油墨涂层,将完整防伪码K发送至官方查询系统,查询系统认证防伪码K=(M|B|C)的过程由2个认证环节完成:(3-2) Scratch off the ink coating covered by the password, and send the complete anti-counterfeiting code K to the official query system. The process of querying the system to authenticate the anti-counterfeiting code K=(M|B|C) is completed by two authentication links:
认证1是根据输入的B、C计算得到M’,M’为计算得到的预期产品型号,看M’是否等于产品型号M;Certification 1 is to calculate M' based on the input B and C, M' is the calculated expected product model, check whether M' is equal to the product model M;
认证2是提取输入防伪码中的产品特征D’=M’|T’,T’为计算得到的预期产品时间信息,查询D’是否存在于数据库中。Authentication 2 is to extract the product feature D'=M'|T' in the input anti-counterfeiting code, T' is the calculated expected product time information, and query whether D' exists in the database.
若两者答案皆为是,则查询认证系统给予消费者查询结果为真品,并在数据库中对该项记录作相应标记,表示已被查询过;否则,反馈信息给消费者此查询结果为假,并提醒商家出现假冒产品。If both answers are yes, the query authentication system will give the consumer the query result as genuine, and mark the record in the database to indicate that it has been queried; otherwise, feedback information to the consumer that the query result is false , and remind merchants of counterfeit products.
对于上述认证1与认证2中M’与T’以及D’的计算过程就是对B|C的一个解析过程。在本发明实施例中,2014年12月30日23点10分20秒生产的大中华香烟形式一防伪码为:K=DZH20141230B94A44C28D6B,其中,B|C=20141230B94A44C28D6B。图5所示为本发明B|C解析流程图,具体包括以下步骤:The calculation process of M', T' and D' in the above authentication 1 and authentication 2 is an analysis process of B|C. In the embodiment of the present invention, the anti-counterfeit code of Dazhonghua cigarettes produced at 23:10:20 on December 30, 2014 is: K=DZH20141230B94A44C28D6B, where B|C=20141230B94A44C28D6B. Fig. 5 shows that B|C analysis flow chart of the present invention, specifically comprises the following steps:
①对B|C部分前8位和后12位分别进行编码操作。对于前8位的编码与产品生产时间B编码规则相同,后12位编码规则是将十六制数转化为二进制码:① The first 8 bits and the last 12 bits of the B|C part are respectively encoded. The coding rule for the first 8 digits is the same as that of product production time B, and the coding rule for the last 12 digits is to convert hexadecimal numbers into binary codes:
A=code(B)=code(20141230)=01110 1100 11110;A=code(B)=code(20141230)=01110 1100 11110;
W=code(C)=code(B94A44C28D6B)=1011 1001 0100 1010 0100 0100 11000010 1000 1101 0110 1011W=code(C)=code(B94A44C28D6B)=1011 1001 0100 1010 0100 0100 11000010 1000 1101 0110 1011
②将W分成2段,前17位作为一段,后31位作为另一段:② Divide W into 2 segments, with the first 17 digits as one segment and the last 31 digits as another segment:
V=10111001010010100V=10111001010010100
Y=1000100110000101000110101101011Y=1000100110000101000110101101011
③取A与V组成31位二进制数X:③Take A and V to form a 31-bit binary number X:
X=0111011001111010111001010010100X=0111011001111010111001010010100
④将X、Y进行异或操作:④ Exclusive OR operation of X and Y:
Z=X^Y=1111111111111111111111111111111Z=X^Y=111111111111111111111111111111
⑤根据二进制码对应表解码Z得到产品型号M’:⑤ Decode Z according to the binary code correspondence table to obtain the product model M':
M’=Decode(Z)=DZH(大中华香烟)M'=Decode(Z)=DZH (Great China Cigarettes)
⑥解码V与B拼接得到T’。V的解码规则为:将V的位数按照5、6、6划分成3段,然后将每段的二进制数转化成2位十进制数,得到6位十进制数:⑥ Decoding V and B are spliced to obtain T'. The decoding rule of V is: Divide the digits of V into 3 segments according to 5, 6, and 6, and then convert the binary number of each segment into a 2-digit decimal number to obtain a 6-digit decimal number:
b=decode(V)=decode(10111 001010 010100)=231020。b=decode(V)=decode(10111 001010 010100)=231020.
T’=B|b=20141230231020T'=B|b=20141230231020
⑦拼接M’、T’可得到产品特征信息D’:⑦ Splicing M', T' can get product feature information D':
D’=M’|T’=DZH20141230231020D'=M'|T'=DZH20141230231020
本发明另一实施例为查询认证系统方案二(采用形式二防伪码),具体包括以下步骤:Another embodiment of the present invention is query authentication system scheme two (using form two anti-counterfeiting codes), specifically comprising the following steps:
步骤1在产品生产阶段为每件产品显示注明产品型号M(DZH)、生产日期(2014.12.30),并将每件产品的产品特征信息D=(DZH20141230231020)写进数据库;Step 1 shows and indicates the product model M (DZH), production date (2014.12. 30) for each product in the product production stage, and writes the product feature information D=(DZH20141230231020) of each product into the database;
步骤2防伪码的生成与印制,包括以下子步骤:The generation and printing of the anti-counterfeiting code in step 2 includes the following sub-steps:
(2-1)防伪码生成:(2-1) Anti-counterfeiting code generation:
形式二防伪码K:K=decode(code(T)|R),由16位十六进制数组成。图6所示为本发明形式二防伪码(K)生成算法流程图,具体包括以下子步骤:Form 2 anti-counterfeit code K: K=decode(code(T)|R), composed of 16 hexadecimal numbers. Fig. 6 shows that form two anti-counterfeiting codes (K) of the present invention generate algorithm flowchart, specifically comprise the following sub-steps:
(2-1-1)对产品生产时间信息T进行二进制编码:T=20141230231020,code(T)=01110 1100 11110 10111 001010 010100;(2-1-1) Perform binary coding on the product production time information T: T=20141230231020, code(T)=01110 1100 11110 10111 001010 010100;
(2-1-2)计算关系码R:R=1000100110000101000110101101011;(2-1-2) Calculate relation code R: R=1000100110000101000110101101011;
(2-1-3)将步骤(2-1-1)计算的结果与关系码R进行连接,并将结果以十六进制形式表示,即形式二防伪码K为16位十六进制码:(2-1-3) Connect the result calculated in step (2-1-1) with the relationship code R, and express the result in hexadecimal form, that is, the form 2 anti-counterfeiting code K is 16-digit hexadecimal code:
K=decode(code(T)|R)=decode(01110110011110101110010100101001000100110000101000110101101011)=3B3D729444C28D6B。K=decode(code(T)|R)=decode(01110110011110101110010100101001000100110000101000110101101011)=3B3D729444C28D6B.
(2-2)防伪码印制:(2-2) Anti-counterfeiting code printing:
形式二防伪码K采用全油墨方式覆盖,供检测验证时,刮开油墨涂层并输入系统进行认证。Form 2 anti-counterfeiting code K is covered with full ink. When it is used for inspection and verification, the ink coating is scratched off and input into the system for authentication.
步骤3消费者查询认证和信息反馈。2014年12月30日23点10分20秒生产的大中华香烟形式二防伪码为:K=3B3D729444C28D6B。图7所示为本发明方案二查询认证流程图,具体包括以下子步骤:Step 3: Consumers inquire about authentication and information feedback. The anti-counterfeiting code of the form 2 of Dazhong cigarettes produced at 23:10:20 on December 30, 2014 is: K=3B3D729444C28D6B. Fig. 7 shows the flow chart of query authentication of the second scheme of the present invention, which specifically includes the following sub-steps:
(3-1)消费者刮开涂层,将防伪码K发送至查询认证系统,即发送3B3D729444C28D6B到查询认证系统;(3-1) The consumer scratches off the coating and sends the anti-counterfeiting code K to the query authentication system, that is, sends 3B3D729444C28D6B to the query authentication system;
(3-2)查询系统认证鉴别阶段,包括以下子步骤:(3-2) Inquiry system authentication authentication phase, including the following sub-steps:
(3-2-1)对输入的防伪码K进行二进制编码操作,编码规则为将十六进制数转化为二进制码:(3-2-1) Perform binary encoding operation on the input anti-counterfeiting code K, and the encoding rule is to convert hexadecimal numbers into binary codes:
W=code(3B3D729444C28D6B)=0001110110011110101110010100101001000100110000101000110101101011;W=code(3B3D729444C28D6B)=0001110110011110101110010100101001000100110000101000110101101011;
(3-2-2)将W高2位去掉后分成2段,剩余的前31位作为一段,后31位作为另一段,可得:(3-2-2) After removing the high 2 bits of W, it is divided into 2 sections, the remaining first 31 bits are used as one section, and the last 31 bits are used as another section, which can be obtained as follows:
X=0111011001111010111001010010100X=0111011001111010111001010010100
Y=1000100110000101000110101101011Y=1000100110000101000110101101011
(3-2-3)对X、Y进行异或操作,得:(3-2-3) Perform XOR operation on X and Y to get:
Z=X^Y=1111111111111111111111111111111:Z=X^Y=111111111111111111111111111111:
(3-2-4)对Z和X进行解码操作,得到解码后的产品型号M’和产品时间信息T’。其中,Z的解码根据产品型号与二进制码对应表查询,得到解码后的产品型号M’=decode(Z)=DZH(大中华香烟)。(3-2-4) Decode Z and X to obtain the decoded product model M' and product time information T'. Wherein, the decoding of Z is queried according to the product model and the binary code correspondence table, and the product model M'=decode(Z)=DZH (Dazhonghua cigarette) after decoding is obtained.
X的解码分两步:首先将X的位数按照5、4、5、5、6、6划分成6段,并将每段的二进制数转化成2位十进制数,得到12位十进制数,然后根据结果和当前查询时间推算产品时间信息:The decoding of X is divided into two steps: first, the digits of X are divided into 6 segments according to 5, 4, 5, 5, 6, and 6, and the binary number of each segment is converted into a 2-digit decimal number to obtain a 12-digit decimal number. Then calculate the product time information based on the result and the current query time:
temp=decode(X)=decode(01110 1100 11110 10111 001010 010100)temp=decode(X)=decode(01110 1100 11110 10111 001010 010100)
=141230231020。=141230231020.
产品时间信息满足以下几个条件:1.产品时间不大于当前查询时间;2.产品时间信息中的年份后两位对32求余结果等于temp中的高两位;3.在满足条件1和2的所有时间中,产品时间与当前查询时间之差最小。The product time information meets the following conditions: 1. The product time is not greater than the current query time; 2. The result of the remainder of the last two digits of the year in the product time information is equal to the upper two digits in temp; 3. When conditions 1 and Of all the times in 2, the difference between the product time and the current query time is the smallest.
本发明实施例中,temp=141230231020,若查询日期为20140201,则T’=19781230231020,若查询日期为20150101,则T’=20141230231020。In the embodiment of the present invention, temp=141230231020, if the query date is 20140201, then T'=19781230231020, if the query date is 20150101, then T'=20141230231020.
(3-2-5)查询预期产品特征信息D’=M’|T’,反馈产品信息。(3-2-5) Query expected product characteristic information D'=M'|T', and feedback product information.
若查询日期为20150101,查询系统检验DZH20141230231020是否存在于查询数据库中;若存在,则在数据库中对该项记录作相应标记,表示已被查询过,并反馈‘大中华香烟20141230’这一信息给消费者;若不存在,则发出疑似假冒产品警告信息。If the query date is 20150101, the query system checks whether DZH20141230231020 exists in the query database; if it exists, the corresponding mark is made on the record in the database, indicating that it has been queried, and the information of 'Great China Cigarette 20141230' is fed back to Consumers; if not present, a suspected counterfeit product warning message is issued.
本领域的技术人员容易理解,以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。It is easy for those skilled in the art to understand that the above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present invention, All should be included within the protection scope of the present invention.
Claims (9)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510408417.6A CN106339877A (en) | 2015-07-13 | 2015-07-13 | Anti-counterfeiting method based on product feature deformation combination and mutual authentication |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510408417.6A CN106339877A (en) | 2015-07-13 | 2015-07-13 | Anti-counterfeiting method based on product feature deformation combination and mutual authentication |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN106339877A true CN106339877A (en) | 2017-01-18 |
Family
ID=57826975
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201510408417.6A Pending CN106339877A (en) | 2015-07-13 | 2015-07-13 | Anti-counterfeiting method based on product feature deformation combination and mutual authentication |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN106339877A (en) |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20050036618A1 (en) * | 2002-01-16 | 2005-02-17 | Infineon Technologies Ag | Calculating unit and method for performing an arithmetic operation with encrypted operands |
| CN101853605A (en) * | 2010-04-02 | 2010-10-06 | 陈�胜 | Researchable commodity marker, anti-counterfeiting label and anti-counterfeiting method thereof |
| CN102280068A (en) * | 2010-06-11 | 2011-12-14 | 骆太各 | Quadruplet-code label and anti-counterfeiting method for product inquiry through telephone and network |
| CN102629357A (en) * | 2012-03-05 | 2012-08-08 | 于春和 | Secure access method of product information and system thereof |
-
2015
- 2015-07-13 CN CN201510408417.6A patent/CN106339877A/en active Pending
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20050036618A1 (en) * | 2002-01-16 | 2005-02-17 | Infineon Technologies Ag | Calculating unit and method for performing an arithmetic operation with encrypted operands |
| CN101853605A (en) * | 2010-04-02 | 2010-10-06 | 陈�胜 | Researchable commodity marker, anti-counterfeiting label and anti-counterfeiting method thereof |
| CN102280068A (en) * | 2010-06-11 | 2011-12-14 | 骆太各 | Quadruplet-code label and anti-counterfeiting method for product inquiry through telephone and network |
| CN102629357A (en) * | 2012-03-05 | 2012-08-08 | 于春和 | Secure access method of product information and system thereof |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN108874890B (en) | Block chain system with public bibliographic mechanism | |
| CN102004965B (en) | Double ant-counterfeiting method and system of product | |
| CN201716765U (en) | Wine counterfeiting tracing system based on two-dimensional bar codes | |
| CN102779284B (en) | RFID (radio frequency identification device) label integrating comprehensive functions such as merchandise anti-counterfeiting, logistics control and the like | |
| CN106209877A (en) | A kind of be certification core with block chain backstage false-proof authentication system | |
| CN104854642A (en) | Method and apparatus for marking manufactured items using physical characteristic | |
| CN108229974A (en) | Commodity counterfeit prevention traceability system and method based on block chain and virtual coin | |
| CN107292629A (en) | Anti-counterfeit tracking verification method based on block chain and the device using this method | |
| CN102129637A (en) | Commodity anti-counterfeiting method based on security mechanism | |
| CN103886469A (en) | Product two-dimension code generation and query system | |
| CN101807285A (en) | Method for interactive dynamic forgery prevention and verification | |
| WO2011026326A1 (en) | Tracing and recalling system for managing commodity circulation based on internet | |
| CN111861461A (en) | Transaction data tracing method and system based on block chain | |
| WO2008086715A1 (en) | Sanhe code for identifying merchandises | |
| CN102063633A (en) | Anti-counterfeiting method based on radio frequency identification technology | |
| CN104574119B (en) | A kind of method that commodity Jianzhen traces to the source | |
| CN101853605A (en) | Researchable commodity marker, anti-counterfeiting label and anti-counterfeiting method thereof | |
| CN101388767A (en) | Certificate false proof method based on light weight digital signature scheme | |
| CN104021487A (en) | Digital anti-counterfeiting method for implementing repeated verification | |
| CN112149773B (en) | Commodity anti-counterfeiting code generation method based on Chinese character encryption | |
| CN112163230B (en) | A method for generating anti-counterfeiting code of goods with Chinese character encryption | |
| CN104966114A (en) | Product anti-counterfeiting method and device | |
| CN102622624A (en) | Commodity anti-counterfeiting identification system and commodity anti-counterfeiting identification method | |
| CN112217627B (en) | Layered encrypted commodity anti-counterfeiting code generation method | |
| CN101436212A (en) | Digital anti-fake method of wine product |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170118 |
|
| RJ01 | Rejection of invention patent application after publication |