Big data transmission encryption protection method and device, equipment and storage medium
Through homomorphic encryption technology, the security and real-time issues of data transmission encryption methods in new energy stations are solved, efficient protection of sensitive information is achieved, and it is suitable for multi-level data transmission in new energy stations.
Patent Information
- Application Number
- CN202410948025.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-16
- Publication Date
- 2024-10-11
AI Technical Summary
Traditional data transmission encryption methods face problems such as algorithm security, key management complexity, and real-time performance in new energy stations, making it difficult to meet the high requirements for data real-time and stability.
Homomorphic encryption technology is used to determine the public key by obtaining encryption parameters, encode the plaintext to be encrypted into the initial ciphertext polynomial, encrypt it based on the public key, and combine the noise polynomial to generate the target ciphertext to improve the security and real-time performance of data transmission. .
It improves the real-time and stability of data transmission, enhances the protection of sensitive information, and is suitable for multi-level data transmission of new energy stations.
Smart Images

Figure CN118764165A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of data encryption, and in particular to a method, device, equipment and storage medium for encrypting and protecting large data transmission. Background Art
[0002] With the continuous construction of new energy stations and the improvement of their intelligence level, the application of big data in energy management, equipment monitoring and operation optimization is becoming more and more extensive. New energy stations collect a large amount of operation data in real time through various sensors, monitoring equipment, intelligent control systems, etc. These data are transmitted at multiple levels inside and outside the stations, and the information involved covers key business information such as equipment status, energy production and consumption.
[0003] However, since the information carried during the transmission of big data may involve sensitive information such as commercial secrets, privacy data, and the safe operation of critical infrastructure, protecting the security and integrity of this data has become an important challenge.
[0004] Traditional data transmission encryption methods may face problems such as algorithm security, key management complexity, and real-time performance. Especially in an environment such as new energy stations where data real-time and stability requirements are high, a more efficient and reliable encryption protection method is needed. Summary of the invention
[0005] In order to improve the stability of data encryption in new energy stations, the present application proposes a big data transmission encryption protection method, device, equipment and storage medium.
[0006] In the first aspect, the present application proposes a method for encrypting and protecting big data transmission, which adopts the following technical solution:
[0007] A method for encrypting and protecting large data transmission includes the following steps:
[0008] Obtaining encryption parameters, and determining a public key based on the encryption parameters;
[0009] Obtaining a plaintext to be encrypted, encoding the plaintext to be encrypted, and obtaining an initial ciphertext polynomial;
[0010] Encrypting the initial ciphertext polynomial based on the public key to obtain a target ciphertext polynomial;
[0011] Based on the target ciphertext polynomial, a ciphertext corresponding to the plaintext to be encrypted is obtained.
[0012] Preferably, the calculation expression of the public key is:
[0013] h= s
[0014] In the formula, h is the public key, g is the generator, n is the modulus, and s is the private key.
[0015] Preferably, the modulus n is calculated as follows:
[0016] n=q·t
[0017] Where q and t are large prime numbers.
[0018] Preferably, encrypting the plaintext polynomial based on the public key to obtain a ciphertext polynomial includes:
[0019] Determining polynomial coefficients based on a preset probability distribution model;
[0020] Based on the polynomial coefficients, obtaining a generated noise polynomial;
[0021] A target ciphertext polynomial is obtained based on the noise polynomial and the initial ciphertext polynomial.
[0022] Preferably, encoding the plaintext to be encrypted to obtain an initial ciphertext polynomial includes:
[0023] Performing binary conversion on the plaintext to be encrypted to obtain a plaintext binary string;
[0024] Based on the plaintext binary string, an initial ciphertext polynomial is mapped.
[0025] In the second aspect, the present application proposes a large data transmission encryption protection device, which adopts the following technical solution:
[0026] A big data transmission encryption protection device, comprising:
[0027] A public key acquisition module, used to acquire encryption parameters and determine a public key based on the encryption parameters;
[0028] A plaintext encoding module, used to obtain the plaintext to be encrypted, encode the plaintext to be encrypted, and obtain an initial ciphertext polynomial;
[0029] A public key encryption module, used to encrypt the initial ciphertext polynomial based on the public key to obtain a target ciphertext polynomial;
[0030] The ciphertext acquisition module is used to acquire the ciphertext corresponding to the plaintext to be encrypted based on the target ciphertext polynomial.
[0031] In a third aspect, the present application proposes an electronic device, which adopts the following technical solution:
[0032] An electronic device, comprising:
[0033] A processor, and a memory communicatively connected to the processor;
[0034] The memory stores computer-executable instructions;
[0035] The processor executes the computer-executable instructions stored in the memory to implement the above method.
[0036] In a fourth aspect, the present application proposes a computer-readable storage medium, which adopts the following technical solution:
[0037] A computer-readable storage medium stores computer-executable instructions, which are used to implement the above method when executed by a processor.
[0038] In a fourth aspect, the present application proposes a computer program product, which adopts the following technical solution:
[0039] A computer program product comprises a computer program, and when the computer program is executed by a processor, the method described above is implemented.
[0040] The present application provides a method, device, equipment and storage medium for encryption protection of large data transmission, which is based on homomorphic encryption, encodes the plaintext to be encrypted, obtains the initial ciphertext polynomial, further encrypts the initial ciphertext polynomial with the public key, obtains the target ciphertext polynomial, and finally determines the ciphertext corresponding to the plaintext to be encrypted. The present application can improve the real-time and stability of data transmission encryption.
[0041] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0043] Figure 1 The present invention is a flowchart of a method for encrypting and protecting large data transmission in an embodiment of the present application.
[0044] Figure 2 This is a flowchart of steps S201-S203 in a method for encrypting and protecting big data transmission according to an embodiment of the present application.
[0045] Figure 3 This is a module diagram of a large data transmission encryption protection device according to an embodiment of the present application.
[0046] Description of Reference Numerals
[0047] 1. Public key acquisition module; 2. Plain text encoding module; 3. Public key encryption module; 4. Cipher text acquisition module. DETAILED DESCRIPTION
[0048] Embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.
[0049] The following describes a method, device, equipment and storage medium for encrypting and protecting big data transmission according to an embodiment of the present application with reference to the accompanying drawings.
[0050] Reference Figure 1 The embodiment of the present application discloses a method for encrypting and protecting large data transmission, which uses the CKKS homomorphic encryption algorithm as a specific scheme to protect multi-level transmission data involved in new energy stations, including key information such as equipment status and energy production. The CKKS homomorphic encryption algorithm is an improved algorithm based on the FV (Fan-Vercauteren) homomorphic encryption scheme, and has the ability to homomorphically encrypt data in actual scenarios.
[0051] The method disclosed in the embodiment of the present application comprises the following steps:
[0052] S101, obtaining encryption parameters, and determining a public key based on the encryption parameters;
[0053] S102, obtaining a plaintext to be encrypted, encoding the plaintext to be encrypted, and obtaining an initial ciphertext polynomial;
[0054] S103, encrypting the initial ciphertext polynomial based on the public key to obtain a target ciphertext polynomial;
[0055] S104. Based on the target ciphertext polynomial, obtain the ciphertext corresponding to the plaintext to be encrypted.
[0056] In step S101, the encryption parameters include a modulus, a generator, and a private key. Specifically, the calculation formula of the modulus n is n=q·t, where q and t are large prime numbers. Assuming there is a modulus n=21, the remainder operation under the modulus 21 is as follows: 7mod21=7, because the remainder of 7 divided by 21 is 7. 25mod21=4, because the remainder of 25 divided by 21 is 4, and so on. The larger the modulus, the higher the security of the encryption system, but it will also increase the complexity of the calculation.
[0057] Specifically, choose a generator g such that g is of order n The original root.
[0058] In homomorphic encryption, a generator is an element used to define the discrete logarithm problem. Generators are used to generate public keys. The selection of generators is usually based on the discrete logarithm problem, that is, given g and n, find x such that g x The result of mod n.
[0059] For example, if n=11, we can find g=2, because 2 is the primitive root of 11. The verification method is as follows:
[0060] 2^1mod 11=2
[0061] 2^2mod 11=4
[0062] 2^3mod 11=8
[0063] 2^4mod 11=5
[0064] 2^5mod 11=10
[0065] 2^6mod 11=9
[0066] 2^7mod 11=7
[0067] 2^8mod 11=3
[0068] 2^9mod11=6
[0069] 2^10mod11=1
[0070] From the above calculation, we can see that the continuous power operation of 2 can traverse the entire set of remainder classes modulo 11, and the same result will not appear in the calculation of 2^x mod 11, so 2 is the primitive root of 11.
[0071] A private key s is selected, where s is generally a random number. In this embodiment, s must be kept strictly confidential, and only authorized entities can know its value. Any leakage of s may lead to the cracking of the encryption system. s should be a large prime number to increase the difficulty of the discrete logarithm problem. Selecting a large prime number helps to improve the security of the system. The private key s here is the secret key obtained during the parameter selection process.
[0072] Specifically, the public key h is calculated based on the modulus, generator and private key. The calculation formula of the public key is:
[0073] h= s
[0074] The public key h can be shared publicly with entities that need to access encrypted data, such as the data receiver, but the private key s can only be held by authorized security entities.
[0075] In step S102, the plaintext to be encrypted is encoded. In this embodiment, binary encoding can be used to encode the plaintext to be encrypted. The plaintext to be encrypted is converted into a binary string to obtain a plaintext binary string, and then the plaintext binary string is mapped to obtain an initial ciphertext polynomial.
[0076] Specifically, each binary bit can be mapped to a polynomial coefficient. For example, the plaintext binary string 1010 can be mapped to the initial ciphertext polynomial c(x)= 3 +.
[0077] In this embodiment, a polynomial in a polynomial ring may also be used for encoding. This polynomial ring may be a polynomial ring of integer modulus n, where n is the previous modulus. Such an encoding method can implement homomorphic encryption operations by operating on polynomials.
[0078] Assume that the modulus n = 21, the initial ciphertext polynomial c(x) = 3 +, random value r = 4, the polynomial corresponding to the public key h is h(x), then the target ciphertext polynomial is (x 3 +)+4h(x)21, where the modulus n=21 is used to perform modular operation on the target ciphertext polynomial to ensure that the result is in the range of 0-20.
[0079] The modulus n is used to perform modular operations in the construction of the ciphertext polynomial to ensure the correctness and security of the encryption operation. In this way, even if noise or errors are introduced during the encryption and decryption process, the modulus n operation can ensure that the result is still correct and valid.
[0080] Furthermore, in order to further improve the security and privacy of the encrypted data, a noise polynomial e(x) is randomly generated in this embodiment. Figure 2 ,include:
[0081] S201, determining polynomial coefficients based on a preset probability distribution model;
[0082] S202, obtaining a generated noise polynomial based on the polynomial coefficients;
[0083] S203: Obtain a target ciphertext polynomial based on the noise polynomial and the initial ciphertext polynomial.
[0084] In this embodiment, the probability distribution model can adopt a Gaussian distribution model, and the mean μ and standard deviation σ of the high-speed distribution are selected. These parameters determine the nature of the noise. For each polynomial degree i, a random number ri is generated from the Gaussian distribution as the polynomial coefficient. The noise polynomial is constructed using the generated polynomial coefficient ri as follows:
[0085] e(x)=r0+r1·x+r2·x2 +...+r n-1 ·x n-1
[0086] Where n is the degree of the polynomial. The generated noise polynomial e(x) is added to the original ciphertext polynomial c(x) to increase the security and privacy of the data. This can be achieved by adding operations on the polynomial ring.
[0087] For example: Assume that there is an original ciphertext polynomial c(x) = (m(x) + (x)) 2 mod x n +1, m(x) is the plaintext polynomial, r(x) is the random number polynomial, e(x) is the noise polynomial, and n is the modulus.
[0088] In homomorphic encryption, m(x) is the initial ciphertext polynomial that maps the plaintext to be encrypted. For example, if the data to be encrypted is the value 10, the corresponding initial ciphertext polynomial m(x) can be m(x) = x^3 + x^2.
[0089] r(x) is a random polynomial whose purpose is to increase the security and privacy of the encrypted data. During the encryption process, the random polynomial is added to the initial ciphertext polynomial. Each coefficient of this polynomial is usually randomly selected from a specific distribution, such as a Gaussian distribution.
[0090] In this way, the target ciphertext polynomial generated by combining the noise polynomial and the random polynomial contains noise and random numbers. It is more difficult for the attacker to accurately analyze and decrypt the encrypted data without knowing the noise values of the public key and private key.
[0091] Step S104, in this embodiment, the target ciphertext polynomial c(x) is calculated to determine the ciphertext corresponding to the plaintext to be encrypted, and the formula can be used:
[0092] c(x)=(m(x)+2·e(x)+(x)) 2 modx n +1
[0093] The target ciphertext polynomial c(x) is converted into a specific ciphertext form for transmission, and the generated ciphertext is transmitted to the receiving end.
[0094] In another embodiment of the present embodiment, after obtaining the target ciphertext polynomial, homomorphic multiplication or homomorphic addition may be performed on the target ciphertext polynomial.
[0095] Among them, the homomorphic multiplication operation for two ciphertexts c1() and c2() is as follows:
[0096] c mul(x) = 1(x)·c2(x)modx n +1
[0097] Homomorphic multiplication allows plaintext to be multiplied in ciphertext state, and the result after decryption matches the result of plaintext multiplication. This means that if there are two ciphertexts c1 and c2, corresponding to plaintexts M1 and M2 respectively, a ciphertext C3 = C1·C2 can be obtained under homomorphic multiplication, and decrypting C3 can get M1·M2.
[0098] Application scenarios of homomorphic multiplication include statistical analysis of encrypted data, training of machine learning models, etc. For example, energy data can be used to train machine learning models in an encrypted state without exposing the patient's plaintext data.
[0099] Among them, the homomorphic addition operation for two ciphertexts c1() and c2() is as follows:
[0100] C add (x)=1(x)+2(x)modx n +1
[0101] Similar to addition and multiplication, the application scenarios of homomorphic addition include entrusting calculations in an encrypted state without exposing plaintext data. For example, in edge computing, users can upload encrypted data to a central server, which performs the corresponding calculations and returns the ciphertext results, which the user then decrypts to obtain the final result.
[0102] That is, the key generation process includes parameter selection, private key generation, and public key calculation. Then, by binary encoding the plaintext to be encrypted, the generated noise polynomial is added to the original ciphertext polynomial to achieve the noise addition step of homomorphic encryption. In addition, homomorphic multiplication and homomorphic addition operations are performed, which enables multiplication and addition operations in the ciphertext state, thereby achieving complex calculations on encrypted data.
[0103] In addition, in order to further ensure the security of information, the public key needs to be updated regularly in this embodiment. In order to prevent the public key from being intercepted during the transmission process, drones are used here to distribute the public key. Here, the drone inspection system can be combined to synchronously issue the public key during the inspection task. Since the drone inspection system and the normal data transmission of the new energy station do not belong to the same system, the probability of being intercepted is very low, which further increases the security of data transmission. Since the currently configured drones are also equipped with edge computing devices, and the amount of data of the public key itself is relatively small, there is no need to improve the original architecture to distribute the public key in this way, and there will not be too many improvements to the drone's lines.
[0104] It is worth mentioning that homomorphic encryption has a large computational overhead, which may increase the computational burden of edge devices, especially for edge devices with limited resources. Therefore, according to the actual application scenarios and needs of new energy sites, when choosing homomorphic encryption, in this embodiment, you can choose to homomorphically encrypt only the more important data to achieve a trade-off between security and performance. For example, data such as power load, energy usage patterns, security camera surveillance videos, intrusion detection system data, employee information, access logs, permission settings, etc. However, data such as device status and energy consumption do not require the above-mentioned security protection. Of course, if the computing power can meet the encryption of all data, all the above data can also be encrypted according to the method disclosed in this embodiment.
[0105] As can be seen from the above, in order to reduce the computing burden of edge devices, this embodiment chooses to selectively perform homomorphic encryption on data such as energy production. In practical applications, encryption technology means are flexibly selected according to data types and requirements to achieve a balance between security and performance.
[0106] This embodiment also describes the step of adding noise, including generating a noise polynomial, normalizing the noise, and adding the noise to the ciphertext. This step helps to improve the randomness of the ciphertext and increase the security of the system.
[0107] This embodiment also discloses homomorphic multiplication and homomorphic addition operations. These two operations allow multiplication and addition operations to be performed in the ciphertext state, thereby enabling complex calculations on encrypted data. This is one of the core technologies of the homomorphic encryption system.
[0108] In order to ensure the security of the public key, this embodiment uses a drone to distribute the public key. This technical means helps prevent the public key from being intercepted during transmission, thereby improving the security of data transmission.
[0109] Reference Figure 3 The embodiment of the present application also discloses a big data transmission encryption protection device, including a public key acquisition module 1, a plaintext encoding module 2, a public key encryption module 3 and a ciphertext acquisition module 4, wherein the public key acquisition module 1 is used to obtain encryption parameters and determine the public key based on the encryption parameters; the plaintext encoding module 2 is used to obtain the plaintext to be encrypted, encode the plaintext to be encrypted, and obtain the initial ciphertext polynomial; the public key encryption module 3 is used to encrypt the initial ciphertext polynomial based on the public key to obtain the target ciphertext polynomial; the ciphertext acquisition module 4 is used to obtain the ciphertext corresponding to the plaintext to be encrypted based on the target ciphertext polynomial.
[0110] It should be noted that the above explanation of an embodiment of a method for encrypting and protecting large data transmission is also applicable to an apparatus for encrypting and protecting large data transmission in this embodiment, and will not be repeated here.
[0111] In order to implement the above embodiments, the present application also proposes an electronic device, comprising: a processor, and a memory communicatively connected to the processor; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory to implement the method provided by the above embodiments.
[0112] In order to implement the above embodiments, the present application also proposes a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the methods provided by the above embodiments.
[0113] In order to implement the above embodiments, the present application also proposes a computer program product, including a computer program, which implements the methods provided by the above embodiments when executed by a processor.
[0114] The collection, storage, use, processing, transmission, provision and disclosure of user personal information involved in this application are in compliance with relevant laws and regulations and do not violate public order and good morals.
[0115] It should be noted that personal information from users should be collected for legitimate and reasonable purposes and should not be shared or sold outside of these legitimate uses. In addition, such collection / sharing should be carried out after receiving the user's informed consent, including but not limited to notifying the user to read the user agreement / user notice and sign the agreement / authorization including authorization of relevant user information before the user uses the function. In addition, any necessary steps should be taken to protect and safeguard access to such personal information data and ensure that others who have access to personal information data comply with its privacy policy and procedures.
[0116] The present application is expected to provide an implementation scheme for users to selectively block the use or access of personal information data. That is, the present disclosure is expected to provide hardware and / or software to prevent or block access to such personal information data. Once the personal information data is no longer needed, the risk can be minimized by limiting data collection and deleting the data. In addition, when applicable, such personal information is de-identified to protect the privacy of the user.
[0117] In the description of the aforementioned embodiments, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0118] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0119] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0120] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic devices), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.
[0121] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0122] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0123] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0124] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present application. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present application.
Claims
1. A method for encryption protection of big data transmission, It is characterized in that The following steps are involved: Obtaining encryption parameters, and determining a public key based on the encryption parameters; Obtaining a plaintext to be encrypted, encoding the plaintext to be encrypted, and obtaining an initial ciphertext polynomial; Encrypting the initial ciphertext polynomial based on the public key to obtain a target ciphertext polynomial; Based on the target ciphertext polynomial, a ciphertext corresponding to the plaintext to be encrypted is obtained.
2. The method according to claim 1, It is characterized in that The encryption parameters include a modulus, a generator and a private key.
3. The method according to claim 2, It is characterized in that The calculation expression of the public key is: h=g s mod n In the formula, h is the public key, g is the generator, n is the modulus, and s is the private key.
4. The method according to claim 3, It is characterized in that The calculation method of the modulus n is: n=q·t Where q and t are large prime numbers.
5. The method according to claim 1, It is characterized in that The step of encrypting the plaintext polynomial based on the public key to obtain a ciphertext polynomial includes: Determining polynomial coefficients based on a preset probability distribution model; Based on the polynomial coefficients, obtaining a generated noise polynomial; A target ciphertext polynomial is obtained based on the noise polynomial and the initial ciphertext polynomial.
6. The method according to claim 1, It is characterized in that The step of encoding the plaintext to be encrypted to obtain an initial ciphertext polynomial includes: Performing binary conversion on the plaintext to be encrypted to obtain a plaintext binary string; Based on the plaintext binary string, an initial ciphertext polynomial is mapped.
7. A big data transmission encryption protection device, It is characterized in that include: A public key acquisition module, used to acquire encryption parameters and determine a public key based on the encryption parameters; A plaintext encoding module, used to obtain the plaintext to be encrypted, encode the plaintext to be encrypted, and obtain an initial ciphertext polynomial; A public key encryption module, used to encrypt the initial ciphertext polynomial based on the public key to obtain a target ciphertext polynomial; The ciphertext acquisition module is used to acquire the ciphertext corresponding to the plaintext to be encrypted based on the target ciphertext polynomial.
8. An electronic device, It is characterized in that include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 6.
9. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the method according to any one of claims 1 to 6.
10. A computer program product, It is characterized in that The invention comprises a computer program, which implements the method according to any one of claims 1 to 6 when executed by a processor.
Citation Information
Cited By
Transmission method and device based on input and output system file and storage medium
CN118945157A
