CN111614461B - Display processing method - Google Patents

Display processing method Download PDF

Info

Publication number
CN111614461B
CN111614461B CN202010311807.2A CN202010311807A CN111614461B CN 111614461 B CN111614461 B CN 111614461B CN 202010311807 A CN202010311807 A CN 202010311807A CN 111614461 B CN111614461 B CN 111614461B
Authority
CN
China
Prior art keywords
client device
key
decryption key
instant
query request
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
CN202010311807.2A
Other languages
Chinese (zh)
Other versions
CN111614461A (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 CN202010311807.2A priority Critical patent/CN111614461B/en
Publication of CN111614461A publication Critical patent/CN111614461A/en
Application granted granted Critical
Publication of CN111614461B publication Critical patent/CN111614461B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0816Key establishment, i.e. cryptographic processes or cryptographic protocols whereby a shared secret becomes available to two or more parties, for subsequent use
    • H04L9/0819Key transport or distribution, i.e. key establishment techniques where one party creates or otherwise obtains a secret value, and securely transfers it to the other(s)
    • H04L9/0825Key transport or distribution, i.e. key establishment techniques where one party creates or otherwise obtains a secret value, and securely transfers it to the other(s) using asymmetric-key encryption or public key infrastructure [PKI], e.g. key signature or public key certificates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07BTICKET-ISSUING APPARATUS; FARE-REGISTERING APPARATUS; FRANKING APPARATUS
    • G07B1/00Machines for printing and issuing tickets
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C15/00Generating random numbers; Lottery apparatus
    • G07C15/006Generating random numbers; Lottery apparatus electronically
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • H04L63/0442Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload wherein the sending and receiving network entities apply asymmetric encryption, i.e. different keys for encryption and decryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0816Key establishment, i.e. cryptographic processes or cryptographic protocols whereby a shared secret becomes available to two or more parties, for subsequent use
    • H04L9/0819Key transport or distribution, i.e. key establishment techniques where one party creates or otherwise obtains a secret value, and securely transfers it to the other(s)
    • H04L9/0822Key transport or distribution, i.e. key establishment techniques where one party creates or otherwise obtains a secret value, and securely transfers it to the other(s) using key encryption key

Abstract

The application is applicable to the technical field of instant invoicing, and provides a display processing method, which comprises the following steps: the method comprises the steps that a first client device responds to first user operation, scans and analyzes an image identifier printed on an instant bill to obtain encrypted data corresponding to the image identifier, wherein the encrypted data comprises encrypted lottery drawing data, and the lottery drawing data is used for indicating whether the instant bill wins or not; the first client device decrypts the encrypted data by using a first decryption key from a key server to obtain the lottery drawing data; the first client device displays the prize drawing data.

Description

Display processing method
Technical Field
The application belongs to the technical field of instant invoicing, and particularly relates to a display processing method.
Background
At present, a common paper ticket consists of a paper substrate and a lottery drawing pattern printed on the paper substrate, wherein the lottery drawing pattern is covered and protected by a scratch-off pattern layer. After the user purchases the paper, namely the bill is drawn, the scratch-off layer is scraped, and whether the bill is drawn is determined according to the drawing pattern.
Disclosure of Invention
In view of the above, the embodiment of the application provides a display processing method and terminal equipment, so as to solve the problem of low billing security in the prior art.
A first aspect of an embodiment of the present application provides a method for display processing, which may include:
the first client device responds to a first user operation, scans and analyzes an image identifier printed on an instant bill to obtain encrypted data corresponding to the image identifier, wherein the encrypted data can comprise encrypted lottery drawing data, and the lottery drawing data is used for indicating whether the instant bill wins or not;
the first client device decrypts the encrypted data by using a first decryption key from a key server to obtain the prize drawing data;
the first client device displays the drawing data.
In a specific embodiment, before the first client device decrypts the encrypted data using the first decryption key from the key server to obtain the prize data, the method may further include:
the first client device sending a first query request to the key server in response to a second user operation, the first query request may include the instant invoice sequence number;
the first client device obtains the first decryption key sent by the key server according to the serial number.
In a specific embodiment, the first query request may further include identification information for instructing the key server to encrypt the first decryption key with an encryption key corresponding to the identification information after querying the first decryption key,
The first client device obtaining the first decryption key sent by the key server according to the serial number may include:
the first client device obtains the encrypted first decryption key sent by the key server according to the serial number;
the first client device decrypts the encrypted first decryption key by using the second decryption key corresponding to the identification information, and obtains the first decryption key.
In a specific embodiment, the identification information may comprise a user identification or a device identification of the first client device.
In a specific embodiment, the first client device sending, in response to the second user operation, a first query request to the key server may include:
the first client device responds to a third user operation and scans and analyzes a payment bar code or the image identifier printed on the instant bill to obtain the payment code of the instant bill, wherein the image identifier is obtained by converting the payment code and the encrypted data;
the first client device performs a payment operation according to the payment code and, upon completion of the payment operation, sends a payment complete response to the key server, which may include the serial number.
In a specific embodiment, the method may further comprise:
the first client device sending a second query request to the key server, the second query request may include the sequence number, the second query request being a query request to query an acquisition record of the first decryption key;
the first client device receives and displays the acquisition record sent by the key server according to the serial number.
In a specific embodiment, the image identifier comprises at least one or a combination of more of a one-dimensional bar code, a two-dimensional code, a three-dimensional code, an ordered symbol, or an ordered pattern.
A second aspect of an embodiment of the present application provides a method for distributing a key, which may include:
the key server receives a first query request sent by a first client device and used for acquiring a first decryption key, wherein the first query request can comprise a sequence number of an instant bill, an image identifier obtained by utilizing encryption data conversion is printed on the instant bill, the encryption data can comprise encrypted lottery drawing data, and the lottery drawing data is data indicating whether the instant bill wins or not;
the key server obtains the first decryption key corresponding to the serial number from the local query;
The key server transmits the first decryption key, which is a key employed in decrypting the encrypted data, to the first client device.
In a specific embodiment, the first query request may further include identification information, and the distributing method may further include:
the key server inquires an encryption key corresponding to the identification information;
the key server encrypts the first decryption key by using the encryption key to obtain the encrypted first decryption key;
the key server sending the key to the first client device may include:
the key server sends the encrypted first decryption key to the first client device.
In a specific embodiment, before the key server sends the first decryption key to the first client device, the distribution method may further include:
the key server receives an activation instruction sent by an activation device, wherein the activation instruction can comprise the serial number;
and the key server sets the issuing authority of the first decryption key corresponding to the serial number according to the activation instruction.
In a specific embodiment, the key server receives an activation instruction sent by the activation device, and may include:
The key server receives a payment completion response from the second client device to the instant invoice, which may include the serial number.
In a specific embodiment, after the key server transmits the first decryption key to the first client device, the distribution method may further include:
the key server stores an acquisition record of the first decryption key by the first client device;
the key server receives a second query request sent by the third client device, wherein the second query request can comprise the serial number, and the second query request is a query request for querying the acquired record or querying the first decryption key;
the key server sends the acquisition record to the third client device.
In a specific embodiment, the image identifier comprises at least one or a combination of more of a one-dimensional bar code, a two-dimensional code, a three-dimensional code, an ordered symbol, or an ordered pattern.
A third aspect of an embodiment of the present application provides an instant invoice activation method, which may include:
the method comprises the steps that an activating device responds to an activating operation of an instant bill, a serial number of the instant bill is determined, an image identifier obtained by means of conversion of encrypted data is printed on the instant bill, the encrypted data comprise encrypted lottery drawing data, and the lottery drawing data are data indicating whether the instant bill wins or not;
The activation device sends an activation instruction for the instant invoice to a key server, wherein the activation instruction is used for instructing the key server to set issuing authority for opening a first decryption key corresponding to the serial number, and the first decryption key is used for decrypting the encrypted data.
A fourth aspect of an embodiment of the present application provides a method of printing an instant ticket, which may include:
acquiring lottery drawing data of an instant ticket to be printed;
acquiring a first encryption key from a key server;
encrypting the prize drawing data by using the first encryption key to obtain encrypted data;
converting the encrypted data into a graphic identifier, and printing the graphic identifier on a base material to obtain the instant bill.
A fifth aspect of an embodiment of the present application provides an instant bill, which may include:
the image identifier is used for indicating encrypted data, and the encrypted data can comprise encrypted lottery drawing data, wherein the lottery drawing data is data indicating whether the instant ticket wins or not.
In a specific embodiment, the image identifier also indicates the serial code and/or payment code of the instant ticket.
In a particular embodiment, the instant ticket may also include a serial number bar code and a payment bar code printed on the substrate.
In a specific embodiment, the area of the image identifier is covered with a scratch-off layer.
In a specific embodiment, the image identifier is a two-dimensional code, a one-dimensional code, or a bar code obtained by combining a two-dimensional code with a one-dimensional code.
A sixth aspect of an embodiment of the present application provides an instant invoice activation system, which may include:
a first client device and a key server, the first client device and the key server being communicatively connected;
the first client device is configured to perform the method of any one of the first aspects;
the key server is for performing the method of any of the second aspects.
A seventh aspect of embodiments of the present application provides another instant invoicing activation system, which may comprise:
the system comprises a first client device, an activation device and a key server, wherein the first client device and the activation device are both in communication connection with the key server;
the activation device is used for sending an activation instruction to the key server after responding to the activation operation of the user on the instant bill, wherein the activation instruction can comprise the serial number of the instant bill;
the key server is used for setting the issuing authority of the first decryption key corresponding to the serial number according to the activation instruction; inquiring the first decryption key corresponding to the serial number according to the serial number; transmitting the first decryption key to the first client device;
The first client device is configured to send a first query request for obtaining the key to the key server, where the first query request may include the sequence number; acquiring the first decryption key sent by the key server according to the serial number; scanning and analyzing the image identifier printed on the instant bill to obtain encrypted data; and decrypting the encrypted data by using the first decryption key to obtain and display the lottery drawing data, wherein the lottery drawing data is data indicating whether the instant ticket is winning or not.
An eighth aspect of an embodiment of the present application provides a first client device, which may include:
the execution unit is used for responding to the first user operation, scanning and analyzing the image identifier printed on the instant bill to obtain the encrypted data corresponding to the image identifier, wherein the encrypted data can comprise encrypted lottery drawing data which is used for indicating whether the instant bill wins or not;
the processing unit is used for decrypting the encrypted data by using a first decryption key from the key server to obtain the lottery drawing data;
and a display unit for displaying the lottery drawing data.
In a specific embodiment, the first client device may further include:
The receiving and transmitting unit is used for responding to the second user operation and transmitting a first query request to the key server, wherein the first query request can comprise the instant billing serial number; and acquiring the first decryption key sent by the key server according to the serial number.
In one specific embodiment of the present invention,
the first inquiry request may further include identification information for instructing the key server to encrypt the first decryption key with an encryption key corresponding to the identification information after inquiring about the first decryption key,
the receiving and transmitting unit is specifically configured to obtain the encrypted first decryption key sent by the key server according to the serial number;
the processing unit is further configured to decrypt the encrypted first decryption key by using a second decryption key corresponding to the identification information, to obtain the first decryption key.
In a specific embodiment, the identification information may comprise a user identification or a device identification of the first client device.
In one specific embodiment of the present invention,
the execution unit is further used for responding to a third user operation, scanning and analyzing a payment bar code or the image identifier printed on the instant bill to obtain the payment code of the instant bill, wherein the image identifier is obtained by converting the payment code and the encrypted data;
The receiving and transmitting unit is specifically configured to perform a payment operation according to the payment code, and send a payment completion response to the key server after the payment operation is completed, where the payment completion response may include the serial number.
In one specific embodiment of the present application,
the transceiver unit is further configured to send a second query request to the key server, where the second query request may include the sequence number, and the second query request is a query request for querying an acquisition record of the first decryption key; and receiving and displaying the acquired record sent by the key server according to the serial number.
In a specific embodiment, the image identifier comprises at least one or a combination of more of a one-dimensional bar code, a two-dimensional code, a three-dimensional code, an ordered symbol, or an ordered pattern.
A ninth aspect of an embodiment of the present application provides a key server, which may include:
the receiving and transmitting unit is used for receiving a first query request which is sent by first client equipment and used for acquiring a first decryption key, wherein the first query request can comprise a sequence number of an instant bill, an image identifier obtained by utilizing encryption data conversion is printed on the instant bill, the encryption data can comprise encrypted lottery drawing data, and the lottery drawing data is data indicating whether the instant bill wins or not; transmitting the first decryption key to the first client device, the first decryption key being a key used in decrypting the encrypted data;
And the processing unit is used for obtaining the first decryption key corresponding to the serial number from the local inquiry.
In a specific embodiment, the first query request may also include identification information,
the processing unit is also used for inquiring the encryption key corresponding to the identification information; encrypting the first decryption key by using the encryption key to obtain the encrypted first decryption key;
the transceiver unit is specifically configured to send the encrypted first decryption key to the first client device.
In one specific embodiment of the present invention,
the transceiver unit is further configured to receive an activation instruction sent by the activation device, where the activation instruction may include the serial number;
the processing unit is further configured to set, according to the activation instruction, a issuing authority for opening the first decryption key corresponding to the serial number.
In one specific embodiment of the present invention,
the transceiver unit is specifically configured to receive a payment completion response from the second client device to the instant ticket, where the payment completion response may include the serial number.
In one specific embodiment of the present invention,
the processing unit is further configured to save an acquisition record of the first decryption key by the first client device;
The transceiver unit is further configured to receive a second query request sent by the third client device, where the second query request may include the sequence number, and the second query request is a query request for querying the acquisition record or querying the first decryption key; the acquisition record is sent to the third client device.
In a specific embodiment, the image identifier comprises at least one or a combination of more of a one-dimensional bar code, a two-dimensional code, a three-dimensional code, an ordered symbol, or an ordered pattern.
A tenth aspect of an embodiment of the present application provides an activation device, which may include:
the response module is used for responding to the activation operation of the instant ticket, determining the serial number of the instant ticket, printing an image identifier obtained by conversion of encrypted data on the instant ticket, wherein the encrypted data comprises encrypted lottery drawing data, and the lottery drawing data is data indicating whether the instant ticket wins or not;
and the receiving and transmitting module is used for sending an activation instruction for the instant invoicing, the activation instruction is used for indicating the key server to set the issuing authority of opening a first decryption key corresponding to the serial number, and the first decryption key is used for decrypting the encrypted data.
An eleventh aspect of the embodiment of the present application provides a printing apparatus, which may include:
the receiving and transmitting module is used for acquiring lottery drawing data of an instant bill to be printed; acquiring a first encryption key from a key server;
the encryption and decryption module is used for encrypting the lottery drawing data by using the first encryption key to obtain encrypted data;
and the printing module is used for converting the encrypted data into a graphic identifier and printing the graphic identifier on the base material to obtain the instant bill.
A twelfth aspect of an embodiment of the present application provides an electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the method according to any one of the first to fourth aspects when the computer program is executed.
A thirteenth aspect of an embodiment of the present application provides a computer-readable storage medium storing a computer program which, when executed by a processor, implements the steps of the method according to any one of the first to fourth aspects.
In the embodiment of the application, a display processing method is provided, and the method is applied to an instant bill. The ticket face of the instant ticket is printed with an image identifier obtained by converting encrypted data, wherein the encrypted data is obtained by encrypting the lottery drawing data indicating whether the instant ticket wins or not. When drawing a prize, the client device scans the image identifier to obtain the encrypted data, and then decrypts the encrypted data by using the first decryption key obtained from the key server, so as to obtain and display the prize drawing data, thereby providing a method for displaying based on the instant drawing a prize drawing flow.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of a prior art instant bill provided by an embodiment of the present application;
FIG. 2A is a schematic diagram of one embodiment of an instant ticket provided by an embodiment of the present application;
FIG. 2B is a schematic illustration of another embodiment of an instant ticket provided by an embodiment of the present application;
FIG. 2C is a schematic illustration of another embodiment of an instant ticket provided by an embodiment of the present application;
FIG. 3 is a schematic diagram of an embodiment of a method for displaying a process according to an embodiment of the present application;
FIG. 4 is a schematic diagram of an embodiment of a method for distributing keys according to an embodiment of the present application;
FIG. 5A is a schematic diagram of another embodiment of a method for displaying a process according to an embodiment of the present application;
fig. 5B is a schematic view of an application scenario of a method for displaying processing according to an embodiment of the present application;
Fig. 5C is a schematic view of an application scenario of a method for displaying processing according to an embodiment of the present application;
FIG. 6 is a schematic diagram of one embodiment of a method for activating an instant ticket provided by an embodiment of the present application;
FIG. 7 is a schematic view of an embodiment of a method of printing an instant ticket according to an embodiment of the present application
FIG. 8 is a schematic diagram of one embodiment of an instant invoice activation system provided in an embodiment of the present application;
FIG. 9 is a schematic diagram of another embodiment of an instant invoice activation system provided in an embodiment of the present application;
FIG. 10 is a schematic diagram of one embodiment of a first client device provided by an embodiment of the present application;
FIG. 11 is a schematic diagram of another embodiment of a first client device according to an embodiment of the present application;
FIG. 12 is a schematic diagram of one embodiment of a key server provided by an embodiment of the present application;
FIG. 13 is a schematic view of an embodiment of an activation device provided by an embodiment of the present application;
FIG. 14 is a schematic view of an embodiment of a printing apparatus according to an embodiment of the present application;
fig. 15 is a schematic view of an embodiment of an electronic device according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth such as the particular system architecture, techniques, etc., in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
Existing instant tickets, as shown in fig. 1, may generally include a substrate 100, a playing area 110, and a scratch-off layer 120 overlying the playing area. At the time of the prize, the user, after removing scratch-off layer 120, determines whether to win based on the prize content (e.g., including "My number" and "winning number" as is common) presented in game field 110. Because the scratch-off layer 120 may be damaged during the transportation and circulation process of the instant ticket, the instant ticket drawing data is directly displayed after the damage, so that the instant ticket drawing data is revealed before the instant ticket is not sold, and the instant ticket drawing safety is affected to a certain extent.
In order to solve the problems in the prior art, the technical scheme of the application is provided. In order to illustrate the technical scheme of the application, the following description is made by specific examples.
Referring specifically to fig. 2A, fig. 2A is a schematic diagram illustrating an embodiment of an instant ticket according to an embodiment of the present application, including:
a substrate 200 and an image identifier 210 printed on the substrate;
the image identifier 210 is used to indicate encrypted drawing data, which is data indicating whether the instant ticket wins or not.
Specifically, after the image identifier 210 is scanned by a specific device or a device in which a specific scanning program is installed, the image identifier 210 may be parsed by the scanning device to obtain encrypted lottery drawing data. The drawing data is data indicating whether the instant ticket wins or not. The image identifier may be, for example, electronic data similar to paper game data contained in a conventional instant on-play game area as shown in fig. 1. Specific common plain text prize data may include "my number" and "winning number", and after the user obtains the plain text prize data, the user may determine whether the instant ticket wins by comparing the "my number" with the "winning number".
The encryption of the prize drawing data may be performed during printing, that is, during drawing. Firstly, after the device or printing system for printing the instant ticket obtains the plain text lottery drawing data of the instant ticket with a certain specific serial number, the special device can encrypt the lottery drawing data by utilizing a symmetric encryption algorithm or an asymmetric encryption algorithm, and the key used for encryption and decryption is distributed and distributed by the key management device. When the user draws the instant ticket, the user needs to scan the image identifier 210 by using a specific device or a device provided with a specific scanning program, analyze the encrypted drawing data to obtain the encrypted drawing data, and then decrypt the encrypted drawing data by using a key obtained in advance from the key management device, thereby obtaining plain text drawing data and judging whether the instant ticket is drawn.
In addition, it should be noted that, in the embodiment of the present application, the base 200 may be the same as or different from the existing base material that is to be billed, and the image identifier 210 may be a two-dimensional code, a one-dimensional code, or a combination of two-dimensional code and one-dimensional code, and the specific form may be to select a suitable bar code according to the data amount of the encrypted lottery drawing data, which is not limited herein.
In a particular embodiment, the image identifier 210 also indicates the serial code and/or payment code of the instant ticket. Specifically, the image identifier 210 may parse the instant ticket serial number and/or the payment code in addition to the encrypted lottery data after being scanned by a specific device or a device installed with a specific scanning program. The serial number is used for uniquely identifying the instant bill, and the payment code is used for the scanning device to carry out payment operation on the instant bill according to the payment code.
It should be noted that, the image identifier 210 may be a plurality of types of bar codes, such as a two-dimensional code, a one-dimensional code, or a combination of a one-dimensional code and a two-dimensional code, or other self-defined ordered symbols or a set of ordered patterns that can be converted by data, such as a combination pattern of a pattern and a two-dimensional code, a recognizable ordered pattern directly generated by using data, and the like. Since the amount of information that can be contained in the different types of image identifiers 210 is different, in practical designs, an appropriate type may be determined according to the amount of information that needs to be indicated by the image identifier 210, and thus the form of the specific image identifier 210 is not particularly limited in this embodiment.
In a specific embodiment, fig. 2B is a schematic diagram of another embodiment of an instant ticket according to an embodiment of the present application, including:
the instant bill also includes a serial number bar code 220 and/or a payment bar code 230 printed on the substrate. In particular, compared to the foregoing simultaneous indication of the serial code and/or the payment code on the image identifier 210 in the instant invoice shown in fig. 2A, the present embodiment provides a new design: the serial code may be a serial number bar code 22 and the payment code may be a payment bar code 230, either simultaneously or separately printed on the substrate 200 upon which the ticket is to be placed. Meanwhile, the specific form of the serial number bar code 220 and the payment bar code 230 may be the same as or different from the image identifier 210, and are not particularly limited herein.
In another specific embodiment, referring specifically to fig. 2C, fig. 2C is a schematic diagram of an embodiment of an instant ticket according to an embodiment of the present application, including:
in the instant schematic drawing shown in fig. 2A or 2B, the image identifier 210 may also be covered on its surface with a scratch-off layer 240. Specifically, after the image identifier 210 is printed on the substrate 200, a scratch-off layer 240 may be printed on the surface of the image identifier 210, so as to further improve the security of the prize drawing data.
From the above technical solutions, the embodiment of the present application has the following advantages:
in the technical scheme, the bill consists of a matrix and an image identifier printed on the matrix, and the encrypted lottery drawing data is indicated by the image identifier. Compared with the existing plain text lottery drawing data which is displayed on the instant ticket, the scheme has the advantage that the encrypted lottery drawing data is displayed on the ticket surface, so that the scheme has higher security.
Referring specifically to fig. 3, fig. 3 is a schematic diagram illustrating an embodiment of a method for displaying a transaction according to an embodiment of the present application, including steps S301 to S303:
s301, the first client device responds to the first user operation, scans and analyzes the image identifier printed on the instant bill, and obtains encrypted data corresponding to the image identifier.
In a specific embodiment, the first client device scans, i.e., invoices, the image identifier exposed after scraping the scratch-off layer in response to a first user operation, e.g., in response to a user clicking a scan button.
The first client device may be a terminal device having a scanning function, and a program for resolving an image identifier may be preset on the terminal device. Typically, the first client device may include any terminal such as a mobile phone, a tablet computer, or a barcode scanner. The first client device obtains the encrypted data indicated by the image identifier after scanning and analyzing the image identifier of the billing. Wherein the encrypted data includes encrypted lottery drawing data of the instant ticket. The drawing data is data indicating whether or not the drawing is winning.
The program can be a special terminal application, when the image identifier is scanned to acquire the encrypted data, a user can log in an account, can perform offline or online scanning, can store the record of scanning the instant invoice in the local of the first client device, and can upload the scanned record to the server. The user may then query the scanned instant ticket record via the first client device.
In a specific embodiment, after the user downloads and installs the dedicated terminal application on the first client device, user registration needs to be completed, on one hand, the authentication server may audit the user identity according to a preset rule, and on the other hand, the authentication server may issue a digital certificate to the first client device after the user identity audit is passed. The user device may be securely authenticated based on the digital certificate before the business process begins. The user equipment can be subjected to multiple security authentications based on the digital certificate in the whole business process. And stopping executing the business process or exiting the business process once the user equipment safety certification is not passed.
It should be noted that the authentication server may be the same server as the key server described below, or may be a different server.
S302, the first client device decrypts the encrypted data by using the first decryption key from the key server to obtain the prize-winning data.
In a specific embodiment, after the first client device obtains the encrypted data, a prompt interface for decrypting the encrypted data may be popped up at the interface of the first client device. At this time, the first client device decrypts the decrypted data by using the first decryption key from the key server, and obtains the prize-winning data. It should be noted that, the first decryption key is stored in the key server in advance, and each of the instant serial numbers corresponds to a unique first decryption key. The first client device may acquire the first decryption key by responding to an input operation of the user after the user learns the first decryption key, or actively transmitting a query request to the key server to acquire the first decryption key. The key server may be an operator or supervisor controlled server device, i.e. an invoicing, for managing and issuing the first decryption key.
S303, the first client device displays the lottery drawing data.
In a specific embodiment, after the first client device obtains the prize data, a reminder interface may be generated, on which the prize data is displayed. Specifically, when displaying, the drawing data may be displayed in the form of text or image, or a combination of text and image.
In another specific embodiment, when the first client device displays the drawing data of the instant ticket on the prompt interface, prompt information of whether the instant ticket wins or not may also be displayed.
From the above technical solutions, the embodiment of the present application has the following advantages:
in the embodiment of the application, the image identifier is printed on the instant bill and is used for indicating the encrypted lottery drawing data. When drawing a prize, the encrypted drawing data is decrypted by using a first decryption key from a key server to obtain and display the drawing data, so that a method for displaying and processing based on the instant drawing a prize flow is provided.
Based on the instant billing shown in any one of the embodiments of fig. 2A to 2C, referring specifically to fig. 4, fig. 4 is a schematic diagram of one embodiment of a key distribution method according to an embodiment of the present application, including steps S401 to S403:
s401, the key server receives a first query request sent by the first client device to acquire a first decryption key, where the first query request includes a serial number.
In a specific embodiment, the first query request is a query request for obtaining a first decryption key, where the query request includes a sequence number of an instant bill, and the first decryption key is a key locally managed by a key server and corresponding to the sequence number.
S402, the key server obtains a first decryption key corresponding to the serial number from the local query.
In a specific embodiment, the key server stores the correspondence between different serial numbers and decryption keys. After the key management server receives the first inquiry request, a first decryption key corresponding to the serial number is determined according to the serial number and the corresponding relation included in the first inquiry request.
S403, the key server sends a first decryption key to the first client device, wherein the first decryption key is a key adopted when decrypting the encrypted data.
In a specific embodiment, after determining the first decryption key, the key server sends the first decryption key to the first client device. Wherein the first decryption key is a key required for decrypting the encrypted data on the instant invoice.
In the embodiment of the application, the image identifier is printed on the instant bill and is used for indicating the encrypted lottery drawing data. When the lottery is drawn, the key server issues a first decryption key to the first client device, and instructs the first client device to decrypt the encrypted lottery drawing data by using the first decryption key, so as to obtain and display the lottery drawing data, thereby providing a key distribution method based on the instant lottery drawing process.
Based on the instant invoices shown in fig. 2A to 2C, referring specifically to fig. 5A, fig. 5A is a schematic diagram of an embodiment of a method for displaying a transaction according to an embodiment of the present application, including steps S501 to S506:
s501, the first client device responds to a second user operation and sends a first query request to the key server, wherein the first query request comprises a serial number of an instant bill.
In a specific embodiment, the first query request may be a request message generated by the first client device in response to a user operation. For example, as shown in fig. 5B, the first client device opens the relevant website in response to the user operation, and responds to the user-entered instant-invoicing serial number, thereby sending a first query request to the key server to query the first decryption key corresponding to the serial number. The first query request may also be a request message automatically generated by the client device after detecting that the user has completed payment for the instant ticket. For example, if the image identifier of the instant ticket is further used to indicate a payment code, or if the instant ticket is printed with a payment bar code, the first client device obtains the payment code after scanning the image identifier or the payment bar code in response to the user operation, and automatically sends the first query request to the key server after successful payment according to the payment code.
In a specific embodiment, the first client device is responsive to a second user operation to send a first query request to the key server after the user authentication passes, the first query request including the instant-invoicing serial number. Specifically, the first client device may initiate authentication in response to the second user operation, and after the authentication is passed, send a first query request to the key server. For example, the first client device responds to the second user operation, loads the authentication interface, and if the acquired password input by the user on the authentication interface is the same as the preset password, the first client device sends a first query request to the key server; if the acquired password input by the user on the identity authentication interface is the same as the preset password, stopping the service flow, or prompting the user to input the password again. By means of encryption, the safety of the scheme is further improved.
S502, the key server obtains a first decryption key corresponding to the serial number from the local query.
S503, the key server sends a first decryption key to the first client device, where the first decryption key is a key used when decrypting the encrypted data.
It should be noted that steps S502 to S503 are similar to steps S402 to S403 in the embodiment shown in fig. 4, and will not be repeated here.
S504, the first client device responds to the first user operation, scans and analyzes the image identifier printed on the instant bill, and obtains the encrypted data corresponding to the image identifier.
In another specific embodiment, step S504 may be performed before step S501, where the first client device obtains the encrypted data after performing step S504, and pops up a prompt interface for decrypting the encrypted data, as shown in fig. 5C. At this time, the first client responds to the touch operation of the user on the "acquire" button, and generates a first query request.
S505, the first client device decrypts the encrypted data by using the first decryption key from the key server to obtain the prize-winning data.
S506, the first client device displays the lottery drawing data.
It should be noted that steps S504-S506 are similar to steps S301-303 in the embodiment shown in fig. 3, and will not be repeated here.
In a specific embodiment, in step S501, the user may use an application preset on the first client device and send a first query request to the key server through the application after logging into the account. Wherein the first query request may further comprise identification information, the identification information comprising a user identification or a device identification of the first client device. The user identification may be account information of the first client device currently logged into the account, such as account identification or user name information, etc. The device identification may be a device number or physical address of the first client device, etc.
In another specific embodiment, the key server locally stores the correspondence between the identification information and the encryption key. After step S502, if the first query request sent by the first client device to the key server further includes identification information, the key server queries to obtain a first decryption key according to the serial number in the first query request, queries to obtain an encryption key corresponding to the identification information, and encrypts the first decryption key by using the encryption key to obtain an encrypted first decryption key. Specifically, for example, the user may log into an account of the application on the first client device through the CA (certification authority) certificate, and obtain the first decryption key from the key server. When the first decryption key is issued, the key server encrypts the first decryption key by using the key (private key or public key) of the CA certificate, and obtains the encrypted first decryption key.
In another specific embodiment, before step S503, if the key server obtains the encrypted first decryption key, then in S503, the key server sends the encrypted first decryption key to the first client device.
In another specific embodiment, after receiving the encrypted first decryption key, the first client device decrypts the encrypted first decryption key with the second decryption key corresponding to the identification information to obtain the first decryption key. Specifically, if the encrypted first decryption key is encrypted by the key server using the key of the CA certificate of the user, the first client device decrypts the encrypted first decryption key by using another key corresponding to the CA certificate, thereby obtaining the first decryption key.
In another specific embodiment, the billing is printed with a payment bar code or image identifier converted from a payment code and encrypted data. At this time, the first inquiry request message may be that the first client device scans a payment bar code or an image identifier to obtain a payment code, and transmits a payment completion response to the key server after the payment is completed according to the payment code, where the payment completion response includes a serial number of an instant bill for which the payment is completed.
In another particular embodiment, the first client device may send a second query request to the key server. The second inquiry request is an inquiry request for inquiring the acquisition record of the first decryption key, and the inquiry request can comprise a serial number. Thereafter, the first client device receives and displays the acquisition record about the first decryption key sent by the key server. Through the obtained record, the user can judge whether the instant bill is queried by other users in advance for the first decryption key, if so, the instant bill can be determined to be possibly a waste bill, otherwise, the instant bill is a normal bill. The acquisition record may include an indication of whether the first decryption key has been acquired, or may include time information acquired if the first decryption key has been acquired before, and so on. The embodiment provides a method for inquiring whether the bill is the waste bill or not for the user, thereby avoiding the occurrence of the existing secondary selling condition caused by reprinting after the scratch-off image layer can be scraped.
In the embodiment of the application, the technical scheme provides a display processing method, wherein an image identifier obtained by converting encrypted data is printed on the ticket surface of the instant ticket, and the encrypted data is data obtained by encrypting the lottery drawing data indicating whether the instant ticket wins or not. When drawing a prize, the client device scans the image identifier to obtain the encrypted data, and then decrypts the encrypted data by using the first decryption key obtained from the key server, so as to obtain and display the prize drawing data, thereby providing a method for displaying based on the instant drawing a prize drawing flow.
In a specific embodiment, before step S403 or step S503, the key server further needs to check whether the ticket is in an active state, if so, the key server performs step S403 or step S503, otherwise, the key server refuses to issue the first decryption key to the first client device.
Specifically, referring to fig. 6, fig. 6 is a schematic diagram of an embodiment of an instant ticket activation method according to an embodiment of the present application, which may include:
s601, the activation device determines a serial number of the instant ticket in response to an activation operation of the instant ticket.
In a specific embodiment, the activation device may be a dedicated scanning device, for example, a dedicated activation device for an instant under-line website, and responding to the instant activation operation may include: the activation device responds to a scanning instruction of a user and determines the serial number of the instant ticket to be activated by scanning the serial number on the instant ticket, or responds to input of the user and determines the serial number of the instant ticket to be activated, which is input by the user.
In another specific embodiment, the activation device may also have a payment function, and in response to the activation operation of the instant ticket, may also be: the activation device determines a payment complete instant ticket serial number upon determining that the first client device is to pay for the purchase instant ticket by interacting with the first client device. For example, when a user wishes to purchase, i.e., make an invoice, the activation device then generates a payment code by selecting the corresponding ticket type and number at the interface of the activation device. The subsequent user finishes payment by scanning the payment code through the client device, and the activating device determines that the selected instant ticket payment is finished, then performs ticket issuing and triggers the activating operation of the instant ticket after the payment is finished.
S602, the activation device sends an activation instruction for the instant bill to the key server, wherein the activation instruction comprises the serial number of the instant bill.
In a specific embodiment, after determining the serial number of the instant ticket to be activated, the activation device sends an activation instruction for the instant ticket to the key server, where the activation instruction may carry the serial number of the instant ticket.
S603, the key server sets the issuing authority of the first decryption key corresponding to the serial number according to the activation instruction.
In a specific embodiment, after receiving the activation instruction, the key server determines a first decryption key corresponding to the serial number in the activation instruction, and opens a issuing authority of the first decryption key, so that a device having communication connection with the key server can query and obtain the first decryption key from the key server.
In the embodiment of the application, the method for activating the instant ticket, namely, the instant ticket can only receive the first decryption key from the key server after the instant ticket is activated, so that the security of the instant ticket is further improved.
Referring specifically to fig. 7, fig. 7 is a schematic diagram showing an embodiment of a method for printing an instant ticket according to an embodiment of the present application, which may include:
S701, the printing apparatus acquires lottery drawing data of an instant ticket to be printed.
In a specific embodiment, the printing device obtains the lottery drawing data to be printed from the server managing the lottery drawing data when printing the lottery drawing in response to a user operation or receiving an instruction sent from the external device.
In another specific embodiment, the instant ticket to be printed may be a pay-per-view instant ticket, the printing device may have a communication connection with the instant ticket vending machine, or the printing device and the instant ticket vending machine may be integrated into one device. Determining that payment was successful, the instant invoice may include: the sales device of the instant bill interacts with the client device of the user to complete the payment operation of the instant bill. The sales device then sends a print instruction to the printing device, the print instruction including the serial number of the successful payment, i.e. the invoice. The printing device determines from the serial number that the payment was successful, i.e. an invoice was made.
S702, the printing device obtains a first encryption key from a key server.
In a specific embodiment, the printing device obtains the first encryption key from the key server after determining that the instant ticket is to be printed.
S703, the printing device encrypts the prize-winning data using the first encryption key, to obtain encrypted data.
In a specific embodiment, the printing device encrypts the prize data using the first decryption key to obtain encrypted data. The method adopted for encrypting the prize-winning data can be a symmetrical or asymmetrical encryption method.
And S704, converting the encrypted data into a graphic identifier by the printing equipment, and printing the graphic identifier on the base material to obtain the instant bill.
In a specific embodiment, the printing device converts the encrypted data into the image identifier using a specific program, which may be, for example, a bar code generation program. After the image identifier is generated, the printing equipment prints the image identifier on the matrix material of the instant bill, so that the instant bill which is successfully printed is obtained.
In the embodiment of the application, a printing method of an instant bill is provided, wherein the instant bill is obtained by encrypting lottery drawing data and converting the encrypted data into an image identifier to be printed on a base material.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic, and should not limit the implementation process of the embodiment of the present application.
Referring specifically to fig. 8, fig. 8 is a schematic diagram illustrating an embodiment of an instant ticket activation system according to an embodiment of the present application, including:
a first client device 801 and a key server 802, the first client device 801 and the key server 802 having a communication connection;
a first client device 801 configured to perform steps performed by the first client device according to any of the embodiments shown in fig. 3-6;
a key server 802 for performing the steps performed by the key server according to any of the embodiments shown in fig. 3-6.
Referring specifically to fig. 9, fig. 9 is a schematic diagram illustrating an embodiment of an instant ticket activation system according to an embodiment of the present application, including:
a first client device 901, an activation device 902 and a key server 903, the first client device 901 and the activation device 902 each having a communication connection with the key server 903;
the activation device 902 is configured to send an activation instruction to the key server 903 after responding to an activation operation of the user on the instant ticket, where the activation instruction includes a serial number of the instant ticket;
the key server 903 is configured to set, according to the activation instruction, a issuing authority for opening a first decryption key corresponding to the serial number; inquiring a first decryption key corresponding to the serial number according to the serial number; transmitting the first decryption key to the first client device 901;
The first client device 901 is configured to send a first query request for obtaining a key to the key server 903, where the first query request includes a sequence number; acquiring a first decryption key sent by a key server 903 according to the serial number; scanning and analyzing the image identifier printed on the instant bill to obtain encrypted data; and decrypting the encrypted data by using the first decryption key to obtain and display the lottery drawing data, wherein the lottery drawing data is data indicating whether the lottery drawing is winning or not.
Referring specifically to fig. 10, fig. 10 is a schematic diagram of an embodiment of a first client device according to an embodiment of the present application, which may include:
an execution unit 1101, configured to respond to a first user operation, scan and parse an image identifier printed on an instant bill to obtain encrypted data corresponding to the image identifier, where the encrypted data may include encrypted drawing data, where the drawing data is used to indicate whether the instant bill wins or not;
a processing unit 1102, configured to decrypt the encrypted data by using a first decryption key from a key server, to obtain the prize drawing data;
a display unit 1103 for displaying the lottery drawing data.
In a specific embodiment, referring specifically to fig. 11, fig. 11 is a schematic diagram of another embodiment of a first client device provided in an embodiment of the present application, where the first client device may further include:
A transceiver unit 1104 for transmitting a first query request to the key server in response to a second user operation, the first query request may include the instant-invoicing serial number; and acquiring the first decryption key sent by the key server according to the serial number.
In one specific embodiment of the present invention,
the first inquiry request may further include identification information for instructing the key server to encrypt the first decryption key with an encryption key corresponding to the identification information after inquiring about the first decryption key,
a transceiver unit 1104, configured to obtain the encrypted first decryption key sent by the key server according to the serial number;
the processing unit 1102 is further configured to decrypt the encrypted first decryption key by using a second decryption key corresponding to the identification information, to obtain the first decryption key.
In a specific embodiment, the identification information may comprise a user identification or a device identification of the first client device.
In one specific embodiment of the present invention,
the execution unit 1101 is further configured to scan and parse a payment barcode or the image identifier printed on the instant bill in response to a third user operation, to obtain a payment code of the instant bill, where the image identifier is obtained by converting the payment code and the encrypted data;
The transceiver unit 1104 is specifically configured to perform a payment operation according to the payment code, and send a payment completion response to the key server after the payment operation is completed, where the payment completion response may include the serial number.
In one specific embodiment of the present application,
the transceiver unit 1104 is further configured to send a second query request to the key server, where the second query request may include the sequence number, and the second query request is a query request for querying the acquisition record of the first decryption key; and receiving and displaying the acquired record sent by the key server according to the serial number.
In a specific embodiment, the image identifier comprises at least one or a combination of more of a one-dimensional bar code, a two-dimensional code, a three-dimensional code, an ordered symbol, or an ordered pattern.
Referring specifically to fig. 12, fig. 12 is a schematic diagram of an embodiment of a key server according to an embodiment of the present application, which may include:
the transceiver 1201 is configured to receive a first query request sent by a first client device to obtain a first decryption key, where the first query request may include a serial number of an instant bill, an image identifier obtained by converting encrypted data is printed on the instant bill, the encrypted data may include encrypted drawing data, and the drawing data is data indicating whether the instant bill wins or not; transmitting the first decryption key to the first client device, the first decryption key being a key used in decrypting the encrypted data;
A processing unit 1202 is configured to obtain the first decryption key corresponding to the serial number from a local query.
In a specific embodiment, the first query request may also include identification information,
the processing unit 1202 is further configured to query an encryption key corresponding to the identification information; encrypting the first decryption key by using the encryption key to obtain the encrypted first decryption key;
the transceiver unit 1201 is specifically configured to send the encrypted first decryption key to the first client device.
In one specific embodiment of the present invention,
the transceiver unit 1201 is further configured to receive an activation instruction sent by the activation device, where the activation instruction may include the serial number;
the processing unit 1202 is further configured to set, according to the activation instruction, a issuing authority for opening the first decryption key corresponding to the serial number.
In one specific embodiment of the present invention,
the transceiver unit 1201 is specifically configured to receive, by the key server, a payment completion response of the second client device to the instant ticket, where the payment completion response may include the serial number.
In one specific embodiment of the present invention,
the processing unit 1202 is further configured to save an acquisition record of the first decryption key by the first client device;
The transceiver 1201 is further configured to receive a second query request sent by the third client device, where the second query request may include the sequence number, and the second query request is a query request for querying the acquisition record or querying the first decryption key; the acquisition record is sent to the third client device.
In a specific embodiment, the image identifier comprises at least one or a combination of more of a one-dimensional bar code, a two-dimensional code, a three-dimensional code, an ordered symbol, or an ordered pattern.
Referring specifically to fig. 13, fig. 13 is a schematic diagram illustrating an embodiment of an activating device according to an embodiment of the present application, which may include:
a response module 1301, configured to determine a serial number of an instant ticket in response to an activation operation of the instant ticket, where the instant ticket is printed with an image identifier obtained by converting encrypted data, where the encrypted data includes encrypted lottery drawing data, and the lottery drawing data is data indicating whether the instant ticket wins or not;
the transceiver module 1302 is configured to send an activation instruction for the immediate invoicing, where the activation instruction is used to instruct the key server to set a issuing authority for opening a first decryption key corresponding to the serial number, where the first decryption key is used to decrypt the encrypted data.
Referring specifically to fig. 14, fig. 14 is a schematic view of an embodiment of a printing apparatus according to an embodiment of the present application, which may include:
a transceiver module 1401 for acquiring lottery drawing data of an instant ticket to be printed; acquiring a first encryption key from a key server;
an encryption and decryption module 1402, configured to encrypt the prize drawing data by using the first encryption key to obtain encrypted data;
a printing module 1403 is configured to convert the encrypted data into a graphic identifier, and print the graphic identifier on a base material to obtain the instant bill.
Referring specifically to fig. 15, as shown in fig. 15, an embodiment of an electronic device according to an embodiment of the present application is shown, including:
a memory 1501, a processor 1502, and a computer program 1503 stored in the memory and executable on the processor; the processor, when executing the computer program, implements the steps of the method as described in the embodiments shown in fig. 3-7.
Embodiments of the present application also provide a computer readable storage medium storing a computer program which, when executed by a processor, implements the steps of the method described in the embodiments shown in fig. 3 to 7.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, the specific names of the functional units and modules are only for distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other manners. For example, the apparatus/terminal device embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical function division, and there may be additional divisions in actual implementation, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection via interfaces, devices or units, which may be in electrical, mechanical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated modules/units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the present application may implement all or part of the flow of the method of the above embodiment, or may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and when the computer program is executed by a processor, the computer program may implement the steps of each of the method embodiments described above. . Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include: any entity or device capable of including the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth. It should be noted that the computer readable medium contains content that can be appropriately scaled according to the requirements of jurisdictions in which such content is subject to legislation and patent practice, such as in certain jurisdictions in which such content is subject to legislation and patent practice, the computer readable medium does not include electrical carrier signals and telecommunication signals.
The above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application.

Claims (17)

1. A method of display processing, comprising:
the method comprises the steps that a first client device responds to first user operation, scans and analyzes an image identifier printed on an instant bill to obtain encrypted data indicated by the image identifier, wherein the encrypted data comprises encrypted lottery drawing data, and the lottery drawing data is used for indicating whether the instant bill wins or not;
the first client device decrypts the encrypted data by using a first decryption key from a key server to obtain the lottery drawing data;
the first client device displays the prize drawing data;
The first client device also sends a second query request to the key server, wherein the second query request comprises a serial number of an instant bill, and the second query request is a query request for querying an acquisition record of the first decryption key;
the first client device receives and displays the acquisition record sent by the key server according to the serial number, wherein the acquisition record is used for judging whether a first decryption key is already queried by other users;
if the ticket is inquired, judging that the ticket is the waste ticket.
2. The method of claim 1, wherein the first client device decrypts the encrypted data using a first decryption key from a key server, the method further comprising, prior to obtaining the prize data:
the first client device responds to a second user operation and sends a first query request to the key server, wherein the first query request comprises the instant billing serial number;
and the first client device acquires the first decryption key sent by the key server according to the serial number.
3. The method of claim 2, wherein the first query request further includes identification information for instructing the key server to encrypt the first decryption key with an encryption key corresponding to the identification information after querying the first decryption key,
The first client device obtaining the first decryption key sent by the key server according to the serial number, including:
the first client device obtains the encrypted first decryption key sent by the key server according to the serial number;
and the first client device decrypts the encrypted first decryption key by using a second decryption key corresponding to the identification information to obtain the first decryption key.
4. A method according to claim 3, wherein the identification information comprises a user identification or a device identification of the first client device.
5. The method of any of claims 2-4, wherein the first client device sending a first query request to the key server in response to a second user operation, comprising:
the first client device responds to a second user operation, scans and analyzes a payment bar code or the image identifier printed on the instant bill to obtain the instant bill payment code, wherein the image identifier is obtained by converting the payment code and the encrypted data;
and the first client device performs payment operation according to the payment code and sends a payment completion response to the key server after the payment operation is completed, wherein the payment completion response comprises the serial number.
6. The method of any of claims 1-4, wherein the image identifier comprises at least one or more of a one-dimensional bar code, a two-dimensional code, a three-dimensional code, an ordered symbol, or an ordered pattern.
7. A method of distributing keys, comprising:
the key server receives a first query request which is sent by first client equipment and used for acquiring a first decryption key, wherein the first query request comprises a sequence number of an instant bill, an image identifier obtained by utilizing encryption data conversion is printed on the instant bill, the encryption data comprises encrypted lottery drawing data, and the lottery drawing data is data indicating whether the instant bill wins or not;
the key server obtains the first decryption key corresponding to the serial number from local inquiry;
the key server sends the first decryption key to the first client device, wherein the first decryption key is a key adopted when decrypting the encrypted data;
the key server also receives a second query request which is sent by the first client device and used for querying the acquisition record of the first decryption key, wherein the second query request comprises an instant billing serial number;
The key server also sends the acquisition record to the first client device according to the serial number, wherein the acquisition record is used for judging whether the first decryption key is already queried by other users;
if the ticket is inquired, judging that the ticket is the waste ticket.
8. The distribution method according to claim 7, wherein the first query request further includes identification information, the distribution method further comprising:
the key server inquires an encryption key corresponding to the identification information;
the key server encrypts the first decryption key by using the encryption key to obtain the encrypted first decryption key;
the key server sending the key to the first client device, comprising:
the key server sends the encrypted first decryption key to the first client device.
9. The distribution method according to claim 7, wherein before the key server transmits the first decryption key to the first client device, the distribution method further comprises:
the key server receives an activation instruction sent by an activation device, wherein the activation instruction comprises the serial number;
And the key server sets the issuing authority of the first decryption key corresponding to the serial number according to the activation instruction.
10. The distribution method according to claim 9, wherein the key server receives an activation instruction sent by an activation device, comprising:
the key server receives a payment completion response from the second client device to the instant ticket, the payment completion response including the serial number.
11. The distribution method according to claim 7, wherein after the key server transmits the first decryption key to the first client device, the distribution method further comprises:
the key server stores an acquisition record of the first decryption key by the first client device;
the key server receives a second query request sent by a third client device, wherein the second query request comprises the serial number, and the second query request is a query request for querying the acquired record or the first decryption key;
the key server sends the acquisition record to the third client device.
12. The distribution method according to any one of claims 7 to 11, wherein the image identifier comprises at least one or a combination of more of a one-dimensional bar code, a two-dimensional code, a three-dimensional code, an ordered symbol, or an ordered pattern.
13. An instant invoice activation system, comprising:
a first client device and a key server, the first client device and the key server being communicatively connected;
the first client device being for performing the method of any of claims 1-6;
the key server is adapted to perform the method of any of claims 7-12.
14. A first client device, comprising:
the execution unit is used for responding to the first user operation, scanning and analyzing the image identifier printed on the instant bill to obtain encrypted data corresponding to the image identifier, wherein the encrypted data comprises encrypted lottery drawing data, and the lottery drawing data is used for indicating whether the instant bill wins or not;
the processing unit is used for decrypting the encrypted data by using a first decryption key from the key server to obtain the lottery drawing data;
a display unit for displaying the lottery drawing data;
the receiving and transmitting unit is used for sending a second query request to the key server, wherein the second query request comprises a sequence number of an instant bill, and the second query request is a query request for querying the acquisition record of the first decryption key; and receiving and displaying the acquisition record sent by the key server according to the serial number, wherein the acquisition record is used for judging whether the first decryption key is inquired by other users, and if so, judging that the bill is a waste bill.
15. A key server, comprising:
the receiving and transmitting unit is used for receiving a first query request which is sent by first client equipment and used for acquiring a first decryption key, wherein the first query request comprises a sequence number of an instant bill, an image identifier obtained by utilizing encryption data conversion is printed on the instant bill, the encryption data comprises encrypted lottery drawing data, and the lottery drawing data is data indicating whether the instant bill wins or not; transmitting the first decryption key to the first client device, wherein the first decryption key is a key adopted when decrypting the encrypted data;
the processing unit is used for obtaining the first decryption key corresponding to the serial number from the local query;
the receiving and transmitting unit is further configured to receive a second query request sent by the third client device, where the second query request includes a serial number of the instant ticket, and the second query request is a query request for querying the acquisition record of the first decryption key, and send the acquisition record to the third client device.
16. An electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1 to 6 when the computer program is executed.
17. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the steps of the method according to any one of claims 1 to 6.
CN202010311807.2A 2020-04-20 2020-04-20 Display processing method Active CN111614461B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010311807.2A CN111614461B (en) 2020-04-20 2020-04-20 Display processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010311807.2A CN111614461B (en) 2020-04-20 2020-04-20 Display processing method

Publications (2)

Publication Number Publication Date
CN111614461A CN111614461A (en) 2020-09-01
CN111614461B true CN111614461B (en) 2023-11-24

Family

ID=72199693

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010311807.2A Active CN111614461B (en) 2020-04-20 2020-04-20 Display processing method

Country Status (1)

Country Link
CN (1) CN111614461B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6685562B1 (en) * 1998-11-25 2004-02-03 Oy Veikkaus Ab Method and system for arranging electronic quick lotteries
CN1808471A (en) * 2005-01-20 2006-07-26 北京戈德利邦科技有限公司 Bar code based issue management, forgery prevention, and award verification technique for instant lottery
CN105528721A (en) * 2016-01-29 2016-04-27 广西中烟工业有限责任公司 Instant lottery cashing system based on package two dimension code and cashing method
WO2019217915A1 (en) * 2018-05-10 2019-11-14 Blackhawk Network, Inc. Pre-printed and pre-selected lottery tickets for point-of-sale purchase

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2724047C (en) * 2010-12-06 2014-07-15 Ontario Lottery And Gaming Corporation Barcoded lottery ticket, system and method for producing and validating the same

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6685562B1 (en) * 1998-11-25 2004-02-03 Oy Veikkaus Ab Method and system for arranging electronic quick lotteries
CN1808471A (en) * 2005-01-20 2006-07-26 北京戈德利邦科技有限公司 Bar code based issue management, forgery prevention, and award verification technique for instant lottery
CN105528721A (en) * 2016-01-29 2016-04-27 广西中烟工业有限责任公司 Instant lottery cashing system based on package two dimension code and cashing method
WO2019217915A1 (en) * 2018-05-10 2019-11-14 Blackhawk Network, Inc. Pre-printed and pre-selected lottery tickets for point-of-sale purchase

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于可信第三方的即开型电子彩票方案;孙萧寒;信息安全与保密通信;65-66,69 *

Also Published As

Publication number Publication date
CN111614461A (en) 2020-09-01

Similar Documents

Publication Publication Date Title
US6223166B1 (en) Cryptographic encoded ticket issuing and collection system for remote purchasers
US6195432B1 (en) Software distribution system and software utilization scheme for improving security and user convenience
EP1998306A1 (en) Image encryption/decryption system
JP3632767B2 (en) Personal authentication method
CN103995993A (en) Printing apparatus and printing method
CN107408185A (en) Output device, program, output system and output intent
US20070234421A1 (en) Authentication System, Authentication Server, Authenticating Method, Authenticating . . .
CN101340294A (en) Cipher keyboard apparatus and implementing method thereof
JP4292733B2 (en) Image distribution system, image data distribution apparatus, image distribution method, program for image data distribution apparatus, and computer-readable recording medium recording the same
JP3664230B2 (en) Promotion method and system
CN103824170A (en) Mobile phone buying and selling client based on two-dimension codes, system and buying and selling management method
US20210174373A1 (en) Ticket validity confirmation device, method, and program
KR100391163B1 (en) Instant digital lottery issuing, selling and purchasing system through internet and method thereby
JP2023027746A (en) Data processing system, data processing method, and data processing apparatus
CN111563834A (en) Data display processing method
JP2009070385A (en) Technique for managing device usage data
CN101146168A (en) Image processing apparatus and image processing method
CN111614461B (en) Display processing method
CN110647737B (en) Enterprise user security authentication method and device in warehouse receipt system and electronic equipment
JP2011053998A (en) Card management system
JP4774748B2 (en) Document registration system
CN110795749B (en) Data processing method, device and storage medium
CN103530927A (en) Lottery betting system and lottery betting method based on POS (point of sales) machine
CN112258257A (en) Data processing method, terminal equipment, server and storage medium
JP2005309888A (en) Official document issuing system

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