CN113011945A - Order number generation method and device, terminal equipment and storage medium - Google Patents

Order number generation method and device, terminal equipment and storage medium Download PDF

Info

Publication number
CN113011945A
CN113011945A CN202110282615.8A CN202110282615A CN113011945A CN 113011945 A CN113011945 A CN 113011945A CN 202110282615 A CN202110282615 A CN 202110282615A CN 113011945 A CN113011945 A CN 113011945A
Authority
CN
China
Prior art keywords
client
identifier
order
order request
original transaction
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
Application number
CN202110282615.8A
Other languages
Chinese (zh)
Inventor
乐建利
袁伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Minimally Invasive Yunqi Technology Co ltd
Original Assignee
Shenzhen Minimally Invasive Yunqi Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Minimally Invasive Yunqi Technology Co ltd filed Critical Shenzhen Minimally Invasive Yunqi Technology Co ltd
Priority to CN202110282615.8A priority Critical patent/CN113011945A/en
Publication of CN113011945A publication Critical patent/CN113011945A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0633Lists, e.g. purchase orders, compilation or processing
    • G06Q30/0635Processing of requisition or of purchase orders
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services

Abstract

The embodiment of the invention discloses a method and a device for generating an order number, terminal equipment and a storage medium, wherein the order request sent by a client is received, wherein the order request comprises a client identifier, a service type identifier and a data signature; generating an original transaction number according to the client identifier, the service type identifier and the data signature; and encrypting the original transaction number to obtain a client number corresponding to the order request, so that the user cannot deduce the operation condition of the enterprise through the client number, and the information leakage of the enterprise is avoided.

Description

Order number generation method and device, terminal equipment and storage medium
Technical Field
The invention relates to the technical field of computer software, in particular to a method and a device for generating an order number, terminal equipment and a storage medium.
Background
In the current online electronic commerce system, a number needs to be set for various transaction orders, and the number needs to satisfy global uniqueness so as to be conveniently used as a certificate for various transaction orders.
As an internet application, the order number needs to be disclosed to the client, but in consideration of the privacy of the e-commerce platform operation, the information (including the order number) exposed by the platform to the client cannot disclose the real operation information of the enterprise and the platform, for example, if the order number is a trade serial number, then the competitor can easily deduce the overall operation profile of the enterprise from the number. From a transaction security perspective, order numbering must be substantially invisible to others, except for a small percentage of the company. In this regard, the encoding rules for order numbers cannot be incorporated into any data that is operated with the company.
The current mature order number generation scheme in the market is as follows: the method is based on a database main key self-increment scheme, a universal unique identification code UUID, a database or REDIS self-increment generation algorithm and a snowflake algorithm. The advantages and disadvantages of each type of algorithm are analyzed in comparison as follows:
1. database-based main key self-increment
The advantages are that: the method is simple, the digital structure has high storage and query performance, and the occupied space is small; natural and orderly, and friendly to paging and sequencing.
The disadvantages are as follows: the database is troublesome to migrate; the distributed environment has the risk of a single point of failure; the tables and the libraries are divided into different groups, which is troublesome and easy to be traversed and grabbed by crawlers.
2. Universal unique identifier UUID
The advantages are that: the method is simple and has good performance; the natural support is distributed, and the world is unique; because of the disorder, it cannot be crawled by a crawler traversal.
The disadvantages are as follows: unordered, the performance consumption of the database by storage and query is large, and the official proposal suggests that the main key is as short as possible and as good as possible.
3. Database or Redis Generation Algorithm
The advantages are that: the method is simple and orderly, has good performance, generates the ID in a digital type, and occupies little space; distributed is supported.
The disadvantages are as follows: the distribution needs redis as a cluster, and the order is easy to guess and to traverse.
4. Snowflake algorithm
The advantages are that: the method is simple and orderly, has good performance, and generates ID which is a digital type; the distribution is supported naturally, the performance is very high, and 4096000 ids are generated in one second.
The disadvantages are as follows: the method can be used for only 69 years, the problems of sorting and table dividing need to be considered, and the problem of clock callback needs to be considered; because of the order, it is easy to traverse.
Disclosure of Invention
In view of the above problems, embodiments of the present invention are provided to provide an order number generation method, an order number generation device, a terminal device, and storage medium visual report generation device, which overcome the above problems or at least partially solve the above problems.
In a first aspect, an embodiment of the present invention provides a method for generating an order number, where the method includes:
receiving an order request sent by a client, wherein the order request comprises a client identifier, a service type identifier and a data signature;
generating an original transaction number according to the client identifier, the service type identifier and the data signature;
and encrypting the original transaction number to obtain a customer number corresponding to the order request.
Optionally, the encrypting the original transaction number to obtain a customer number corresponding to the order request includes:
and encrypting the original transaction number by adopting an AES encryption algorithm to obtain a character string type client number.
Optionally, the data signature is obtained by performing MD5 operation on the client identifier and the service type identifier.
Optionally, the method further comprises:
storing the original transaction number and the customer number in a REDIS database.
Optionally, the method further comprises:
and displaying the customer number.
Optionally, the original transaction number includes a transaction type identifier, a transaction occurrence date, a preset value of a transaction occurrence hour, and a check value.
Optionally, the method further comprises:
through the pressure test of the system, the throughput and the response time are obtained;
determining a key time-consuming point through the throughput and the response time;
and optimizing the key time consumption point.
In a second aspect, an embodiment of the present invention provides an apparatus for generating an order number, where the apparatus includes:
the system comprises a receiving module, a sending module and a receiving module, wherein the receiving module is used for receiving an order request sent by a client, and the order request comprises a client identifier, a service type identifier and a data signature;
the generating module is used for generating an original transaction number according to the client identifier, the service type identifier and the data signature;
and the encryption module is used for encrypting the original transaction number to obtain a client number corresponding to the order request.
Optionally, the encryption module is configured to:
and encrypting the original transaction number by adopting an AES encryption algorithm to obtain a character string type client number.
Optionally, the data signature is obtained by performing MD5 operation on the client identifier and the service type identifier.
Optionally, the apparatus further comprises a storage module, the storage module is configured to:
storing the original transaction number and the customer number in a REDIS database.
Optionally, the apparatus further comprises a display module, the display module is configured to:
and displaying the customer number.
Optionally, the original transaction number includes a transaction type identifier, a transaction occurrence date, a preset value of a transaction occurrence hour, and a check value.
Optionally, the apparatus further comprises an optimization module configured to:
through the pressure test of the system, the throughput and the response time are obtained;
determining a key time-consuming point through the throughput and the response time;
and optimizing the key time consumption point.
In a third aspect, an embodiment of the present invention provides a terminal device, including: at least one processor and memory;
the memory stores a computer program; the at least one processor executes the computer program stored in the memory to implement the order number generation method provided in the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed, the method for generating an order number according to the first aspect is implemented.
The embodiment of the invention has the following advantages:
according to the order number generation method, the order number generation device, the terminal equipment and the storage medium, the order request sent by the client is received, wherein the order request comprises the client identifier, the service type identifier and the data signature; generating an original transaction number according to the client identifier, the service type identifier and the data signature; and encrypting the original transaction number to obtain a client number corresponding to the order request, so that the user cannot deduce the operation condition of the enterprise through the client number, and the information leakage of the enterprise is avoided.
Drawings
FIG. 1 is a flowchart illustrating steps of a method for generating an order number according to an embodiment of the present invention;
FIG. 2 is a flow chart illustrating steps of another embodiment of a method for generating order numbers according to the present invention;
FIG. 3 is a block diagram of an embodiment of an order number generation apparatus according to the present invention;
fig. 4 is a schematic structural diagram of a terminal device of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
An embodiment of the present invention provides a method for generating an order number, which is used to generate an order number. The execution subject of this embodiment is a generation apparatus of an order number, and is arranged on an electronic device, where the electronic device at least includes a mobile phone, a tablet, or a computer terminal.
Referring to fig. 1, a flowchart illustrating steps of an embodiment of a method for generating an order number according to the present invention is shown, where the method specifically includes the following steps:
s101, receiving an order request sent by a client, wherein the order request comprises a client identifier, a service type identifier and a data signature;
specifically, the electronic device may receive order requests sent by a plurality of clients, where each order request includes different client identifiers, service type identifiers, and data signatures, the data signatures are generated by performing MD5 operations according to the client identifiers, the service type identifiers, and a secret key, and the secret key is used for making a request data signature to prove the validity of the client identity.
S102, generating an original transaction number according to the client identifier, the service type identifier and the data signature;
specifically, the electronic device classifies according to different service type identifiers, checks each client identifier for different service types, judges whether the client is a legal client, and acquires information such as date and hour corresponding to the client identifier if the client is the legal client to generate an original transaction number.
S103, encrypting the original transaction number to obtain a customer number corresponding to the order request.
Specifically, in order to avoid that the user sees the original transaction number, the original transaction number needs to be encrypted, in the embodiment of the present invention, an AES Encryption algorithm is preferentially adopted for Encryption, and an Advanced Encryption Standard (AES) is a symmetric Encryption algorithm. The symmetric encryption algorithm is to use the same key for encryption and decryption, and let the AES encryption function be E, then C ═ E (K, P), where P is plaintext, K is a key, and C is ciphertext. That is, the encryption function E outputs the ciphertext C by inputting the plaintext P and the key K as parameters of the encryption function. Let AES decrypt function be D, then P ═ D (K, C), where C is ciphertext, K is secret key, and P is plaintext. That is, the ciphertext C and the key K are input as parameters of the decryption function, and the decryption function outputs the plaintext P.
Therefore, after an order request sent by the client is received, the encrypted client number is generated, the original transaction number is not displayed, the user cannot see the original transaction number and only can see the encrypted client number, the user cannot presume the operation condition of the enterprise through the client number, and the information leakage of the enterprise is avoided.
The order number generation method provided by the embodiment of the invention receives an order request sent by a client, wherein the order request comprises a client identifier, a service type identifier and a data signature; generating an original transaction number according to the client identifier, the service type identifier and the data signature; and encrypting the original transaction number to obtain a client number corresponding to the order request, so that the user cannot deduce the operation condition of the enterprise through the client number, and the information leakage of the enterprise is avoided.
The present invention further provides a supplementary explanation of the order number generation method provided in the above embodiment.
The embodiment of the invention also provides a method for generating order numbers, which comprises the following steps:
receiving an order request sent by a client, wherein the order request comprises a client identifier, a service type identifier and a data signature;
specifically, the data signature is obtained by performing MD5 operation on the client identifier and the service type identifier.
Generating an original transaction number according to the client identifier, the service type identifier and the data signature;
and encrypting the original transaction number to obtain a customer number corresponding to the order request.
Optionally, the original transaction number includes a transaction type identifier, a transaction occurrence date, a transaction occurrence hour preset value, and a check value.
Figure BDA0002979184420000061
In particular, the amount of the solvent to be used,
position represents the transaction type identification: the numbers of [1-9999] form, support 9999 kinds of transaction scenes, and meet the requirement of more than 95% of e-commerce application scenes; the specific transaction type code table supports personalized definition.
Position is the date of transaction occurrence, namely, the position is composed of 6 digits of the year, month and day (yyMMdd): the method is mainly used for identifying the time interval of the order;
and the position represents a preset value of the transaction occurrence hour, namely the hour time point of the transaction occurrence, and consists of 1 digit of 0-9. The specific number represents the time period which is deduced according to the hours, which is beneficial to statistics with the hours as dimensions, and meanwhile, the number is not easy to be guessed by people, and the calculation rule is as follows:
Figure BDA0002979184420000062
Figure BDA0002979184420000071
and fourthly, the position is a check value, namely the position consists of a serial number of 5 digits [ 00001-99999 ], 10 ten thousand continuous digits from 0 to 99999 are prepared in advance by utilizing the high-performance read-write characteristic of the redis single thread, and any value is randomly obtained by utilizing a random access algorithm. And verifies that it will not be reused for a period of time.
Optionally, the original transaction number is encrypted by using an AES encryption algorithm to obtain a client number of a string type.
Optionally, the method further comprises:
the original transaction number and customer number are saved in the REDIS database.
Optionally, the method further comprises:
and displaying the customer number.
Optionally, the method further comprises:
through the pressure test of the system, the throughput and the response time are obtained;
determining a key time consuming point through throughput and response time;
and optimizing the key consumption time point.
In the existing mature algorithm, the existing single machine has high storage and query performance and small occupied space, but is not friendly to the distributed environment; some perfectly support distribution, but the storage and query performance is low. So far, no algorithm supports the distribution and maintains the advantages of a single machine. And other people can reveal the real operation information of the enterprise by finding out the rule of the transaction number. The embodiment of the invention provides a uniform transaction number generation entrance, is simple to call, saves storage space, has high retrieval speed, and effectively protects the transaction privacy security of an e-commerce platform and enterprise users.
The embodiment of the invention provides an example of the operation of a transaction number generator, and the operation data of each node basically comprises data such as < node work number >, < transaction number data of a certain day >, < history data >, < transaction type >, < access client identification > and the like, which are recorded in a process example operation database. As shown in fig. 2, the embodiment of the present invention is as follows:
the number management and monitor creates an access client record, which includes:
and accessing the identifier: manual filling is used for representing identity and character string type, and manual identification is facilitated;
the transaction type: the digital access identifier is automatically generated by the system and is convenient to store, and can be found in the finally generated order number;
and (3) secret key: used for signing request data and proving identity validity
Name: for remarking
Accessing client band parameters: the identity identification and the data signature (generated by all parameters and the key together with the MD5 algorithm) are used for calling an external interface of the transaction number generator;
the transaction number generator receives the parameters, verifies the validity, finds the transaction type recorded by the access client according to the parameters, and generates a digital transaction number which is the original number;
the access client calls a scrambler interface of the transaction number generator, and is encrypted into a character string type called an encryption number by an AES encryption algorithm according to the original number. The original transaction number is not allowed to be exposed, and the encrypted transaction number can be seen;
the access client uses the original number as a main key, stores the original number and the encrypted number into a database, and only displays the encrypted number to the outside;
the transaction number management and monitor judges whether the efficiency of the algorithm is improved or reduced through pressure test monitoring algorithm Throughput (TPS) and Response Time (RT), and a key time consuming point is found for optimization, so that the aim of optimizing the algorithm is fulfilled.
The embodiment of the invention aims at the defects of the conventional algorithms which are mature in the market, combines respective superiority, and solves the problems of supporting single machine high performance and distributed high availability and effectively preventing enterprise operation information from being leaked through coding rules by innovating the algorithms. The following problems are mainly solved:
1) the storage occupied space is less: the data is stored in a database and is stored by a digital type, and only 8 bytes are occupied;
2) the query performance is high: because the occupied bytes are less, the index field can provide better performance;
3) globally unique and ordered: all types of transaction numbers are unique and ordered as a whole;
4) support for distributed storage: by the service type coding, the storage and retrieval of the sub-tables and the sub-libraries can be realized.
5) Enterprise information is not revealed: a competitor cannot guess the transaction amount of the enterprise by a number.
6) Convenient classification statistics: the e-commerce platform and the enterprise need to count the total amount of different types of transactions according to different order types such as electric appliances, services and the like. The order number needs to reflect the type of service.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
The order number generation method provided by the embodiment of the invention receives an order request sent by a client, wherein the order request comprises a client identifier, a service type identifier and a data signature; generating an original transaction number according to the client identifier, the service type identifier and the data signature; and encrypting the original transaction number to obtain a client number corresponding to the order request, so that the user cannot deduce the operation condition of the enterprise through the client number, and the information leakage of the enterprise is avoided.
Another embodiment of the present invention provides an order number generation device, configured to execute the order number generation method provided in the foregoing embodiment.
Referring to fig. 3, a block diagram of an embodiment of an order number generation apparatus according to the present invention is shown, and the apparatus may specifically include the following modules: a receiving module 301, a generating module 302 and an encrypting module 303, wherein:
the receiving module 301 is configured to receive an order request sent by a client, where the order request includes a client identifier, a service type identifier, and a data signature;
the generating module 302 is configured to generate an original transaction number according to the client identifier, the service type identifier, and the data signature;
the encryption module 303 is configured to encrypt the original transaction number to obtain a customer number corresponding to the order request.
The order number generation device provided by the embodiment of the invention receives an order request sent by a client, wherein the order request comprises a client identifier, a service type identifier and a data signature; generating an original transaction number according to the client identifier, the service type identifier and the data signature; and encrypting the original transaction number to obtain a client number corresponding to the order request, so that the user cannot deduce the operation condition of the enterprise through the client number, and the information leakage of the enterprise is avoided.
The present invention further provides a supplementary explanation of the order number generation device provided in the above embodiment.
Optionally, the encryption module is configured to:
and encrypting the original transaction number by adopting an AES encryption algorithm to obtain the client number of the character string type.
Optionally, the data signature is obtained by performing MD5 operation on the client identifier and the service type identifier.
Optionally, the apparatus further comprises a storage module, the storage module is configured to:
the original transaction number and customer number are saved in the REDIS database.
Optionally, the apparatus further comprises a display module, the display module is configured to:
and displaying the customer number.
Optionally, the original transaction number includes a transaction type identifier, a transaction occurrence date, a transaction occurrence hour preset value, and a check value.
Optionally, the apparatus further comprises an optimization module, the optimization module is configured to:
through the pressure test of the system, the throughput and the response time are obtained;
determining a key time consuming point through throughput and response time;
and optimizing the key consumption time point.
It should be noted that the respective implementable modes in the present embodiment may be implemented individually, or may be implemented in combination in any combination without conflict, and the present application is not limited thereto.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The order number generation device provided by the embodiment of the invention receives an order request sent by a client, wherein the order request comprises a client identifier, a service type identifier and a data signature; generating an original transaction number according to the client identifier, the service type identifier and the data signature; and encrypting the original transaction number to obtain a client number corresponding to the order request, so that the user cannot deduce the operation condition of the enterprise through the client number, and the information leakage of the enterprise is avoided.
Still another embodiment of the present invention provides a terminal device, configured to execute the order number generation method provided in the foregoing embodiment.
Fig. 4 is a schematic structural diagram of a terminal device of the present invention, and as shown in fig. 4, the terminal device includes: at least one processor 401 and memory 402;
the memory stores a computer program; at least one processor executes the computer program stored in the memory to implement the order number generation method provided by the above-described embodiments.
The terminal device provided in this embodiment receives an order request sent by a client, where the order request includes a client identifier, a service type identifier, and a data signature; generating an original transaction number according to the client identifier, the service type identifier and the data signature; and encrypting the original transaction number to obtain a client number corresponding to the order request, so that the user cannot deduce the operation condition of the enterprise through the client number, and the information leakage of the enterprise is avoided.
Yet another embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed, the method for generating an order number provided in any of the above embodiments is implemented.
According to the computer-readable storage medium of the embodiment, an order request sent by a client is received, wherein the order request comprises a client identifier, a service type identifier and a data signature; generating an original transaction number according to the client identifier, the service type identifier and the data signature; and encrypting the original transaction number to obtain a client number corresponding to the order request, so that the user cannot deduce the operation condition of the enterprise through the client number, and the information leakage of the enterprise is avoided.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, electronic devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing electronic device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing electronic device, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing electronic devices to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing electronic device to cause a series of operational steps to be performed on the computer or other programmable electronic device to produce a computer implemented process such that the instructions which execute on the computer or other programmable electronic device provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or electronic device that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or electronic device. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or electronic device that comprises the element.
The order number generation method and the order number generation device provided by the invention are described in detail, and a specific example is applied in the text to explain the principle and the implementation of the invention, and the description of the above embodiment is only used to help understanding the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A method for generating order numbers, the method comprising:
receiving an order request sent by a client, wherein the order request comprises a client identifier, a service type identifier and a data signature;
generating an original transaction number according to the client identifier, the service type identifier and the data signature;
and encrypting the original transaction number to obtain a customer number corresponding to the order request.
2. The method of claim 1, wherein encrypting the original transaction number to obtain a customer number corresponding to the order request comprises:
and encrypting the original transaction number by adopting an AES encryption algorithm to obtain a character string type client number.
3. The method of claim 1, wherein the data signature is obtained by performing MD5 operation on the client identifier and the service type identifier.
4. The method of claim 1, further comprising:
storing the original transaction number and the customer number in a REDIS database.
5. The method of claim 1, further comprising:
and displaying the customer number.
6. The method of claim 1, wherein the original transaction number comprises a transaction type identifier, a transaction occurrence date, a transaction occurrence hour preset value, and a check value.
7. The method of claim 1, further comprising:
through the pressure test of the system, the throughput and the response time are obtained;
determining a key time-consuming point through the throughput and the response time;
and optimizing the key time consumption point.
8. An apparatus for generating an order number, the apparatus comprising:
the system comprises a receiving module, a sending module and a receiving module, wherein the receiving module is used for receiving an order request sent by a client, and the order request comprises a client identifier, a service type identifier and a data signature;
the generating module is used for generating an original transaction number according to the client identifier, the service type identifier and the data signature;
and the encryption module is used for encrypting the original transaction number to obtain a client number corresponding to the order request.
9. A terminal device, comprising: at least one processor and memory;
the memory stores a computer program; the at least one processor executes the computer program stored by the memory to implement the order number generation method of any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which when executed implements the order number generation method of any one of claims 1 to 7.
CN202110282615.8A 2021-03-16 2021-03-16 Order number generation method and device, terminal equipment and storage medium Pending CN113011945A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110282615.8A CN113011945A (en) 2021-03-16 2021-03-16 Order number generation method and device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110282615.8A CN113011945A (en) 2021-03-16 2021-03-16 Order number generation method and device, terminal equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113011945A true CN113011945A (en) 2021-06-22

Family

ID=76408579

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110282615.8A Pending CN113011945A (en) 2021-03-16 2021-03-16 Order number generation method and device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113011945A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115114895A (en) * 2022-08-26 2022-09-27 华控清交信息科技(北京)有限公司 Method and device for combining reports and readable storage medium

Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7822666B1 (en) * 2001-10-29 2010-10-26 Mcafee, Inc. Secure single-use transaction numbers
CN103218718A (en) * 2011-11-18 2013-07-24 苏州中茵泰格科技有限公司 Order number generating method and order number generating system based on multiple platforms
CN104182867A (en) * 2014-08-20 2014-12-03 深圳一卡通新技术有限公司 Order sending method, receiving method, sending device, receiving device and system
WO2016172982A1 (en) * 2015-04-30 2016-11-03 深圳市银信网银科技有限公司 Data recording method, device and system, and computer storage medium
WO2017016272A1 (en) * 2015-07-29 2017-02-02 腾讯科技(深圳)有限公司 Method, apparatus and system for processing virtual resource data
CN106649057A (en) * 2015-10-28 2017-05-10 北京国双科技有限公司 Method and device for testing server pressure
CN106960345A (en) * 2017-04-05 2017-07-18 恒宝股份有限公司 A kind of Internet of Things network interface card and its method of work
US20180240205A1 (en) * 2015-08-26 2018-08-23 Recruit Holdings Co., Ltd. Order Management Server, Order System, and Recording Medium
CN108564428A (en) * 2018-03-05 2018-09-21 武汉斑马快跑科技有限公司 A kind of order coding method and system
CN110858830A (en) * 2018-08-23 2020-03-03 陕西丽昊网络科技股份有限公司 E-commerce transaction data encryption transmission system
CN110889762A (en) * 2019-11-19 2020-03-17 腾讯科技(深圳)有限公司 Data processing method, device and medium
CN111008400A (en) * 2019-11-29 2020-04-14 恩亿科(北京)数据科技有限公司 Data processing method, device and system
CN111159211A (en) * 2019-12-31 2020-05-15 广州酷狗计算机科技有限公司 Order information generation method, device and system, computer equipment and storage medium
CN111400344A (en) * 2020-03-19 2020-07-10 上海东普信息科技有限公司 Electronic bill printing method, device, equipment and storage medium
CN111694841A (en) * 2020-04-29 2020-09-22 平安科技(深圳)有限公司 Order mark generation method, device, server and storage medium
JPWO2020245939A1 (en) * 2019-06-05 2020-12-10
CN112291201A (en) * 2020-09-30 2021-01-29 北京五八信息技术有限公司 Service request transmission method and device and electronic equipment

Patent Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7822666B1 (en) * 2001-10-29 2010-10-26 Mcafee, Inc. Secure single-use transaction numbers
CN103218718A (en) * 2011-11-18 2013-07-24 苏州中茵泰格科技有限公司 Order number generating method and order number generating system based on multiple platforms
CN104182867A (en) * 2014-08-20 2014-12-03 深圳一卡通新技术有限公司 Order sending method, receiving method, sending device, receiving device and system
WO2016172982A1 (en) * 2015-04-30 2016-11-03 深圳市银信网银科技有限公司 Data recording method, device and system, and computer storage medium
WO2017016272A1 (en) * 2015-07-29 2017-02-02 腾讯科技(深圳)有限公司 Method, apparatus and system for processing virtual resource data
US20180240205A1 (en) * 2015-08-26 2018-08-23 Recruit Holdings Co., Ltd. Order Management Server, Order System, and Recording Medium
CN106649057A (en) * 2015-10-28 2017-05-10 北京国双科技有限公司 Method and device for testing server pressure
CN106960345A (en) * 2017-04-05 2017-07-18 恒宝股份有限公司 A kind of Internet of Things network interface card and its method of work
CN108564428A (en) * 2018-03-05 2018-09-21 武汉斑马快跑科技有限公司 A kind of order coding method and system
CN110858830A (en) * 2018-08-23 2020-03-03 陕西丽昊网络科技股份有限公司 E-commerce transaction data encryption transmission system
JPWO2020245939A1 (en) * 2019-06-05 2020-12-10
CN110889762A (en) * 2019-11-19 2020-03-17 腾讯科技(深圳)有限公司 Data processing method, device and medium
CN111008400A (en) * 2019-11-29 2020-04-14 恩亿科(北京)数据科技有限公司 Data processing method, device and system
CN111159211A (en) * 2019-12-31 2020-05-15 广州酷狗计算机科技有限公司 Order information generation method, device and system, computer equipment and storage medium
CN111400344A (en) * 2020-03-19 2020-07-10 上海东普信息科技有限公司 Electronic bill printing method, device, equipment and storage medium
CN111694841A (en) * 2020-04-29 2020-09-22 平安科技(深圳)有限公司 Order mark generation method, device, server and storage medium
CN112291201A (en) * 2020-09-30 2021-01-29 北京五八信息技术有限公司 Service request transmission method and device and electronic equipment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
王国际 等: "基于数据加密技术的订单防篡改方法", 信息技术与信息化, vol. 1, no. 9, pages 18 - 19 *
秦晓飞;: "电信运营商客户隐私数据保护算法探讨", 电子世界, no. 19, pages 5 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115114895A (en) * 2022-08-26 2022-09-27 华控清交信息科技(北京)有限公司 Method and device for combining reports and readable storage medium

Similar Documents

Publication Publication Date Title
US9373004B2 (en) Methods and systems for deleting requested information
US9720943B2 (en) Columnar table data protection
US10025951B2 (en) Systems and methods for implementing an encrypted search index
US10742623B1 (en) Selective encryption of profile fields for multiple consumers
US20160352695A1 (en) Token-based secure data management
CN112100679A (en) Data processing method and device based on privacy protection and server
US11741259B2 (en) Protection of databases, data transmissions and files without the use of encryption
CN113127915A (en) Data encryption desensitization method and device, electronic equipment and storage medium
US10536276B2 (en) Associating identical fields encrypted with different keys
CN109254893B (en) Service data auditing method, device, server and storage medium
CN113011945A (en) Order number generation method and device, terminal equipment and storage medium
JP4594078B2 (en) Personal information management system and personal information management program
US11947684B2 (en) Searching encrypted data
CN116663030A (en) Desensitization processing method and device for interactive data
CA3003407C (en) Selective encryption of profile fields for multiple consumers
CN109560916A (en) A kind of distribution method of electronic invoice receives method and relevant apparatus
US10043015B2 (en) Method and apparatus for applying a customer owned encryption
CN113468549A (en) Retrieval method and system for encrypted information evidence based on block chain and electronic equipment
CN111209602A (en) Block chain based data development method, system, server and storage medium
WO2016065550A1 (en) Trusted storage and reading method and apparatus for cloud computing
CN115563638B (en) Data processing method, system, device and storage medium
US11494499B1 (en) Searching encrypted data stores
US20230067054A1 (en) Encryption of database log files
WO2024070290A1 (en) Data sharing system, data sharing method, and data sharing program
CN110166493A (en) A kind of social client address list dynamic protection method and device

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