CN103824371B - A kind of electronics instant lottery method for anti-counterfeit - Google Patents

A kind of electronics instant lottery method for anti-counterfeit Download PDF

Info

Publication number
CN103824371B
CN103824371B CN201410084505.0A CN201410084505A CN103824371B CN 103824371 B CN103824371 B CN 103824371B CN 201410084505 A CN201410084505 A CN 201410084505A CN 103824371 B CN103824371 B CN 103824371B
Authority
CN
China
Prior art keywords
lottery
value
random
sales server
lottery ticket
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.)
Expired - Fee Related
Application number
CN201410084505.0A
Other languages
Chinese (zh)
Other versions
CN103824371A (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.)
CHINA MOBILE LOTTERY E-PLATFORM TECHNOLOGY Co Ltd
Original Assignee
CHINA MOBILE LOTTERY E-PLATFORM 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 CHINA MOBILE LOTTERY E-PLATFORM TECHNOLOGY Co Ltd filed Critical CHINA MOBILE LOTTERY E-PLATFORM TECHNOLOGY Co Ltd
Priority to CN201410084505.0A priority Critical patent/CN103824371B/en
Publication of CN103824371A publication Critical patent/CN103824371A/en
Application granted granted Critical
Publication of CN103824371B publication Critical patent/CN103824371B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a kind of electronics instant lottery method for anti-counterfeit, and step includes: A, lottery ticket is sold, and generates random nominal value identification code;B, lottery information is subjected to encrypting storing;C, the information of reward exchange lottery ticket is subjected to operation comparison using identical encryption method, determines the lottery ticket true and false.The present invention can improve the deficiencies in the prior art, improve the anti-fake degree of electronic lottery.

Description

A kind of electronics instant lottery method for anti-counterfeit
Technical field
The present invention relates to data encryption technology field, especially a kind of electronics instant lottery method for anti-counterfeit.
Background technique
As the development of lottery industry has developed electronic lottery on the basis of traditional paper lottery ticket.Electronic lottery It is that purchase and prize are carried out by mobile terminal, without a kind of lottery ticket of papery material object.Due to the particularity of electronic product, pass System paper lottery ticket anti-counterfeit measures can not apply on electronic lottery product, electronic lottery it is anti-fake become one it is urgently to be resolved The problem of.
Summary of the invention
The technical problem to be solved in the present invention is to provide a kind of electronics instant lottery method for anti-counterfeit, are able to solve existing skill The deficiency of art improves the anti-fake degree of electronic lottery.
In order to solve the above technical problems, the technical solution used in the present invention is as follows.
A kind of electronics instant lottery method for anti-counterfeit, comprising the following steps:
A, user connects lottery ticket sales server by mobile terminal and carries out lottery ticket purchase, and sales server is every to what is sold One lottery ticket adds a random nominal value identification code;
B, the lottery information of purchase, random nominal value identification code and selling time are carried out cryptographic calculation by sales server, are added Data after close are stored in sales server, and lottery information is sent to mobile terminal progress plaintext and is shown, by random nominal value Identification code and selling time are sent to mobile terminal after being encoded and are shown;
C, when prize, sales server reads lottery information, random nominal value identification code and the sale stored in mobile terminal Then time carries out cryptographic calculation identical with step B, operation result and the storage result in sales server is compared It is right, lottery ticket is represented if result is identical as true ticket, if result difference represents lottery ticket as false tickets.
Preferably, in step B, Encryption Algorithm uses Hash function encrypting.
Preferably, Hash function used in step B is H=G1*(G2Mod n),
Wherein, H is Hash function used in step B, G1And G2For the two known Hash functions obtained at random, Mod is Modulus operation, n are the modulus factor.
Preferably, the obtaining step of modulus factor of n are as follows:
B1, a random number a is obtained, using the absolute value of a as cycle-index to each numerical digit of random nominal value identification code Circulation value is carried out, the numerical value in numerical digit at the end of circulation is the first intermediate value b, this step again if b=0, until b ≠0;
B2, using the numerical value of b as extract the second intermediate value c digit, since selling time number lowest order To high-order the second intermediate value c for intercepting digit identical with b numerical value;
B3, take and distance second intermediate value c bigger than the second intermediate value c apart from nearest prime number as modulus factor of n.
Brought beneficial effect is by adopting the above technical scheme: by the present invention in that the nominal value different with every lottery ticket Information generates encryption function, avoids failed encryption caused by encryption function is revealed.And this cipher mode makes not legal person Even if member has stolen the encrypted data of storage from sales server, the nominal value letter of lottery ticket can not be also decoded and learnt Breath, a possibility that realizing the uniqueness of lottery ticket decryption verification itself, prevented forgery lottery ticket.
Detailed description of the invention
Fig. 1 is the schematic diagram of first embodiment of the invention.
Specific embodiment
Referring to attached drawing, a kind of electronics instant lottery method for anti-counterfeit, comprising the following steps:
A, user connects lottery ticket sales server by mobile terminal and carries out lottery ticket purchase, and sales server is every to what is sold One lottery ticket adds a random nominal value identification code;
B, the lottery information of purchase, random nominal value identification code and selling time are carried out cryptographic calculation by sales server, are added Data after close are stored in sales server, and lottery information is sent to mobile terminal progress plaintext and is shown, by random nominal value Identification code and selling time are sent to mobile terminal after being encoded and are shown;Random nominal value identification code and selling time can be compiled For the code of bar code, two dimensional code or other achievable machine recognitions, coded sequence can be sequential encoding, or according to The number of random nominal value identification code and selling time is carried out hybrid coding by certain rule;
C, when prize, sales server reads lottery information, random nominal value identification code and the sale stored in mobile terminal Then time carries out cryptographic calculation identical with step B, operation result and the storage result in sales server is compared It is right, lottery ticket is represented if result is identical as true ticket, if result difference represents lottery ticket as false tickets.
It is worth noting that, Encryption Algorithm uses Hash function encrypting in step B.
It is worth noting that, Hash function used in step B is H=G1*(G2Mod n),
Wherein, H is Hash function used in step B, G1And G2For the two known Hash functions obtained at random, Mod is Modulus operation, n are the modulus factor.
In addition, the obtaining step of modulus factor of n are as follows:
B1, a random number a is obtained, using the absolute value of a as cycle-index to each numerical digit of random nominal value identification code Circulation value is carried out, the numerical value in numerical digit at the end of circulation is the first intermediate value b, this step again if b=0, until b ≠0;
B2, using the numerical value of b as extract the second intermediate value c digit, since selling time number lowest order To high-order the second intermediate value c for intercepting digit identical with b numerical value;
B3, take and distance second intermediate value c bigger than the second intermediate value c apart from nearest prime number as modulus factor of n.
By the present invention in that generating encryption function with the different ticket information of every lottery ticket, avoids encryption function leakage and lead The failed encryption of cause.Even and if this cipher mode makes lawless people steal the encrypted of storage from sales server Data can not also be decoded and be learnt the ticket information of lottery ticket, realized the uniqueness of lottery ticket decryption verification itself, prevented A possibility that forging lottery ticket.And the method operand of coding is small, reduces the operation pressure of hardware.
The above shows and describes the basic principles and main features of the present invention and the advantages of the present invention.The technology of the industry Personnel are it should be appreciated that the present invention is not limited to the above embodiments, and the above embodiments and description only describe this The principle of invention, without departing from the spirit and scope of the present invention, various changes and improvements may be made to the invention, these changes Change and improvement all fall within the protetion scope of the claimed invention.The claimed scope of the invention by appended claims and its Equivalent thereof.

Claims (1)

1. a kind of electronics instant lottery method for anti-counterfeit, it is characterised in that the following steps are included:
A, user connects lottery ticket sales server by mobile terminal and carries out lottery ticket purchase, and sales server is to each sold Lottery ticket adds a random nominal value identification code;
B, the lottery information of purchase, random nominal value identification code and selling time are carried out cryptographic calculation by sales server, after encryption Data be stored in sales server, by lottery information be sent to mobile terminal carry out plaintext show, random nominal value is identified Code and selling time are sent to mobile terminal after being encoded and are shown;Encryption Algorithm uses Hash function encrypting, uses Hash function is H=G1*(G2Mod n),
Wherein, H is Hash function used in step B, G1And G2For the two known Hash functions obtained at random, Mod is modulus Operation, n are the modulus factor;
The obtaining step of modulus factor of n are as follows:
B1, a random number a is obtained, each numerical digit of random nominal value identification code is carried out using the absolute value of a as cycle-index Value is recycled, the numerical value in numerical digit at the end of circulation is the first intermediate value b, this step again if b=0, until b ≠ 0;
B2, using the numerical value of b as the digit for extracting the second intermediate value c, to height since the lowest order of the number of selling time Position intercepts the second intermediate value c of digit identical with b numerical value;
B3, take and distance second intermediate value c bigger than the second intermediate value c apart from nearest prime number as modulus factor of n;
C, when prize, sales server reads lottery information, random nominal value identification code and the selling time stored in mobile terminal, Then cryptographic calculation identical with step B is carried out, operation result is compared with the storage result in sales server, if knot Fruit is identical, represents lottery ticket as true ticket, represents lottery ticket if result difference as false tickets.
CN201410084505.0A 2014-03-10 2014-03-10 A kind of electronics instant lottery method for anti-counterfeit Expired - Fee Related CN103824371B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410084505.0A CN103824371B (en) 2014-03-10 2014-03-10 A kind of electronics instant lottery method for anti-counterfeit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410084505.0A CN103824371B (en) 2014-03-10 2014-03-10 A kind of electronics instant lottery method for anti-counterfeit

Publications (2)

Publication Number Publication Date
CN103824371A CN103824371A (en) 2014-05-28
CN103824371B true CN103824371B (en) 2019-07-19

Family

ID=50759409

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410084505.0A Expired - Fee Related CN103824371B (en) 2014-03-10 2014-03-10 A kind of electronics instant lottery method for anti-counterfeit

Country Status (1)

Country Link
CN (1) CN103824371B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106340108A (en) * 2016-08-29 2017-01-18 蒋欣飏 Lottery number selecting method and system based on user terminal
CN106447883B (en) * 2016-09-30 2018-09-14 北京中体骏彩信息技术有限公司 A kind of lottery rewarding method
CN109215209A (en) * 2018-08-07 2019-01-15 联动优势科技有限公司 A kind of electronic lottery and its method and apparatus of formation, verifying
CN110111477B (en) * 2019-04-23 2021-09-14 湖北工业大学 Lottery information anti-counterfeiting authentication method and system based on information hiding

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1261188A (en) * 2000-03-03 2000-07-26 朱文和 Bill (receipt) verification method and system based on electronic signature
CN102332978A (en) * 2011-05-26 2012-01-25 施彬 Lottery ticket off-line verification system
CN102663618A (en) * 2012-03-23 2012-09-12 江苏新彩软件有限公司 Paperless lottery electron voucher enforcement method
CN102685150A (en) * 2012-06-04 2012-09-19 郑州信大捷安信息技术股份有限公司 Safety-based TF card cell phone lottery safety and identification method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101673173B1 (en) * 2016-03-30 2016-11-22 주식회사 케이씨티 Electronic lottery issue system and method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1261188A (en) * 2000-03-03 2000-07-26 朱文和 Bill (receipt) verification method and system based on electronic signature
CN102332978A (en) * 2011-05-26 2012-01-25 施彬 Lottery ticket off-line verification system
CN102663618A (en) * 2012-03-23 2012-09-12 江苏新彩软件有限公司 Paperless lottery electron voucher enforcement method
CN102685150A (en) * 2012-06-04 2012-09-19 郑州信大捷安信息技术股份有限公司 Safety-based TF card cell phone lottery safety and identification method

Also Published As

Publication number Publication date
CN103824371A (en) 2014-05-28

Similar Documents

Publication Publication Date Title
CN105825257B (en) Information hiding and hiding information extracting method and system based on two-dimensional bar code
TWI776084B (en) Two-dimensional code provision, verification method and device
JP5739876B2 (en) Unique identifiers, methods for providing unique identifiers, and use of unique identifiers
CN103824371B (en) A kind of electronics instant lottery method for anti-counterfeit
ES2809489T3 (en) Secure transmission of sensitive data
CN105099712B (en) A kind of data ciphering method based on Dicode verification
KR20200005639A (en) Data check
CN106408065B (en) A kind of two dimension code encoding method and device
CN103345690B (en) Anti-counterfeiting method based on RFID and physical unclonable function
CN104361378B (en) Internet of Things antifalsification label and its verification method based on Quick Response Code encryption technology
JP6273379B2 (en) Contour encryption and decryption
US10068237B2 (en) Transmit an authentication mark
CN106688205A (en) Method and system for marking manufactured items to detect unauthorised refilling
CN104809490A (en) Card anti-counterfeiting system based on multidimensional code and authentication method based on card anti-counterfeiting system
US20230060663A1 (en) Playing card dealing shoe activation device
JP2014029659A (en) Illegality detection system
CN102842053B (en) A kind of false proof figure code label and manufacture method thereof
CN203753614U (en) Anti-counterfeit packing box
CN102710657A (en) One-time password generation method and system
WO2007072450A3 (en) Puf protocol with improved backward security
CN108898205A (en) The creation of binary graphics coding, authentication method and system
CN104751341A (en) Commodity anti-counterfeiting method based on two-dimensional code dynamic passwords
Yang et al. Enhancing multi-factor cheating prevention in visual cryptography based minimum (k, n)-connected graph
CN104091191B (en) A kind of efficiently and effectively false proof authenticating method
KR20120134822A (en) User certification system and method for 2 dimensional barcode

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20190719

CF01 Termination of patent right due to non-payment of annual fee