Carbon emission acquisition and accounting platform system and method thereof
By constructing a dynamic encryption chain using randomly selected pre-description text and the CRC-4 algorithm in the carbon emission collection and accounting platform system, the high operation and maintenance costs and single point of failure risk of traditional key encryption are solved, achieving dynamic defense and efficient data transmission, and improving data security and compliance.
Patent Information
- Application Number
- CN202511821924.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-05
- Publication Date
- 2026-04-28
AI Technical Summary
Existing carbon emission collection and accounting platform systems rely on traditional key encryption, which has high operation and maintenance costs and single point of failure risks. In addition, the encryption rules are static and fixed, making it difficult to cope with dynamic attacks, resulting in insufficient data security and compliance.
The carbon emission collection module periodically collects data, and the randomly selected pre-selected description text is converted into binary and processed by CRC-4 algorithm to build a dynamic encryption chain, generate a ciphertext number document, and restore and store it on the cloud accounting terminal, thus avoiding the limitations of building a key management system and static encryption rules.
It lowers the barriers to enterprise deployment and operation, improves the security and protection level of data transmission, achieves dynamic defense, prevents data leakage risks, and improves data transmission efficiency and compliance.
Smart Images

Figure CN121940155A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of carbon emission technology, specifically to a carbon emission collection and accounting platform system and method. Background Technology
[0002] Monitoring, reporting, and verification (MRV) of carbon emissions has become a core element for enterprises to fulfill their environmental responsibilities, participate in the carbon trading market, and achieve low-carbon transformation. As an integrated information tool, the carbon emission collection and accounting platform system can collect real-time data on various carbon emission sources generated during the production and operation of enterprises, and transmit the data to the terminal via the network to complete the accounting, evidence storage, and report generation. The security, integrity, and reliability of its data transmission and storage are directly related to the protection of enterprise trade secrets, the compliance of carbon quota trading, and the effectiveness of government supervision. Currently, data security solutions for carbon emission collection and accounting platform systems generally rely on traditional key encryption mechanisms, requiring the separate construction of a complete key management system. On the one hand, dedicated hardware security modules or key management servers need to be deployed to complete the generation, distribution, storage, and regular updates of keys. This process not only requires a professional technical team for continuous operation and maintenance but also incurs additional costs such as hardware procurement and system upgrades, significantly raising the deployment and operation threshold for enterprises (especially small and medium-sized enterprises with limited resources). On the other hand, traditional key encryption has a fatal risk of "single point of failure"—the key is the only core for encrypting and decrypting all data. Once it is leaked due to management negligence or attacks, it will directly cause the collapse of the security defense line of the entire data transmission chain. All historical and real-time carbon emission data that rely on the key for encryption will face the risk of being out of control, seriously threatening the enterprise's data security and carbon management compliance. Furthermore, its encryption rules remain static and fixed: regardless of the type or frequency of transmitted data, the encryption logic remains unchanged based on the preset key. In this static mode, if an attacker uses technical means to crack a single encryption rule, they can decrypt historical transmitted data and subsequent real-time data in batches. Data protection is always in a "passive defense" state, making it difficult to cope with dynamic attacks in complex network environments. At the same time, in order to ensure the validity of authentication, traditional solutions often need to transmit complete authentication information, which not only increases the data transmission volume and reduces transmission efficiency, but also leads to the situation where, once the data is illegally intercepted, attackers can reverse-engineer the decryption logic through the complete authentication information, further amplifying the risk of data leakage. To address the above problems, this invention proposes a solution. Summary of the Invention
[0003] The purpose of this invention is to provide a carbon emission collection and accounting platform system and method to solve the problems mentioned in the background art.
[0004] This invention provides a carbon emission acquisition and accounting platform system, comprising: The carbon emission acquisition module is used to collect carbon emission data of a type of carbon emission source of the target enterprise at intervals of one accounting cycle. The secure transmission module is used to select one pre-description text from all the pre-stored pre-description texts in the secure transmission module as the authentication text of the carbon emission source in the accounting period after receiving carbon emission data of a type of carbon emission source of the target enterprise in one accounting period. The secure transmission module is also used to encrypt the carbon emission data according to the authentication text to obtain the encrypted number document of the carbon emission source in the accounting period; The cloud computing terminal is used to determine the authentication text of the carbon emission source in the accounting cycle based on all the pre-stored pre-description texts in the cloud computing terminal and the encrypted number document after receiving the encrypted number document of a carbon emission source of a target enterprise in a certain accounting cycle. The cloud computing terminal is also used to restore the encrypted numbered document of the carbon emission source in the accounting period according to the determined authentication text to obtain the carbon emission data of the carbon emission source in the accounting period, and to store the carbon emission data.
[0005] Furthermore, the steps for obtaining the encrypted numbered document of the carbon emission source in the accounting period through encryption are as follows: S11: The authentication text is converted into binary to obtain the first data, wherein the binary conversion is achieved by calling a publicly available online character or text to binary tool. Similarly, the carbon emission data is converted into binary to obtain the second data. S12: In the order from left to right, take every four characters in the first data as a group of authentication arrays to obtain several groups of authentication arrays. According to the position of each group of authentication arrays in the first data, mark all the obtained groups of authentication arrays as A0, A1, ..., Aa, a≥1 in order from left to right. S13: Use the CRC-4 algorithm to sequentially calculate the CRC values of the authentication arrays A0, A1, ..., A15, where the generator polynomial of the CRC-4 algorithm is selected as x. 4 +x+1 is selected to ensure that there is always a collision in the number 0-15. When calculating the CRC value of any authentication array A0, A1, ..., A15, the authentication array first needs to be extended by padding with 0 bits. S14: Determine several invalid arrays based on the authentication arrays A0, A1, ..., A15; S15: Determine the four-bit binary numbers F1, F2, ..., F16 based on the authentication arrays A16, A17, ..., Aa, and obtain all the serial numbers of the four-bit binary numbers F1, F2, ..., F16; S16: Construct the baseline encryption chain of the carbon emission source in the accounting cycle based on the smallest sequence number among all sequence numbers of the four-bit binary numbers F1, F2, ..., F16; S17: Take every four characters in the second data as a group of authentication arrays in order from left to right to obtain several groups of encryption arrays. According to the position of each group of encryption arrays in the second data, mark all the obtained groups of encryption arrays as J1, J2, ..., Jj, j≥1 in order from left to right. S18: Select the baseline encryption chain as the ciphertext number object, compare the encryption array J1 with all the invalid arrays determined in S14 one by one, determine the ciphertext number of the encryption array J1 based on the comparison result, and determine whether the ciphertext number object is invalid based on the comparison result. If it is determined to be invalid, update the ciphertext number object. S19: Following S18, sequentially compare the encrypted arrays J2, J3, ..., Jj with all the invalid arrays determined in S14 one by one. Based on the comparison results, determine the ciphertext number of the encrypted arrays J2, J3, ..., Jj. For each encrypted array whose ciphertext number is determined, determine whether the ciphertext number object is invalid based on the comparison results. If it is invalid, update the ciphertext number object. During the update process, if all the sequence numbers of a certain four-bit binary number have been selected as the sorting number of the four-bit binary number, then reselect the baseline encryption chain of the carbon emission source in the accounting cycle as the ciphertext number object. By default, all the sorting numbers of all four-bit binary numbers have not been selected as sequence numbers. S110: Generate a ciphertext number document for the carbon emission source in the accounting period based on the ciphertext numbers of the authentication arrays A0, A1, ..., A15 and the encryption arrays J1, J2, ..., Jj.
[0006] Furthermore, in S14, the determination of several failure arrays is as follows: S141: Sequentially extract the marker indices of the authentication arrays A0, A1, ..., A15, and mark the marker indices as the collision values C1, C2, ..., C16 of the corresponding authentication arrays; S142: Perform four-bit binary conversion on the collision values C1, C2, ..., C16 in sequence to obtain the corresponding collision arrays D1, D2, ..., D16; S143: Use the CRC-4 algorithm to calculate the CRC values of the collision arrays D1, D2, ..., D16 in sequence and iterate through them. Mark the two authentication arrays corresponding to the collision arrays with the same CRC value as invalid arrays.
[0007] Furthermore, in S15, the steps to determine the four binary numbers F1, F2, ..., F16 are as follows: S151: Convert the authentication array A16 to decimal to obtain the decimal number E1, and then convert the decimal number E1 to binary to obtain the four-bit binary number F1; S152: Use the formula Gh=f-15 to calculate and obtain the sequence numbers G1, G2, ..., Gg of the four-bit binary number F1 in sequence, where h=1, 2, ..., g, f takes the index of the authentication array in authentication array A16, A17, ..., Aa that is consistent with the four-bit binary number F1 in sequence, and g is the total number of authentication arrays in authentication array A16, A17, ..., Aa that are consistent with the four-bit binary number E1; S153: Based on the authentication arrays A17, A18, ..., Aa, obtain the four-bit binary numbers F2, F3, ..., F16 in sequence according to S151; S154: Calculate and obtain all the sequence numbers of the four-bit binary numbers F2, F3, ..., F16 in sequence according to S152.
[0008] Furthermore, S16, the process of constructing the baseline cryptographic chain for the carbon emission source in the accounting cycle is as follows: S161: Extract the smallest sequence number G1 from all the sequence numbers of the four-bit binary number F1, and select sequence number G1 as the sorting number of the four-bit binary number F1. Similarly, obtain the sorting numbers of the four-bit binary numbers E2, E3, ..., E16 in turn. S162: Number the corresponding four-bit binary numbers in ascending order of sorting number, starting from 1 and proceeding sequentially. Construct the baseline encryption chain of the carbon emission source in the accounting cycle based on the 16 numbered four-bit binary numbers. In the baseline encryption chain, 16 four-bit binary numbers are arranged from left to right, and the numbering of the four-bit binary numbers increases sequentially from left to right.
[0009] Furthermore, in step S18, the ciphertext number of the encryption array J1 is determined based on the comparison result, and the following is determined based on the comparison result regarding whether the ciphertext number object is invalid: If all invalid arrays are inconsistent with the encrypted array J1, then first determine that the ciphertext number object is not invalid, then obtain the four-bit binary number that is consistent with the encrypted array J1 from the ciphertext number object, and mark the number as the ciphertext number of the encrypted array J1. It should be noted here that "consistent" means that all characters and their positions in the encrypted array J1 are consistent with all characters and their positions in the four-bit binary number. If there exists an invalid array that matches the encrypted array J1, the ciphertext number object is first determined to be invalid. Then, the four-bit binary number that matches the encrypted array J1 is obtained from the ciphertext number object, and the number is marked as the ciphertext number of the encrypted array J1.
[0010] Furthermore, in step S18, the step of updating the ciphertext number object based on the determination of invalidity is as follows: SS11: Obtain the invalid array that matches the encrypted array J1. Obtain all sort numbers of the four-bit binary numbers that match the invalid array from the four-bit binary numbers F1, F2, ..., F16. Select the sequence number with the smallest value that has not been selected as the sort number as the new sort number of the four-bit binary number. If the sort numbers of the four-bit binary numbers have all been selected as the sequence number, then reselect the baseline encryption chain of the carbon emission source in the accounting cycle as the ciphertext number object. SS12: Obtain the sorting number of all other four-bit binary numbers, and then number the corresponding four-bit binary numbers in ascending order of sorting number, starting from 1 and proceeding sequentially. Construct an iterative encryption chain for the carbon emission source in the accounting cycle based on the 16 numbered four-bit binary numbers, and select the iterative encryption chain as the ciphertext number object.
[0011] A carbon emission capture and accounting method includes the following steps: Step 1: During the current accounting period, the carbon emission acquisition module collects carbon emission data of the target enterprise's Class I carbon emission sources for the current accounting period and transmits it to the secure transmission module. Step 2: After receiving the transmitted carbon emission data, the secure transmission module randomly selects one pre-description text from all pre-stored pre-description texts as the authentication text for the carbon emission source in the accounting period. Step 3: The secure transmission module encrypts the carbon emission data according to the authentication text to obtain the encrypted number document of the carbon emission source in the accounting period, and transmits the encrypted number document to the cloud accounting terminal. Step 4: After receiving the transmitted encrypted number document, the cloud accounting terminal determines the authentication text of the carbon emission source in the accounting cycle based on all the pre-stored pre-description texts in the cloud accounting terminal and the encrypted number document. Step 5: The cloud computing terminal restores the encrypted numbered document based on the authentication text to obtain the carbon emission data of the carbon emission source in the accounting period, and stores the carbon emission data.
[0012] Compared with existing technologies, it has the following advantages: This invention periodically collects carbon emission data from several carbon emission sources of a target enterprise through a carbon emission acquisition module. The secure transmission module converts the carbon emission data into corresponding encrypted numbered documents for transmission over the network. The cloud computing terminal receives, restores, and stores these documents. The generation and restoration of the encrypted numbered documents incorporates randomly selected pre-selected description text. The pre-selected description text serves as the basis for authentication. The secure transmission module and the cloud terminal pre-store consistent text. There is no need to build a separate key generation, distribution, and storage management system. This not only avoids the risk of key leakage leading to the loss of control of all data in traditional key encryption, but also saves the technical costs and manpower investment in key maintenance, significantly reducing the threshold for enterprise deployment and operation. This invention first converts randomly selected pre-selected descriptive text and carbon emission data into first and second binary data, respectively, and then splits them into authentication arrays and encryption arrays in groups of 4 characters. Using the CRC4 algorithm, collision calculations are performed on a portion of the authentication arrays. After filtering out invalid arrays, a baseline encryption chain is constructed. Subsequent consistency comparisons between the encryption arrays and invalid arrays directly trigger the dynamic updating of the ciphertext number object, generating an iterative encryption chain. This not only dynamically changes the ciphertext number of different types of encryption arrays but also allows for real-time adjustment of the numbering of the same type of encryption arrays. This breaks the limitations of static and fixed key encryption rules in traditional methods, enabling the ciphertext numbering rules for the same type of carbon emission source to change dynamically in different accounting cycles. Crackers cannot decrypt data in batches using fixed rules, thus meeting confidentiality requirements and ensuring that data is always under dynamic protection during transmission, avoiding the risk of data leakage after a single rule is broken. The encrypted numbered document generated by this invention only contains the first 16 sets of authentication arrays corresponding to the authentication text, rather than the complete authentication text. Even if the document is illegally intercepted, the cracker can only obtain fragmented array segments. Due to the strong randomness of character combinations in Chinese text, the segments lack logical connections and cannot deduce the complete preceding description text. However, the cloud computing terminal, because it pre-stores the complete preceding description text, can quickly locate the authentication text through segment feature matching, which reduces the document transmission volume to improve efficiency and further raises the threshold for data cracking. This invention innovatively incorporates the collision characteristics of the CRC4 algorithm into the generation process of encrypted numbered documents. By selecting a specific generator polynomial, it ensures that the CRC4 algorithm will inevitably produce a collision result, thereby actively identifying the invalid array corresponding to the collision array. When the encrypted array matches the invalid array, the system will immediately trigger the update of the encrypted numbered object, realizing "dynamic adjustment of encryption logic for each abnormal match". This dynamic defense mechanism prevents attackers from cracking historical or real-time data in batches using fixed rules. Data security is upgraded from passive protection to active dynamic defense, and the protection level is significantly improved. Attached Figure Description
[0013] Figure 1 This is a system block diagram of the present invention; Figure 2 This is a flowchart of the method of the present invention. Detailed Implementation
[0014] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0015] Please see Figure 1 , Figure 2 This application provides a carbon emission collection and accounting platform system and method, including several carbon emission collection modules, a secure transmission module and a cloud accounting terminal; A carbon emission acquisition module is used to periodically collect carbon emission data of a type of carbon emission source of a target enterprise. In this application, carbon emission sources include, but are not limited to, energy consumption, production process, material consumption and transportation. One carbon emission acquisition module corresponds to a type of carbon emission source within the target enterprise. During the current accounting period, the carbon emission acquisition module collects carbon emission data from the corresponding carbon emission source during the current accounting period and transmits it to the secure transmission module.
[0016] The secure transmission module is used to ensure the security of the transmission process of periodic carbon emission data. The secure transmission module pre-stores several pre-description texts. The pre-description texts are text materials that are randomly generated by the management personnel of the target enterprise according to the generation logic set by the enterprise, and are composed of Chinese descriptive sentences. The generation logic is as follows: the number of generated characters is at least 100 to ensure that the total number of characters in the binary data obtained after the binary conversion of the preceding description text is greater than 400. After receiving carbon emission data for a type of carbon emission source from a target enterprise for one accounting cycle, the secure transmission module randomly selects one of several pre-description texts stored within it as the authentication text for the carbon emission data.
[0017] Finally, the secure transmission module encrypts the carbon emission data according to preset processing rules to obtain a ciphertext numbered document of the carbon emission source in the accounting period. The processing rules are as follows: S11: The authentication text is converted into binary to obtain the first data. The binary conversion is achieved by calling a publicly available online character or text to binary conversion tool. In this application, the publicly available online character or text to binary conversion tool is the ToolTT online toolbox, and the tool link is https: / / tooltt.com / txt2bin / . It should be noted here that the data type of the data to be processed is a string. Similarly, the carbon emission data is converted into binary to obtain the second data; S12: In the order from left to right, take every four characters in the first data as a group of authentication arrays to obtain several groups of authentication arrays. According to the position of each group of authentication arrays in the first data, mark all the obtained groups of authentication arrays as A0, A1, ..., Aa, a≥1 in order from left to right. It should be noted that if there are fewer than 4 characters remaining in the first data, all remaining characters will be discarded. S13: Use the CRC-4 algorithm to sequentially calculate the CRC values of the authentication arrays A0, A1, ..., A15, where the generator polynomial of the CRC-4 algorithm is selected as x. 4 +x+1 is selected to ensure that there is always a collision in the number 0-15. When calculating the CRC value of any authentication array A0, A1, ..., A15, the authentication array first needs to be extended by padding with 0 bits. It should be noted that the CRC value of any authentication array obtained is 4 characters long and is of string data type. In essence, the CRC value is equivalent to a four-bit binary number. S14: Determine several invalid arrays based on the authentication arrays A0, A1, ..., A15, as follows: S141: Sequentially extract the marker indices of the authentication arrays A0, A1, ..., A15, and mark the marker indices as the collision values C1, C2, ..., C16 of the corresponding authentication arrays. At this time, the collision values are C1=0, C2=1, ..., C16=15. S142: Perform four-bit binary conversion on the collision values C1, C2, ..., C16 in sequence to obtain the corresponding collision arrays D1, D2, ..., D16; S143: Use the CRC-4 algorithm to calculate the CRC values of collision arrays D1, D2, ..., D16 in sequence and traverse them. Mark the two authentication arrays corresponding to the collision arrays with the same CRC value as invalid arrays. It should be noted that any authentication array corresponds to its collision value and the collision array obtained by converting its collision value into four bits. It should be noted that the CRC-4 algorithm's checksum is a 4-bit binary number, therefore the only possible result is 2. 4 =16 kinds. When the amount of data is close to or reaches the number of possible values of the verification result, collision is inevitable. The fewer the number of verification bits (such as CRC4 with only 4 bits), the higher the probability and frequency of collision. To generate polynomial x 4 Taking +x+1 (binary 10011) as an example, when calculating the CRC4 value of numbers from 0 to 15, there will be a situation where the CRC4 result of numbers 2 (0010) and 15 (1111) is 0010. This is a typical collision. S15: Based on the authentication arrays A16, A17, ..., Aa, determine the four-bit binary numbers F1, F2, ..., F16, and obtain all the sequence numbers of the four-bit binary numbers F1, F2, ..., F16. The determination steps are as follows: S151: Convert the authentication array A16 to decimal to obtain the decimal number E1, and then convert the decimal number E1 to binary to obtain the four-bit binary number F1; S152: Use the formula Gh=f-15 to calculate and obtain the sequence numbers G1, G2, ..., Gg of the four-bit binary number F1 in sequence, where h=1, 2, ..., g, f takes the index of the authentication array in authentication array A16, A17, ..., Aa that is consistent with the four-bit binary number F1 in sequence, and g is the total number of authentication arrays in authentication array A16, A17, ..., Aa that are consistent with the four-bit binary number E1; S153: Based on the authentication arrays A17, A18, ..., Aa, we obtain four binary numbers F2, F3, ..., F16 in sequence. It should be noted that since four binary numbers can only represent 16 states, the four binary numbers obtained based on the authentication arrays A16, A17, ..., Aa can only represent 16 states. S154: Calculate and obtain all the sequence numbers of the four-bit binary numbers F2, F3, ..., F16 in sequence according to S152; S16: Construct the baseline encryption chain for the carbon emission source in the accounting cycle based on the smallest sequence number among all sequence numbers of the four-bit binary numbers F1, F2, ..., F16. The determination steps are as follows: S161: Extract the smallest sequence number G1 from all the sequence numbers of the four-bit binary number F1, and select sequence number G1 as the sorting number of the four-bit binary number F1. Similarly, obtain the sorting numbers of the four-bit binary numbers E2, E3, ..., E16 in turn. S162: Number the corresponding four-bit binary numbers in ascending order of sorting number, starting from 1 and proceeding sequentially. Construct the baseline encryption chain of the carbon emission source in the accounting cycle based on the 16 numbered four-bit binary numbers. In the baseline encryption chain, 16 four-bit binary numbers are arranged from left to right, and the number corresponding to the four-bit binary numbers increases sequentially from left to right. S17: In order from left to right, take every four characters in the second data as a group of authentication arrays to obtain several groups of encryption arrays. According to the position of each group of encryption arrays in the second data, mark all the obtained groups of encryption arrays as J1, J2, ..., Jj, j≥1 in order from left to right. It should be noted that if the number of remaining characters in the second data is less than 4, then all the remaining characters are temporarily stored as the spliced array of the carbon emission source in the accounting cycle. S18: Select the baseline encryption chain as the ciphertext number object, and perform a consistency comparison between the encryption array J1 and all the invalid arrays determined in S14 one by one. Based on the comparison result, determine the ciphertext number of the encryption array J1, and at the same time, determine whether the ciphertext number object is invalid based on the comparison result. If it is determined to be invalid, update the ciphertext number object as follows: If all invalid arrays are inconsistent with the encrypted array J1, then first determine that the ciphertext number object is not invalid, then obtain the four-bit binary number that is consistent with the encrypted array J1 from the ciphertext number object, and mark the number as the ciphertext number of the encrypted array J1.
[0018] It should be noted here that "consistent" means that all characters and their positions in the encrypted array J1 are consistent with all characters and their positions in the four-bit binary number. If there exists an invalid array that matches the encrypted array J1, the ciphertext number object is first determined to be invalid. Then, the four-bit binary number that matches the encrypted array J1 is obtained from the ciphertext number object, and the number is marked as the ciphertext number of the encrypted array J1.
[0019] The steps for updating the encrypted number object based on the determination of invalidity are as follows: SS11: Obtain the invalid array consistent with the encrypted array J1. Obtain all sort numbers of the four-bit binary numbers consistent with the invalid array from the four-bit binary numbers F1, F2, ..., F16, and select the sequence number with the smallest value that has not been selected as the sort number as the new sort number of the four-bit binary number. If the sort numbers of the four-bit binary numbers have all been selected as the sequence number, then reselect the baseline encryption chain of the carbon emission source in the accounting cycle as the ciphertext number object, and by default, all sort numbers of the four-bit binary numbers have not been selected as the sequence number. SS12: Obtain the sorting number of all remaining four-bit binary numbers, and then number the corresponding four-bit binary numbers sequentially according to the sorting number from smallest to largest, starting from 1 and proceeding in sequence. Construct an iterative encryption chain for the carbon emission source in the accounting cycle based on the 16 numbered four-bit binary numbers. Select the iterative encryption chain as the ciphertext numbering object. The iterative encryption chain contains four-bit binary numbers F1, F2, ..., F16, and their corresponding numbers from left to right are 1, 2, ..., 16. S19: Following S18, sequentially compare the encrypted arrays J2, J3, ..., Jj with all the invalid arrays determined in S14 one by one. Based on the comparison results, determine the ciphertext number of the encrypted arrays J2, J3, ..., Jj. For each encrypted array whose ciphertext number is determined, determine whether the ciphertext number object is invalid based on the comparison results. If it is invalid, update the ciphertext number object. During the update process, if all the sequence numbers of a certain four-bit binary number have been selected as the sorting number of the four-bit binary number, then reselect the baseline encryption chain of the carbon emission source in the accounting cycle as the ciphertext number object. By default, all the sorting numbers of all four-bit binary numbers have not been selected as sequence numbers. S110: Generate a ciphertext number document for the carbon emission source in the accounting period based on the ciphertext numbers of the authentication arrays A0, A1, ..., A15 and the encryption arrays J1, J2, ..., Jj. In this application, the ciphertext number document adopts a horizontal left-to-right and vertical top-to-bottom arrangement. That is, first, all elements of the authentication arrays A0, A1, ..., A15 are arranged from left to right in the same row. If the elements of the authentication array fill a row, the vertical line breaks from top to bottom. After all elements of the authentication array are completely arranged, the ciphertext numbers of the encryption arrays J1 to Jj are arranged in a horizontal left-to-right and vertical top-to-bottom arrangement. The overall arrangement must meet the following requirements: no array element is omitted, and the ciphertext numbers of the authentication arrays (A0 to A15) are kept in a fixed order with the ciphertext numbers of the encryption arrays J1, J2, ..., Jj following, to adapt to the requirements of accurate extraction and order matching of elements when decrypting the carbon emission source.
[0020] It should be noted here that if the spliced array of the carbon emission sources in the accounting cycle is temporarily stored, the spliced array is also placed in the ciphertext number document, and its position is arranged after the ciphertext number of the encrypted array Jj. The secure transmission module transmits the encrypted numbered document of the carbon emission source to the cloud computing terminal during the accounting cycle. The cloud computing terminal is used to securely decrypt and calculate the carbon emission data of several carbon emission sources of the target enterprise based on the powerful computing capabilities of the cloud. The cloud computing terminal stores several pre-description texts, and the secure transmission module pre-stores several pre-description texts that are consistent with the several pre-description texts pre-stored in the cloud computing terminal. The cloud computing terminal receives the encrypted numbered document of the carbon emission source in the accounting period, restores it to obtain the carbon emission data of the carbon emission source in the accounting period, and stores it for subsequent carbon emission accounting. The restoration process is as follows: the authentication arrays A0, A1, ..., A15 are extracted sequentially from the encrypted numbered document. The authentication arrays A0, A1, ..., A15 are concatenated and converted according to the extraction order. The converted data is matched with all the pre-stored pre-description texts in the cloud accounting terminal to determine the authentication text of the carbon emission source in the accounting cycle. At the same time, S11-S16 are executed to determine several invalid arrays of the carbon emission source in the accounting cycle and the baseline encryption chain.
[0021] Based on the invalid array and the baseline cryptographic chain, reverse execution of S17 to S19 restores the carbon emission data of the carbon emission source in the accounting period.
[0022] Some of the data in the above formulas are numerical calculations with dimensions removed, and the contents not described in detail in this specification are all prior art known to those skilled in the art.
[0023] The above embodiments are only used to illustrate the technical methods of the present invention and are not intended to limit it. Although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical methods of the present invention without departing from the spirit and scope of the technical methods of the present invention.
Claims
1. A carbon emission collection and accounting platform system, characterized in that, include: Several carbon emission collection modules are used to collect carbon emission data of a type of carbon emission source of the target enterprise at intervals of one accounting cycle. One carbon emission collection module corresponds to a type of carbon emission source of the target enterprise. The secure transmission module is used to select one pre-description text from all the pre-stored pre-description texts in the secure transmission module as the authentication text of the carbon emission source in the accounting period after receiving carbon emission data of a type of carbon emission source of the target enterprise in one accounting period. The secure transmission module is also used to encrypt the carbon emission data according to the authentication text to obtain the encrypted number document of the carbon emission source in the accounting period; The cloud computing terminal is used to determine the authentication text of the carbon emission source in the accounting cycle based on all the pre-stored pre-description texts in the cloud computing terminal and the encrypted number document after receiving the encrypted number document of a carbon emission source of a target enterprise in a certain accounting cycle. The cloud computing terminal is also used to restore the encrypted numbered document of the carbon emission source in the accounting period according to the determined authentication text to obtain the carbon emission data of the carbon emission source in the accounting period, and to store the carbon emission data.
2. The carbon emission collection and accounting platform system according to claim 1, characterized in that, The steps for encrypting the carbon emission source to obtain the encrypted numbered document for the accounting period are as follows: S11: Convert the authentication text into binary to obtain the first data, wherein the binary conversion is achieved by calling a publicly available online character or text to binary tool. Similarly, convert the carbon emission data into binary to obtain the second data. S12: In the order from left to right, take every four characters in the first data as a group of authentication arrays to obtain several groups of authentication arrays. According to the position of each group of authentication arrays in the first data, mark all the obtained groups of authentication arrays as A0, A1, ..., Aa, a≥1 in order from left to right. S13: Use the CRC-4 algorithm to sequentially calculate the CRC values of the authentication arrays A0, A1, ..., A15, where the generator polynomial of the CRC-4 algorithm is selected as x. 4 +x+1 is selected to ensure that there is always a collision in the number 0-15. When calculating the CRC value of any authentication array A0, A1, ..., A15, the authentication array first needs to be extended by padding with 0 bits. S14: Determine several invalid arrays based on the authentication arrays A0, A1, ..., A15; S15: Determine the four-bit binary numbers F1, F2, ..., F16 based on the authentication arrays A16, A17, ..., Aa, and obtain all the serial numbers of the four-bit binary numbers F1, F2, ..., F16; S16: Construct the baseline encryption chain of the carbon emission source in the accounting cycle based on the smallest sequence number among all sequence numbers of the four-bit binary numbers F1, F2, ..., F16; S17: Take every four characters in the second data as a group of authentication arrays in order from left to right to obtain several groups of encryption arrays. According to the position of each group of encryption arrays in the second data, mark all the obtained groups of encryption arrays as J1, J2, ..., Jj, j≥1 in order from left to right. S18: Select the baseline encryption chain as the ciphertext number object, compare the encryption array J1 with all the invalid arrays determined in S14 one by one, determine the ciphertext number of the encryption array J1 based on the comparison result, and determine whether the ciphertext number object is invalid based on the comparison result. If it is determined to be invalid, update the ciphertext number object. S19: Following S18, sequentially compare the encrypted arrays J2, J3, ..., Jj with all the invalid arrays determined in S14 one by one. Based on the comparison results, determine the ciphertext number of the encrypted arrays J2, J3, ..., Jj. For each encrypted array whose ciphertext number is determined, determine whether the ciphertext number object is invalid based on the comparison results. If it is invalid, update the ciphertext number object. During the update process, if all the sequence numbers of a certain four-bit binary number have been selected as the sorting number of the four-bit binary number, then reselect the baseline encryption chain of the carbon emission source in the accounting cycle as the ciphertext number object. By default, all the sorting numbers of all four-bit binary numbers have not been selected as sequence numbers. S110: Generate a ciphertext number document for the carbon emission source in the accounting period based on the ciphertext numbers of the authentication arrays A0, A1, ..., A15 and the encryption arrays J1, J2, ..., Jj.
3. The carbon emission collection and accounting platform system according to claim 2, characterized in that, S14, the determination of several invalid arrays is as follows: S141: Sequentially extract the marker indices of the authentication arrays A0, A1, ..., A15, and mark the marker indices as the collision values C1, C2, ..., C16 of the corresponding authentication arrays; S142: Perform four-bit binary conversion on the collision values C1, C2, ..., C16 in sequence to obtain the corresponding collision arrays D1, D2, ..., D16; S143: Use the CRC-4 algorithm to calculate the CRC values of the collision arrays D1, D2, ..., D16 in sequence and iterate through them. Mark the two authentication arrays corresponding to the collision arrays with the same CRC value as invalid arrays.
4. The carbon emission collection and accounting platform system according to claim 2, characterized in that, S15, the steps to determine the four binary numbers F1, F2, ..., F16 are as follows: S151: Convert the authentication array A16 to decimal to obtain the decimal number E1, and then convert the decimal number E1 to binary to obtain the four-bit binary number F1; S152: Use the formula Gh=f-15 to calculate and obtain the sequence numbers G1, G2, ..., Gg of the four-bit binary number F1 in sequence, where h=1, 2, ..., g, f takes the index of the authentication array in authentication array A16, A17, ..., Aa that is consistent with the four-bit binary number F1 in sequence, and g is the total number of authentication arrays in authentication array A16, A17, ..., Aa that are consistent with the four-bit binary number E1; S153: Based on the authentication arrays A17, A18, ..., Aa, obtain the four-bit binary numbers F2, F3, ..., F16 in sequence according to S151; S154: Calculate and obtain all the sequence numbers of the four-bit binary numbers F2, F3, ..., F16 in sequence according to S152.
5. The carbon emission collection and accounting platform system according to claim 4, characterized in that, S16, the process of constructing the baseline cryptographic chain for the carbon emission source in the accounting cycle is as follows: S161: Extract the smallest sequence number G1 from all the sequence numbers of the four-bit binary number F1, and select sequence number G1 as the sorting number of the four-bit binary number F1. Similarly, obtain the sorting numbers of the four-bit binary numbers E2, E3, ..., E16 in turn. S162: Number the corresponding four-bit binary numbers in ascending order of sorting number, starting from 1 and proceeding sequentially. Construct the baseline encryption chain of the carbon emission source in the accounting cycle based on the 16 numbered four-bit binary numbers. In the baseline encryption chain, 16 four-bit binary numbers are arranged from left to right, and the numbering of the four-bit binary numbers increases sequentially from left to right.
6. A carbon emission collection and accounting platform system according to claim 2, characterized in that, S18, based on the comparison result, determine the ciphertext number of the encryption array J1, and simultaneously determine whether the ciphertext number object is invalid based on the comparison result as follows: If all invalid arrays are inconsistent with the encrypted array J1, then first determine that the ciphertext number object is not invalid, then obtain the four-bit binary number that is consistent with the encrypted array J1 from the ciphertext number object, and mark the number as the ciphertext number of the encrypted array J1. It should be noted here that "consistent" means that all characters and their positions in the encrypted array J1 are consistent with all characters and their positions in the four-bit binary number. If there exists an invalid array that matches the encrypted array J1, the ciphertext number object is first determined to be invalid. Then, the four-bit binary number that matches the encrypted array J1 is obtained from the ciphertext number object, and the number is marked as the ciphertext number of the encrypted array J1.
7. A carbon emission collection and accounting platform system according to claim 6, characterized in that, S18, the steps for updating the ciphertext number object based on the determination of invalidity are as follows: SS11: Obtain the invalid array that matches the encrypted array J1. Obtain all sort numbers of the four-bit binary numbers that match the invalid array from the four-bit binary numbers F1, F2, ..., F16. Select the sequence number with the smallest value that has not been selected as the sort number as the new sort number of the four-bit binary number. If the sort numbers of the four-bit binary numbers have all been selected as the sequence number, then reselect the baseline encryption chain of the carbon emission source in the accounting cycle as the ciphertext number object. SS12: Obtain the sorting number of all other four-bit binary numbers, and then number the corresponding four-bit binary numbers in ascending order of sorting number, starting from 1 and proceeding sequentially. Construct an iterative encryption chain for the carbon emission source in the accounting cycle based on the 16 numbered four-bit binary numbers, and select the iterative encryption chain as the ciphertext number object.
8. A method for carbon emission collection and accounting, characterized in that, Includes the following steps: Step 1: During the current accounting period, the carbon emission acquisition module collects carbon emission data of the target enterprise's Class I carbon emission sources for the current accounting period and transmits it to the secure transmission module. Step 2: After receiving the transmitted carbon emission data, the secure transmission module randomly selects one pre-description text from all pre-stored pre-description texts as the authentication text for the carbon emission source in the accounting period. Step 3: The secure transmission module encrypts the carbon emission data according to the authentication text to obtain the encrypted number document of the carbon emission source in the accounting period, and transmits the encrypted number document to the cloud accounting terminal. Step 4: After receiving the transmitted encrypted number document, the cloud accounting terminal determines the authentication text of the carbon emission source in the accounting cycle based on all the pre-stored pre-description texts in the cloud accounting terminal and the encrypted number document. Step 5: The cloud computing terminal restores the encrypted numbered document based on the authentication text to obtain the carbon emission data of the carbon emission source in the accounting period, and stores the carbon emission data.