A procurement approval data transmission method based on SHA and AES encryption algorithms
By integrating SHA and AES encryption algorithms, procurement approval data is encrypted using modular and slice-based nested encryption, which solves the problems of tampering and leakage during data transmission and ensures the security and integrity of the data.
Patent Information
- Application Number
- CN202411980993.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-31
- Publication Date
- 2026-11-17
- Estimated Expiration
- 2044-12-31
AI Technical Summary
In existing technologies, procurement approval data is easily tampered with or forged during transmission, and when the encryption method is cracked, the entire data is leaked, affecting the accuracy and fairness of the approval results.
By employing the SHA algorithm and the AES encryption algorithm, procurement approval data is encrypted in a modular and sliced manner, and data integrity verification is added at each transfer node to ensure high data security during transmission and storage.
It achieves high security protection for procurement approval data, prevents partial or complete data leakage, and ensures the security and compliance of the approval process.
Smart Images

Figure CN119788389B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to a procurement approval data transmission method based on the fusion of SHA and AES encryption algorithms, belonging to the field of data transmission technology. Background Technology
[0002] In today's digital age, approval processes have become an indispensable part of business operations, especially in critical areas such as procurement. With the rapid increase in data volume and the growing severity of cybersecurity threats, ensuring the full security and integrity of data in approval processes has become a significant challenge for enterprises. Currently, because data in approval processes is typically transmitted and stored in plaintext, it is easily intercepted during transmission or illegally accessed during storage. In the approval process, data may pass through multiple stages and be processed by multiple approvers; if data is tampered with or forged during transmission, it will directly affect the accuracy and fairness of the approval results. Furthermore, existing approval processes encrypt the entire approval data during transmission; if the encryption method is broken, the entire procurement approval data can be obtained, leading to a complete data leak. Summary of the Invention
[0003] To address the technical problems existing in the prior art, this invention provides a procurement approval data transmission method based on the fusion of SHA and AES encryption algorithms. By fusing the secure hash SHA algorithm with the symmetric AES encryption algorithm, the encryption effect is good, preventing data cracking and ensuring the security and reliability of data transmission.
[0004] To achieve the above objectives, the technical solution adopted in this invention is a procurement approval data transmission method based on the fusion of SHA and AES encryption algorithms, which is operated according to the following steps: a. The starting node first obtains the full data of the initiator's approval application and divides the data into three units according to different types. The units are mutually encrypted using the AES encryption algorithm. The three units include a structured data text encryption processing unit S1, an unstructured data attachment encryption processing unit S2, and an unstructured data image encryption processing unit S3. Combining the SHA-256 hash algorithm, the data of the three units is compressed into a digest, reducing the data volume and fixing the data format. A hash value is created, generating a mixed encrypted string composed of random letters and numbers. The hash value t1 of the starting node is combined with the full approval data and encrypted together before being transferred to the next approval node. b. The second node obtains the current time of the current transfer node, uses the current transfer time as a random factor, imports it into the random number generation algorithm, and calculates the random number x1. c. Combine all the encrypted module data received by the second node from the starting node with the generated random number x1, and use the SHA-256 hash algorithm to generate the current node hash value t2. Combine the current node hash value with the full amount of approval data and encrypt it before transferring it to the third node. d. Based on the data flow requirements, repeat steps b and c in sequence until the data flow stops.
[0005] Preferably, in step a, within the structured data text encryption processing unit S1, different fields such as the purchase name, purchase budget price, and purchase method involved in the application are extracted according to preset keywords and divided into different data types. The data types are then sliced to obtain different groups of slice data. The slice data is encrypted using the AES algorithm. The slice data includes purchase name slice data, budget price slice data, and purchase method slice data.
[0006] Preferably, the encryption method for slice data is as follows: first, the original slice data to be encrypted is obtained from the structured data text encryption processing unit S1; the original data is divided into multiple sub-data; each sub-data is encrypted using an irreversible encryption algorithm to obtain encrypted sub-data; the original data is encrypted using a reversible encryption algorithm to obtain target data; and the encrypted sub-data and target data are compressed to complete the encryption process of slice data.
[0007] Preferably, in step a, the unstructured data attachment encryption processing unit S2 first obtains the document attachment to be encrypted, calculates the memory size occupied by the document attachment to be encrypted, extracts this value, and combines it with the name of the document attachment for encoding, and completes the encryption process using the AES encryption algorithm.
[0008] Preferably, in step a, when the unstructured data image encryption processing unit S3 performs encryption, it uses the AES encryption algorithm to randomly scramble the pixels of the image in the unstructured data image encryption processing unit S3, and then divides the image into several blocks of size equal to the AES block length, and encrypts each block independently.
[0009] Compared with existing technologies, this invention has the following technical advantages: By integrating the Secure Hash (SHA) algorithm with the Symmetric AES encryption algorithm, this invention achieves modular and segmented nested encryption of procurement approval data units. Simultaneously, it incorporates algorithms for data integrity verification at the transfer nodes, thereby achieving high security protection for data during transmission and storage, providing strong assurance for the security and compliance of enterprise approval processes. Furthermore, it solves the problem that existing encryption methods for procurement approval processes encrypt the entire transfer data. If the encryption method is cracked, the entire content of the approval data will be exposed, resulting in a complete leakage of procurement approval data, which is insecure and has a significant impact. This method takes into account the possibility of the encryption method being cracked, and encrypts the entire data in segments, ensuring that even if the encryption is cracked, only a portion of the data will be leaked. Attached Figure Description
[0010] Figure 1 This is a flowchart of the present invention.
[0011] Figure 2 This is a flowchart illustrating the encryption process for sliced data in this invention. Detailed Implementation
[0012] To make the technical problems to be solved, the technical solutions, and the beneficial effects of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present invention and are not intended to limit the present invention.
[0013] like Figure 1 As shown, a procurement approval data transmission method based on the SHA and AES encryption algorithms is operated according to the following steps: a. The starting node first obtains the full data of the initiator's approval application and divides the data into three units according to different types. The units are mutually encrypted using the AES encryption algorithm. The three units include a structured data text encryption processing unit S1, an unstructured data attachment encryption processing unit S2, and an unstructured data image encryption processing unit S3. Combining the SHA-256 hash algorithm, the data of the three units is compressed into a digest, reducing the data volume and fixing the data format. A hash value is created, generating a mixed encrypted string composed of random letters and numbers. The hash value t1 of the starting node is combined with the full approval data and encrypted together before being transferred to the next approval node. b. The second node obtains the current time of the current transfer node, uses the current transfer time as a random factor, imports it into the random number generation algorithm, and calculates the random number x1. c. Combine all the encrypted module data received by the second node from the starting node with the generated random number x1, and use the SHA-256 hash algorithm to generate the current node hash value t2. Combine the current node hash value with the full amount of approval data and encrypt it before transferring it to the third node. d. Based on the data flow requirements, repeat steps b and c in sequence until the data flow stops.
[0014] This invention achieves unitized and sliced nested encryption of procurement approval application data that requires encryption throughout its creation and circulation process. It also performs secondary encryption by combining the circulation data with the circulation nodes, thus preventing the complete leakage of sensitive procurement approval application data when the encryption method is cracked.
[0015] Within the structured data text encryption processing unit S1, different data types are divided based on different fields such as the purchase name, purchase budget price, and purchase method involved in the extraction application. The data types are then sliced to obtain different groups of sliced data. The sliced data is encrypted using the AES algorithm. The sliced data includes purchase name sliced data, budget price sliced data, and purchase method sliced data.
[0016] like Figure 2 As shown, the encryption method for sliced data involves first acquiring the original sliced data to be encrypted from the structured data text encryption processing unit S1, dividing the original data into multiple sub-data, and encrypting each sub-data using an irreversible encryption algorithm to obtain encrypted sub-data. Then, the original data is encrypted using a reversible encryption algorithm to obtain the target data. Finally, the encrypted sub-data and the target data are compressed to complete the encryption process for the sliced data. This complex algorithm encodes the data, ensuring that even if the data is intercepted, its content cannot be easily deciphered, thus improving data security and enhancing the robustness and reliability of the system.
[0017] When performing encryption, the unstructured data attachment encryption processing unit S2 first obtains the document attachment to be encrypted, calculates the memory size occupied by the document attachment to be encrypted, extracts this value, and combines it with the name of the document attachment to form a combined encoding, and uses the AES encryption algorithm to complete the encryption process.
[0018] When encrypting unstructured data images, the unstructured data image encryption processing unit S3 uses the AES encryption algorithm to randomly scramble the pixels of the image within the unstructured data image encryption processing unit S3, then divides the image into several blocks of the same size as the AES block length, and encrypts each block independently.
[0019] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included within the scope of the present invention.
Claims
1. A procurement approval data transmission method based on the fusion of SHA and AES encryption algorithms, characterized in that: Follow these steps: a. The starting node first obtains the full data of the initiator's approval application and divides the data into three units according to different types. The units are mutually encrypted using the AES encryption algorithm. The three units include a structured data text encryption processing unit S1, an unstructured data attachment encryption processing unit S2, and an unstructured data image encryption processing unit S3. Combining the SHA-256 hash algorithm, the data of the three units is compressed into a digest, reducing the data volume and fixing the data format. A hash value is created, generating a mixed encrypted string composed of random letters and numbers. The hash value t1 of the starting node is combined with the full approval data and encrypted together before being transferred to the next approval node. b. The second node obtains the current time of the current transfer node, uses the current transfer time as a random factor, imports it into the random number generation algorithm, and calculates the random number x1. c. Combine all the encrypted module data received by the second node from the starting node with the generated random number x1, and use the SHA-256 hash algorithm to generate the current node hash value t2. Combine the current node hash value with the full amount of approval data and encrypt it before transferring it to the third node. d. Based on the data flow requirements, repeat steps b and c sequentially until the data flow stops; In step a, within the structured data text encryption processing unit S1, different fields related to the application, such as the purchase name, purchase budget price, and purchase method, are extracted according to preset keywords and divided into different data types. The data types are then sliced to obtain different groups of sliced data. The sliced data is encrypted using the AES algorithm. The sliced data includes purchase name sliced data, budget price sliced data, and purchase method sliced data. The encryption method for the slice data is as follows: first, obtain the original slice data to be encrypted in the structured data text encryption processing unit S1; divide the original data into multiple sub-data; and encrypt the sub-data using an irreversible encryption algorithm to obtain the encrypted sub-data. The original data is encrypted using a reversible encryption algorithm to obtain the target data. The encrypted sub-data and the target data are then compressed to complete the encryption process of the sliced data. In step a, when the unstructured data attachment encryption processing unit S2 performs encryption, it first obtains the document attachment to be encrypted, calculates the memory size occupied by the document attachment to be encrypted, extracts this value, and combines it with the name of the document attachment for encoding, and uses the AES encryption algorithm to complete the encryption process. In step a, when the unstructured data image encryption processing unit S3 performs encryption, it uses the AES encryption algorithm to randomly scramble the pixels of the image in the unstructured data image encryption processing unit S3, and then divides the image into several blocks of size AES block length, and encrypts each block independently.
Citation Information
Patent Citations
Whole-process encryption method for audit data
CN114785620A
Security guarantee method and device for video conference data and storage medium
CN117319709A
