CN106788981B - Optical label anti-counterfeiting method based on pseudo-random number stream password - Google Patents

Optical label anti-counterfeiting method based on pseudo-random number stream password Download PDF

Info

Publication number
CN106788981B
CN106788981B CN201710044449.1A CN201710044449A CN106788981B CN 106788981 B CN106788981 B CN 106788981B CN 201710044449 A CN201710044449 A CN 201710044449A CN 106788981 B CN106788981 B CN 106788981B
Authority
CN
China
Prior art keywords
data
optical label
pseudo
random number
legal
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.)
Active
Application number
CN201710044449.1A
Other languages
Chinese (zh)
Other versions
CN106788981A (en
Inventor
王晓东
方俊
李江亮
苏爱民
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Whyhow Information Technology Co Ltd
Original Assignee
Beijing Whyhow Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Whyhow Information Technology Co Ltd filed Critical Beijing Whyhow Information Technology Co Ltd
Priority to CN201710044449.1A priority Critical patent/CN106788981B/en
Publication of CN106788981A publication Critical patent/CN106788981A/en
Application granted granted Critical
Publication of CN106788981B publication Critical patent/CN106788981B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/065Encryption by serially and continuously modifying data stream elements, e.g. stream cipher systems, RC4, SEAL or A5/3
    • H04L9/0656Pseudorandom key sequence combined element-for-element with data sequence, e.g. one-time-pad [OTP] or Vernam's cipher
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1408Methods for optical code recognition the method being specifically adapted for the type of code
    • G06K7/14172D bar codes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation
    • H04J3/0658Clock or time synchronisation among packet nodes
    • H04J3/0661Clock or time synchronisation among packet nodes using timestamps

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Electromagnetism (AREA)
  • General Health & Medical Sciences (AREA)
  • Toxicology (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides an optical label anti-counterfeiting method based on pseudo-random number stream cipher, wherein pseudo-random number stream cipher generators with the same configuration are installed on personal portable intelligent equipment and legal optical label equipment, a pseudo-random number stream cipher key is input into the pseudo-random number stream cipher generator to output an encrypted cipher stream to encrypt legal optical label data stream, and the optical label data information is encrypted by using the pseudo-random number stream cipher.

Description

Optical label anti-counterfeiting method based on pseudo-random number stream password
Technical Field
The invention relates to an optical communication technology, in particular to an optical label anti-counterfeiting method based on pseudo-random number stream passwords.
Background
The optical label has the advantages of long distance, loose requirement on visible light conditions, strong directivity and positioning, and the display content of the optical label can be changed on line along with time in real time, so that a large amount of information capacity is provided, the optical label has stronger information interaction capacity than the traditional two-dimensional code label, and great convenience is provided for both users and merchants. Due to the registration openness of the optical label, anyone can publish personal services or information by purchasing or applying for the optical label, which makes the possibility that lawless persons counterfeit the optical label. Therefore, in order to prevent illegal counterfeiting of the optical label, it is necessary to provide an anti-counterfeiting method for the optical label.
Disclosure of Invention
The invention aims to provide an optical label anti-counterfeiting method based on pseudo-random number stream password, which can resist the counterfeiting threat of an optical label.
In order to achieve the purpose, the invention adopts the following technical scheme:
an optical label anti-counterfeiting method based on pseudo-random number stream passwords is characterized in that pseudo-random number stream password generators with the same configuration are installed on a personal portable intelligent device and a legal optical label device, and the optical label anti-counterfeiting method comprises the following steps:
the method comprises the following steps: clock synchronization
The time synchronization alignment is carried out between the personal portable intelligent equipment and the legal optical label equipment;
step two: serial cipher generator key distribution
Respectively sending the pseudo-random number stream cipher keys to the personal portable intelligent equipment and the legal optical label equipment through a hidden channel;
step three: optical label encryption
Respectively inputting the pseudo-random number stream cipher key into pseudo-random number stream cipher generators of the personal portable intelligent device and the legal optical label device to output an encrypted cipher stream, inputting the encrypted cipher stream into a legal optical label data stream, and performing encryption operation on the legal optical label data stream by using the encrypted cipher stream to obtain an encrypted legal optical label data stream;
step four: optical label displaying encrypted data
Displaying the encrypted legal optical label data stream through a legal optical label, and playing the data stream in a rolling manner every T time;
step five: collecting optical label data
A common user acquires legal optical label display data through personal portable intelligent equipment;
step six: data decryption
Decoding the collected legal optical label display data and the encrypted legal optical label data stream by using the encrypted cipher stream personal portable intelligent equipment to recover the legal optical label data stream;
step seven: optical label data parsing
The legal optical label data flow message comprises an initial identifier, a message length, a data area, a message timestamp and a data message check bit, wherein the data message check bit is a result value of check calculation from the initial identifier to the message timestamp;
firstly, finding a data sequence starting mark, and reading the length of a message by taking the starting mark as a reference point to obtain the length l of the data message, wherein l is a positive integer; reading a complete data message with the length of l, calculating a parity check value and comparing the parity check value with a data message check bit, continuing the following operation if the parity check value and the data message check bit are equal, and otherwise, discarding the data message;
and secondly, comparing the current time with the message timestamp, if the difference time between the current time and the message timestamp is less than t, and t is a time deviation value set by a user, considering that the data is valid, and otherwise, considering that the data is discarded as a replay attack data packet.
Further, after comparing the current time with the message timestamp in the seventh step, the seventh step further includes analyzing and reading data of each domain in the data area, and if the data cannot be analyzed or the obtained optical label transmission data is illegal data, the data is found to be a counterfeit behavior, and a system alarm is generated.
Further, the clock synchronization in step one adopts methods including, but not limited to, GPS, time request of high precision clock and third party time service.
Further, the random sequence key is periodically changed, the pseudo random number stream cipher key is randomly modified every W weeks, and W is a positive number.
Further, the data area includes, but is not limited to, a service ID number, a service type, service data, service attribute information, a reserved field.
Furthermore, the legal optical label comprises two parts of a signal unit and a positioning identifier, wherein the positioning identifier is three larger rectangular frames in the figure, the signal unit is a small rectangular square between the positioning identifiers, and each signal unit in the signal unit group flashes according to a preset program under the working state, so that more signal contents are displayed through multiple frames.
The invention discloses an optical label anti-counterfeiting method based on pseudo-random number stream password, which is characterized in that pseudo-random number stream password generators with the same configuration are installed on a personal portable intelligent device and a legal optical label device, a pseudo-random number stream password key is input into the pseudo-random number stream password generator to output an encrypted password stream to encrypt a legal optical label data stream, and the optical label data information is encrypted by using the pseudo-random number stream password, so that only a publisher legally owning the pseudo-random number stream generator and a correct password seed can generate optical label data.
The encryption method has the advantages of public system, convenient operation, wide popularization and application range, simple and reasonable process, strong safety and capability of immediately discovering counterfeit optical labels. The method utilizes the characteristics of information interaction, instant editing and large data information quantity of the optical label, which cannot be achieved by other label methods at present.
Drawings
FIG. 1 shows an application scenario of an optical label anti-counterfeit method based on pseudo-random number stream cipher;
FIG. 2 message format of a legal data flow;
FIG. 3 an optical label sample;
FIG. 4 is a system flow chart of an optical label anti-counterfeiting method based on pseudo-random number stream cipher.
Detailed Description
The present invention will now be described in further detail with reference to specific examples, which are intended to be illustrative, but not limiting, of the invention.
An application scenario of the optical label anti-counterfeiting method based on the pseudo-random number stream cipher is shown in fig. 1. In the figure, 1-1 is a common user, 1-2 is a personal portable intelligent device of the common user 1-1, 1-3 is a legal optical label, 1-4 is a malicious optical label forger, 1-5 is a malicious optical label forger, 1-4 is the forged optical label, 1-6 is a pseudo-random number stream cipher key, 1-7 is a pseudo-random number stream cipher generator, 1-8 is a pseudo-random number stream cipher key with 1-6 as input, the encrypted cipher stream generated by the pseudo random number stream cipher generator 1-7 is a legal optical label data stream 1-9, an encrypted legal optical label data stream 1-10, an encrypted illegal optical label data stream 1-11 and an encrypted meaningless data generated after the decryption operation of the illegal optical label data stream 1-11, respectively.
Fig. 2 is a message format of a legal data flow, where the message is composed of multiple data fields, where 2-1 is an initial identifier, 2-2 is a message length, 2-3 is a data area, the data area includes, but is not limited to, a service ID number, a service type, service data, service attribute information, a reserved field, etc., 2-4 is a message timestamp, 2-5 is a data message check bit, the check is a result value of performing check calculation on the initial identifier 2-1 to the message timestamp 2-4, and the message is played on a legal optical label 1-3 in a rolling manner with T as a period.
Fig. 3 is an optical label sample.
As shown in fig. 4, assuming that the personal portable intelligent device 1-2 and the legitimate optical label device have been negotiated with a pseudo random number stream cipher generator 1-7 with the same configuration, the optical label anti-counterfeit method based on the pseudo random number stream cipher is as follows:
the method comprises the following steps: clock synchronization is carried out, time synchronization alignment is carried out on the personal portable intelligent device 1-2 and legal optical label equipment, and the adopted methods include but are not limited to a GPS, a time request of a high-precision clock, third-party time service and the like;
step two: distributing a key of a sequence cipher generator, and respectively sending a pseudo-random number stream cipher key 1-6 to a personal portable intelligent device 1-2 and a legal optical label device through a hidden channel;
step three: inputting a pseudo-random number stream cipher key 1-6 by the personal portable intelligent equipment 1-2 and legal optical label equipment to start outputting a cipher key stream, inputting legal optical label data stream 1-9, and encrypting the legal optical label data stream 1-9 by using an encryption cipher stream 1-8 to obtain an encrypted legal optical label data stream 1-10;
step four: displaying the encrypted data by the optical label, displaying the encrypted legal optical label data stream 1-10 by the legal optical label 1-3, and playing the encrypted data stream once in a rolling manner every T time;
step five: collecting optical label data, and collecting legal optical label 1-3 display data by a common user 1-1 through a personal portable intelligent device 1-2;
step six: data decryption, wherein the personal portable intelligent equipment 1-2 decodes the collected display data of the legal optical label 1-3 and the encrypted legal optical label data stream 1-10 to recover the legal optical label data stream 1-9;
step seven: analyzing optical label data, firstly finding a data sequence starting identifier 2-1; reading the length 2-2 of the message by taking the initial mark 2-1 as a reference point to obtain the length l of the data message, wherein l is a positive integer; reading a complete data message with the length of l, calculating a parity check value, comparing the parity check value with the check bits 2-5 of the data message, continuing the following operation if the parity check value is equal to the check bits, and otherwise, discarding the data message; comparing the current time with the message timestamp 2-4, if the difference time between the current time and the message timestamp is less than t, and t is a time deviation value set by a user, considering the data to be valid, and otherwise, considering the data to be discarded as a replay attack data packet; analyzing and reading the data of each domain in the data area 2-3 to obtain optical label transmission data (if illegal data displayed by an optical label, the obtained data is meaningless data, the operation cannot be carried out, a counterfeit behavior is found, and a system alarm is generated);
step eight: and (4) periodically replacing the random sequence key, randomly modifying the key every W weeks for ensuring the safety of the system, and executing the step two.
The invention is further described with reference to specific examples.
Example 1. The user U consumes through the optical label L. Before consumption, the mobile phones of the L and the U complete time synchronization based on GPS in the previous period, the L and the U are also provided with the same stream cipher generators, and when the U registers for service application of a service provider providing L service, the stream cipher keys are also sent to the two parties in a digital integer form; the service data 010001010000101010 … is encrypted by stream cipher to obtain encrypted data:
001010101010010011…
the data is displayed on L in a rolling cycle with the period of 2 seconds; the U reads the data through the mobile phone:
001010101010010011…001010101010010011…001010101010010011…
decrypting the data by using the key stream to obtain the following data
010001010000101010…010001010000101010…010001010000101010…
By searching the start bit identifier 010001, one period of data is obtained:
010001010000101010…
analyzing a timestamp and a check bit from the data, verifying that the data is legal and effective, intercepting the content of a data area, and realizing optical label service; and (6) finishing.
The foregoing is a more detailed description of the invention and it is not intended that the invention be limited to the specific embodiments described herein, but that various modifications, alterations, substitutions and equivalents will be apparent to those skilled in the art without departing from the spirit of the invention, and are intended to be within the scope of the invention as defined by the appended claims.

Claims (6)

1. An optical label anti-counterfeiting method based on pseudo-random number stream password is characterized in that: the pseudo-random number stream cipher generators (1-7) with the same configuration are installed on the personal portable intelligent equipment (1-2) and the legal optical label equipment, and the optical label anti-counterfeiting method comprises the following steps:
the method comprises the following steps: clock synchronization
The personal portable intelligent equipment (1-2) is aligned with the legal optical label equipment in time synchronization;
step two: serial cipher generator key distribution
Sending the pseudo-random number stream cipher keys (1-6) to the personal portable intelligent equipment (1-2) and the legal optical label equipment through a hidden channel respectively;
step three: optical label encryption
Respectively inputting pseudo-random number stream cipher keys (1-6) into a personal portable intelligent device (1-2) and a pseudo-random number stream cipher generator (1-7) of legal optical label equipment to output encrypted cipher streams (1-8), inputting legal optical label data streams (1-9), and performing encryption operation on the legal optical label data streams (1-9) by using the encrypted cipher streams (1-8) to obtain encrypted legal optical label data streams (1-10);
step four: optical label displaying encrypted data
Displaying the encrypted legal optical label data stream (1-10) through a legal optical label (1-3), and playing the legal optical label data stream in a rolling way once every T time;
step five: collecting optical label data
A common user (1-1) collects display data of a legal optical label (1-3) through a personal portable intelligent device (1-2);
step six: data decryption
Decoding the collected display data of the legal optical label (1-3) and the encrypted legal optical label data stream (1-10) by using the encrypted cipher stream (1-8) and the personal portable intelligent equipment (1-2) to recover the legal optical label data stream (1-9);
step seven: optical label data parsing
The legal optical label data flow (1-9) message comprises an initial identifier (2-1), a message length (2-2), a data area (2-3), a message timestamp (2-4) and a data message check bit (2-5), wherein the data message check bit (2-5) is a result value of checking calculation performed on the part from the initial identifier (2-1) to the message timestamp (2-4);
firstly, finding a data sequence starting mark (2-1), and reading the message length (2-2) by taking the starting mark (2-1) as a datum point to obtain the length I of a data message, wherein I is a positive integer; reading the complete data message with the length I, calculating a parity check value and comparing the parity check value with a data message check bit (2-5), and continuing the following operation if the parity check value and the data message check bit are equal, otherwise, discarding the data message;
and secondly, comparing the current time with the message timestamp (2-4), if the difference time between the current time and the message timestamp is less than t, and t is a time deviation value set by a user, considering that the data is valid, and otherwise, considering that the data is discarded as a replay attack data packet.
2. The optical label anti-counterfeiting method based on the pseudo-random number stream cipher according to claim 1, characterized in that: and seventhly, after the current time is compared with the message timestamp (2-4), analyzing and reading data of each domain of the data area (2-3), and if the data cannot be analyzed or the obtained optical label transmission data are illegal data, discovering the data as a counterfeit behavior, and generating a system alarm.
3. The optical label anti-counterfeiting method based on the pseudo-random number stream cipher according to claim 1, characterized in that: the method adopted for clock synchronization in the first step includes but is not limited to GPS, time request of high-precision clock and third-party time service.
4. The optical label anti-counterfeiting method based on the pseudo-random number stream cipher according to claim 1, characterized in that: and periodically replacing the random sequence key, and randomly modifying the pseudo-random number stream cipher key every W weeks, wherein W is a positive number.
5. The optical label anti-counterfeiting method based on the pseudo-random number stream cipher according to claim 1, characterized in that: the data area (2-3) includes but is not limited to a service ID number, a service type, service data, service attribute information, a reserved field.
6. The optical label anti-counterfeiting method based on the pseudo-random number stream cipher according to claim 1, characterized in that: the legal optical label (1-3) comprises two parts of a signal unit and a positioning mark, wherein the positioning mark is three larger rectangular frames, the signal unit is a rectangular square between the positioning marks, each signal unit in a signal unit group flashes according to a preset program under the working state, and more signal contents are displayed through multiple frames.
CN201710044449.1A 2017-01-21 2017-01-21 Optical label anti-counterfeiting method based on pseudo-random number stream password Active CN106788981B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710044449.1A CN106788981B (en) 2017-01-21 2017-01-21 Optical label anti-counterfeiting method based on pseudo-random number stream password

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710044449.1A CN106788981B (en) 2017-01-21 2017-01-21 Optical label anti-counterfeiting method based on pseudo-random number stream password

Publications (2)

Publication Number Publication Date
CN106788981A CN106788981A (en) 2017-05-31
CN106788981B true CN106788981B (en) 2020-04-28

Family

ID=58943587

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710044449.1A Active CN106788981B (en) 2017-01-21 2017-01-21 Optical label anti-counterfeiting method based on pseudo-random number stream password

Country Status (1)

Country Link
CN (1) CN106788981B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107886017B (en) * 2017-11-09 2021-02-19 陕西外号信息技术有限公司 Method and device for reading optical label sequence

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8031875B1 (en) * 2007-08-09 2011-10-04 Emc Corporation Key distribution in unidirectional channels with applications to RFID
US8214651B2 (en) * 2008-07-09 2012-07-03 International Business Machines Corporation Radio frequency identification (RFID) based authentication system and methodology
CN102184506A (en) * 2011-05-10 2011-09-14 南通大学 Digital anti-counterfeiting method based on chaos password encryption
CN103326864B (en) * 2013-06-24 2016-03-09 詹万泉 A kind of electronic tag anti-fake authentication method
CN104851007B (en) * 2015-06-10 2018-05-15 深圳市瑞盟包装有限公司 Commodity information management system and its method based on Quick Response Code and from dissolution system

Also Published As

Publication number Publication date
CN106788981A (en) 2017-05-31

Similar Documents

Publication Publication Date Title
CN106357396B (en) Digital signature method and system and quantum key card
Panah et al. On the properties of non-media digital watermarking: a review of state of the art techniques
CN103067156B (en) The URL encryption of mobile Internet user resources access, verification method and device
CN109657426A (en) A kind of data source tracing method based on digital signature and digital watermarking
CN106713336B (en) Electronic data safeguard system and method based on double, asymmetrical encryption technology
CN108259407B (en) Symmetric encryption method and system based on timestamp
CN112070496B (en) Block chain hidden information transmission method and system based on dynamic marking
CN106161383A (en) A kind of multimedia data encryption, the method and device of deciphering
CN109308421A (en) A kind of information tamper resistant method, device, server and computer storage medium
CN101977190A (en) Digital content encryption transmission method and server side
CN103237010B (en) The server end of digital content is cryptographically provided
CN107483192A (en) A kind of data transmission method and device based on quantum communication
CN110474908A (en) Transaction monitoring and managing method and device, storage medium and computer equipment
CN110210270A (en) Two-dimensional barcode information safety encryption and system and image in 2 D code analytic method and system
CN108549824A (en) A kind of data desensitization method and device
CN113111386A (en) Privacy protection method for block chain transaction data
CN103237011B (en) Digital content encryption transmission method and server end
CN113660725B (en) Positioning anti-cheating method, device and system, computer equipment and storage medium
CN107733936B (en) Encryption method for mobile data
CN110166230A (en) Code key management method and device
CN106788981B (en) Optical label anti-counterfeiting method based on pseudo-random number stream password
CN104252604B (en) Database based building block system type dynamic encryption method
CN103873257A (en) Secrete key updating, digital signature and signature verification method and device
CN108900472A (en) The transmission method and device of information
CN102223229A (en) Method for safe transmission of data in public network

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant