Ticket purchase and verification method, device, offline ticket verification terminal, electronic device and storage medium

By generating ticket purchase flow information and encrypted information on the client, and using near-field communication to generate and verify electronic vouchers in offline environments, the problem of temporary tourists in remote scenic spots being unable to purchase tickets and verify tickets is solved, and the efficiency of entry is improved and the efficiency of parks is reduced. Manual ticket inspection cost.

CN115116150BActive Publication Date: 2024-11-19INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210875303.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-22
Publication Date
2024-11-19
Estimated Expiration
2042-07-22

AI Technical Summary

Technical Problem

In the offline environment of remote scenic spots, temporary increase in tourists cannot purchase tickets and check tickets in advance, resulting in inefficient entry and increased manual ticket inspection will increase labor costs and inefficiency.

Method used

Get ticket purchase flow information and encrypted information through the client, transmit it to the offline ticket verification terminal using near-field communication, generate electronic vouchers according to preset rules, and use work keys to verify customer identity information to realize temporary ticket purchase and ticket check.

Benefits of technology

Temporary ticket purchase and inspection for tourists is realized offline, improving the efficiency of admission and avoiding the cost and efficiency of manual ticket inspection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115116150B_ABST
    Figure CN115116150B_ABST
Patent Text Reader

Abstract

The present invention provides a ticket purchase and verification method, device, offline ticket verification terminal, electronic device and storage medium, which can be used in the field of data processing technology or finance. The method comprises: obtaining ticket purchase flow information and encrypted information from a client, the ticket purchase flow information is generated at the server according to a ticket purchase application sent by the client to the server in a first time period, the encrypted information is generated by the client encrypting the obtained ticket purchase customer identity information according to a working key, the working key is generated by the server processing the ticket purchase flow information and the master key according to one of a plurality of preset rules, and obtaining the ticket purchase flow information and encrypted information from the client is achieved through near field communication in a second time period; the encrypted information and the ticket purchase flow information are processed according to one of a plurality of preset rules to generate an electronic certificate; the ticket verification customer identity information obtained by the offline ticket verification terminal is verified according to the electronic certificate to generate a ticket verification result.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of data processing technology, and in particular to a ticket purchasing and checking method, device, offline ticket checking terminal, electronic device and storage medium. Background Art

[0002] With the improvement of living standards, the tourism industry is developing better and better. There are more and more tourists in scenic spots, and the efficiency of manual ticket checking is low. In this regard, ticket checking devices are set at the entrances of various scenic spots to replace manual ticket checking, so as to improve the efficiency of tourists checking tickets to enter the park. However, when the location of the scenic spot is relatively remote, there will be problems such as poor network signal, and it is impossible to ensure that the ticket checking device is connected to the Internet in real time. It is necessary to adopt an offline ticket verification method, and this offline ticket verification method requires tourists to purchase tickets in advance and verify tickets based on the ticket purchase information. When there is a temporary increase in personnel, electronic certificates cannot be generated in advance, and tourists cannot enter the park. In remote areas, adding manual ticket checking will increase labor costs and the ticket checking efficiency is low. Summary of the invention

[0003] In view of this, the present disclosure provides a ticket purchasing and verification method, device, offline ticket verification terminal, electronic device and storage medium, which at least partially solve the problem that temporary ticket purchase and verification cannot be performed in an offline state.

[0004] According to a first aspect of the present disclosure, a ticket purchase and verification method is provided, which is applied to an offline ticket verification terminal, the method comprising: obtaining ticket purchase flow information and encrypted information from a client, the ticket purchase flow information is generated at the server according to a ticket purchase application sent by the client to the server in a first time period, the encrypted information is generated by the client encrypting the obtained ticket purchase customer identity information according to a working key, the working key is generated by the server processing the ticket purchase flow information and a master key according to one of a plurality of preset rules, the obtaining of the ticket purchase flow information and encrypted information from the client is achieved by near field communication in a second time period; the encrypted information and the ticket purchase flow information are processed according to one of a plurality of preset rules to generate an electronic certificate; the ticket verification customer identity information obtained by the offline ticket verification terminal is verified according to the electronic certificate to generate a ticket verification result.

[0005] In some exemplary embodiments of the present disclosure, the processing of the encrypted information and the ticket purchase transaction information according to one of a plurality of preset rules to generate an electronic certificate includes: processing the ticket purchase transaction information according to one of a plurality of preset rules to generate a dispersion factor; encrypting the dispersion factor according to a master key to generate a working key; decrypting the encrypted information according to the working key to generate an electronic certificate containing the identity information of the ticket purchasing customer.

[0006] In some exemplary embodiments of the present disclosure, the ticket purchase transaction information is processed according to one of a plurality of preset rules to generate a dispersion factor, including: determining a target preset rule from a plurality of preset rules according to a trigger condition; and processing the ticket purchase transaction information according to the target preset rule to generate a dispersion factor.

[0007] In some exemplary embodiments of the present disclosure, the scattered factor is encrypted according to the master key to generate a working key, including: obtaining the front bytes of the scattered factor, encrypting the front bytes with the master key to generate a first key; obtaining the rear bytes of the scattered factor, inverting and encrypting the rear bytes to generate a second key; and combining the first key and the second key to generate a working key.

[0008] In some exemplary embodiments of the present disclosure, the preset rule includes at least one of a negation rule, a shift rule, and a bitwise rule.

[0009] In some exemplary embodiments of the present disclosure, the method further includes: generating statistical information according to the ticket verification result, and the statistical information is used to verify with the ticket purchase flow information stored on the server.

[0010] The second aspect of the present disclosure provides an offline ticket verification terminal, including: an acquisition module, configured to acquire ticket purchase flow information and encrypted information from a client, the ticket purchase flow information is generated at the server according to a ticket purchase application sent by the client to the server in a first time period, the encrypted information is generated by the client encrypting the acquired ticket purchase customer identity information according to a working key, the working key is generated by the server processing the ticket purchase flow information and a master key according to one of a plurality of preset rules, and the acquisition of the ticket purchase flow information and encrypted information from the client is achieved through near field communication in the second time period; an electronic certificate generation module, configured to process the encrypted information and the ticket purchase flow information according to one of a plurality of preset rules to generate an electronic certificate; a ticket verification result generation module, configured to verify the ticket verification customer identity information acquired by the offline ticket verification terminal according to the electronic certificate to generate a ticket verification result.

[0011] In an embodiment of the present disclosure, the electronic certificate generation module includes a generation unit, which is configured to: process the ticket purchase flow information according to one of a plurality of preset rules to generate a dispersion factor; encrypt the dispersion factor according to a master key to generate a working key; decrypt the encrypted information according to the working key to generate an electronic certificate containing the identity information of the ticket purchasing customer.

[0012] In an embodiment of the present disclosure, the generation unit includes a first generation subunit, which is configured to: determine a target preset rule from multiple preset rules according to a trigger condition; process the ticket purchase flow information according to the target preset rule to generate a dispersion factor.

[0013] In an embodiment of the present disclosure, the generation unit includes a second generation sub-unit, and the second generation sub-unit is configured to: obtain the front bytes of the dispersion factor, encrypt the front bytes through the master key, and generate a first key; obtain the rear bytes of the dispersion factor, invert and encrypt the rear bytes to generate a second key; combine the first key and the second key to generate a working key.

[0014] In an embodiment of the present disclosure, the offline ticket verification terminal further includes a statistical module, which is configured to generate statistical information based on the ticket verification result, and the statistical information is used to verify with the ticket purchase flow information stored in the server.

[0015] The third aspect of the present disclosure provides a ticket purchase and verification method, which is applied to offline ticket verification, and the method includes: generating ticket purchase flow information at the server end according to a ticket purchase application sent by a client to a server end in a first time period, and the ticket purchase flow information is generated according to key element information in the ticket purchase application; the server end processes the ticket purchase flow information and a master key according to one of a plurality of preset rules to generate a working key; the client encrypts the obtained ticket purchase customer identity information according to the working key to generate encrypted information; the offline ticket verification end processes the encrypted information and the ticket purchase flow information according to one of a plurality of preset rules to generate an electronic certificate, and the encrypted information and the ticket purchase flow information are sent by the client to the offline ticket verification end in a second time period via near field communication; the ticket verification customer identity information obtained by the offline ticket verification end is verified according to the electronic certificate to generate a ticket verification result.

[0016] In some exemplary embodiments of the present disclosure, the server processes the ticket purchase transaction information and the master key according to one of multiple preset rules to generate a working key, including: the server processes the ticket purchase transaction information according to one of multiple preset rules to generate a dispersion factor; the server encrypts the dispersion factor according to the master key to generate a working key.

[0017] In some exemplary embodiments of the present disclosure, the offline ticket verification terminal processes the encrypted information and the ticket purchase flow information according to one of multiple preset rules to generate an electronic certificate, including: the offline ticket verification terminal processes the ticket purchase flow information according to one of multiple preset rules to generate a dispersion factor; the offline ticket verification terminal encrypts the dispersion factor according to a master key to generate a working key; the offline ticket verification terminal decrypts the encrypted information according to the working key to generate an electronic certificate containing the identity information of the ticket purchasing customer.

[0018] In some exemplary embodiments of the present disclosure, the ticket purchase transaction information is processed according to one of a plurality of preset rules to generate a dispersion factor, including: determining a target preset rule from a plurality of preset rules according to a trigger condition; and processing the ticket purchase transaction information according to the target preset rule to generate a dispersion factor.

[0019] In some exemplary embodiments of the present disclosure, the scattered factor is encrypted according to the master key to generate a working key, including: obtaining the front bytes of the scattered factor, encrypting the front bytes with the master key to generate a first key; obtaining the rear bytes of the scattered factor, inverting and encrypting the rear bytes to generate a second key; and combining the first key and the second key to generate a working key.

[0020] In some exemplary embodiments of the present disclosure, the preset rule includes at least one of a negation rule, a shift rule, and a bitwise rule.

[0021] In some exemplary embodiments of the present disclosure, the key element information includes at least one of tour guide information, scenic spot information, time zone information, and customer number information.

[0022] In some exemplary embodiments of the present disclosure, the method further includes: the offline ticket verification terminal generates statistical information according to the ticket verification result, and the statistical information is used to verify with the ticket purchase flow information stored by the server.

[0023] A fourth aspect of an embodiment of the present disclosure provides a ticket purchase and verification device, which is applied to offline ticket verification, and the device includes: a first generation module, configured to generate ticket purchase flow information at the server end according to a ticket purchase application sent by a client to a server end in a first time period, and the ticket purchase flow information is generated according to key element information in the ticket purchase application; a second generation module, configured to process the ticket purchase flow information and a master key at the server end according to one of a plurality of preset rules to generate a working key; a third generation module, configured to encrypt the ticket purchase customer identity information obtained at the client end according to the working key to generate encrypted information; a fourth generation module, configured to process the encrypted information and the ticket purchase flow information at the offline ticket verification end according to one of a plurality of preset rules to generate an electronic certificate, and the encrypted information and the ticket purchase flow information are sent by the client end to the offline ticket verification end in a second time period via near field communication; a fifth generation module, configured to verify the ticket verification customer identity information obtained by the offline ticket verification end according to the electronic certificate to generate a ticket verification result.

[0024] A fifth aspect of an embodiment of the present disclosure provides an electronic device, comprising: one or more processors; and a storage device for storing executable instructions, wherein when the executable instructions are executed by the processors, the method described above is implemented.

[0025] A sixth aspect of an embodiment of the present disclosure provides a computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, implements the method described above.

[0026] A seventh aspect of an embodiment of the present disclosure provides a computer program product, including a computer program, which, when executed by a processor, implements the method described above.

[0027] According to an embodiment of the present disclosure, ticket purchase transaction information is generated according to the ticket purchase application of the client in the first time period, and the client can generate encrypted information based on the ticket purchase transaction information and the ticket purchasing customer identity information. The offline ticket verification terminal generates an electronic certificate based on the ticket purchase transaction information and the encrypted information in the second time period, which is used to verify the identity of the ticket verification customer. That is, the temporarily added ticket purchasing customer identity information can be transmitted to the offline ticket verification terminal in the second time period, which effectively solves the problem of being unable to verify tickets offline and improves the efficiency of ticket verification in the offline state. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] The above and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:

[0029] Figure 1An exemplary system architecture to which the ticket purchase and verification method according to an embodiment of the present disclosure can be applied is schematically shown;

[0030] Figure 2 A flowchart of a ticket purchase and verification method applied to an offline ticket verification terminal according to an embodiment of the present disclosure is schematically shown;

[0031] Figure 3 The flowchart of the ticket purchase and verification method in operation S220 according to an embodiment of the present disclosure is schematically shown;

[0032] Figure 4 The flowchart of the ticket purchase and verification method in operation S221 according to an embodiment of the present disclosure is schematically shown;

[0033] Figure 5 The flowchart of the ticket purchase and verification method in operation S222 according to an embodiment of the present disclosure is schematically shown;

[0034] Figure 6 The flowchart of the ticket purchasing and checking method in operation S240 according to an embodiment of the present disclosure is schematically shown;

[0035] Figure 7 A flowchart of a ticket purchasing and checking method according to another embodiment of the present disclosure is schematically shown;

[0036] Figure 8 The flowchart of the ticket purchasing and checking method in operation S320 according to another embodiment of the present disclosure is schematically shown;

[0037] Fig. 9 A block diagram of an offline ticket verification terminal according to an embodiment of the present disclosure is schematically shown;

[0038] Fig.10 A block diagram of a ticket purchasing and checking device according to an embodiment of the present disclosure is schematically shown;

[0039] Fig.11 A block diagram of an electronic device for implementing a ticket purchasing and verification method according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION

[0040] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.

[0041] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.

[0042] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification, and should not be interpreted in an idealized or overly rigid manner.

[0043] When using expressions such as "at least one of A, B or C, etc.", it should generally be interpreted in accordance with the meaning of the expression generally understood by those skilled in the art (for example, "a system having at least one of A, B or C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.). The terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more features.

[0044] In the technical solution of the present disclosure, the acquisition, storage and application of user personal information involved are in compliance with the provisions of relevant laws and regulations, necessary confidentiality measures are taken, and they do not violate public order and customs. In the technical solution of the present disclosure, the acquisition, storage and application of user personal information involved are authorized by the user.

[0045] In the embodiments of the present disclosure, the term "first time segment" refers to a specific time segment having a certain duration, the term "second time segment" refers to a time segment different from the first time segment, and the "second time segment" refers to a time segment later than the "first time segment". For example, if the first time segment is 9:00-10:00 on a certain day, then the "second time segment" may be a time segment after 9:00 on the same day, for example, 9:30-10:00, or later, wherein the first time segment and the second time segment may be of the same length or of different lengths.

[0046] In the prior art, the method used for offline ticket verification is that after the user purchases the ticket online in advance, the system pushes the automatically generated electronic ticket to the user's communication device (such as a mobile phone). When the user enters an area with an offline ticket verification device, the user presents the corresponding electronic ticket to the offline ticket verification device and verifies the user's identity based on the user's verification information (such as a QR code, a bar code) when purchasing the ticket online, thereby realizing ticket verification. However, when a temporary user does not purchase a ticket in advance and the user cannot connect to the ticket purchase server through the network, the ticket purchase and ticket verification operations cannot be performed, and manual ticket purchase and ticket verification operations are required, which is inefficient and cannot be effectively managed.

[0047] In order to solve the problem in the related art that the offline ticket verification terminal cannot connect to the server in time, making it impossible for temporary customers or tourists to purchase or verify tickets, resulting in low efficiency, the embodiments of the present invention provide a ticket purchase and verification method, device, offline ticket verification terminal, electronic device and storage medium, which can be applied to offline ticket purchase and verification, so that temporary customers or tourists can purchase and verify tickets without being connected to the Internet, thereby improving efficiency. The ticket purchase and verification method is applied to an offline ticket verification terminal, and the ticket purchase and verification method includes: obtaining ticket purchase flow information and encrypted information from a client, the ticket purchase flow information is generated at the server according to a ticket purchase application sent by the client to the server in a first time period, the encrypted information is generated by the client encrypting the obtained ticket purchase customer identity information according to a working key, the working key is generated by the server processing the ticket purchase flow information and the master key according to one of a plurality of preset rules, and obtaining the ticket purchase flow information and encrypted information from the client is achieved in a second time period through near field communication; the encrypted information and the ticket purchase flow information are processed according to one of a plurality of preset rules to generate an electronic certificate; the ticket verification customer identity information obtained by the offline ticket verification terminal is verified according to the electronic certificate to generate a ticket verification result.

[0048] According to an embodiment of the present disclosure, ticket purchase transaction information is generated according to the ticket purchase application of the client in the first time period, and the client can generate encrypted information based on the ticket purchase transaction information and the ticket purchasing customer identity information. The offline ticket verification terminal generates an electronic certificate based on the ticket purchase transaction information and the encrypted information in the second time period, which is used to verify the identity of the ticket verification customer. That is, the temporarily added ticket purchasing customer identity information can be transmitted to the offline ticket verification terminal in the second time period, which effectively solves the problem of being unable to verify tickets offline and improves the efficiency of ticket verification in the offline state.

[0049] Figure 1 The exemplary system architecture to which the ticket purchase and verification method according to the embodiment of the present disclosure can be applied is schematically shown. It should be noted that: Figure 1What is shown is only an example of a system architecture to which the embodiments of the present disclosure can be applied, in order to help those skilled in the art understand the technical content of the present disclosure, but it does not mean that the embodiments of the present disclosure cannot be used in other devices, systems, environments or scenarios. It should be noted that the ticket verification method, device, offline ticket verification terminal, electronic device and readable storage medium provided by the embodiments of the present disclosure can be used in the field of data processing technology and related aspects of the financial field, and can also be used in various fields other than the financial field. The ticket verification method, device, offline ticket verification terminal, electronic device and readable storage medium provided by the embodiments of the present disclosure do not limit the application field.

[0050] like Figure 1 As shown, an exemplary system architecture 100 to which the ticket purchase and verification method of the embodiment of the present disclosure can be applied may include a client 101, servers 102, 103, a network 104, an offline ticket verification terminal 105, and a near field communication network 106. The network 104 is used to provide a medium for a communication link between the client 101 and the servers 102, 103. The network 104 may include various connection types, such as wired or wireless communication links or optical fiber cables, etc. The near field communication network 106 is used to communicate and transmit data between the client 101 and the offline ticket verification terminal 105. The near field communication network may be, for example, NFC (Near Field Communication), radio frequency identification, Bluetooth, infrared, WIFI, etc.

[0051] The user can use the client 101 to interact with the server 102, 103 through the network 104 to receive or send messages, instructions, images and other data. Various communication client applications can be installed on the client 101, such as ticket purchase client, shopping application, web browser application, search application, instant messaging tool, email client, social platform software, etc. (only for example).

[0052] The client 101 may be any electronic device having a display screen and supporting data display and web browsing, including but not limited to smart phones, tablet computers, laptop computers, and other portable communication devices having communication functions and being easy to carry.

[0053] The server ends 102 and 103 may be servers that provide various services, such as a background management server (for example only) that provides support for websites browsed by users using the client end 101. The background management server may analyze and process received data such as user requests, and feed back processing results (such as web pages, information, or data obtained or generated according to user requests) to the terminal device. For another example, the server end may be used to perform encryption operations, decryption operations, etc. on data sent by the client end 101.

[0054] The offline verification terminal 106 can be, for example, an offline gate, which can receive data sent by the client 101 and process it, such as decrypting the data sent by the client 101 and performing data comparison operations. The offline verification segment 106 also has an information collection device for collecting user information, such as collecting user facial image information, or collecting user identity information with the user's authorization, and comparing the collected information with the information sent by the client 101 through near field communication, so as to verify the user's identity information, and open the gate to allow the user to pass after the verification is passed, and give a prompt when the verification fails.

[0055] It should be noted that the ticket purchase and verification method provided in the embodiment of the present disclosure can generally be executed by the client 101, the service terminals 102 and 103, the service terminal 105 and the offline verification terminal 106 in coordination.

[0056] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0057] The following combination Figures 2 to 8 The ticket purchasing and verification method of the embodiment of the present disclosure is described in detail.

[0058] Figure 2 The flowchart of the ticket purchase and verification method applied to the offline ticket verification terminal according to the embodiment of the present disclosure is schematically shown.

[0059] like Figure 2 As shown, the process 200 of the ticket purchase and verification method applied to the offline ticket verification terminal includes operations S210 to S230.

[0060] In operation S210, the ticket purchase process information and encryption information are obtained from the client. The ticket purchase process information is generated at the server based on the ticket purchase application sent by the client to the server in the first time period. The encryption information is generated by the client encrypting the obtained ticket purchase customer identity information according to the working key. The working key is generated by the server processing the ticket purchase process information and the master key according to one of multiple preset rules. The ticket purchase process information and encryption information are obtained from the client through near field communication in the second time period.

[0061] In operation S220, the encrypted information and the ticket purchase flow information are processed according to one of a plurality of preset rules to generate an electronic voucher.

[0062] In operation S230, the ticket verification customer identity information obtained by the offline ticket verification terminal is verified according to the electronic certificate to generate a ticket verification result.

[0063] In the embodiment of the present disclosure, the offline verification end is not in communication connection with the server end, and at the location of the offline verification end, the client end may be in a state where it cannot establish a network connection with the server end. Therefore, the ticket purchase application sent by the client end to the server end may be sent when the client end and the server end can establish a network connection, that is, the ticket purchase application is sent to the server end in the first time period. In other optional embodiments, at the location of the offline verification end, the client end may be in a state where it is established a network connection with the server end. By using the client end to send the ticket purchase application to the server end in the first time period without providing detailed information of the ticket purchasing customer, the efficiency of ticket purchase can be effectively improved, and the occurrence of crowds gathering to purchase tickets can be avoided.

[0064] In an embodiment of the present disclosure, the client sends a ticket purchase application to the server in the first time period, and the server receives the ticket purchase application from the client and generates ticket purchase flow information on the server, wherein the ticket purchase flow information is generated based on key element information in the ticket purchase application.

[0065] For example, the key information elements may include at least one of guide information, scenic spot information, time zone information, and customer number information. The server generates ticket purchase flow information based on the key element information included in the ticket purchase application of the client, and the ticket purchase flow information may be, for example, a unique identifier with a specific byte length.

[0066] For example, the user in charge of management can initiate a ticket purchase application through the client in advance (in the first time period), and fill in key element information in the ticket purchase application. The key element information may not include the identity information of the purchasing customer, thereby avoiding the problem that the identity information cannot be collected before the ticket purchase and the ticket cannot be verified in the subsequent process.

[0067] In the embodiment of the present disclosure, after the server generates the ticket purchase flow information, the server processes the ticket purchase flow information and the master key stored in the server according to one of the multiple preset rules to generate a working key. Among them, the multiple preset rules and master keys in the server are the same as the multiple preset rules and master keys in the offline ticket verification terminal. For example, they can be stored in the server and the offline ticket verification terminal in the form of removable storage copies, and the server and the offline ticket verification terminal have the same precision clock to ensure that the selection method of the preset rules in the server and the offline verification terminal is consistent.

[0068] After the server generates the working key, it sends the working key to the client, and the client encrypts the obtained ticket purchase customer identity information according to the working key to generate encrypted information. That is, the client sends a ticket purchase application to the server within the first time period, and the server sends the generated ticket purchase serial number and working key to the client. The client collects and obtains the ticket purchase customer identity information (such as facial feature information, identity number information, fingerprint information, etc.), and the client further encrypts the ticket purchase customer identity information with the working key sent by the server to generate encrypted information.

[0069] In an embodiment of the present disclosure, the client and the offline ticket verification terminal are connected in communication through a near field communication method, so as to facilitate sending the encrypted information and ticket purchase flow information in the client to the offline ticket verification terminal. Exemplarily, the offline ticket verification terminal obtains the ticket purchase flow information and the encrypted information from the client by transmitting them through the near field communication method in the second time segment. The second time segment is a time segment different from the first time segment, for example, the second time segment is later or later than the first time segment.

[0070] According to the embodiments of the present disclosure, the problem that the client cannot purchase additional tickets and verify tickets when the client cannot communicate with the server over the network can be solved. Exemplarily, the client encrypts the temporarily acquired ticket purchase customer identity information using the working key obtained in advance from the server to generate encrypted information. The offline ticket verification terminal processes the encrypted information and the ticket purchase flow information according to one of the preset rules to generate an electronic certificate, and finally verifies the ticket verification customer identity information obtained by the offline ticket verification terminal according to the electronic certificate to generate a ticket verification result, thereby completing the temporary ticket purchase and verification process and realizing offline ticket verification.

[0071] Figure 3 The flowchart of the ticket purchasing and verifying method in operation S220 according to an embodiment of the present disclosure is schematically shown.

[0072] like Figure 3 As shown, operation S220 includes operations S221 to S223.

[0073] In operation S221, the ticket purchase flow information is processed according to one of a plurality of preset rules to generate a dispersion factor.

[0074] In an embodiment of the present disclosure, the preset rule may include, for example, at least one of a negation rule, a shift rule, and a bitwise rule.

[0075] Figure 4 The flowchart of the ticket purchasing and verifying method in operation S221 according to an embodiment of the present disclosure is schematically shown.

[0076] like Figure 4As shown, operation S221 may include operations S2211 to S2212.

[0077] In operation S2211, a target preset rule is determined from a plurality of preset rules according to a trigger condition.

[0078] The trigger condition may be, for example, a time trigger condition, a location trigger condition, or other trigger conditions. Depending on the trigger condition, the method of determining the target preset rule from multiple preset rules and the determined target preset rule are also different.

[0079] For example, the time trigger condition may be to determine different preset rules as target preset rules according to different time periods.

[0080] For example, the location trigger condition may be to determine different preset rules as target preset rules according to different locations.

[0081] In operation S2212, the ticket purchase flow information is processed according to the target preset rules to generate a dispersion factor.

[0082] In an embodiment of the present disclosure, after the target preset rule is determined, the ticket purchase flow information is processed according to the target preset rule. Specifically, for example, different characters of the ticket purchase flow information may be deformed and a dispersion factor may be generated.

[0083] For example, the information before and after the deformation of the ticket transaction information is different, so that other people cannot obtain the ticket transaction information before and after the deformation without knowing the trigger conditions and trigger rules, which effectively improves the security of the data.

[0084] Exemplarily, the ticket purchase flow information is processed according to one of the preset rules, for example, a rule may be determined from the preset rules according to different time sequences to process the ticket purchase flow information. Exemplarily, the flow information has multiple bytes, for example, and a specific rule is determined from the preset rules according to the time sequence, for example, a negation rule is determined in time segment I, a shift rule is determined in time segment II, and a bitwise rule is determined in time segment III. Specific examples are shown in the following table:

[0085]

[0086] According to an embodiment of the present disclosure, security can be improved by processing ticket purchase flow information using one of the preset rules.

[0087] In operation S222, the distributed factor is encrypted according to the master key to generate a working key.

[0088] In the embodiment of the present disclosure, the master key is information stored in the server and the offline ticket verification end for encrypting the dispersion factor. The master key stored in the server and the offline ticket verification end is the same, which facilitates encryption or decryption operations on data.

[0089] The offline ticket verification end also stores the master key. The offline ticket verification end encrypts the dispersion factor with the master key to generate a working key, which is convenient for decrypting the encrypted information sent by the client.

[0090] Figure 5 The flowchart of the ticket purchasing and verifying method in operation S222 according to an embodiment of the present disclosure is schematically shown.

[0091] like Figure 5 As shown, operation S222 includes operations S2221 to S2223.

[0092] In operation S2221, the first bytes of the dispersion factor are obtained, and the first bytes are encrypted using the master key to generate a first key.

[0093] Exemplarily, the dispersion factor may include 16 bytes, the first bytes of the dispersion factor may be the first 8 bytes, and the first bytes are encrypted using the master key. For example, the master key may be used to perform a 3DES (Triple Data Encryption Algorithm, TDEA) operation to generate a first key.

[0094] In operation S2222, the latter bytes of the scattered factor are obtained, and an inversion operation and an encryption operation are performed on the latter bytes to generate a second secret key.

[0095] Exemplarily, the latter bytes of the scattered factor excluding the former bytes are obtained, for example, the latter 8 bytes of the scattered factor are obtained, the latter bytes are inverted, and after the inversion operation, a 3DES operation is performed using the master key to generate a second key.

[0096] In other optional embodiments, the front part and the back part of the dispersion factor may have the same byte length or different byte lengths.

[0097] In operation S2223, the first key and the second key are combined to generate a working key.

[0098] For example, the first secret key and the second secret key are combined to generate a working secret key. In other optional embodiments, other combinations may be used, such as interlaced combinations, to effectively improve data security.

[0099] In operation S223, the encrypted information is decrypted according to the working key to generate an electronic certificate containing the identity information of the ticket purchasing customer.

[0100] In an embodiment of the present disclosure, the working key obtained through the above operation is used to decrypt the encrypted information sent from the client to the offline ticket verification terminal, and an electronic certificate containing the identity information of the ticket purchasing customer is generated. For example, the electronic certificate contains the identity number information of the ticket purchasing customer, or facial feature information, or fingerprint information, etc.

[0101] When checking the ticket, the customer identity information in the electronic voucher is compared with the customer identity information obtained by the offline ticket checking terminal. If they are consistent, the verification is passed, and if they are inconsistent, the verification is failed. This effectively solves the problem of being unable to temporarily check the ticket when offline.

[0102] Figure 6 The flowchart of the ticket purchasing and verifying method in operation S240 according to an embodiment of the present disclosure is schematically shown.

[0103] like Figure 6 As shown, the ticket purchasing and verifying method of the embodiment of the present disclosure further includes operation S240 after operation S230.

[0104] In operation S240, statistical information is generated according to the ticket verification result, and the statistical information is used to check with the ticket purchase flow information stored on the server.

[0105] For example, the statistical information generated based on the ticket verification results can be copied or duplicated to the server by using near field communication or mobile storage, and compared with the ticket purchase flow information stored on the server, so as to ensure data consistency, prevent data tampering and other problems, and improve data security.

[0106] Figure 7 The flowchart of the ticket purchasing and verifying method according to another embodiment of the present disclosure is schematically shown.

[0107] like Figure 7 As shown, the process 300 of the ticket purchase and verification method includes operations S310 to S350.

[0108] In operation S310, according to the ticket purchase application sent by the client to the server in the first time period, the ticket purchase flow information is generated at the server, and the ticket purchase flow information is generated according to the key element information in the ticket purchase application.

[0109] Operation S310 generates ticket purchase flow information at the server end, and sends the ticket purchase flow information to the server end.

[0110] In operation S320, the server processes the ticket purchase flow information and the master key according to one of a plurality of preset rules to generate a working key.

[0111] Figure 8 The flowchart of operation S320 of the ticket purchasing and verifying method according to another embodiment of the present disclosure is schematically shown.

[0112] In an embodiment of the present disclosure, operation S320 includes operations S321 to S322.

[0113] In operation S321, the server processes the ticket purchase flow information according to one of a plurality of preset rules to generate a dispersion factor.

[0114] Exemplarily, the process in which the server processes the ticket purchase flow information according to one of multiple preset rules to generate a dispersion factor is the same as operation S221 described above, but the specific execution entities are different. For example, operation S221 is performed at the offline ticket verification end, and operation S321 is performed at the server end.

[0115] In operation S322, the server encrypts the dispersion factor according to the master key to generate a working key.

[0116] Exemplarily, the process in which the server encrypts the dispersion factor according to the master key to generate a working key is the same as operation S222 described above, but the specific execution entities are different. For example, operation S222 is performed at the offline ticket verification end, while operation S322 is performed at the server end.

[0117] In operation S330, the client encrypts the obtained ticket purchasing customer identity information according to the working key to generate encrypted information.

[0118] After the client obtains the working key from the server, the client obtains the ticket purchase identity information at the same time, for example, by collecting the ticket purchase customer identity information through the information collection device. After the collection, the obtained ticket purchase customer identity information is encrypted using the working key to generate encrypted information. Since the encrypted information is encrypted using the working key, the security of the data can be effectively improved.

[0119] In operation S340, the offline ticket verification terminal processes the encrypted information and the ticket purchase flow information according to one of multiple preset rules to generate an electronic certificate. The encrypted information and the ticket purchase flow information are sent by the client to the offline ticket verification terminal in the second time period via near field communication.

[0120] In operation S350, the ticket verification customer identity information obtained by the offline ticket verification terminal is verified according to the electronic certificate to generate a ticket verification result.

[0121] In an embodiment of the present disclosure, after operation S350, the ticket purchase and verification method of the present disclosure further includes: the offline ticket verification terminal generates statistical information according to the ticket verification result, and the statistical information is used to verify with the ticket purchase flow information stored in the server.

[0122] In an embodiment of the present disclosure, the ticket purchase flow information is processed according to one of a plurality of preset rules, and the process of generating a dispersion factor can be performed on the server side or on the offline ticket verification side.

[0123] In the embodiments of the present disclosure, the process of encrypting the dispersion factor according to the master key to generate the working key can be performed on the server side or on the offline ticket verification side.

[0124] Fig. 9 A block diagram of an offline ticket verification terminal according to an embodiment of the present disclosure is schematically shown.

[0125] like Fig. 9 As shown, the offline ticket verification terminal 400 includes an acquisition module 410 , an electronic certificate generation module 420 , and a ticket verification result generation module 430 .

[0126] The acquisition module 410 is configured to acquire the ticket purchase flow information and the encrypted information from the client. The ticket purchase flow information is generated by the server according to the ticket purchase application sent by the client to the server in the first time period. The encrypted information is generated by the client encrypting the obtained ticket purchase customer identity information according to the working key. The working key is generated by the server processing the ticket purchase flow information and the master key according to one of a plurality of preset rules. The ticket purchase flow information and the encrypted information are acquired from the client in the second time period through the near field communication method. In one embodiment, the acquisition module 410 can be used to perform the operation S210 described above, which will not be described in detail here.

[0127] The electronic certificate generation module 420 is configured to process the encrypted information and the ticket purchase flow information according to one of a plurality of preset rules to generate an electronic certificate. In one embodiment, the electronic certificate generation module 420 can be used to perform the operation S220 described above, which will not be described in detail here.

[0128] The ticket verification result generation module 430 is configured to verify the ticket verification customer identity information obtained by the offline ticket verification terminal according to the electronic certificate and generate a ticket verification result. The ticket verification result generation module 430 can be used to perform the operation S230 described above, which will not be repeated here.

[0129] In an embodiment of the present disclosure, the electronic certificate generation module 420 includes a generation unit, which is configured to: process the ticket purchase flow information according to one of a plurality of preset rules to generate a dispersion factor; encrypt the dispersion factor according to a master key to generate a working key; decrypt the encrypted information according to the working key to generate an electronic certificate containing the identity information of the ticket purchasing customer.

[0130] In an embodiment of the present disclosure, the generation unit includes a first generation subunit, which is configured to: determine a target preset rule from multiple preset rules according to a trigger condition; process the ticket purchase flow information according to the target preset rule to generate a dispersion factor.

[0131] In an embodiment of the present disclosure, the generation unit includes a second generation sub-unit, and the second generation sub-unit is configured to: obtain the front bytes of the dispersion factor, encrypt the front bytes through the master key, and generate a first key; obtain the rear bytes of the dispersion factor, invert and encrypt the rear bytes to generate a second key; combine the first key and the second key to generate a working key.

[0132] In an embodiment of the present disclosure, the offline ticket verification terminal also includes a statistical module, which is configured to generate statistical information based on the ticket verification results, and the statistical information is used to verify with the ticket purchase flow information stored in the server.

[0133] Fig.10 A block diagram of a ticket purchasing and checking device according to an embodiment of the present disclosure is schematically shown.

[0134] like Fig.10 As shown, the ticket purchasing and checking device 500 that can be applied to offline ticket checking includes a first generating module 510 , a second generating module 520 , a third generating module 530 , a fourth generating module 540 , and a fifth generating module 550 .

[0135] The first generating module 510 is configured to generate ticket purchase flow information at the server according to the ticket purchase application sent by the client to the server in the first time period, and the ticket purchase flow information is generated according to the key element information in the ticket purchase application. In one embodiment, the first generating module 510 can be used to perform the operation S310 described above, which will not be repeated here.

[0136] The second generation module 520 is configured to process the ticket purchase flow information and the master key at the server according to one of a plurality of preset rules to generate a working key. In one embodiment, the second generation module 520 can be used to perform the operation S320 described above, which will not be described in detail here.

[0137] The third generating module 530 is configured to encrypt the obtained ticket purchasing customer identity information according to the working key at the client to generate encrypted information. In one embodiment, the third generating module 530 can be used to perform the operation S330 described above, which will not be repeated here.

[0138] The fourth generation module 540 is configured to process the encrypted information and the ticket purchase flow information at the offline ticket verification terminal according to one of a plurality of preset rules to generate an electronic certificate, and the encrypted information and the ticket purchase flow information are sent by the client to the offline ticket verification terminal in the second time period via near field communication. In one embodiment, the fourth generation module 540 can be used to perform the operation S340 described above, which will not be described in detail here.

[0139] The fifth generation module 550 is configured to verify the ticket verification customer identity information obtained by the offline ticket verification terminal according to the electronic certificate and generate a ticket verification result. In one embodiment, the fifth generation module 550 can be used to perform the operation S350 described above, which will not be repeated here.

[0140] In an embodiment of the present disclosure, the second generation module includes a first generation submodule, and the first generation submodule is configured as follows: the server processes the ticket purchase flow information according to one of multiple preset rules to generate a dispersion factor; the server encrypts the dispersion factor according to the master key to generate a working key.

[0141] In an embodiment of the present disclosure, the fourth generation module includes a second generation sub-module, and the second generation sub-module is configured as follows: the offline ticket verification terminal processes the ticket purchase flow information according to one of multiple preset rules to generate a dispersion factor; the offline ticket verification terminal encrypts the dispersion factor according to the master key to generate a working key; the offline ticket verification terminal decrypts the encrypted information according to the working key to generate an electronic certificate containing the identity information of the ticket purchasing customer.

[0142] In an embodiment of the present disclosure, the first generation submodule and the second generation submodule both include a third generation submodule, and the third generation submodule is configured to: determine a target preset rule from multiple preset rules based on a trigger condition; process the ticket purchase flow information according to the target preset rule to generate a dispersion factor.

[0143] In an embodiment of the present disclosure, the first generation submodule and the second generation submodule both include a fourth generation submodule, and the fourth generation submodule is configured to: obtain the front bytes of the dispersion factor, encrypt the front bytes through the master key, and generate a first key; obtain the rear bytes of the dispersion factor, invert and encrypt the rear bytes, and generate a second key; combine the first key and the second key to generate a working key.

[0144] According to an embodiment of the present disclosure, any multiple modules among the acquisition module 410, the electronic voucher generation module 420, the ticket verification result generation module 430, the first generation module 510, the second generation module 520, the third generation module 530, the fourth generation module 540, and the fifth generation module 550 can be combined into one module for implementation, or any one of the modules can be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules can be combined with at least part of the functions of other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the acquisition module 410, the electronic credential generation module 420, the ticket verification result generation module 430, the first generation module 510, the second generation module 520, the third generation module 530, the fourth generation module 540, and the fifth generation module 550 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application-specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware, and firmware, or in any appropriate combination of any of them. Alternatively, at least one of the acquisition module 410, the electronic credential generation module 420, the ticket verification result generation module 430, the first generation module 510, the second generation module 520, the third generation module 530, the fourth generation module 540, and the fifth generation module 550 can be at least partially implemented as a computer program module, and when the computer program module is run, the corresponding function can be performed.

[0145] Fig.11 A block diagram of an electronic device for implementing a ticket purchasing and verification method according to an embodiment of the present disclosure is schematically shown. Fig.11 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0146] like Fig.11 As shown, the electronic device 600 according to the embodiment of the present disclosure includes a processor 601, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 602 or the program loaded from the storage part 608 to the random access memory (RAM) 603. The processor 601 may include, for example, a general-purpose microprocessor (such as a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (for example, an application-specific integrated circuit (ASIC)), etc. The processor 601 may also include an onboard memory for caching purposes. The processor 601 may include a single processing unit or multiple processing units for performing different actions of the method flow according to the embodiment of the present disclosure.

[0147] In RAM 603, various programs and data required for the operation of electronic device 600 are stored. Processor 601, ROM 602 and RAM 603 are connected to each other via bus 604. Processor 601 performs various operations of the method flow according to the embodiment of the present disclosure by executing the program in ROM 602 and / or RAM 603. It should be noted that the program can also be stored in one or more memories other than ROM 602 and RAM 603. Processor 601 can also perform various operations of the method flow according to the embodiment of the present disclosure by executing the program stored in the one or more memories.

[0148] According to an embodiment of the present disclosure, the electronic device 600 may further include an input / output (I / O) interface 605, which is also connected to the bus 604. The electronic device 600 may further include one or more of the following components connected to the I / O interface 605: an input portion 606 including a keyboard, a mouse, etc.; an output portion 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage portion 608 including a hard disk, etc.; and a communication portion 609 including a network interface card such as a LAN card, a modem, etc. The communication portion 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed, so that a computer program read therefrom is installed into the storage portion 608 as needed.

[0149] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiment; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the ticket purchase and verification method according to the embodiment of the present disclosure is implemented.

[0150] According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, may include but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, an apparatus or a device. For example, according to an embodiment of the present disclosure, a computer-readable storage medium may include the ROM 602 and / or RAM 603 described above and / or one or more memories other than ROM 602 and RAM 603.

[0151] The embodiment of the present disclosure also includes a computer program product, which includes a computer program, and the computer program contains program code for executing the method shown in the flowchart. When the computer program product is run in a computer system, the program code is used to enable the computer system to implement the ticket purchase and verification method provided by the embodiment of the present disclosure.

[0152] The above functions defined in the system / device of the embodiment of the present disclosure are performed when the computer program is executed by the processor 601. According to the embodiment of the present disclosure, the system, device, module, unit, etc. described above can be implemented by a computer program module.

[0153] In one embodiment, the computer program may rely on tangible storage media such as optical storage devices, magnetic storage devices, etc. In another embodiment, the computer program may also be transmitted and distributed in the form of signals on a network medium, and downloaded and installed through the communication part 609, and / or installed from a removable medium 611. The program code contained in the computer program may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0154] In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 609, and / or installed from the removable medium 611. When the computer program is executed by the processor 601, the above functions defined in the system of the embodiment of the present disclosure are performed. According to the embodiment of the present disclosure, the system, device, apparatus, module, unit, etc. described above can be implemented by a computer program module.

[0155] According to an embodiment of the present disclosure, the program code for executing the computer program provided by the embodiment of the present disclosure can be written in any combination of one or more programming languages. Specifically, these computing programs can be implemented using high-level process and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages ​​include, but are not limited to, Java, C++, python, "C" language or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on the remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using an Internet service provider to connect through the Internet).

[0156] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0157] It will be appreciated by those skilled in the art that the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways, even if such combinations and / or combinations are not explicitly described in the present disclosure. In particular, the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways without departing from the spirit and teachings of the present disclosure. All of these combinations and / or combinations fall within the scope of the present disclosure.

[0158] The embodiments of the present disclosure are described above. However, these embodiments are only for the purpose of illustration and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the various embodiments cannot be used in combination to advantage. The scope of the present disclosure is defined by the attached claims and their equivalents. Without departing from the scope of the present disclosure, those skilled in the art may make various substitutions and modifications, which should all fall within the scope of the present disclosure.

Claims

1. A ticket purchase and verification method, applied to an offline ticket verification terminal, the method comprising: Acquiring ticket purchase flow information and encrypted information from the client, wherein the ticket purchase flow information is generated at the server according to the ticket purchase application sent by the client to the server in the first time period, and the encrypted information is generated by the client encrypting the obtained ticket purchase customer identity information according to the working key, specifically comprising: after the client sends the ticket purchase application to the server in the first time period, acquiring the ticket purchase customer identity information by collecting and acquiring the ticket purchase customer identity information, and encrypting the ticket purchase customer identity with the working key sent by the server to generate encrypted information, wherein the working key is generated by the server processing the ticket purchase flow information and the master key according to one of a plurality of preset rules, and acquiring the ticket purchase flow information and encrypted information from the client is achieved by near field communication in the second time period, and the second time period is later than the first time period; Processing the encrypted information and the ticket purchase flow information according to one of a plurality of preset rules to generate an electronic voucher; The ticket verification customer identity information obtained by the offline ticket verification terminal is verified according to the electronic certificate to generate a ticket verification result.

2. The method according to claim 1, wherein: The processing of the encrypted information and the ticket purchase flow information according to one of a plurality of preset rules to generate an electronic voucher comprises: Processing the ticket purchase flow information according to one of a plurality of preset rules to generate a dispersion factor; Encrypt the dispersion factor according to the master key to generate a working key; The encrypted information is decrypted according to the working key to generate an electronic certificate containing the identity information of the ticket purchasing customer.

3. The method according to claim 2, wherein: The ticket purchase flow information is processed according to one of a plurality of preset rules to generate a dispersion factor, including: According to the trigger condition, a target preset rule is determined from a plurality of preset rules; The ticket purchase flow information is processed according to the target preset rules to generate a dispersion factor.

4. The method according to claim 2, wherein: The distributed factor is encrypted according to the master key to generate a working key, including: Obtain the first bytes of the dispersion factor, and encrypt the first bytes using the master key to generate a first key; Obtain the last bytes of the scattered factor, perform an inversion operation and an encryption operation on the last bytes, and generate a second secret key; The first secret key and the second secret key are combined to generate a working secret key.

5. The method according to any one of claims 1 to 4, wherein: The preset rule includes at least one of a negation rule, a shift rule, and a bitwise rule.

6. The method according to claim 1, further comprising: Statistical information is generated according to the ticket verification result, and the statistical information is used to check with the ticket purchase flow information stored in the server.

7. An offline ticket verification terminal, comprising: an acquisition module, configured to acquire ticket purchase flow information and encrypted information from a client, wherein the ticket purchase flow information is generated at the server according to a ticket purchase application sent by the client to the server in a first time period, and the encrypted information is generated by the client encrypting the obtained ticket purchase customer identity information according to a working key, specifically comprising: after the client sends a ticket purchase application to the server in the first time period, acquiring the ticket purchase customer identity information by collecting and acquiring the ticket purchase customer identity information, and encrypting the ticket purchase customer identity with the working key sent by the server to generate encrypted information, wherein the working key is generated by the server processing the ticket purchase flow information and the master key according to one of a plurality of preset rules, and acquiring the ticket purchase flow information and the encrypted information from the client is achieved by near field communication in a second time period, and the second time period is later than the first time period; An electronic certificate generation module, configured to process the encrypted information and the ticket purchase flow information according to one of a plurality of preset rules to generate an electronic certificate; The ticket verification result generation module is configured to verify the ticket verification customer identity information obtained by the offline ticket verification terminal according to the electronic certificate and generate a ticket verification result.

8. A ticket purchase and verification method, applied to offline ticket verification, the method comprising: According to the ticket purchase application sent by the client to the server in the first time period, generating ticket purchase flow information on the server, wherein the ticket purchase flow information is generated according to key element information in the ticket purchase application; The server processes the ticket purchase flow information and the master key according to one of a plurality of preset rules to generate a working key; The client encrypts the obtained ticket purchase customer identity information according to the working key to generate encrypted information, specifically including: after the client sends a ticket purchase application to the server in the first time period, the client collects and obtains the ticket purchase customer identity information, and encrypts the ticket purchase customer identity with the working key sent by the server to generate encrypted information; The offline ticket verification terminal processes the encrypted information and the ticket purchase flow information according to one of a plurality of preset rules to generate an electronic certificate, wherein the encrypted information and the ticket purchase flow information are sent by the client to the offline ticket verification terminal in a second time period by means of near field communication, and the second time period is later than the first time period; The ticket verification customer identity information obtained by the offline ticket verification terminal is verified according to the electronic certificate to generate a ticket verification result.

9. The method according to claim 8, wherein: The server processes the ticket purchase flow information and the master key according to one of a plurality of preset rules to generate a working key, including: The server processes the ticket purchase flow information according to one of a plurality of preset rules to generate a dispersion factor; The server encrypts the dispersion factor according to the master key to generate a working key.

10. The method according to claim 8, wherein: The offline ticket verification terminal processes the encrypted information and the ticket purchase flow information according to one of a plurality of preset rules to generate an electronic certificate, including: The offline ticket verification terminal processes the ticket purchase flow information according to one of a plurality of preset rules to generate a dispersion factor; The offline ticket verification terminal encrypts the dispersion factor according to the master key to generate a working key; The offline ticket verification terminal decrypts the encrypted information according to the working key and generates an electronic certificate containing the identity information of the ticket purchasing customer.

11. The method according to any one of claims 8 to 10, wherein: The key element information includes at least one of tour guide information, scenic spot information, time interval information, and customer number information.

12. A ticket purchase and verification device, used for offline ticket verification, the device comprising: A first generating module is configured to generate ticket purchase flow information on the server side according to a ticket purchase application sent by the client to the server side in a first time period, wherein the ticket purchase flow information is generated according to key element information in the ticket purchase application; A second generating module is configured to process the ticket purchase flow information and the master key at the server according to one of a plurality of preset rules to generate a working key; The third generating module is configured to encrypt the obtained ticket purchasing customer identity information according to the working secret key at the client to generate encrypted information, specifically including: after the client sends a ticket purchase application to the server in the first time period, the ticket purchasing customer identity information is collected and obtained, and the ticket purchasing customer identity is encrypting the ticket purchasing customer identity with the working secret key sent by the server to generate encrypted information; a fourth generating module, configured to process the encrypted information and the ticket purchase flow information at the offline ticket verification terminal according to one of a plurality of preset rules to generate an electronic certificate, wherein the encrypted information and the ticket purchase flow information are sent by the client to the offline ticket verification terminal in a second time period by way of near field communication, and the second time period is later than the first time period; The fifth generating module is configured to verify the ticket verification customer identity information obtained by the offline ticket verification terminal according to the electronic certificate and generate a ticket verification result.

13. An electronic device comprising: one or more processors; A storage device for storing executable instructions, wherein when the executable instructions are executed by the processor, the method according to any one of claims 1 to 6 or the method according to any one of claims 8 to 11 is implemented.

14. A computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, implement the method according to any one of claims 1 to 6, or the method according to any one of claims 8 to 11.

15. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements the method according to any one of claims 1 to 6, or the method according to any one of claims 8 to 11.