CN111914515A - Ticket encryption system and verification method - Google Patents
Ticket encryption system and verification method Download PDFInfo
- Publication number
- CN111914515A CN111914515A CN202010825060.2A CN202010825060A CN111914515A CN 111914515 A CN111914515 A CN 111914515A CN 202010825060 A CN202010825060 A CN 202010825060A CN 111914515 A CN111914515 A CN 111914515A
- Authority
- CN
- China
- Prior art keywords
- ticket
- value
- code
- password
- generation module
- 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.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/12—Use of codes for handling textual entities
- G06F40/126—Character encoding
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/30—Authentication, i.e. establishing the identity or authorisation of security principals
- G06F21/45—Structures or tools for the administration of authentication
- G06F21/46—Structures or tools for the administration of authentication by designing passwords or checking the strength of passwords
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Computer Hardware Design (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Storage Device Security (AREA)
Abstract
The invention discloses a ticket encryption system, which comprises: the ticket number generating module combines the numbers generated by the real password generating module, the complementary bit 0 generating module and the ticket code generating module to form a ticket number and records a prestored value corresponding to the ticket number; the ticket random number generating module is used for acquiring the number generated by the ticket code generating module and matching a ticket random number with the number; the system configuration password module is used for generating a fixed system configuration password for all the ticket numbers; and the verification module is used for acquiring the ticket number, combining the true password in the ticket number, the ticket random number corresponding to the ticket code and the system configuration password to form a verification code, carrying out MD5 information digest algorithm on the verification code to acquire a verification value, comparing the verification value with a prestored value, and if the verification value is consistent with the prestored value, the ticket number is valid, otherwise, the ticket number is invalid. The user can be effectively prevented from guessing or calculating a plurality of other available ticket numbers according to a certain number of ticket numbers.
Description
Technical Field
The invention relates to the technical field of internet, in particular to a ticket encryption system and a ticket verification method.
Background
The ticket issued by the service provider can be used only by knowing the correct ticket number, so that the user is prevented from presuming or calculating other usable ticket numbers according to a certain number of ticket numbers, and the existing ticket is easy to presume or calculate a plurality of other usable ticket numbers according to the certain number of ticket numbers.
Disclosure of Invention
In view of the above, an object of the present invention is to provide a ticket encryption system that is highly secure and cannot calculate other ticket numbers.
In order to achieve the purpose, the invention adopts the scheme that: a ticket encryption system, comprising:
the ticket number generation module comprises a real password generation module, a complementary bit 0 generation module and a ticket code generation module, combines the numbers generated by the real password generation module, the complementary bit 0 generation module and the ticket code generation module to form a ticket number, and records a prestored value corresponding to the ticket number;
the ticket random number generation module corresponds to the ticket code generation module and is used for acquiring the number generated by the ticket code generation module and matching a ticket random number with the number;
the system configuration password module is used for generating a fixed system configuration password for all the ticket numbers;
and the verification module is used for acquiring the ticket number, combining the true password in the ticket number, the ticket random number corresponding to the ticket code and the system configuration password to form a verification code, carrying out MD5 information digest algorithm on the verification code to acquire a verification value, comparing the verification value with a prestored value, and if the verification value is consistent with the prestored value, the ticket number is valid, otherwise, the ticket number is invalid.
In another preferred mode, the true password is a 6-digit password.
In another preferred mode, the coupon code is an a-bit number code, and the complementary bit 0 has 10-a bits in total, wherein a is an integer not less than 0 and not more than 10.
The invention also provides a verification method based on the system, which comprises the following steps:
a. the user uses the ticket number provided by the service provider.
b. The system obtains the ticket code, the ticket random number and the real password according to the ticket number input by the user.
c. The system performs an MD5 message digest algorithm on the combination of the true password, the ticket nonce, and the system configuration code to obtain a calculated authentication value.
d. The system compares the calculated value with a pre-stored value pre-stored in the system, the pre-stored value pre-stored in the system contains the calculated verification value, the value is valid, i.e. the ticket number is valid, otherwise, the value is invalid.
Compared with the prior art, the invention has the following advantages: the invention can effectively prevent the user from presuming or calculating a plurality of other available ticket numbers according to a certain number of ticket numbers.
Drawings
FIG. 1 is a schematic diagram of a verification method according to the present invention.
Detailed Description
The invention is further illustrated by the following figures and examples.
A ticket encryption system, comprising:
the ticket number generation module comprises a real password generation module, a complementary bit 0 generation module and a ticket code generation module, the ticket number generation module combines the numbers generated by the real password generation module, the complementary bit 0 generation module and the ticket code generation module to form a ticket number, and records a prestored value corresponding to the ticket number, the real password is a 6-bit password, the ticket code is an a-bit code, the complementary bit 0 has 10-a bits in total, wherein a is an integer not less than 0 and not more than 10, the ticket code is increased from 1 to +1, when the ticket code is 1, the complementary bit 0 is 000000000, in the graph 1, the ticket code is a 6-bit code, and the complementary bit 0 has 4 bits in total;
the ticket random number generation module corresponds to the ticket code generation module and is used for acquiring the number generated by the ticket code generation module and matching a ticket random number with the number;
the system configuration password module is used for generating a fixed system configuration password for all the ticket numbers;
and the verification module is used for acquiring the ticket number, combining the true password in the ticket number, the ticket random number corresponding to the ticket code and the system configuration password to form a verification code, carrying out MD5 information digest algorithm on the verification code to acquire a verification value, comparing the verification value with a prestored value, and if the verification value is consistent with the prestored value, the ticket number is valid, otherwise, the ticket number is invalid.
As shown in fig. 1, the verification method based on the above system includes:
a. the user uses the ticket number provided by the service provider.
b. The system obtains the ticket code, the ticket random number and the real password according to the ticket number input by the user.
c. The system performs an MD5 message digest algorithm on the combination of the true password, the ticket nonce, and the system configuration code to obtain a calculated authentication value.
d. The system compares the calculated value with a pre-stored value pre-stored in the system, the pre-stored value pre-stored in the system contains the calculated verification value, the value is valid, i.e. the ticket number is valid, otherwise, the value is invalid.
The above embodiments are merely illustrative of the technical ideas and features of the present invention, and the purpose thereof is to enable those skilled in the art to understand the contents of the present invention and implement the present invention, and not to limit the protection scope of the present invention. All equivalent changes and modifications made according to the spirit of the present invention should be covered within the protection scope of the present invention.
Claims (4)
1. A ticket encryption system, comprising:
the ticket number generation module comprises a real password generation module, a complementary bit 0 generation module and a ticket code generation module, combines the numbers generated by the real password generation module, the complementary bit 0 generation module and the ticket code generation module to form a ticket number, and records a prestored value corresponding to the ticket number;
the ticket random number generation module corresponds to the ticket code generation module and is used for acquiring the number generated by the ticket code generation module and matching a ticket random number with the number;
the system configuration password module is used for generating a fixed system configuration password for all the ticket numbers;
and the verification module is used for acquiring the ticket number, combining the true password in the ticket number, the ticket random number corresponding to the ticket code and the system configuration password to form a verification code, carrying out MD5 information digest algorithm on the verification code to acquire a verification value, comparing the verification value with a prestored value, and if the verification value is consistent with the prestored value, the ticket number is valid, otherwise, the ticket number is invalid.
2. The system of claim 1, wherein: the real password is a 6-digit password.
3. The system of claim 1, wherein: the coupon code is a digit number code, the complementary digit 0 has 10-a digits, and a is an integer not less than 0 and not more than 10.
4. A method of authentication based on the system of any of claims 1-3, characterized in that it comprises:
a. the user uses the ticket number provided by the service provider.
b. The system obtains the ticket code, the ticket random number and the real password according to the ticket number input by the user.
c. The system performs an MD5 message digest algorithm on the combination of the true password, the ticket nonce, and the system configuration code to obtain a calculated authentication value.
d. The system compares the calculated value with a pre-stored value pre-stored in the system, the pre-stored value pre-stored in the system contains the calculated verification value, the value is valid, i.e. the ticket number is valid, otherwise, the value is invalid.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010825060.2A CN111914515A (en) | 2020-08-17 | 2020-08-17 | Ticket encryption system and verification method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010825060.2A CN111914515A (en) | 2020-08-17 | 2020-08-17 | Ticket encryption system and verification method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111914515A true CN111914515A (en) | 2020-11-10 |
Family
ID=73278190
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010825060.2A Pending CN111914515A (en) | 2020-08-17 | 2020-08-17 | Ticket encryption system and verification method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111914515A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20050091114A (en) * | 2004-03-10 | 2005-09-15 | (주)넥슨 | Method and system for providing contents using coupon |
CN103780379A (en) * | 2012-10-19 | 2014-05-07 | 阿里巴巴集团控股有限公司 | Password encryption method and system, and cryptographic check method and system |
CN105373927A (en) * | 2014-08-26 | 2016-03-02 | 腾讯科技(深圳)有限公司 | Coupon code generation method of electronic coupon, device and server |
US20200250912A1 (en) * | 2018-07-18 | 2020-08-06 | Boe Technology Group Co., Ltd. | Distributed Voting System, Method, Apparatus, Computer Device and Readable Storage Medium |
-
2020
- 2020-08-17 CN CN202010825060.2A patent/CN111914515A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20050091114A (en) * | 2004-03-10 | 2005-09-15 | (주)넥슨 | Method and system for providing contents using coupon |
CN103780379A (en) * | 2012-10-19 | 2014-05-07 | 阿里巴巴集团控股有限公司 | Password encryption method and system, and cryptographic check method and system |
CN105373927A (en) * | 2014-08-26 | 2016-03-02 | 腾讯科技(深圳)有限公司 | Coupon code generation method of electronic coupon, device and server |
US20200250912A1 (en) * | 2018-07-18 | 2020-08-06 | Boe Technology Group Co., Ltd. | Distributed Voting System, Method, Apparatus, Computer Device and Readable Storage Medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109246129B (en) | SM2 collaborative signature method and system capable of verifying client identity | |
EP1723594B1 (en) | Token authentication system and method | |
US5651069A (en) | Software-efficient message authentication | |
CN105373927B (en) | Ticket code generation method and device of electronic ticket and server | |
US20070130463A1 (en) | Single one-time password token with single PIN for access to multiple providers | |
CN113067823B (en) | Mail user identity authentication and key distribution method, system, device and medium | |
CN112165382B (en) | Software authorization method and device, authorization server side and terminal equipment | |
CN101582768A (en) | Login authentication method in electronic advertisement system and system | |
CN106899413B (en) | Digital signature verification method and system | |
CN111147245A (en) | Algorithm for encrypting by using national password in block chain | |
CN106529977A (en) | Anti-counterfeiting method and system with support of terminal memory based on WeChat public account | |
CN110210270A (en) | Two-dimensional barcode information safety encryption and system and image in 2 D code analytic method and system | |
CN105553667A (en) | Dynamic password generating method | |
CN112487253A (en) | User invitation code generation method, verification method, device, equipment and storage medium | |
CN108768975A (en) | Support the data integrity verification method of key updating and third party's secret protection | |
CN107104792B (en) | Portable mobile password management system and management method thereof | |
CN106533681A (en) | Attribute attestation method and system supporting partial presentation | |
CN111914515A (en) | Ticket encryption system and verification method | |
CN108989051B (en) | Method for generating dynamic password | |
CN110298941A (en) | A kind of disposable temporary password generation method of intelligent door lock | |
Kim | A reverse sequence hash chain-based access control for a smart home system | |
CN101424142A (en) | Lock, unlocking method thereof, lock administrative center and control method thereof | |
CN113656816B (en) | Text encryption method | |
JPH06289781A (en) | Authentication system | |
CN100390698C (en) | Method for preventing input information stealing by Trojan or virus |
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 |