A merchant information management method
By adding salt encryption to generate information circulation groups and feature salt, the lack of security in the information management method of existing merchants has been solved, and the efficient encryption protection of merchant transaction information is realized.
Patent Information
- Application Number
- CN202411562006.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-05
- Publication Date
- 2025-01-24
- Estimated Expiration
- 2044-11-05
AI Technical Summary
The existing merchant information management methods still need to be improved in terms of security, and it is difficult to effectively prevent cyber attacks and data leakage.
By obtaining the transaction information corresponding to the account ID of the merchant, the information cycle group is generated, and the information cycle group is used to generate feature salt. Based on the feature salt, the salt and the algorithm are encrypted to encrypt the transaction information.
This method can personalize the transaction information to prevent unauthorized access and leaks, protect customer privacy and business secrets of merchants.
Smart Images

Figure CN119067702B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of information processing, and in particular relates to a merchant information management method. Background Art
[0002] With the booming development of e-commerce, virtual goods trading has become an important field that cannot be ignored. Virtual goods are favored by consumers because of their convenience, immediacy and the fact that they do not require logistics. The merchant information generated during the commodity trading process includes a series of important information such as basic information, customer settlement records and purchase records. However, the existing merchant information management methods still need to be improved in terms of security. Although certain measures have been taken, they still need to be further strengthened in the face of increasingly complex network attacks and data leakage risks. Summary of the invention
[0003] In order to solve the above problems, the present invention proposes a merchant information management method.
[0004] The technical solution of the present invention is: a merchant information management method comprises the following steps:
[0005] S1. Obtain transaction information corresponding to the merchant's account ID and generate an information cycle group for the transaction information;
[0006] S2. Generate characteristic salt for transaction information according to the information cycle group;
[0007] S3. Based on the characteristic salt, the transaction information is encrypted using the salt encryption algorithm.
[0008] In S3, salt encryption is a way to encrypt login passwords. It is implemented by associating each password with an n-bit random number, which is called "salt". After encrypting the transaction information, the user needs to enter the correct encrypted password to view the transaction information.
[0009] Furthermore, S1 includes the following sub-steps:
[0010] S11, obtaining the transaction information corresponding to the merchant's account ID, removing stop words from the transaction information, and extracting the TF-IDF value of each word in the transaction information;
[0011] S12, obtaining a number of weighted values according to the context vector of each word in the transaction information;
[0012] S13, determining a generator according to the TF-IDF value of each word in the transaction information;
[0013] S14. Taking each weighted value as an integer power of a generator, an information cycle group is generated.
[0014] The beneficial effect of the above further scheme is: in the present invention, the TF-IDF value is a commonly used weighting technique for information retrieval and data mining, which is used to evaluate the importance of a word to one of the documents in a corpus, and the context vector of a word is a representation that captures the semantic information of the word in a specific context (i.e., a sentence or text paragraph). Therefore, the present invention uses the context vector of the word to form a three-dimensional vector, performs a dot product operation on the three-dimensional vector to obtain a weighted value, and then combines the TF-IDF value of each word to determine a specific generator, thereby generating a cyclic group. (A cyclic group is a group in which all elements are generated by a generator through repeated operations).
[0015] Furthermore, S12 includes the following sub-steps:
[0016] S121, grouping every six words in the transaction information into word pairs, and generating a first weighted vector and a second weighted vector for each word pair;
[0017] S122, performing a dot product operation on the first weighted vector and the second weighted vector of each word pair to obtain an initial weighted value of the word pair;
[0018] S123, rounding up the weighted values of all word pairs to obtain a number of weighted values.
[0019] In S121, if the number of words in the transaction information is not a multiple of 6, the unused elements of the first weighted vector and the second weighted vector of the last word pair are repeatedly filled with the context vector of the last word.
[0020] Furthermore, in S121, the first weighted vector of the word pair Z The expression of 1 is: Z 1=[ x 1: x 3: x 5]; where x 1 represents the context vector of the first word in a word pair, x 3 represents the context vector of the third word in the word pair, x 5 represents the context vector of the fifth word in the word pair, and [:] represents the vector concatenation operation;
[0021] In S121, the second weighted vector of the word pair Z The expression of 2 is: Z 2=[ x 2: x 4: x 6]; where x 2 represents the context vector of the second word in the word pair, x 4 represents the context vector of the fourth word in the word pair, x6 represents the context vector of the sixth word in the word pair.
[0022] Furthermore, in S13, the method for determining the generator is: rounding up the ratio between the sum of the TF-IDF values of all words and the number of words to obtain the generator.
[0023] Furthermore, S2 includes the following sub-steps:
[0024] S21, taking the minimum value and the median of the information cycle group as the two ends of the information interval respectively, to generate the information interval;
[0025] S22. Determine a first random number and a second random number of the transaction information based on the information interval;
[0026] S23. Determine a characteristic salt according to the first random number and the second random number.
[0027] The beneficial effect of the above further scheme is: in the present invention, two random numbers are generated according to the context word vectors belonging to the information interval and not belonging to the information interval, and the final feature salt is generated by using the two random numbers and their mean to participate in the salt encryption algorithm, thereby improving the practicality of the encryption algorithm.
[0028] Further, in S22, the first random number R The calculation formula for 1 is: ; In the formula, I Represents the number of words in the context vector value in the message interval, X i Represents the context vector value of the word in the information interval, Indicates a round-up operation.
[0029] Further, in S22, the second random number R The calculation formula for 2 is: ; In the formula, J The number of words that represent context vector values that are not in the message interval, Indicates floor operation. X j Represents the context vector value of the word that is not in the information interval,
[0030] Furthermore, in S23, the method for determining the characteristic salt is: arranging the first random number, the second random number, and the average of the first random number and the second random number in ascending order as the characteristic salt of the transaction information.
[0031] The beneficial effects of the present invention are as follows: the present invention extracts generators from the transaction information of the account ID, performs repeated operations on the generators, and obtains an information cycle group; uses the information cycle group to obtain two random numbers, thereby determining the characteristic salt of the salted encryption algorithm; the above process can perform personalized processing on the transaction information, and encrypting this information can prevent unauthorized access and leakage, thereby protecting customer privacy and merchant business secrets. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 The present invention is a flowchart of a merchant information management method. DETAILED DESCRIPTION
[0033] The embodiments of the present invention will be further described below in conjunction with the accompanying drawings.
[0034] like Figure 1 As shown, the present invention provides a merchant information management method, comprising the following steps:
[0035] S1. Obtain transaction information corresponding to the merchant's account ID and generate an information cycle group for the transaction information;
[0036] S2. Generate characteristic salt for transaction information according to the information cycle group;
[0037] S3. Based on the characteristic salt, the transaction information is encrypted using the salt encryption algorithm.
[0038] In S3, salt encryption is a way to encrypt login passwords. It is implemented by associating each password with an n-bit random number, which is called "salt". After encrypting the transaction information, the user needs to enter the correct encrypted password to view the transaction information.
[0039] In this embodiment of the present invention, S1 includes the following sub-steps:
[0040] S11, obtaining the transaction information corresponding to the merchant's account ID, removing stop words from the transaction information, and extracting the TF-IDF value of each word in the transaction information;
[0041] S12, obtaining a number of weighted values according to the context vector of each word in the transaction information;
[0042] S13, determining a generator according to the TF-IDF value of each word in the transaction information;
[0043] S14. Taking each weighted value as an integer power of a generator, an information cycle group is generated.
[0044] In the present invention, the TF-IDF value is a commonly used weighting technique for information retrieval and data mining, which is used to evaluate the importance of a word to one of the documents in a corpus. The context vector of a word is a representation that captures the semantic information of the word in a specific context (i.e., a sentence or text paragraph). Therefore, the present invention uses the context vector of the word to form a three-dimensional vector, performs a dot product operation on the three-dimensional vector to obtain a weighted value, and then combines the TF-IDF value of each word to determine a specific generator, thereby generating a cyclic group. (A cyclic group is a group in which all elements are generated by a generator through repeated operations).
[0045] In this embodiment of the present invention, S12 includes the following sub-steps:
[0046] S121, grouping every six words in the transaction information into word pairs, and generating a first weighted vector and a second weighted vector for each word pair;
[0047] S122, performing a dot product operation on the first weighted vector and the second weighted vector of each word pair to obtain an initial weighted value of the word pair;
[0048] S123, rounding up the weighted values of all word pairs to obtain a number of weighted values.
[0049] In S121, if the number of words in the transaction information is not a multiple of 6, the unused elements of the first weighted vector and the second weighted vector of the last word pair are repeatedly filled with the context vector of the last word.
[0050] In the embodiment of the present invention, in S121, the first weighted vector of the word pair Z The expression of 1 is: Z 1=[ x 1: x 3: x 5]; where x 1 represents the context vector of the first word in a word pair, x 3 represents the context vector of the third word in the word pair, x 5 represents the context vector of the fifth word in the word pair, and [:] represents the vector concatenation operation;
[0051] In S121, the second weighted vector of the word pair Z The expression of 2 is: Z 2=[ x 2: x 4: x 6]; where x 2 represents the context vector of the second word in the word pair, x 4 represents the context vector of the fourth word in the word pair, x6 represents the context vector of the sixth word in the word pair.
[0052] In the embodiment of the present invention, in S13, the method for determining the generator is: rounding up the ratio between the sum of the TF-IDF values of all words and the number of words to obtain the generator.
[0053] In S13, the sum of the TF-IDF values of all words is first divided by the number of words to obtain a ratio, and then the ratio is rounded up to obtain a generator.
[0054] In this embodiment of the present invention, S2 includes the following sub-steps:
[0055] S21, taking the minimum value and the median of the information cycle group as the two ends of the information interval respectively, to generate the information interval;
[0056] S22. Determine a first random number and a second random number of the transaction information based on the information interval;
[0057] S23. Determine a characteristic salt according to the first random number and the second random number.
[0058] In the present invention, two random numbers are generated according to the context word vectors belonging to the information interval and not belonging to the information interval, and the two random numbers and their mean are used to generate the final feature salt to participate in the salt encryption algorithm to improve the practicality of the encryption algorithm.
[0059] In the embodiment of the present invention, in S22, the first random number R The calculation formula for 1 is: ; In the formula, I Represents the number of words in the context vector value in the message interval, X i Represents the context vector value of the word in the information interval, Indicates a round-up operation.
[0060] In the embodiment of the present invention, in S22, the second random number R The calculation formula for 2 is: ; In the formula, J The number of words that represent context vector values that are not in the message interval, Indicates floor operation. X j Represents the context vector value of the word that is not in the information interval,
[0061] In the embodiment of the present invention, in S23, the method for determining the characteristic salt is: arranging the first random number, the second random number, and the average of the first random number and the second random number in ascending order as the characteristic salt of the transaction information.
[0062] Those skilled in the art will appreciate that the embodiments described herein are intended to help readers understand the principles of the present invention, and should be understood that the protection scope of the present invention is not limited to such specific statements and embodiments. Those skilled in the art can make various other specific variations and combinations that do not deviate from the essence of the present invention based on the technical revelations disclosed by the present invention, and these variations and combinations are still within the protection scope of the present invention.
Claims
1. A merchant information management method, characterized in that: The following steps are involved: S1. Obtain transaction information corresponding to the merchant's account ID and generate an information cycle group for the transaction information; S2. Generate characteristic salt for transaction information according to the information cycle group; S3. Based on the characteristic salt, the transaction information is encrypted using a salt encryption algorithm; The S1 comprises the following sub-steps: S11, obtaining the transaction information corresponding to the merchant's account ID, removing stop words from the transaction information, and extracting the TF-IDF value of each word in the transaction information; S12, obtaining a number of weighted values according to the context vector of each word in the transaction information; S13, determining a generator according to the TF-IDF value of each word in the transaction information; S14. Taking each weighted value as an integer power of a generator, an information cycle group is generated.
2. The merchant information management method according to claim 1, characterized in that: The S12 comprises the following sub-steps: S121, grouping every six words in the transaction information into word pairs, and generating a first weighted vector and a second weighted vector for each word pair; S122, performing a dot product operation on the first weighted vector and the second weighted vector of each word pair to obtain an initial weighted value of the word pair; S123, rounding up the weighted values of all word pairs to obtain a number of weighted values.
3. The merchant information management method according to claim 2, characterized in that: In the S121, the expression of the first weighted vector Z1 of the word pair is: Z1=[x1:x3:x5]; wherein x1 represents the context vector of the first word in the word pair, x3 represents the context vector of the third word in the word pair, x5 represents the context vector of the fifth word in the word pair, and [:] represents a vector concatenation operation; In S121, the expression of the second weighted vector Z2 of the word pair is: Z2=[x2:x4:x6]; wherein x2 represents the context vector of the second word in the word pair, x4 represents the context vector of the fourth word in the word pair, and x6 represents the context vector of the sixth word in the word pair.
4. The merchant information management method according to claim 1, characterized in that: In S13, the method for determining the generator is: rounding up the ratio between the sum of the TF-IDF values of all words and the number of words to obtain the generator.
5. The merchant information management method according to claim 1, characterized in that: The S2 comprises the following sub-steps: S21, taking the minimum value and the median of the information cycle group as the two ends of the information interval respectively, to generate the information interval; S22. Determine a first random number and a second random number of the transaction information based on the information interval; S23. Determine a characteristic salt according to the first random number and the second random number.
6. The merchant information management method according to claim 5, characterized in that: In S22, the calculation formula of the first random number R1 is: Where I represents the number of words in the context vector value of the message interval, X i Represents the context vector value of the word in the information interval, Indicates a round-up operation.
7. The merchant information management method according to claim 5, characterized in that: In S22, the calculation formula of the second random number R2 is: Where J represents the number of words whose context vector values are not in the message interval, Indicates floor operation, X j The context vector value representing the word that is not in the information interval.
8. The merchant information management method according to claim 5, characterized in that: In S23, the method for determining the characteristic salt is: arranging the first random number, the second random number, and the average of the first random number and the second random number in ascending order as the characteristic salt of the transaction information.
Citation Information
Patent Citations
Data transmission encryption and decryption method and device, equipment and storage medium
CN114417382A
Hospital transaction data encryption management system
CN115859322A