CN-121997357-A - Electronic contract content encryption method and system based on sequence decomposition
Abstract
The invention provides an electronic contract content encryption method and system based on sequence decomposition, and belongs to the technical field of electronic contract content encryption. The method comprises the steps of obtaining contract content of an electronic contract, executing content encryption processing on the same content based on word frequency of a keyword set extracted from the contract content to generate content ciphertext, generating mapping parameters based on offset positions and word frequency of keywords in the keyword set, executing encryption processing on the mapping parameters, and generating the mapping parameters subjected to encryption processing. The method comprises the steps of extracting keywords from contract contents according to a preset sequence structure, performing content encryption processing on the contract contents according to word frequencies of the keywords to generate content ciphertext, generating mapping parameters by using offset positions and word frequencies of the keywords, and performing encryption distribution processing on the content ciphertext by combining the contract offset structure.
Inventors
- QIAN YAJUN
- XU KELEI
Assignees
- 苏州万店掌网络科技有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20260120
Claims (10)
- 1. An electronic contract content encryption method based on sequence decomposition is characterized by comprising the steps of acquiring contract content of an electronic contract, and executing content encryption processing on the contract content based on word frequency of a keyword set extracted from the contract content to generate content ciphertext; Generating mapping parameters based on offset positions and word frequencies of keywords in the keyword set, encrypting the mapping parameters, and generating the encrypted mapping parameters at the same time; Wherein performing content encryption processing on the contract content based on the word frequency of the keyword sets extracted from the contract content includes extracting the keyword sets from the contract content according to a preset order structure, counting the word frequency of each keyword in the keyword sets in the contract content, and generating an encryption data set based on the word frequency and performing encryption processing on the contract content using the encryption data set.
- 2. The method for encrypting electronic contract content based on sequence decomposition according to claim 1, wherein generating the encrypted mapping parameters includes defining the offset position of the keyword and the corresponding word frequency as a set of original parameters; Constructing a mathematical mapping function based on the original parameters, and generating corresponding mapping parameters for each group of original parameters; and encrypting the mapping parameters.
- 3. The electronic contract content encryption method based on sequence decomposition according to claim 1, wherein performing encryption distribution processing based on content ciphertext and encrypted mapping parameters includes: and executing encryption distribution processing on the content ciphertext by taking the encrypted mapping parameters as input and combining the contract offset structure.
- 4. The method for encrypting content of an electronic contract based on sequence decomposition according to claim 2, further comprising generating a decryption key for decrypting the ciphertext of the content based on the mapping parameter, and performing decryption processing on the ciphertext of the content using the decryption key to restore the contract content.
- 5. The electronic contract content encryption system based on the sequence decomposition is characterized by comprising a content encryption module, a content encryption module and a content encryption module, wherein the content encryption module is used for acquiring contract content of an electronic contract and executing content encryption processing on the contract content based on word frequency of a keyword set extracted from the contract content so as to generate content ciphertext; The parameter encryption module is used for generating mapping parameters based on the offset positions and word frequencies of the keywords in the keyword set and carrying out encryption processing on the mapping parameters so as to generate encrypted mapping parameters; The encryption distribution module is used for executing encryption distribution processing based on the content ciphertext and the mapping parameters subjected to encryption processing so as to generate an encryption abstract; and a content decryption module for generating a decryption key based on the mapping parameter and performing decryption processing on the content ciphertext using the decryption key.
- 6. The electronic contract content encryption system based on sequence decomposition of claim 5, wherein the content encryption module is configured to: Extracting a keyword set from contract contents according to a preset sequence structure; and generating an encryption data set based on the word frequency, and encrypting the contract content by using the encryption data set.
- 7. The electronic contract content encryption system based on sequence decomposition of claim 5, wherein the parameter encryption module is configured to define an offset position of the keyword and a corresponding word frequency as a set of original parameters, construct a mathematical mapping function based on the original parameters to generate mapping parameters, and encrypt the mapping parameters.
- 8. The electronic contract content encryption system based on sequence decomposition of claim 5, wherein the encryption distribution module is configured to: and carrying out encryption distribution processing according to the content ciphertext and the mapping parameters subjected to encryption processing to generate an encryption abstract.
- 9. The electronic contract content encryption system based on sequence decomposition of claim 8, wherein the encryption distribution module is further configured to generate a contract shift structure consistent with a preset order structure based on the encrypted mapping parameters, and to perform encryption distribution processing on the content ciphertext with the encrypted mapping parameters as input in combination with the contract shift structure.
- 10. The electronic contract content encryption system based on sequence decomposition of claim 5, wherein the content decryption module is configured to generate a decryption key for decrypting content ciphertext based on the mapping parameters; And performing decryption processing on the content ciphertext using the decryption key to recover the contract content.
Description
Electronic contract content encryption method and system based on sequence decomposition Technical Field The invention belongs to the technical field of electronic contract content encryption, and particularly relates to an electronic contract content encryption method and system based on sequence decomposition. Background The electronic contract is used as legal document for bearing the right obligations of both transaction sides and constructing business trust, thus improving signing efficiency, simplifying management flow and reducing storage cost, but ensuring confidentiality, integrity and non-repudiation of contract content in the transmission and storage links. In the prior art, a digital certificate is adopted to authenticate the identity and then a transmission layer encryption protocol is combined to ensure the transmission safety of an electronic contract, but the scheme has a plurality of inherent defects and safety bottlenecks in practice, and because the safety system depends on the validity of the certificate, a single fault point is formed, when the certificate is leaked or invalid due to improper management or a root trust chain of a certificate issuing mechanism is broken, all electronic contracts depending on the certificate system are at risk of being stolen or tampered in batches, meanwhile, the prior art cannot dynamically evaluate the risk of the transmission environment where the electronic contracts are located under the condition that the contract contents are kept encrypted, and the system lacks real-time perception energy for abnormal traffic in the transmission link or threatens such as network attack, so that a protection mechanism is in a passive and lagged state and cannot be adjusted in a self-adaption mode according to the change of the risk level. In view of the above, the invention provides an electronic contract content encryption method and system based on sequence decomposition. Disclosure of Invention The invention aims to provide an electronic contract content encryption method and system based on sequence decomposition, which are used for solving the problem that in the prior art, only a transmission path is encrypted, so that the content of a contract file is directly stolen by an attacker. The method comprises the steps of acquiring contract content of an electronic contract, and executing content encryption processing on the contract content based on word frequency of a keyword set extracted from the contract content to generate content ciphertext; Generating mapping parameters based on offset positions and word frequencies of keywords in the keyword set, encrypting the mapping parameters, and generating the encrypted mapping parameters at the same time; Wherein performing content encryption processing on the contract content based on the word frequency of the keyword sets extracted from the contract content includes extracting the keyword sets from the contract content according to a preset order structure, counting the word frequency of each keyword in the keyword sets in the contract content, and generating an encryption data set based on the word frequency and performing encryption processing on the contract content using the encryption data set. Preferably, generating the encrypted mapping parameters includes defining the offset position of the keyword and the corresponding word frequency as a set of original parameters, constructing a mathematical mapping function based on the original parameters and generating a corresponding mapping parameter for each set of original parameters, and encrypting the mapping parameters. Preferably, performing the encryption distribution process based on the content ciphertext and the encrypted mapping parameter comprises generating a contract offset structure that is consistent with a preset order structure based on the encrypted mapping parameter; and taking the mapping parameters subjected to encryption processing as input, and executing encryption distribution processing on the content ciphertext by combining the contract migration structure. Preferably, the method further comprises generating a decryption key for decrypting the content ciphertext based on the mapping parameter, and performing a decryption process on the content ciphertext using the decryption key to recover the contract content. The system comprises a content encryption module, a content encryption module and a content encryption module, wherein the content encryption module is used for acquiring contract content of an electronic contract and executing content encryption processing on the contract content based on word frequency of a keyword set extracted from the contract content so as to generate content ciphertext; The parameter encryption module is used for generating mapping parameters based on the offset positions and word frequencies of the keywords in the keyword set and carrying out encryption processing on the mapping parameters so as to genera