A polar code-based wireless keyboard encryption transmission method and device

By using Polar code encryption, combined with non-cloning functions and AES encryption, the security issues in wireless keyboard data transmission are resolved, ensuring legitimate device access and secure data transmission.

CN119363340BActive Publication Date: 2026-06-19WUHAN PANSHENG DINGCHENG TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
WUHAN PANSHENG DINGCHENG TECH CO LTD
Filing Date
2024-10-23
Publication Date
2026-06-19

Smart Images

  • Figure CN119363340B_ABST
    Figure CN119363340B_ABST
Patent Text Reader

Abstract

This invention relates to a method and apparatus for encrypted transmission of wireless keyboard data based on Polar codes. The method includes: generating a unique key using a non-cloning function when the wireless keyboard is started; establishing a non-cloning function authentication mechanism based on the unique key to verify the access device of the wireless keyboard; acquiring the interaction data between the verified access device and the wireless keyboard; performing double encryption on the interaction data based on the unique key using data self-coupling and lightweight AES encryption; encoding the encrypted data using Polar codes and transmitting it to the access device; and decoding the encrypted data using AES encryption and Polar code decoding to obtain the input and output data of the wireless keyboard. This invention improves the security of data and device access for the wireless keyboard by combining non-cloning functions and Polar codes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of wireless keyboard and communication technology, specifically relating to a wireless keyboard encryption transmission method and device based on Polar codes. Background Technology

[0002] Security is paramount during data transmission via wireless keyboards. Unencrypted wireless transmissions are vulnerable to interception by malicious attackers, potentially leading to the leakage of users' private data. Furthermore, unauthorized device access can also threaten the security of data transmission. Summary of the Invention

[0003] To improve the security of data and access to wireless keyboards, a first aspect of the present invention provides a wireless keyboard encrypted transmission method based on Polar codes, comprising: generating a unique key using a non-cloning function when the wireless keyboard is started; establishing a non-cloning function authentication mechanism based on the unique key to verify the access device of the wireless keyboard; acquiring the interaction data between the verified access device and the wireless keyboard; performing double encryption on the interaction data based on the unique key using data self-coupling and lightweight AES encryption; encoding the encrypted data using Polar codes and transmitting it to the access device; and decoding the encrypted data using AES encryption and Polar code decoding to obtain the input and output data of the wireless keyboard.

[0004] In some embodiments of the present invention, the step of establishing an unclonable function authentication mechanism based on a unique key to verify the access device of the wireless keyboard includes: in response to a random challenge input by the access device, generating a corresponding response through an unclonable function; comparing the corresponding response with a preset reference response; and verifying the wireless keyboard access device if the Hamming distance between the corresponding response and the reference response is not greater than a threshold.

[0005] In some embodiments of the present invention, the step of performing dual encryption on the interactive data based on a unique key through data self-coupling and lightweight AES encryption includes: dividing the interactive data into first key generation data and first encrypted data; encrypting the first key generation data and the first encrypted data respectively using a unique key and a coupling function; and using the unique key as the AES encryption key to encrypt the encrypted generation data and the encrypted data.

[0006] Furthermore, the step of encrypting the key generation data and the encrypted data using a unique key and a coupling function includes: performing XOR encryption on the first encrypted data using the unique key to obtain the second encrypted data; and encrypting the first key generation data using the unique key and the coupling function to obtain the second encryption key generation data.

[0007] In the above embodiments, the step of encoding the encrypted data using Polar codes and transmitting it to the access device includes: recursively constructing a Polar code generation matrix; randomly freezing the encrypted data; and encoding the randomly frozen data using the Polar code generation matrix.

[0008] In some embodiments of the present invention, generating a unique key using a non-clonable function includes: generating multiple challenge-response pairs using a non-clonable function when the wireless keyboard is started or initialized; and processing the multiple challenge-response pairs using a fuzz extractor to generate a unique key.

[0009] A second aspect of the present invention provides a wireless keyboard encryption transmission device based on Polar codes, comprising: a generation module for generating a unique key using a non-cloning function when the wireless keyboard is started; a verification module for establishing a non-cloning function authentication mechanism based on the unique key to verify the access device of the wireless keyboard; an encryption module for acquiring the interaction data between the verified access device and the wireless keyboard; and for performing double encryption on the interaction data based on the unique key using data self-coupling and lightweight AES encryption; and a decoding module for encoding the encrypted data using Polar codes and transmitting it to the access device; and for the access device to decode the encrypted data using AES encryption and Polar code decoding to obtain the input and output data of the wireless keyboard.

[0010] Furthermore, the verification module includes: a generation unit, used to generate a corresponding response through a non-cloning function in response to a random challenge input by the access device; and a comparison unit, used to compare the corresponding response with a preset reference response: if the Hamming distance between the corresponding response and the reference response is not greater than a threshold, then the verification is successful.

[0011] A third aspect of the present invention provides an electronic device, comprising: one or more processors; and a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the wireless keyboard encryption transmission method based on Polar codes provided in the first aspect of the present invention.

[0012] In a fourth aspect, the present invention provides a computer-readable medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the wireless keyboard encryption transmission method based on Polar codes provided in the first aspect of the present invention.

[0013] The beneficial effects of this invention are:

[0014] This invention ensures the legitimacy of the device through a PUF key generation and authentication mechanism. Then, it protects the security of key information through multi-layer encryption (self-coupling encryption, Polar code physical layer encryption, and AES lightweight encryption). Finally, it ensures the accurate transmission of user input through secure transmission and decoding via a wireless channel. Attached Figure Description

[0015] Figure 1 This is a schematic diagram of the basic process of a wireless keyboard encryption transmission method based on Polar codes in some embodiments of the present invention;

[0016] Figure 2 This is a schematic diagram illustrating the specific process of the dual encryption method in some embodiments of the present invention;

[0017] Figure 3 This is a schematic diagram of the structure of a wireless keyboard encryption transmission device based on Polar code in some embodiments of the present invention;

[0018] Figure 4 This is a schematic diagram of the structure of an electronic device in some embodiments of the present invention. Detailed Implementation

[0019] The principles and features of the present invention are described below with reference to the accompanying drawings. The examples given are only for explaining the present invention and are not intended to limit the scope of the present invention.

[0020] refer to Figure 1 and Figure 2 In a first aspect of the present invention, a wireless keyboard encryption transmission method based on Polar codes is provided, comprising: S100. generating a unique key using a non-cloning function when the wireless keyboard is started; S200. establishing a non-cloning function authentication mechanism based on the unique key to verify the access device of the wireless keyboard; S300. acquiring the interaction data between the verified access device and the wireless keyboard; and performing double encryption on the interaction data using data self-coupling and lightweight AES encryption based on the unique key; S400. encoding the encrypted data using Polar codes and transmitting it to the access device; and the access device decoding the encrypted data using AES encryption and Polar code decoding to obtain the input and output data of the wireless keyboard.

[0021] It is understood that the receiving or access devices for the aforementioned wireless keyboards include, but are not limited to: Personal computers (PCs): including desktops and laptops, which typically connect to the wireless keyboard via USB or Bluetooth; Laptops: many laptops also support pairing with wireless keyboards via Bluetooth. Tablets: devices running Windows, iOS, or Android operating systems that connect to the wireless keyboard via Bluetooth. Smartphones: currently pairing with wireless keyboards via Bluetooth for text input. Smart TVs and TV boxes: some smart TVs and TV boxes support Bluetooth and can connect to the wireless keyboard as a remote control. Game consoles: such as PlayStation and Xbox, which may support connection to the wireless keyboard via a wireless receiver or Bluetooth. Raspberry Pi: this microcomputer can also connect to the wireless keyboard via Bluetooth or USB. Smart home devices: some smart home devices, such as smart central control systems, may support the wireless keyboard as an input device. Industrial control computers or corresponding host computers: such as certain industrial control systems or professional audio / video equipment, which may be designed with specific wireless interfaces to receive keyboard input.

[0022] It's important to note that a Physically Unclonable Function (PUF) is a security technique based on the physical characteristics of hardware, used to extract a random and unique key from the physical properties of the device itself. PUFs rely on minute, unavoidable variations in the device manufacturing process; these variations manifest as randomness in the integrated circuit, generating unique responses that allow each device to generate a different key.

[0023] PUF works by receiving an input challenge and outputting a corresponding response. The input challenge is typically a bit sequence, and upon receiving the challenge, the PUF generates a corresponding response based on the device's physical characteristics. Because these physical characteristics are determined by minute random variations in the manufacturing process, even devices of the same model will have different PUF responses. This characteristic allows PUF to be used as a hardware security primitive for cryptographic key generation and authentication.

[0024] A typical PUF structure can be represented as: Let the challenge be... C Its length is n bits, representing the input challenge sequence. Let the response be... R Its length is m The bit represents the corresponding response sequence.

[0025] The mapping relationship of PUF can be described as follows:

[0026] R=PUF(C ),

[0027] in, PUFThe function will challenge C Mapping to response R .

[0028] In step S100 of some embodiments of the present invention, generating a unique key through a non-cloning function includes:

[0029] S101. When the wireless keyboard is started or initialized, multiple challenge-response pairs are generated through a non-clonable function;

[0030] Specifically, during device startup or manufacturing, a unique key is first generated using a Physically Unclonable Function (PUF). The PUF utilizes physical characteristics within the device (such as transistor differences) to generate a unique response. Each time an input challenge is received, the PUF generates a unique key.

[0031] The generation process is as follows: When the device starts up or initializes, it generates multiple challenge-response pairs via PUF (Programmable Array Components). CRP ),like CRP ={( C 1 , R 1 ),( C 2 , R 2 ),( C k . R k )},in C k For the challenge, R k This is the corresponding PUF response.

[0032] S102. The multiple challenge-response pairs are processed by a fuzz extractor to generate a unique key.

[0033] Since the PUF response may be affected by noise, a fuzzy extractor is used to process the PUF response, generating a stable key K and auxiliary data P to ensure the stability of the key.

[0034] ( K , P )= Gen(R),

[0035] in K It is the device's unique key. P This is supplementary data used for subsequent authentication and key reconstruction.

[0036] Before the wireless keyboard attempts to establish a connection with the receiver, the PUF authentication mechanism is used for identity verification, ensuring that only legitimate devices can access the system. The system stores the device's challenge-response pairs to verify the device's uniqueness.

[0037] Therefore, in step S200 of some embodiments of the present invention, the step of establishing an unclonable function authentication mechanism based on a unique key to verify the access device of the wireless keyboard includes:

[0038] S201. In response to a random challenge input by the access device, generate a corresponding response using a non-cloning function;

[0039] Specifically, the system sends a random challenge. C Send to wireless keyboard device R The device uses PUF to generate the corresponding response.

[0040] S202. Compare the corresponding response with the preset reference response: if the Hamming distance between the corresponding response and the reference response is not greater than the threshold, the verification is successful.

[0041] Specifically, the response R 'With stored reference response R Comparison, if Hamming distance d H ( R , R Then the authentication is successful:

[0042] ;

[0043] Without loss of generality, the PUF response can be affected by environmental factors (such as temperature and voltage), leading to some differences in the responses generated at different times. Therefore, it is necessary to perform stability testing on the generated responses to ensure their consistency under different environments. This is typically achieved by repeatedly generating the responses and calculating the Hamming distance between them.

[0044] Let the responses generated under different environmental conditions be ,in j To indicate different environmental conditions. i Indicates the first i This presents a challenge. Response stability can be calculated using Hamming distance as follows:

[0045]

[0046] in, d H This represents the average Hamming distance, and k represents the number of bits in the data. If d H Less than the preset threshold δIf the response is positive, it is considered stable. Otherwise, error correction measures are needed to ensure the reliability of the key.

[0047] This step completes device authentication, ensuring that only legitimate devices can send encrypted keyboard data. Optionally, distances such as Euclidean distance or seismic distance can be used to compare the differences in responses.

[0048] In step S300 of some embodiments of the present invention, the double encryption of the interactive data based on a unique key through data self-coupling and lightweight AES encryption includes:

[0049] S301. Divide the interactive data into first key generation data and first encrypted data;

[0050] Specifically, the user inputs data via a wireless keyboard. The wireless keyboard then collects the user's input data (such as keystrokes) and generates a raw data bit sequence. This stage involves interaction between the user and the device; the keystroke information is recorded as digital signals by sensors.

[0051] User input generation: Assume that user input keystrokes are encoded as bit sequences. M ={ m 1 , m 2 , … , m k This will become the raw data for the subsequent encryption process.

[0052] S302. Encrypt the first key generation data and the first encrypted data respectively using a unique key and a coupling function;

[0053] User input data M Divided into two parts: M 1 (Key generation section) and M 2 (Encrypted data section). Key generated using PUF K right M 2 Perform XOR encryption:

[0054] C 1= M 2 ⊕ K ′ ,

[0055] Then use: M 1 and K Generate a new encryption keyK ′:

[0056] K ′= g ( M 1 , K ) ,

[0057] Where g represents the coupling function 。

[0058] S303. Use the unique key as the AES encryption key to encrypt the generated data and the encrypted data.

[0059] Specifically, lightweight encryption algorithms such as AES are used to encrypt the data, increasing the difficulty for attackers to recover the original information. The encryption process is as follows:

[0060] C 2 =AES k (C 1 );

[0061] After data encryption is complete, the device transmits the encrypted data wirelessly to the receiving end. At the receiving end, the data is decoded and decrypted to restore it to its original state.

[0062] In step S400 of some embodiments of the present invention, encoding the encrypted data using Polar codes and transmitting it to the access device includes:

[0063] S401. Construct the Polar code generation matrix recursively;

[0064] Specifically, the Polar code generation matrix is ​​constructed recursively. G N ,in GN=BNF ⊗n .

[0065] S402. The encrypted data is randomly frozen; a matrix is ​​generated using Polar codes to encode the randomly frozen data.

[0066] Specifically, certain bits in the data are set to freeze bits (usually 0), and these bits are randomized to further enhance the encryption effect. Freeze bit sequence f i Randomized to:

[0067] f i ~Uniform(0,1),

[0068] Then, the data is encoded by generating a matrix:

[0069] x=uG N,

[0070] in u= [ u 1 ,u 2 ,…,u N This includes information bits and freeze bits.

[0071] Specifically, during encoding, it's possible to dynamically select which channels to use for information transmission, rather than always using the most reliable channel. This random mapping is represented as:

[0072] π: {1,2,…,K} → {1,2,…,N},

[0073] in, π It is a random mapping function that maps information bits to different sub-channels, thereby enhancing encryption.

[0074] Furthermore, physical layer security can be further enhanced by dynamically generating a frozen key. This key can be determined based on the session key or a dynamically generated key from the PUF. Assuming the dynamically generated key from the PUF is... K PUF The frozen bit key can be generated using a cryptographic hash function:

[0075] f=H ( KPUF ),

[0076] in, H It is a hash function that maps the PUF-generated key to a frozen bit sequence of length . This ensures that the frozen bit sequence is different each time data is transmitted, thus improving encryption security.

[0077] It is understandable that by randomizing the frozen bits and generating dynamic keys, Polar codes can enhance the encryption effect at the physical layer, increasing the difficulty for attackers to eavesdrop. Compared with other complex encryption algorithms, the encoding and decoding process of Polar codes is relatively simple, making them suitable for resource-constrained devices. Polar codes themselves have good error correction performance, which can improve the reliability of data transmission and maintain a low bit error rate even in noisy environments.

[0078] In particular, in applications requiring higher encryption strength and dynamic key management, such as high-security wireless devices, Turbo-Polar codes are used to perform multiple puncturing and bit scrambling operations on the data, increasing encryption complexity and thus enhancing data security. PUF technology is combined to generate dynamic keys, and different keys are used for encryption before each data transmission to prevent security risks caused by the long-term use of the same key. An optimized Turbo-Polar code decoding algorithm is employed at the receiving end to reduce decoding complexity and power consumption.

[0079] S403. The access device decodes the encrypted data through AES encryption and Polar code decoding to obtain the input and output data of the wireless keyboard;

[0080] Specifically, after receiving the encrypted data, the receiving end decrypts and decodes it sequentially to recover the original key information: first, it uses the same PUF key as the sending end. K Perform AES decryption to restore the data to its Polar code encryption state:

[0081] C 1 =AES k -1 (C 2 );

[0082] The receiving end uses the successive elimination decoding (SCD) algorithm of Polar codes to decode the data and recover the information bits. u and freeze position f Finally, use the decryption key. K 'and M 1 Restore original data M 2 This allows us to obtain the original user input.

[0083] Example 2

[0084] refer to Figure 3In a second aspect, the present invention provides a wireless keyboard encryption transmission device 1 based on Polar codes, comprising: a generation module 11, configured to generate a unique key using a non-cloning function when the wireless keyboard is started; a verification module 12, configured to establish a non-cloning function authentication mechanism based on the unique key to verify the access device of the wireless keyboard; an encryption module 13, configured to acquire the interaction data between the verified access device and the wireless keyboard; and to perform double encryption on the interaction data based on the unique key using data self-coupling and lightweight AES encryption; and a decoding module 14, configured to encode the encrypted data using Polar codes and transmit it to the access device; and the access device to decode the encrypted data using AES encryption and Polar code decoding to obtain the input and output data of the wireless keyboard.

[0085] Furthermore, the verification module 12 includes: a generation unit, used to generate a corresponding response through a non-cloning function in response to a random challenge input by the access device; and a comparison unit, used to compare the corresponding response with a preset reference response: if the Hamming distance between the corresponding response and the reference response is not greater than a threshold, then the verification is successful.

[0086] Example 3

[0087] refer to Figure 4 A third aspect of the present invention provides an electronic device comprising: one or more processors; and a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the Polar code-based wireless keyboard encrypted transmission method of the first aspect of the present invention.

[0088] Electronic device 500 may include a processing unit (e.g., a central processing unit, a graphics processing unit, etc.) 501, which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 502 or a program loaded from storage device 508 into random access memory (RAM) 503. The RAM 503 also stores various programs and data required for the operation of electronic device 500. The processing unit 501, ROM 502, and RAM 503 are interconnected via bus 504. An input / output (I / O) interface 505 is also connected to bus 504.

[0089] Typically, the following devices can be connected to I / O interface 505: input devices 506 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 507 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 508 including, for example, hard disks; and communication devices 509. Communication device 509 allows electronic device 500 to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 4 An electronic device 500 with various devices is shown; however, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively. Figure 4 Each box shown can represent a device or multiple devices as needed.

[0090] Specifically, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device 509, or installed from a storage device 508, or installed from a ROM 502. When the computer program is executed by a processing device 501, it performs the functions defined in the methods of embodiments of this disclosure. It should be noted that the computer-readable medium described in embodiments of this disclosure can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In embodiments of this disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in connection with an instruction execution system, apparatus, or device. In embodiments of this disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. Program code contained on a computer-readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.

[0091] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device. The aforementioned computer-readable medium carries one or more computer programs, which, when executed by the electronic device, cause the electronic device to:

[0092] Computer program code for performing the operations of embodiments of this disclosure can be written in one or more programming languages ​​or a combination thereof. Programming languages ​​include object-oriented programming languages—such as Java, Smalltalk, C++, and Python—and conventional procedural programming languages—such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0093] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0094] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.

Claims

1. A wireless keyboard encryption transmission method based on Polar codes, characterized in that, include: A unique key is generated using a non-clonable function when the wireless keyboard starts up; A unique key is used to establish an authentication mechanism that prevents cloning of functions to verify the access devices of the wireless keyboard. Acquire interaction data between verified access devices and the wireless keyboard; Based on a unique key, the interactive data is double-encrypted through data self-coupling and lightweight AES encryption: the interactive data is divided into first key generation data and first encrypted data; The first key generation data and the first encrypted data are encrypted using a unique key and a coupling function, respectively; the unique key is then used as the AES encryption key to encrypt the first encrypted data using AES, resulting in the second encrypted data. The step of encrypting the key generation data and the encrypted data using a unique key and a coupling function includes: performing XOR encryption on the first encrypted data using the unique key to obtain the second encrypted data; and generating the second encryption key based on the first key generation data and the unique key using the coupling function. The encrypted data is encoded using Polar codes and transmitted to the access device. The access device then decodes the encrypted data using AES encryption and Polar code decoding to obtain the input and output data of the wireless keyboard.

2. The wireless keyboard encryption transmission method based on Polar codes according to claim 1, characterized in that, The method of establishing an unclonable function authentication mechanism based on a unique key to verify the access device of the wireless keyboard includes: In response to random challenges input by access devices, a corresponding response is generated using a non-clonable function; The corresponding response is compared with a preset reference response: if the Hamming distance between the corresponding response and the reference response is not greater than a threshold, the verification is successful.

3. The wireless keyboard encryption transmission method based on Polar codes according to claim 1, characterized in that, The process of encoding the encrypted data using Polar codes and transmitting it to the access device includes: A Polar code generation matrix is ​​constructed recursively. The encrypted data is then randomly frozen. A matrix is ​​generated using Polar codes to encode the randomly frozen data.

4. The wireless keyboard encryption transmission method based on Polar codes according to claim 1, characterized in that, The generation of a unique key using a non-cloning function includes: When the wireless keyboard is started or initialized, multiple challenge-response pairs are generated using a non-clonable function; The multiple challenge-response pairs are processed by a fuzz extractor to generate a unique key.

5. A wireless keyboard encryption transmission device based on Polar codes, characterized in that, include: The generation module is used to generate a unique key using a non-clonable function when the wireless keyboard is started. The verification module is used to establish an unclonable function authentication mechanism based on a unique key to verify the access device of the wireless keyboard. An encryption module is used to acquire interaction data between the authenticated access device and the wireless keyboard; Based on a unique key, the interactive data is double-encrypted through data self-coupling and lightweight AES encryption: the interactive data is divided into first key generation data and first encrypted data; The first key generation data and the first encrypted data are encrypted using a unique key and a coupling function, respectively; the unique key is then used as the AES encryption key to encrypt the first encrypted data using AES, resulting in the second encrypted data. The step of encrypting the key generation data and the encrypted data using a unique key and a coupling function includes: performing XOR encryption on the first encrypted data using the unique key to obtain the second encrypted data; and generating the second encryption key based on the first key generation data and the unique key using the coupling function. The decoding module is used to encode the encrypted data using Polar code and transmit it to the access device; the access device decodes the encrypted data using AES encryption and Polar code decoding to obtain the input and output data of the wireless keyboard.

6. The wireless keyboard encryption transmission device based on Polar code according to claim 5, characterized in that, The verification module includes: The generation unit is used to generate a corresponding response through a non-clonable function in response to a random challenge input by the access device. The comparison unit is used to compare the corresponding response with a preset reference response: if the Hamming distance between the corresponding response and the reference response is not greater than a threshold, the verification is successful.

7. An electronic device, comprising: One or more processors; A storage device for storing one or more programs, which, when executed by one or more processors, cause the one or more processors to implement the Polar code-based wireless keyboard encrypted transmission method as described in any one of claims 1 to 4.

8. A computer-readable medium having a computer program stored thereon, wherein, When the computer program is executed by the processor, it implements the wireless keyboard encryption transmission method based on Polar codes as described in any one of claims 1 to 4.