Disclosure of Invention
The embodiment of the invention provides the encryption method and the encryption device for the tea industry platform, solves the technical problems of easy leakage of user information and high transaction risk, and achieves the technical effects of multiple encryption, and guarantee of privacy of both parties and transaction safety.
In view of the above problems, the present application is provided to provide a tea industry platform encryption method and apparatus.
In a first aspect, the present invention provides a tea service platform encryption method, where the encryption method is applied to a first server, and the first server is in communication connection with a second server, and the tea service platform encryption method includes: obtaining a first tea industry order, and obtaining first encryption information according to a purchaser of the first tea industry order; obtaining a first relation element having a first relation with the first tea industry order according to the first tea industry order; determining second encryption information according to the first relation element; obtaining third encryption information according to the first encryption information and the second encryption information; and encrypting the first tea industry order through the third encryption information to obtain a first encrypted order.
Preferably, the first relationship comprises: obtaining a historical order of the purchaser; and determining the commodity with the first tea industry order in the historical order according to the historical order.
Preferably, the first relationship further comprises: obtaining the transaction chatting record or order receiving information of the purchaser on the tea industry platform; and obtaining the ID information of the tea service platform receptionist according to the transaction chatting record or the order reception information.
Preferably, the first relationship further comprises: obtaining the receiving address information of the purchaser; and determining the receiving address information as the common address information of the purchaser.
Preferably, the tea industry platform encryption method further comprises the following steps: sending the first relation element to a second server; and encrypting the first relation element through a first set password according to the second server to obtain first relation encryption information.
In a second aspect, the present invention provides an encryption apparatus for a tea service platform, the apparatus comprising:
the first obtaining unit obtains a first tea industry order and obtains first encryption information according to a purchaser of the first tea industry order;
the second obtaining unit obtains a first relation element having a first relation with the first tea industry order according to the first tea industry order;
a first determination unit that determines second encryption information from the first relation element;
a third obtaining unit that obtains third encryption information from the first encryption information and the second encryption information;
and the fourth obtaining unit encrypts the first tea industry order through the third encryption information to obtain a first encrypted order.
Preferably, the second obtaining unit includes:
a fifth obtaining unit that obtains a history order of the purchaser;
and the second determining unit determines the commodity with the first tea industry order in the historical order according to the historical order.
Preferably, the second obtaining unit further includes:
a sixth obtaining unit, configured to obtain a transaction chat record or order receiving information of the purchaser on the tea service platform;
and the seventh obtaining unit is used for obtaining the ID information of the tea service platform receptionist according to the transaction chatting record or the order receiving information.
Preferably, the second obtaining unit further includes:
an eighth obtaining unit that obtains shipping address information of the purchaser;
a third determining unit that determines that the shipping address information is the purchaser's frequent address information.
Preferably, the apparatus further comprises:
a first processing unit that transmits the first relationship element to a second server;
and the second processing unit encrypts the first relation element through a first set password according to the second server to obtain first relation encryption information.
In a third aspect, the present invention provides another encryption apparatus for a tea industry platform, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the computer program to implement the following steps: obtaining a first tea industry order, and obtaining first encryption information according to a purchaser of the first tea industry order; obtaining a first relation element having a first relation with the first tea industry order according to the first tea industry order; determining second encryption information according to the first relation element; obtaining third encryption information according to the first encryption information and the second encryption information; and encrypting the first tea industry order through the third encryption information to obtain a first encrypted order.
One or more technical solutions in the embodiments of the present application have at least one or more of the following technical effects:
1. the embodiment of the application provides a tea industry platform encryption method and device, wherein the encryption method is applied to a first server, the first server is in communication connection with a second server, and the tea industry platform encryption method comprises the following steps: obtaining a first tea industry order, and obtaining first encryption information according to a purchaser of the first tea industry order; obtaining a first relation element having a first relation with the first tea industry order according to the first tea industry order; determining second encryption information according to the first relation element; obtaining third encryption information according to the first encryption information and the second encryption information; and encrypting the first tea industry order through the third encryption information to obtain a first encrypted order. The invention solves the technical problems of easy leakage of user information and high transaction risk, and achieves the technical effects of multiple encryption, privacy protection of both parties and transaction safety.
2. The embodiment of the application further includes, by the first relationship: obtaining the transaction chatting record or order receiving information of the purchaser on the tea industry platform; and obtaining the ID information of the tea service platform receptionist according to the transaction chatting record or the order reception information. Further, the information safety and traceability of both sides are guaranteed, and the transaction is safe and reliable.
3. The embodiment of the application further includes, by the first relationship: obtaining the receiving address information of the purchaser; and determining the receiving address information as the common address information of the purchaser. The technical effects of protecting the privacy of purchasers and preventing information leakage are further achieved.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Detailed Description
The embodiment of the invention provides a tea industry platform encryption method and a device, and the technical scheme provided by the invention has the following general ideas: obtaining a first tea industry order, and obtaining first encryption information according to a purchaser of the first tea industry order; obtaining a first relation element having a first relation with the first tea industry order according to the first tea industry order; determining second encryption information according to the first relation element; obtaining third encryption information according to the first encryption information and the second encryption information; and encrypting the first tea industry order through the third encryption information to obtain a first encrypted order. The invention solves the technical problems of easy leakage of user information and high transaction risk, and achieves the technical effects of multiple encryption, privacy protection of both parties and transaction safety.
The technical solutions of the present invention are described in detail below with reference to the drawings and specific embodiments, and it should be understood that the specific features in the embodiments and examples of the present invention are described in detail in the technical solutions of the present application, and are not limited to the technical solutions of the present application, and the technical features in the embodiments and examples of the present application may be combined with each other without conflict.
Example one
Fig. 1 is a schematic flow chart of an encryption method for a tea industry platform according to an embodiment of the present invention. The method is applied to a tea industry platform encryption device which comprises an input device and a display device, wherein the input device is internally provided with a character input module, a character processing module, a memory and a signal input module, the input device can be connected with devices for generating output signals such as a computer keyboard, a mobile phone keyboard and the like, and the display device is connected with the input device and is a display screen and other devices capable of displaying the input devices such as the computer keyboard, the mobile phone keyboard and the like. The method comprises steps 101-105:
step 110: obtaining a first tea industry order, and obtaining first encryption information according to a purchaser of the first tea industry order;
specifically, after a purchaser logs in a server through a mobile phone, a computer client or a webpage and the like, ordering commodities required to be purchased on a tea industry platform, the tea industry platform generates orders after the purchaser orders, then a first server can automatically collect and obtain each tea industry order, an ordering account number associated with the orders is automatically inquired through the orders, a bound account number of the purchaser such as WeChat, QQ and Taobao matched with the first tea industry order and personal information of the purchaser and the like can be inquired through the ordering account number, after the information of the purchaser is obtained, the server automatically encrypts the information through an encryption algorithm such as RSA or AES and obtains first encryption information, and the encryption information is sent to a memory, so that the personal information of the purchaser is effectively prevented from being leaked. For example, a buyer places an order on a tea service platform from a mobile phone client by using a WeChat binding account, the first server can automatically inquire information such as the WeChat account bound by the buyer, a receiving address, a contact telephone and the like according to an order generated by the tea service platform, encrypt the information by an RSA encryption algorithm after inquiring the information, and send the encrypted information and a secret key to the memory.
Step 120: obtaining a first relation element having a first relation with the first tea industry order according to the first tea industry order; further, the first relationship includes: obtaining a historical order of the purchaser; and determining the commodity with the first tea industry order in the historical order according to the historical order. Further, the first relationship further includes: obtaining the transaction chatting record or order receiving information of the purchaser on the tea industry platform; and obtaining the ID information of the tea service platform receptionist according to the transaction chatting record or the order reception information. Further, the first relationship further includes: obtaining the receiving address information of the purchaser; and determining the receiving address information as the common address information of the purchaser.
Step 130: determining second encryption information according to the first relation element;
specifically, after the first server inquires the first order, the information of the purchaser in the first order is automatically extracted, the common receiving address of the purchaser is screened out, all historical orders of the purchaser on a tea platform can be directly inquired through the account of the purchaser, the order with the same commodity as the first tea order is screened out from all historical orders, the information such as the ID of the order taker of the purchaser and the information such as the chatting record of the order taker and the purchaser can be inquired through the account of the purchaser, the first server automatically arranges the information and sends the information to the second server after the information is obtained, and the second server encrypts the information integrally through an encryption algorithm such as RSA or AES, so that the information and privacy security of both sides of transaction can be ensured, and the information of both sides of the butt-purchaser and the information of both sides of transaction can be kept, on one hand, the transaction can be effectively tracked after the transaction is abnormal, and on the other hand, any party can be placed to randomly modify the information such as the chat records and the like, so that the transaction safety is guaranteed. For example, the first server obtains information such as an order placing account number and a receiving address of wang and information such as a receptionist ID and a chatting record of the receptionist and wang of the tea industry platform through a tea industry order of wang. The information is collated and sent to the second server, and the information is encrypted by the second server as a whole.
Step 140: obtaining third encryption information according to the first encryption information and the second encryption information; further, the encryption method for the tea industry platform further comprises the following steps: sending the first relation element to a second server; and encrypting the first relation element through a first set password according to the second server to obtain first relation encryption information.
Specifically, after the first encrypted information is sent to the storage module, the first relation element is sent to the second server through the sending module, the second server encrypts the information integrally through an encryption algorithm such as RSA or AES, or encrypts the information through a preset password, the first relation encrypted information and the secret key are obtained after encryption, then the second server sends the first relation encrypted information to the storage module, the first server extracts the first encrypted information and the second encrypted information from the storage to integrate, and then the first relation encrypted information and the second relation encrypted information are encrypted through an encryption algorithm such as RSA or AES. Therefore, multiple integral encryption information is realized, and the safety guarantee of information and transaction is further ensured. For example, the first server inquires about a tea industry order of one month in 5 th month of Li, the first server encrypts personal information of Wang and automatically inquires about an order of the same commodity as the tea industry order of the month 5 in all the orders of Li, information of a common goods receiving address of Li, information of a receiver when Li is purchased, a chatting record of Li and the receiver and the like. And the first server sends the information to the second server after obtaining the information, and the second server automatically encrypts the information integrally through an RSA encryption algorithm and stores the encrypted information and the secret key into a memory. The first server extracts personal encryption information of the Wangzhi and first relation element encryption information of the Wangzhi from the memory, integrates the encryption information, and performs integral encryption on the two pieces of encryption information through an encryption algorithm, so that new integral encryption information and a new key are obtained.
Step 150: and encrypting the first tea industry order through the third encryption information to obtain a first encrypted order.
Specifically, the first server integrates first encryption information and second encryption information, and obtains new integral encryption information, namely third encryption information after the first server encrypts the first integral encryption information integrally, then the first server assigns the third encryption information to the first tea industry order, encrypts the first tea industry order and sends the encryption information and the secret key to the storage module, after the first server assigns the third encryption information to the first tea industry order, the first tea industry order forms an integral multiple encryption order, all encryption information can be checked only by logging in the server through the account of the client, and therefore the security of the order is effectively improved. For example, the server integrally encrypts the order of the king tea industry, if the king tea industry needs to check the order, all information such as personal information and order information can be checked only by logging in the server through a client of a mobile phone or a computer, and if other people want to inquire the personal information or the order information of the king tea industry, all keys of the first encrypted information, the second encrypted information and the third encrypted information are required to be obtained for inquiring. The safety degree of the existing encryption algorithm can meet the general secrecy requirement, and the invention further ensures the information safety of users and merchants through the multiple encryption of the existing encryption algorithm.
Example 2
Based on the same inventive concept as the encryption method for the tea industry platform in the previous embodiment, the invention further provides an encryption device for the tea industry platform, as shown in fig. 2, the encryption device comprises: the first obtaining unit obtains a first tea industry order and obtains first encryption information according to a purchaser of the first tea industry order; the second obtaining unit obtains a first relation element having a first relation with the first tea industry order according to the first tea industry order; a first determination unit that determines second encryption information from the first relation element; a third obtaining unit that obtains third encryption information from the first encryption information and the second encryption information; and the fourth obtaining unit encrypts the first tea industry order through the third encryption information to obtain a first encrypted order.
Further, the second obtaining unit includes: a fifth obtaining unit that obtains a history order of the purchaser; and the second determining unit determines the commodity with the first tea industry order in the historical order according to the historical order.
Further, the second obtaining unit further includes: a sixth obtaining unit, configured to obtain a transaction chat record or order receiving information of the purchaser on the tea service platform; and the seventh obtaining unit is used for obtaining the ID information of the tea service platform receptionist according to the transaction chatting record or the order receiving information.
Further, the second obtaining unit further includes: an eighth obtaining unit that obtains shipping address information of the purchaser; a third determining unit that determines that the shipping address information is the purchaser's frequent address information.
Further, the apparatus further comprises: a first processing unit that transmits the first relationship element to a second server; and the second processing unit encrypts the first relation element through a first set password according to the second server to obtain first relation encryption information.
Various changes and specific examples of the encryption method for the tea service platform in embodiment 1 of fig. 1 are also applicable to the encryption device for the tea service platform in this embodiment, and those skilled in the art can clearly understand the implementation method for the encryption device for the tea service platform in this embodiment through the foregoing detailed description of the encryption method for the tea service platform, so that the detailed description is omitted here for the sake of brevity of the description.
Example 3
Based on the same inventive concept as the encryption method of the tea service platform in the previous embodiment, the present invention further provides another encryption device of the tea service platform, on which a computer program is stored, which when executed by a processor implements the steps of any one of the encryption methods of the tea service platform described above.
Where in fig. 3 a bus architecture (represented by bus 300), bus 300 may include any number of interconnected buses and bridges, bus 300 linking together various circuits including one or more processors, represented by processor 302, and memory, represented by memory 304. The bus 300 may also link together various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. A bus interface 306 provides an interface between the bus 300 and the receiver 301 and transmitter 303. The receiver 301 and the transmitter 303 may be the same element, i.e., a transceiver, providing a means for communicating with various other apparatus over a transmission medium.
The processor 302 is responsible for managing the bus 300 and general processing, and the memory 304 may be used for storing data used by the processor 302 in performing operations.
One or more technical solutions in the embodiments of the present application have at least one or more of the following technical effects:
1. the embodiment of the application provides a tea industry platform encryption method and device, wherein the encryption method is applied to a first server, the first server is in communication connection with a second server, and the tea industry platform encryption method comprises the following steps: obtaining a first tea industry order, and obtaining first encryption information according to a purchaser of the first tea industry order; obtaining a first relation element having a first relation with the first tea industry order according to the first tea industry order; determining second encryption information according to the first relation element; obtaining third encryption information according to the first encryption information and the second encryption information; and encrypting the first tea industry order through the third encryption information to obtain a first encrypted order. The invention solves the technical problems of easy leakage of user information and high transaction risk, and achieves the technical effects of multiple encryption, privacy protection of both parties and transaction safety.
2. The embodiment of the application further includes, by the first relationship: obtaining the transaction chatting record or order receiving information of the purchaser on the tea industry platform; and obtaining the ID information of the tea service platform receptionist according to the transaction chatting record or the order reception information. Further, the information safety and traceability of both sides are guaranteed, and the transaction is safe and reliable.
3. The embodiment of the application further includes, by the first relationship: obtaining the receiving address information of the purchaser; and determining the receiving address information as the common address information of the purchaser. The technical effects of protecting the privacy of purchasers and preventing information leakage are further achieved.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, 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, 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.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (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 apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, 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 apparatus 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 apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.