Engineering bidding and tendering platform data protection method, system, equipment and medium
By having bidders and tenderers each set a privacy password, establish a dedicated transmission channel and encrypt text and image data, the problem of easy data leakage in existing technologies is solved, and the security and effectiveness of bidding data are achieved.
Patent Information
- Application Number
- CN202510769728.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-10
- Publication Date
- 2025-09-05
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing bidding data protection technology uses known key encryption, which makes data easy to leak and does not fully utilize the diversity of encryption keys to encrypt text and image data.
The bidder and the tendering party set their own privacy passwords respectively, extract different encryption keys through the privacy passwords, establish an exclusive transmission channel for the tendering party and the bidder, and encrypt the text and images in the tender documents and tender documents and store them on the blockchain. The identity information of both parties needs to be verified during decryption.
The security and effectiveness of bidding data are improved, and text and image data are independently encrypted through the diversity of encryption keys to prevent data leakage.
Smart Images

Figure CN120597327A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of bidding data protection, and specifically to a data protection method, system, equipment and medium for an engineering bidding platform. Background Art
[0002] Bidding and tendering data protection technology refers to the construction of a multi-level and dynamic security protection system for core data in the entire life cycle of engineering bidding and tendering through the comprehensive use of cryptography, network security, privacy computing, artificial intelligence and other technical means.
[0003] Existing bidding data protection technologies typically use a known key to encrypt bidding data. This key is held by both the bidder and the tenderer. If either party's key is stolen, the bidding data will be leaked. Bidding data typically contains both text and image data. Existing bidding data protection technologies focus on encrypting text data, and typically use a fixed encryption transformation when encrypting image data. This does not fully utilize the diversity of encryption keys to encrypt image data. For example, patent application publication number CN113254407A discloses a "Blockchain-based Bidding Document Storage Method, System, Medium, and Device." This solution encrypts bidding documents using a known public key and decrypts them using a public or private key. Both the public and private keys are known and objectively exist. If either key is stolen, the bidding data will be leaked. Existing bidding data protection technologies also have the problem of encrypting bidding data using a known key and not fully utilizing the diversity of encryption keys to encrypt both text and image data, making bidding data susceptible to leakage. Summary of the Invention
[0004] The present invention aims to solve one of the technical problems in the prior art to at least a certain extent. The bidder and the tendering party respectively set their own privacy passwords, extract the encryption keys between different bidders and the tendering party through the privacy passwords, and then establish exclusive transmission channels for the tendering party and different bidders. When the tendering party and the bidder transmit bidding documents and tender documents to each other, the text in the bidding documents and tender documents is encrypted and calculated to obtain encrypted text. When the tendering party and the bidder transmit bidding documents and tender documents to each other, the images in the bidding documents and tender documents are encrypted and calculated to obtain encrypted images. Finally, the encrypted files are transmitted through the transmission channel and stored in the blockchain. When the tendering party or the bidder reads the encrypted files transmitted by the other party, the identity information of both parties must be verified at the same time and the encrypted files must be decoded by the privacy passwords of both parties. This solves the problem that the existing bidding data protection technology still has the problem of encrypting bidding data with a known key and not fully utilizing the diversity of encryption keys to encrypt text data and image data at the same time, resulting in the easy leakage of bidding data.
[0005] To achieve the above objectives, in a first aspect, the present application provides a data protection method for a project bidding platform, comprising the following steps: The bidder and the tenderer shall set their own privacy passwords respectively, and the encryption keys between different bidders and the tenderer shall be extracted through the privacy passwords; Establish exclusive transmission channels between the tenderer and different bidders; When the tenderer and the bidder transmit tender documents and bid documents to each other, the text and images in the tender documents and bid documents are encrypted to obtain encrypted files; Encrypted files are transmitted through the transmission channel and stored on the blockchain. When the tenderer or bidder reads the encrypted files transmitted by the other party, it is necessary to verify the identity information of both parties at the same time and decode the encrypted files using the privacy passwords of both parties.
[0006] Furthermore, the bidders and the tenderer each set their own privacy passwords, and extracting the encryption keys between different bidders and the tenderer through the privacy passwords includes the following sub-steps: The bidder and the tenderee shall set their own privacy passwords respectively. The bidder's privacy password shall be named as the bidding password, and the tenderee's privacy password shall be named as the tendering password. Convert the bidding password and tendering password into binary code according to ASCII code, and name them as bidding code and tendering code respectively; Number the characters in the bid code and mark them as PA from left to right. n , number the characters in the bidding code and mark them as PB from left to right m, where n and m are both positive integers and n is the serial number of PA, and m is the serial number of PB; Set the first key code, number the characters in the first key code, and mark them as RA in order from left to right i , where i is a positive integer and i is the serial number of RA, all RA i Initially, they are all empty; Starting with i=n=m=1, PA n With PB m Compare, if PA n With PB m If they are equal, record RA i =1, if PA n With PB m If not equal, record RA i =0, judge whether n is the maximum value of n or whether m is the maximum value of m, if so, output the iteration stop signal, if not, output the iteration continue signal; If the iteration continues signal is output, i, n and m are all increased by 1, and PA is performed again. n With PB m The comparison and the maximum value of n and m are judged until the iteration stop signal is output; if the iteration stop signal is output, the record is made by RA i The first key code composed of the following is represented by the symbol PW; Extracting the number of 1s and 0s in the first key code, marking them as a first quantity and a second quantity, respectively, and representing them by symbols a and b; Calculate PW×a×b and name the result as the encryption key.
[0007] Furthermore, establishing exclusive transmission channels between the tendering party and different bidders includes the following sub-steps: Establish exclusive transmission channels between the tendering party and different bidders, named exclusive channels; The bidding documents and tender documents between the tenderer and different bidders are encrypted and transmitted through dedicated channels.
[0008] Furthermore, when the tendering party and the bidder transmit the tender documents and the bid documents to each other, encrypting the text and images in the tender documents and the bid documents to obtain the encrypted files includes the following sub-steps: When the tenderer and the bidder transmit tender documents and bid documents to each other, the text in the tender documents and bid documents is encrypted to obtain encrypted text; When the tendering party and the bidder transmit the tender documents and the bid documents to each other, the images in the tender documents and the bid documents are encrypted and calculated to obtain the encrypted images.
[0009] Furthermore, when the tendering party and the bidder transmit the tender documents and the bid documents to each other, encrypting the text in the tender documents and the bid documents to obtain the encrypted text includes the following sub-steps: When the tenderer and the bidder transmit tender documents and bidding documents to each other, the tender documents or bidding documents to be transmitted shall be named as the documents to be protected; Extract the text data from the file to be protected and mark the characters in the text data as W in order from front to back. j , where j is a positive integer and j is the serial number of W; W j Convert ASCII code to binary code and mark it as E1 j ; Count the number of 1s in the encryption key, mark it as d, convert d into a binary number, mark it as D, and convert E1 j Add to D and get E2 j ; E2 j Converted to hexadecimal number, marked as E3 j , convert the encryption key into a hexadecimal number, marked as g; Number the numbers in g and mark them as G from left to right h , where h is a positive integer and h is the sequence number of G; E3 j The numbers in the table are numbered and marked as L(j,t) from left to right, where t is a positive integer and (j,t) is the sequence number of L. L(j,t) represents the number of the node in E3. j The tth digit in ; Starting with t=h=1, judge G h Is it equal to L(j,t)? If so, change L(j,t) to h, set t+1 and reset h to 1, and re-judge; if not, set h+1 and re-judge. If h reaches the maximum value and the judgment condition is still not met, do not change L(j,t); The L(j, t) after analysis is marked as K(j, t). After analyzing L(j, t) for all values of j, all K(j, t) are increased by the first air defense number and converted into Chinese based on ASCII encoding to obtain encrypted text.
[0010] Furthermore, when the tendering party and the bidder transmit the tender documents and the bid documents to each other, the encrypted images obtained by encrypting the images in the tender documents and the bid documents include the following sub-steps: Extract the image data in the file to be protected, obtain the three-color value of each pixel in the image data, and express it in the format of (R, G, B), where R is the R value, G is the G value, and B is the B value; The three-color value of the pixel at row x and column y in the image data is marked as C(x,y), where x and y are both positive integers and (x,y) is the sequence number of C; Count the number of digits in the encryption key, mark it as u, and get d; After changing (R, G, B) of C(x, y) to (R+d, G+ud, Bu), the encrypted image is obtained.
[0011] Furthermore, the encrypted file is transmitted through the transmission channel and stored in the blockchain. When the tenderer or bidder reads the encrypted file transmitted by the other party, the identity information of both parties must be verified and the encrypted file must be decoded by the privacy password of both parties, including the following sub-steps: Transmit encrypted files through transmission channels and store them on blockchain; Both the tendering party and the bidding party are required to undergo identity verification when logging into the engineering bidding platform. After passing the verification, if either party needs to receive an encrypted file transmitted by the other party, both parties must enter their respective privacy passwords.
[0012] In a second aspect, the present application provides a data protection system for an engineering bidding platform, comprising a key extraction module, a transmission channel construction module, a file encryption module, and a file transmission module; the key extraction module, the transmission channel construction module, and the file transmission module are respectively data-connected to the file encryption module; The key extraction module is used for the bidders and the tenderer to set their own privacy passwords respectively, and extract the encryption keys between different bidders and the tenderer through the privacy passwords; The transmission channel building module is used to establish exclusive transmission channels between the tendering party and different bidders; The file encryption module is used to encrypt the text and images in the bidding documents and tender documents when the bidding party and the tender party transmit the bidding documents and tender documents to obtain encrypted files; The file transfer module is used to transmit encrypted files through a transmission channel and store the encrypted files in a blockchain. When the tenderer or bidder reads the encrypted files transmitted by the other party, it is necessary to verify the identity information of both parties at the same time and decode the encrypted files using the privacy passwords of both parties.
[0013] In a third aspect, the present application provides an electronic device comprising a processor and a memory, wherein the memory stores computer-readable instructions. When the computer-readable instructions are executed by the processor, the steps in the above method are performed.
[0014] In a fourth aspect, the present application provides a storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps in the above method are executed.
[0015] Beneficial effects of the present invention: The present invention allows bidders and tendering parties to set their own privacy passwords respectively, and extracts encryption keys between different bidders and tendering parties through the privacy passwords. The advantage is that text data and image data are encrypted using encryption keys, and the encryption keys are obtained through complex transformations of the bidders' and tendering party's privacy passwords. They are not stored or controlled by any system or individual, so the encryption keys cannot be stolen by others. Moreover, the encryption keys are also decryption keys, which cannot be stolen by others, thereby improving the effectiveness and security of bidding data protection. The present invention establishes an exclusive transmission channel between the tendering party and different bidders. When the tendering party and the bidder transmit tender documents and bid documents to each other, the text in the tender documents and bid documents is encrypted to obtain encrypted text. When the tendering party and the bidder transmit tender documents and bid documents to each other, the images in the tender documents and bid documents are encrypted to obtain encrypted images. The advantage is that an exclusive transmission channel is established between the tendering party and different bidders, file transmissions are independent of each other, and encryption keys are used for encryption when encrypting text data and image data. The security of encrypted data is improved by the diversity of encryption keys, and the security and effectiveness of bidding data protection are improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 It is a principle block diagram of the system of the present invention; Figure 2 is an example diagram of image data of the present invention; Figure 3 This is an example diagram of the encrypted image of the present invention; Figure 4 is a flow chart of the steps of the method of the present invention; Figure 5 Schematic diagram of the structure of an electronic device for the method of the present invention. DETAILED DESCRIPTION
[0017] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the present invention.
[0018] Example 1, please refer to Figure 1As shown, the present application provides a data protection system for an engineering bidding platform, including a key extraction module, a transmission channel construction module, a file encryption module, and a file transmission module; the key extraction module, the transmission channel construction module, and the file transmission module are respectively connected to the file encryption module data; The key extraction module is used for the bidders and the tenderer to set their own privacy passwords respectively, and extract the encryption keys between different bidders and the tenderer through the privacy passwords; The key extraction module is configured with a key extraction strategy, which includes: The bidder and the tenderee shall set their own privacy passwords respectively. The bidder's privacy password shall be named as the bidding password, and the tenderee's privacy password shall be named as the tendering password. Convert the bidding password and tendering password into binary code according to ASCII code, and name them as bidding code and tendering code respectively; Number the characters in the bid code and mark them as PA from left to right. n , number the characters in the bidding code and mark them as PB from left to right m , where n and m are both positive integers and n is the serial number of PA, and m is the serial number of PB; In actual application, in this embodiment, the tenderer, bidder 1, bidder 2, and bidder 3 are listed. Each tenderer and bidder has its own privacy password. Taking the tenderer and bidder 1 as an example, assuming that the tenderer and bidder 1 transmit bidding data to each other, the privacy password of the tenderer is Tenderee01234, and the privacy password of the bidder is Bidder56789. Converted into binary code, the bidding code and tender code are 0100001001101001011 respectively. 00100011001000110010101110010001101010011010110001101110011100000111001 and 0101010001100101010110111001100100011001010101110010011001010100110000001100010010011001001100110100, the number is PA n and PB m , 1≤n≤88, 1≤m≤104; Set the first key code, number the characters in the first key code, and mark them as RA in order from left to right i , where i is a positive integer and i is the serial number of RA, all RA i Initially, they are all empty; Starting with i=n=m=1, PAn With PB m Compare, if PA n With PB m If they are equal, record RA i =1, if PA n With PB m If not equal, record RA i =0, judge whether n is the maximum value of n or whether m is the maximum value of m, if so, output the iteration stop signal, if not, output the iteration continue signal; If the iteration continues signal is output, i, n and m are all increased by 1, and PA is performed again. n With PB m The comparison and the maximum value of n and m are judged until the iteration stop signal is output; if the iteration stop signal is output, the record is made by RA i The first key code composed of the following is represented by the symbol PW; Extracting the number of 1s and 0s in the first key code, marking them as a first quantity and a second quantity, respectively, and representing them by symbols a and b; Calculate PW×a×b and name the result as the encryption key; In practical applications, starting with i=n=m=1, PA n With PB m Compare, at this time PA1 and PB1 are both 0, PA n With PB m =Equal, record RA1=1, since the maximum value of n is 88, the maximum value of m is 104, and n and m are not their corresponding maximum values, output the iteration continue signal, increase i, n and m by 1, now i=n=m=2, analyze again, repeat the execution until the iteration stop signal is output, and finally get the first key code PW as 111010011111001111110101111111111111111111111010111101001111 10001111011011110100, a and b are extracted as 67 and 21 respectively. The encryption key is calculated as 10100000101110100111101010000100111111111111111110010001101000011110101100010101010100011100001100. For calculation, convert a and b to binary or convert PW to decimal.
[0019] The transmission channel construction module is used to establish exclusive transmission channels between the tendering party and different bidders; The transmission channel construction module is configured with a transmission channel construction strategy, which includes: Establish exclusive transmission channels between the tendering party and different bidders, named exclusive channels; The bidding documents and tender documents between the tenderer and different bidders are transmitted through dedicated channels after being encrypted; In actual applications, existing communication transmission channels are used to establish exclusive channels for the tendering party and different bidders. For example, the exclusive channel between the tendering party and bidder 1 is channel 1, and the exclusive channel between the tendering party and bidder 2 is channel 2.
[0020] The file encryption module is used to encrypt the text and images in the bidding documents and tender documents when the bidding party and the tender party transmit the bidding documents to each other, and then obtain the encrypted files; the file encryption module includes a text encryption unit and an image encryption unit; The text encryption unit is used to encrypt the text in the bidding documents and tender documents when the bidding party and the tender party transmit the bidding documents to each other and obtain the encrypted text; The text encryption unit is configured with a text encryption policy, which includes: When the tenderer and the bidder transmit tender documents and bidding documents to each other, the tender documents or bidding documents to be transmitted shall be named as the documents to be protected; Extract the text data from the file to be protected and mark the characters in the text data as W in order from front to back. j , where j is a positive integer and j is the serial number of W; W j Convert ASCII code to binary code and mark it as E1 j ; Count the number of 1s in the encryption key, mark it as d, convert d into a binary number, mark it as D, and convert E1 j Add to D and get E2 j ; E2 j Converted to hexadecimal number, marked as E3 j , convert the encryption key into a hexadecimal number, marked as g; Number the numbers in g and mark them as G from left to right h , where h is a positive integer and h is the sequence number of G; E3 j The numbers in the table are numbered and marked as L(j,t) from left to right, where t is a positive integer and (j,t) is the sequence number of L. L(j,t) represents the number of the node in E3. j The tth digit in ; Starting with t=h=1, judge G hIs it equal to L(j,t)? If so, change L(j,t) to h, set t+1 and reset h to 1, and re-judge; if not, set h+1 and re-judge. If h reaches the maximum value and the judgment condition is still not met, do not change L(j,t); After the analysis, L(j, t) is marked as K(j, t). After analyzing L(j, t) for all values of j, all K(j, t) are increased by the first air defense number and converted into Chinese based on ASCII encoding to obtain encrypted text. In actual application, this embodiment only uses part of the text data as an example. The text data in this embodiment is "Tender Details". W1 to W4 are numbered. W1 to W4 are converted into binary codes to obtain E11 to E14, which are 110001011011011, 110100000000111, 1000101111100110, and 110000011000101 respectively. The statistical result is d, which is 52. The converted D is 110100. Taking E11 as an example, E21 is added to 110001100001111, and E31 is converted to 630f. The encryption key is converted into a hexadecimal number, and g is 505d3d509fffe4687ac55470c. G is obtained by numbering. h , 1≤h≤25, L(1,1) to L(1,4) are 6, 3, 0 and f respectively, starting with t=h=1, judge G h Is it equal to L(j,t)? At this time, G1 is 5, L(1,1) is 6, G h If it is not equal to L(j,t), add h+1 and re-judge until h=15, G h Equal to L(j,t), change L(1,1) to h, and reset t+1 and h to 1, re-judge, that is, find the position of each L(j,t) in g, and finally get K(1,1) to K(1,4) as 15, 5, 8 and 10 respectively. The first air defense number is set to 1000. This is because in order to convert K(j,t) into Chinese, but Chinese requires four hexadecimal digits to convert, and a smaller value will result in an empty conversion result. The value of the first air defense number is set by the platform administrator, so take a first air defense number, change K(1,1) to K(1,4) to 1015, 1005, 1008 and 1010 respectively, and then convert it to Chinese to get W1. The encrypted text is " ”; The image encryption unit is used to encrypt the images in the bidding documents and tender documents when the bidding party and the tender party transmit the bidding documents and tender documents to each other, and obtain the encrypted images; The image encryption unit is configured with an image encryption strategy, which includes: See also Figures 2 to 3 As shown, extract the image data in the file to be protected, obtain the three-color value of each pixel in the image data, and express it in the format of (R, G, B), where R is the R value, G is the G value, and B is the B value; The three-color value of the pixel at row x and column y in the image data is marked as C(x,y), where x and y are both positive integers and (x,y) is the sequence number of C; Count the number of digits in the encryption key, mark it as u, and get d; After changing (R, G, B) of C(x, y) to (R+d, G+ud, Bu), the encrypted image is obtained; In practical applications, Figure 2 Take the 6 pixels in as an example, since Figure 2 It cannot be displayed in the form of a color image, but only in grayscale, so the color attributes cannot be intuitively felt. The three color values of C(1,1) to C(1,6) are (74,59,216), (78,58,224), (88,69,224), (137,152,224), (181,208,253) and (186,212,255), respectively. The statistical result of u is 99, and the obtained d is 52. During the change process, if the three-color value is greater than 255 or less than 0, the corresponding value will be reduced by 255 or increased by 255 to ensure that it is within the normal color value range. The three-color values of C(1,1) to C(1,6) are changed to (126,106,60), (130,105,68), (140,116,68), (189,199,68), (233,255,97) and (238,4,99), respectively. The final result is Figure 3 , Figure 3 The three-color values of all pixels in the image have deviated from the original color values.
[0021] The file transfer module is used to transmit encrypted files through the transmission channel and store the encrypted files on the blockchain. When the tenderer or bidder reads the encrypted files transmitted by the other party, they need to verify the identity information of both parties and decode the encrypted files using the privacy passwords of both parties. The file transfer module is configured with a file transfer policy, which includes: Transmit encrypted files through transmission channels and store them on blockchain; Both the tenderer and the bidder are required to undergo identity verification when logging into the project bidding platform. After passing the verification, if either party needs to receive an encrypted file transmitted by the other party, both parties must enter their respective privacy passwords. In actual applications, since both bidding and tendering require very strict and fair processes, and the communication between the bidder and the tenderer is also guaranteed in real time, when transmitting bidding data or tendering data, the bidder and the tenderer are usually online at the same time waiting to receive the files. After identity authentication using existing identity authentication technology, both parties need to enter their respective privacy passwords to transmit and receive files, otherwise the files cannot be transmitted and received.
[0022] Example 2, please refer to Figure 4 As shown, this application provides a data protection method for an engineering bidding platform, including the following steps: In step S101, the bidder and the tendering party respectively set their own privacy passwords, and extract the encryption keys between the bidder and the tendering party through the privacy passwords. Step S1 includes the following sub-steps: Step S102: The bidder and the tenderer set their own privacy passwords respectively, with the bidder's privacy password being named the bidding password and the tenderer's privacy password being named the tendering password; Step S103: convert the bidding password and tendering password into binary codes according to ASCII codes, and name them as bidding code and tendering code respectively; Step S1: Number the characters in the bid code and mark them as PA from left to right. n , number the characters in the bidding code and mark them as PB from left to right m , where n and m are both positive integers and n is the serial number of PA, and m is the serial number of PB; Step S104: Set the first key code, number the characters in the first key code, and mark them as RA in order from left to right. i , where i is a positive integer and i is the serial number of RA, all RA i Initially, they are all empty; Step S105, starting with i=n=m=1, PA n With PB m Compare, if PA n With PB m If they are equal, record RA i =1, if PA n With PB m If not equal, record RA i =0, judge whether n is the maximum value of n or whether m is the maximum value of m, if so, output the iteration stop signal, if not, output the iteration continue signal; Step S106: If the iteration continues signal is output, i, n and m are all increased by 1, and the PA is performed again. n With PB mThe comparison and the maximum value of n and m are judged until the iteration stop signal is output; if the iteration stop signal is output, the record is made by RA i The first key code composed of the following is represented by the symbol PW; Step S107: extract the number of 1s and 0s in the first key code, mark them as a first quantity and a second quantity, represented by symbols a and b respectively; Step S108, calculate PW×a×b, and name the calculation result as the encryption key; Step S2: establishing exclusive transmission channels between the tendering party and different bidders. Step S2 includes the following sub-steps: Step S201: establishing exclusive transmission channels between the tendering party and different bidders, named exclusive channels; Step S202: The bidding documents and tender documents between the tendering party and different bidders are encrypted and transmitted through a dedicated channel; Step S3: When the tendering party and the bidder transmit the tender documents and the bid documents to each other, the text and images in the tender documents and the bid documents are encrypted to obtain an encrypted file. Step S3 includes the following sub-steps: Step S301: When the tendering party and the bidder transmit tender documents and bid documents to each other, the text in the tender documents and bid documents is encrypted to obtain encrypted text; Step S301 includes the following sub-steps: Step S3011: When the tendering party and the bidder transmit tender documents and bid documents to each other, the tender documents or bid documents to be transmitted are named as files to be protected; Step S3012: extract the text data in the file to be protected, and mark the characters in the text data as W in the order from front to back. j , where j is a positive integer and j is the serial number of W; Step S3013: W j Convert ASCII code to binary code and mark it as E1 j ; Step S3014: Count the number of 1s in the encryption key, mark it as d, convert d into a binary number, mark it as D, and convert E1 j Add to D and get E2 j ; Step S3015: E2 j Converted to hexadecimal number, marked as E3 j , convert the encryption key into a hexadecimal number, marked as g; Step S3016: Number the numbers in g and mark them as G in order from left to right. h, where h is a positive integer and h is the sequence number of G; Step S3017, E3 j The numbers in the table are numbered and marked as L(j,t) from left to right, where t is a positive integer and (j,t) is the sequence number of L. L(j,t) represents the number of the node in E3. j The tth digit in ; Step S3018, starting with t=h=1, determine G h Is it equal to L(j,t)? If so, change L(j,t) to h, set t+1 and reset h to 1, and re-judge; if not, set h+1 and re-judge. If h reaches the maximum value and the judgment condition is still not met, do not change L(j,t); Step S3019: Mark the analyzed L(j, t) as K(j, t). After analyzing L(j, t) for all values of j, increase all K(j, t) by the first air defense number and convert them into Chinese based on ASCII encoding to obtain encrypted text. Step S302: When the tendering party and the bidder transmit the tender documents and the bid documents to each other, the images in the tender documents and the bid documents are encrypted to obtain encrypted images; Step S302 includes the following sub-steps: Step S3021: extract the image data in the file to be protected, obtain the three-color value of each pixel in the image data, and express it in the format of (R, G, B), where R is the R value, G is the G value, and B is the B value; Step S3022: Mark the three-color values of the pixel at the xth row and yth column in the image data as C(x,y), where x and y are both positive integers and (x,y) is the sequence number of C; Step S3023, counting the number of digits in the encryption key, marked as u, and obtaining d; Step S3024, after changing (R, G, B) of C(x, y) to (R+d, G+ud, Bu), an encrypted image is obtained; Step S4: The encrypted file is transmitted through the transmission channel and stored in the blockchain. When the tenderer or bidder reads the encrypted file transmitted by the other party, the identity information of both parties must be verified and the encrypted file must be decoded using the privacy password of both parties. Step S4 includes the following sub-steps: Step S401: transmitting the encrypted file through a transmission channel and storing the encrypted file in blockchain; In step S402, both the tendering party and the bidding party need to undergo identity verification when logging into the project bidding platform. After passing the verification, if either party needs to receive an encrypted file transmitted by the other party, both parties need to enter their respective privacy passwords.
[0023] Example 3, please refer to Figure 5 As shown, Figure 5 The following illustrates a schematic diagram of the structure of an electronic device, which may include: a processor, a communication interface, a memory, and a communication bus. The processor, the communication interface, and the memory communicate with each other via the communication bus. The memory stores computer-readable instructions, and the processor can call instructions from the memory. When the computer-readable instructions are executed by the processor, the steps of a data protection method for a project bidding platform are performed to achieve the following functions: bidders and tendering parties each set their own privacy passwords, and encryption keys between different bidders and tendering parties are extracted using the privacy passwords; exclusive transmission channels are established between the tendering party and different bidders; bidding documents and text and images in the bid documents are encrypted to obtain encrypted files; the encrypted files are transmitted via the transmission channel and stored on a blockchain.
[0024] In addition, the logical instructions in the above-mentioned memory can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the technical solution of the present application, or the part that contributes to the existing technology, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, and other media that can store program code.
[0025] Example 4. The present application also provides a computer-readable storage medium. The present application provides a storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned data protection method for an engineering bidding platform are executed to achieve the following functions: the bidder and the tendering party respectively set their own privacy passwords, and extract the encryption keys between different bidders and the tendering party through the privacy passwords; establish an exclusive transmission channel for the tendering party and different bidders; encrypt the text and images in the bidding documents and obtain an encrypted file; transmit the encrypted file through the transmission channel, and store the encrypted file in the blockchain.
[0026] Through the description of the above embodiments, the embodiments of the present invention can be provided as methods, systems, or computer program products. Based on this understanding, the essence of the above technical solutions or the portion that contributes to the prior art can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a magnetic disk, or an optical disk, and includes a number of instructions for enabling a computer device (such as a personal computer, server, or network device) to execute the methods described in various embodiments or certain portions of the embodiments.
[0027] In the embodiments provided in this application, it should be understood that the disclosed system or method can be implemented in other ways. The embodiments described above are merely illustrative. For example, the division of modules or units is only a logical function division. There may be other division methods in actual implementation. For example, multiple modules or units can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of systems, modules and units can be electrical, mechanical or other forms.
[0028] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A data protection method for an engineering bidding platform, characterized in that: The steps include: The bidder and the tenderer shall set their own privacy passwords respectively, and the encryption keys between different bidders and the tenderer shall be extracted through the privacy passwords; Establish exclusive transmission channels between the tenderer and different bidders; When the tenderer and the bidder transmit tender documents and bid documents to each other, the text and images in the tender documents and bid documents are encrypted to obtain encrypted files; Encrypted files are transmitted through the transmission channel and stored on the blockchain. When the tenderer or bidder reads the encrypted files transmitted by the other party, it is necessary to verify the identity information of both parties at the same time and decode the encrypted files using the privacy passwords of both parties.
2. A data protection method for a project bidding platform according to claim 1, characterized in that: The bidder and the tenderer each set their own privacy passwords. Extracting the encryption keys between different bidders and the tenderer through the privacy passwords includes the following sub-steps: The bidder and the tenderee shall set their own privacy passwords respectively. The bidder's privacy password shall be named as the bidding password, and the tenderee's privacy password shall be named as the tendering password. Convert the bidding password and tendering password into binary code according to ASCII code, and name them as bidding code and tendering code respectively; Number the characters in the bid code and mark them as PA from left to right. n , number the characters in the bidding code and mark them as PB from left to right m , where n and m are both positive integers and n is the serial number of PA, and m is the serial number of PB; Set the first key code, number the characters in the first key code, and mark them as RA in order from left to right i , where i is a positive integer and i is the serial number of RA, all RA i Initially, they are all empty; Starting with i=n=m=1, PA n With PB m Compare, if PA n With PB m If they are equal, record RA i =1, if PA n With PB m If not equal, record RA i =0, judge whether n is the maximum value of n or whether m is the maximum value of m, if so, output the iteration stop signal, if not, output the iteration continue signal; If the iteration continues signal is output, i, n and m are all increased by 1, and PA is performed again. n With PB m The comparison and the maximum value of n and m are judged until the iteration stop signal is output; if the iteration stop signal is output, the record is made by RA i The first key code composed of the following is represented by the symbol PW; Extracting the number of 1s and 0s in the first key code, marking them as a first quantity and a second quantity, respectively, and representing them by symbols a and b; Calculate PW×a×b and name the result as the encryption key.
3. A data protection method for a project bidding platform according to claim 2, characterized in that: Establishing exclusive transmission channels between the tendering party and different bidders includes the following sub-steps: Establish exclusive transmission channels between the tendering party and different bidders, named exclusive channels; The bidding documents and tender documents between the tenderer and different bidders are encrypted and transmitted through dedicated channels.
4. A data protection method for a project bidding platform according to claim 3, characterized in that: When the tenderer and the bidder transmit tender documents and bid documents to each other, the encrypted files obtained by encrypting the text and images in the tender documents and bid documents include the following sub-steps: When the tenderer and the bidder transmit tender documents and bid documents to each other, the text in the tender documents and bid documents is encrypted to obtain encrypted text; When the tendering party and the bidder transmit the tender documents and the bid documents to each other, the images in the tender documents and the bid documents are encrypted and calculated to obtain the encrypted images.
5. A data protection method for a project bidding platform according to claim 4, characterized in that: When the tenderer and the bidder transmit tender documents and bid documents to each other, the encrypted text obtained by encrypting the text in the tender documents and bid documents includes the following sub-steps: When the tenderer and the bidder transmit tender documents and bidding documents to each other, the tender documents or bidding documents to be transmitted shall be named as the documents to be protected; Extract the text data from the file to be protected and mark the characters in the text data as W in order from front to back. j , where j is a positive integer and j is the serial number of W; W j Convert ASCII code to binary code and mark it as E1 j ; Count the number of 1s in the encryption key, mark it as d, convert d into a binary number, mark it as D, and convert E1 j Add to D and get E2 j ; E2 j Converted to hexadecimal number, marked as E3 j , convert the encryption key into a hexadecimal number, marked as g; Number the numbers in g and mark them as G from left to right h , where h is a positive integer and h is the sequence number of G; E3 j The numbers in the table are numbered and marked as L(j,t) from left to right, where t is a positive integer and (j,t) is the sequence number of L. L(j,t) represents the number of the node in E3. j The tth digit in ; Starting with t=h=1, judge G h Is it equal to L(j,t)? If so, change L(j,t) to h, set t+1 and reset h to 1, and re-judge; if not, set h+1 and re-judge. If h reaches the maximum value and the judgment condition is still not met, do not change L(j,t); The L(j, t) after analysis is marked as K(j, t). After analyzing L(j, t) for all values of j, all K(j, t) are increased by the first air defense number and converted into Chinese based on ASCII encoding to obtain encrypted text.
6. A data protection method for a project bidding platform according to claim 5, characterized in that: When the tendering party and the bidder transmit tender documents and bid documents to each other, the encrypted images obtained by encrypting the images in the tender documents and bid documents include the following sub-steps: Extract the image data in the file to be protected, obtain the three-color value of each pixel in the image data, and express it in the format of (R, G, B), where R is the R value, G is the G value, and B is the B value; The three-color value of the pixel at row x and column y in the image data is marked as C(x,y), where x and y are both positive integers and (x,y) is the sequence number of C; Count the number of digits in the encryption key, mark it as u, and get d; After changing (R, G, B) of C(x, y) to (R+d, G+ud, Bu), the encrypted image is obtained.
7. A data protection method for a project bidding platform according to claim 6, characterized in that: The encrypted file is transmitted through the transmission channel and stored in the blockchain. When the tenderer or bidder reads the encrypted file transmitted by the other party, the identity information of both parties must be verified and the encrypted file must be decoded using the privacy password of both parties. The steps include the following: Transmit encrypted files through transmission channels and store them on blockchain; Both the tendering party and the bidding party are required to undergo identity verification when logging into the engineering bidding platform. After passing the verification, if either party needs to receive an encrypted file transmitted by the other party, both parties must enter their respective privacy passwords.
8. A data protection system for a project bidding platform, used to implement a data protection method for a project bidding platform according to any one of claims 1 to 7, characterized in that: It includes a key extraction module, a transmission channel construction module, a file encryption module and a file transmission module; the key extraction module, the transmission channel construction module and the file transmission module are respectively connected to the file encryption module data; The key extraction module is used for the bidders and the tenderer to set their own privacy passwords respectively, and extract the encryption keys between different bidders and the tenderer through the privacy passwords; The transmission channel building module is used to establish exclusive transmission channels between the tendering party and different bidders; The file encryption module is used to encrypt the text and images in the bidding documents and tender documents when the bidding party and the tender party transmit the bidding documents and tender documents to obtain encrypted files; The file transfer module is used to transmit encrypted files through a transmission channel and store the encrypted files in a blockchain. When the tenderer or bidder reads the encrypted files transmitted by the other party, it is necessary to verify the identity information of both parties at the same time and decode the encrypted files using the privacy passwords of both parties.
9. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores computer-readable instructions. When the computer-readable instructions are executed by the processor, the steps in the method according to any one of claims 1 to 7 are executed.
10. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are executed.
Citation Information
Patent Citations
Bidding file storage method and system based on block chain, medium and equipment
CN113254407A