CN103078731B - The encryption method of lottery data and system - Google Patents

The encryption method of lottery data and system Download PDF

Info

Publication number
CN103078731B
CN103078731B CN201310002192.5A CN201310002192A CN103078731B CN 103078731 B CN103078731 B CN 103078731B CN 201310002192 A CN201310002192 A CN 201310002192A CN 103078731 B CN103078731 B CN 103078731B
Authority
CN
China
Prior art keywords
lottery
lottery ticket
ticket choosing
selling system
parameter
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
CN201310002192.5A
Other languages
Chinese (zh)
Other versions
CN103078731A (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.)
SHENZHEN SINODATA TECH Co Ltd
Original Assignee
SHENZHEN SINODATA TECH 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 SHENZHEN SINODATA TECH Co Ltd filed Critical SHENZHEN SINODATA TECH Co Ltd
Priority to CN201310002192.5A priority Critical patent/CN103078731B/en
Publication of CN103078731A publication Critical patent/CN103078731A/en
Application granted granted Critical
Publication of CN103078731B publication Critical patent/CN103078731B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

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

Abstract

The present invention is applicable to lottery ticket technical field, provide a kind of encryption method and system of lottery data, described method comprises: lottery central system obtains the parameter message of lottery ticket choosing and selling system, and described parameter message comprises: the parameter of lottery ticket choosing and selling system and the mark of lottery ticket choosing and selling system; The mark of lottery central system foundation lottery ticket choosing and selling system inquires about the parameter of the lottery ticket choosing and selling system of this mark correspondence in database, the parameter of the lottery ticket choosing and selling system in the parameter of the lottery ticket choosing and selling system that comparison inquires and parameter message, as changed, regenerate a new key; New key issues by lottery central system, utilizes new key to encrypt and decrypt lottery transactions data between lottery ticket choosing and selling system and lottery transactions communication server system.Technical scheme provided by the invention has the high advantage of security performance.

Description

The encryption method of lottery data and system
Technical field
The invention belongs to lottery ticket technical field, particularly relate to a kind of encryption method and system of lottery data.
Background technology
Existing computer lottery ticket is equipped with enciphered data, but encryption and decryption are convenient, and the key that the lottery ticket choosing and selling system of the Betting Station of prior art uses is all identical, this have impact on the fail safe of lottery ticket greatly.
Summary of the invention
The object of the embodiment of the present invention is the encryption method providing a kind of lottery data, is intended to solve the low problem of lottery ticket choosing and selling fail safe of the prior art.
The embodiment of the present invention is achieved in that a kind of encryption method of lottery data, and described method comprises:
Lottery central system obtains the parameter message that lottery ticket choosing and selling system sends, and described parameter message comprises: the parameter of lottery ticket choosing and selling system and the mark of lottery ticket choosing and selling system;
The mark of lottery central system foundation lottery ticket choosing and selling system inquires about the parameter of the lottery ticket choosing and selling system of this mark correspondence in database, the parameter of the lottery ticket choosing and selling system in the parameter of the lottery ticket choosing and selling system that comparison inquires and parameter message, as changed, regenerate a new key;
New key is handed down to lottery transactions communication server system by lottery central system;
Lottery transactions communication server system changes the authentication mark of the lottery ticket choosing and selling system of this mark correspondence;
Lottery ticket choosing and selling system is to lottery transactions communication server system initiating business request;
Lottery ticket choosing and selling system is again downloaded and is obtained new key, utilizes new key to encrypt and decrypt lottery transactions data between lottery ticket choosing and selling system and lottery transactions communication server system.
Optionally, described new key is specially:
3DES key.
On the other hand, provide a kind of encryption system of lottery data, described system comprises: lottery central system, lottery ticket choosing and selling system and lottery transactions communication server system; Wherein
Described lottery central system obtains the parameter message that lottery ticket choosing and selling system sends, and described parameter message comprises: the parameter of lottery ticket choosing and selling system and the mark of lottery ticket choosing and selling system;
The mark of described lottery central system foundation lottery ticket choosing and selling system inquires about the parameter of the lottery ticket choosing and selling system of this mark correspondence in database, the parameter of the lottery ticket choosing and selling system in the parameter of the lottery ticket choosing and selling system that comparison inquires and parameter message, as changed, regenerate a new key;
New key is handed down to described lottery transactions communication server system by described lottery central system;
Described lottery transactions communication server system changes the authentication mark of the lottery ticket choosing and selling system of this mark correspondence;
Described lottery ticket choosing and selling system is to lottery transactions communication server system initiating business request;
Described lottery ticket choosing and selling system is again downloaded and is obtained new key, utilizes new key to encrypt and decrypt lottery transactions data between described lottery ticket choosing and selling system and described lottery transactions communication server system.
Optionally, described new key is specially:
3DES key.
Compared with prior art, beneficial effect is the embodiment of the present invention: the technical scheme that the specific embodiment of the invention provides has the advantage improving fail safe.
Accompanying drawing explanation
Fig. 1 is the flow chart of the encryption method of the lottery data that the embodiment of the present invention provides.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
The specific embodiment of the invention provides a kind of encryption method of lottery data, and the method is completed by lottery central system, and the method as shown in Figure 1, comprising:
S11, lottery central system obtain the parameter message of lottery ticket choosing and selling system, and described parameter message comprises: the parameter of lottery ticket choosing and selling system and the mark of lottery ticket choosing and selling system;
The mark of S12, lottery central system foundation lottery ticket choosing and selling system inquires about the parameter of the lottery ticket choosing and selling system of this mark correspondence in database, the parameter of the lottery ticket choosing and selling system in the parameter of the lottery ticket choosing and selling system that comparison inquires and parameter message, as changed, regenerate a new key;
New key is handed down to lottery transactions communication server system by S13, lottery central system;
S14, lottery transactions communication server system change the authentication mark of the lottery ticket choosing and selling system of this mark correspondence;
S15, lottery ticket choosing and selling system are to lottery transactions communication server system initiating business request;
S16, lottery ticket choosing and selling system are again downloaded and are obtained new key, utilize new key to encrypt and decrypt lottery transactions data between lottery ticket choosing and selling system and lottery transactions communication server system.
In addition, it should be noted that, the trigger condition that above-mentioned lottery ticket choosing and selling system downloads the mode obtaining new key again can be multiple, such as, lottery central system comprises this three major types of communications parameter, controling parameters and Local Parameters to the information that lottery ticket choosing and selling system sends, as long as this three major types have modified, lottery ticket choosing and selling system all will be logged off, then again download up-to-date parameter and new 3DES key, wherein above-mentioned authentication mark belongs to this kind of imbody of Local Parameters.
In addition, it should be noted that current three major types parameter and the three major types parameter nearest with current point in time stored in the past as multiple, such as, can be compared by the determination methods judging above-mentioned three major types parameter modification, if different, then illustrate that three major types parameter changes.This kind of mode can upgrade in time.In addition, according to the feature in lottery ticket field, though the three major types parameter of some situation lottery ticket choosing and selling system there occurs change, but its physical location does not change, such as lottery ticket choosing and selling system position there occurs trickle change, now judge that the method for three major types parameter modification can be: by the mean value comparison of current three major types parameter with the three major types parameter of the setting-up time section stored in the past, difference as current three major types parameter and this mean value exceedes threshold value, then determine amendment, as current three major types parameter and this average difference do not exceed threshold value, then do not confirm do not have three major types parameter not revise.
The method that the specific embodiment of the invention provides, when the parameter of lottery ticket choosing and selling system changes, generates new key and carries out lottery transactions, contribute to the lifting of security performance like this.
Optionally, above-mentioned new key is specifically as follows: triple DEA (TripleDataEncryptionAlgorithm, 3DES) key.
Optionally, above-mentioned 3DES key is specifically as follows, the 16 3DES keys being.
Optionally, the parameter of above-mentioned lottery ticket choosing and selling system is specifically as follows: the position of lottery ticket choosing and selling system, resources occupation rate etc.
The encryption system of a kind of lottery data that the specific embodiment of the invention provides, described system comprises: lottery central system, lottery ticket choosing and selling system and lottery transactions communication server system; Wherein
Described lottery central system obtains the parameter message that lottery ticket choosing and selling system sends, and described parameter message comprises: the parameter of lottery ticket choosing and selling system and the mark of lottery ticket choosing and selling system;
The mark of described lottery central system foundation lottery ticket choosing and selling system inquires about the parameter of the lottery ticket choosing and selling system of this mark correspondence in database, the parameter of the lottery ticket choosing and selling system in the parameter of the lottery ticket choosing and selling system that comparison inquires and parameter message, as changed, regenerate a new key;
New key is handed down to described lottery transactions communication server system by described lottery central system;
Described lottery transactions communication server system changes the authentication mark of the lottery ticket choosing and selling system of this mark correspondence;
Described lottery ticket choosing and selling system is to lottery transactions communication server system initiating business request;
Described lottery ticket choosing and selling system is again downloaded and is obtained new key, utilizes new key to encrypt and decrypt lottery transactions data between described lottery ticket choosing and selling system and described lottery transactions communication server system.
Optionally, new key is specially:
3DES key.
It should be noted that in above-described embodiment, included unit is carry out dividing according to function logic, but is not limited to above-mentioned division, as long as can realize corresponding function; In addition, the concrete title of each functional unit, also just for the ease of mutual differentiation, is not limited to protection scope of the present invention.
In addition, one of ordinary skill in the art will appreciate that all or part of step realized in the various embodiments described above method is that the hardware that can carry out instruction relevant by program has come, corresponding program can be stored in a computer read/write memory medium, described storage medium, as ROM/RAM, disk or CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any amendments done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within protection scope of the present invention.

Claims (4)

1. an encryption method for lottery data, is characterized in that, described method comprises:
Lottery central system obtains the parameter message of lottery ticket choosing and selling system, and described parameter message comprises: the parameter of lottery ticket choosing and selling system and the mark of lottery ticket choosing and selling system;
The mark of lottery central system foundation lottery ticket choosing and selling system inquires about the parameter of the lottery ticket choosing and selling system of this mark correspondence in database, the parameter of the lottery ticket choosing and selling system in the parameter of the lottery ticket choosing and selling system that comparison inquires and parameter message, as changed, regenerate a new key;
New key is handed down to lottery transactions communication server system by lottery central system;
Lottery transactions communication server system changes the authentication mark of the lottery ticket choosing and selling system of this mark correspondence;
Lottery ticket choosing and selling system is to lottery transactions communication server system initiating business request;
Lottery ticket choosing and selling system is again downloaded and is obtained new key, utilize new key to encrypt and decrypt lottery transactions data between lottery ticket choosing and selling system and lottery transactions communication server system, the trigger condition that described lottery ticket choosing and selling system downloads the mode obtaining new key again comprises communications parameter, controling parameters and the Local Parameters that described lottery central system sends to lottery ticket choosing and selling system and is modified.
2. method according to claim 1, is characterized in that, described new key is specially:
3DES key.
3. an encryption system for lottery data, is characterized in that, described system comprises: lottery central system, lottery ticket choosing and selling system and lottery transactions communication server system; Wherein
Described lottery central system obtains the parameter message that lottery ticket choosing and selling system sends, and described parameter message comprises: the parameter of lottery ticket choosing and selling system and the mark of lottery ticket choosing and selling system;
The mark of described lottery central system foundation lottery ticket choosing and selling system inquires about the parameter of the lottery ticket choosing and selling system of this mark correspondence in database, the parameter of the lottery ticket choosing and selling system in the parameter of the lottery ticket choosing and selling system that comparison inquires and parameter message, as changed, regenerate a new key;
New key is handed down to described lottery transactions communication server system by described lottery central system;
Described lottery transactions communication server system changes the authentication mark of the lottery ticket choosing and selling system of this mark correspondence;
Described lottery ticket choosing and selling system is to lottery transactions communication server system initiating business request;
Described lottery ticket choosing and selling system is again downloaded and is obtained new key, utilize new key to encrypt and decrypt lottery transactions data between described lottery ticket choosing and selling system and described lottery transactions communication server system, the trigger condition that described lottery ticket choosing and selling system downloads the mode obtaining new key again comprises communications parameter, controling parameters and the Local Parameters that described lottery central system sends to lottery ticket choosing and selling system and is modified.
4. system according to claim 3, is characterized in that, described new key is specially:
3DES key.
CN201310002192.5A 2013-01-05 2013-01-05 The encryption method of lottery data and system Active CN103078731B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310002192.5A CN103078731B (en) 2013-01-05 2013-01-05 The encryption method of lottery data and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310002192.5A CN103078731B (en) 2013-01-05 2013-01-05 The encryption method of lottery data and system

Publications (2)

Publication Number Publication Date
CN103078731A CN103078731A (en) 2013-05-01
CN103078731B true CN103078731B (en) 2016-01-06

Family

ID=48155142

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310002192.5A Active CN103078731B (en) 2013-01-05 2013-01-05 The encryption method of lottery data and system

Country Status (1)

Country Link
CN (1) CN103078731B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109672693B (en) * 2019-02-02 2021-06-04 江苏通付盾区块链科技有限公司 Lottery ticket prize exchanging method and device based on block chain
CN110276878A (en) * 2019-07-04 2019-09-24 中添彩(深圳)科技有限公司 Lottery ticket Method of printing, device, self-aided terminal and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101005357A (en) * 2006-12-28 2007-07-25 北京飞天诚信科技有限公司 Method and system for updating certification key
CN101583124A (en) * 2009-06-10 2009-11-18 大唐微电子技术有限公司 Authentication method and system of subscriber identity module and terminal
CN101789863A (en) * 2009-01-22 2010-07-28 深圳市文鼎创数据科技有限公司 Safe data information transmission method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101005357A (en) * 2006-12-28 2007-07-25 北京飞天诚信科技有限公司 Method and system for updating certification key
CN101789863A (en) * 2009-01-22 2010-07-28 深圳市文鼎创数据科技有限公司 Safe data information transmission method
CN101583124A (en) * 2009-06-10 2009-11-18 大唐微电子技术有限公司 Authentication method and system of subscriber identity module and terminal

Also Published As

Publication number Publication date
CN103078731A (en) 2013-05-01

Similar Documents

Publication Publication Date Title
JP5005811B2 (en) Method, system and trusted service manager for securely transmitting an application to a mobile phone
US8725211B2 (en) Trusted service manager managing reports of lost or stolen mobile communication devices
CN104380777A (en) Systems and methods for enabling secure transactions with mobile devices
CN101160778A (en) Provisioning root keys
CN104093139A (en) Aerial card-writing method, server and smart card
CN103620556A (en) Binding applications to device capabilities
CN104380652A (en) Multi-issuer secure element partition architecture for NFC enabled devices
CN101894235B (en) Smart card security session system
CN103108327A (en) Method, device and system of verification of safety association between terminal equipment and user card
CN103107888B (en) The identity identifying method that the dynamic multi-attribute of facing moving terminal is multi-level
CN101826219A (en) Rail transportation ticket-card processing intelligent system and data encryption auditing method
CN104995646A (en) Method for controlling financial chip of payment device
CN101938742A (en) Method for reversely cloning subscriber identity module, device and system
CN103502991B (en) Equipment configuration and the determination of programming data
CN103078731B (en) The encryption method of lottery data and system
CN105631662A (en) NFC payment method, NFC payment system and mobile terminal
CN104899496A (en) Data reading method and terminal for same
CN101753532B (en) Method for controlling storage equipment, verifying device and storage device
CN101841806A (en) Service card information processing method, device and system and communication terminal
CN106788994A (en) Key updating method suitable for cloud storage system
CN103871160A (en) Recharging method and system for E-wallet in RFID (Radio Frequency Identification Device)-UIM (User Identifier Module) card
CN104202166A (en) Erp(enterprise resource planning) system data encryption method
CN105103180B (en) Method for handling the distribution of mobile credit card
CN103248487A (en) Near field communication authentication method, certificate authorization center and near field communication equipment
KR20130141371A (en) Methods for backup and restoration of profile in euicc environment and devices therefor

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant