In-sensor encryption method based on non-volatile programming and encrypted sensor

By encrypting the phototransistor within the sensor using non-volatile programming and voltage keys, the problems of low security and high power consumption in traditional sensors are solved, realizing a highly secure and low-power encrypted sensor.

CN117354638BActive Publication Date: 2026-11-24XIDIAN UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311385191.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-24
Publication Date
2026-11-24
Estimated Expiration
2043-10-24

AI Technical Summary

Technical Problem

Traditional security algorithms based on post-processing computing units have low security at sensor nodes, are easily cracked, and the separation of sensors from computing units leads to excessive power consumption.

Method used

A sensor-internal encryption method based on non-volatile programming is adopted. Through a phototransistor array, a control circuit module, a readout circuit module, and a key generation module, the phototransistors are programmed using non-volatile programming and encrypted according to the voltage key, and the encryption operation is performed directly within the sensor.

Benefits of technology

It improves sensor security, reduces the risk of information leakage, reduces power consumption, and enhances security and reliability by using a voltage key generated by a memristor, while reducing hardware consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117354638B_ABST
    Figure CN117354638B_ABST
Patent Text Reader

Abstract

This invention discloses a sensor-based encryption method and an encrypted sensor based on non-volatile programming. The method includes: a programming module performing non-volatile programming on a phototransistor after it has been illuminated by light; a key generation module generating a voltage key and applying a threshold voltage to the gate of the programmed phototransistor according to the voltage key; simultaneously, a control circuit module applying a drain bias voltage to the drain of each programmed phototransistor to obtain an encrypted phototransistor; and a reading circuit module determining the encrypted image of the light based on the output current of the encrypted phototransistor. According to the method provided by this invention, by performing non-volatile programming on the sensor and encrypting the programmed phototransistor according to the voltage key, encryption calculations can be directly performed on the sensor's detection results within the sensor. This avoids the problems of low security and easy cracking of traditional methods that rely on post-processing computing units, thus reducing the risk of information leakage.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of information processing technology, specifically relating to a sensor encryption method and an encrypted sensor based on non-volatile programming. Background Technology

[0002] With the continuous development of the emerging Internet of Things (IoT), sensor nodes are increasingly distributed at the edge of IoT terminals. Taking image sensing as an example, the images received by edge image sensors are frequently transmitted on the IoT, which will face various threats and attacks, such as the exposure of sensitive data and the tampering of key information.

[0003] In recent years, researchers have studied encryption technologies from the perspectives of algorithms, devices, and architectures. Although advanced cryptographic systems have provided robust security solutions based on complex encryption algorithms, these traditional image encryption methods typically rely on secure algorithms executed by post-processing computing units. These computing units are physically separated from the image sensor, and the data transmission process between the sensor and the computing unit remains vulnerable to attack. Furthermore, with the advancement of machine learning, the security level of software cryptography has gradually decreased, and large-scale machine learning techniques can crack algorithms and decrypt information without keys.

[0004] Therefore, traditional security algorithms that rely on post-processing computing units have low security levels and are easily cracked. Summary of the Invention

[0005] This invention provides a sensor-based encryption method and encrypted sensor based on non-volatile programming, which can solve the problem that the current security algorithms that rely on post-processing computing units have low security levels and are easily cracked.

[0006] In a first aspect, embodiments of the present invention provide a sensor-based encryption method based on non-volatile programming. The method is applied to an encrypted sensor based on non-volatile programming, the encrypted sensor comprising a phototransistor array, a control circuit module, a readout circuit module, a programming module, and a key generation module; the method includes:

[0007] The programming module performs non-volatile programming on each phototransistor in the phototransistor array after it is illuminated by light, resulting in a programmed phototransistor; the key generation module generates a voltage key; the key generation module applies a threshold voltage to the gate of the programmed phototransistor according to the voltage key, and the control circuit module applies a drain bias voltage to the drain of each programmed phototransistor, resulting in an encrypted phototransistor; the reading circuit module determines the encrypted image of the light based on the output current of the encrypted phototransistor, wherein the output current is determined according to the illumination range of the phototransistor array and the threshold voltage of each phototransistor.

[0008] In one possible implementation of the first aspect, after the phototransistor array is illuminated by light, the programming module can apply a negative programming voltage to the gate of the phototransistor to perform non-volatile programming on the phototransistor array, thereby obtaining the programmed phototransistor.

[0009] In one possible implementation of the first aspect, the programming module may also apply a positive programming voltage to the gate of the encrypted phototransistor to erase the non-volatile programming effect of the phototransistor and restore the phototransistor to its original state.

[0010] In one possible implementation of the first aspect, the key generation module may include at least one true random number generator. Each true random number generator is connected to the gate of at least one phototransistor. The threshold voltage may include a first threshold voltage and a second threshold voltage. The true random number generator can generate at least one random number. If the random number is the first random number, the true random number generator can apply the first threshold voltage to the phototransistor connected to the true random number generator; if the random number is the second random number, the true random number generator can apply the second threshold voltage to the phototransistor connected to the true random number generator.

[0011] For example, the random number includes a first random number and a second random number.

[0012] For example, the voltage key is constructed from all random numbers.

[0013] For example, the first threshold voltage is the voltage threshold of the phototransistor transfer curve when it is not non-volatile programmed.

[0014] For example, the second threshold voltage is the voltage threshold of the phototransistor transfer curve after non-volatile programming.

[0015] In one possible implementation of the first aspect, the reading circuit module can compare the output current of each encrypted phototransistor with the magnitude of the reference current to binarize the output current of each encrypted phototransistor and obtain the value of each encrypted pixel in the encrypted image.

[0016] In one possible implementation of the first aspect, the reading circuit module can compare the output current of the encrypted phototransistor with the reference current. If the output current is greater than the reference current, the value of the encrypted pixel corresponding to the phototransistor is set to 1; if the output current is less than or equal to the reference current, the value of the encrypted pixel corresponding to the phototransistor is set to 0.

[0017] In one possible implementation of the first aspect, the reading circuit module can also send an encrypted image to the receiving end, and the key generation module can also send a voltage key to the receiving end; so that the receiving end can decrypt the encrypted image according to the voltage key to obtain the original image obtained by the sensor detecting light.

[0018] According to the method provided by the present invention, by performing non-volatile programming on the sensor and encrypting the programmed phototransistor according to the voltage key, the detection results of the sensor can be directly encrypted within the sensor. This avoids the problem that traditional security algorithms that rely on post-processing computing units have low security levels and are easily cracked, thus reducing the risk of information leakage. At the same time, direct encryption on the sensor can also avoid the problem of excessive power consumption caused by the separation of the sensor and computing unit in traditional encryption methods.

[0019] Secondly, embodiments of the present invention provide an encrypted sensor based on non-volatile programming, the sensor comprising a phototransistor array, a control circuit module, a reading circuit module, a programming module, and a key generation module;

[0020] The programming module is connected to the gate of at least one phototransistor in the phototransistor array; the key generation module is connected to the gate of the phototransistor; the control circuit module is connected to the drain of the phototransistor; and the reading circuit module is connected to the source of the phototransistor.

[0021] The programming module is used to non-volatilely program each phototransistor in the phototransistor array after it is illuminated by light, resulting in a programmed phototransistor; the key generation module is used to generate a voltage key; the key generation module is also used to apply a threshold voltage to the gate of the programmed phototransistor according to the voltage key; and the control circuit module is used to apply a drain bias voltage to the drain of each programmed phototransistor, resulting in an encrypted phototransistor; the reading circuit module is used to determine the encrypted image of the light based on the output current of the encrypted phototransistor, wherein the output current is determined based on the illumination range of the phototransistor array and the threshold voltage of each phototransistor.

[0022] In one possible implementation of the second aspect, the programming module can specifically be used to apply a negative programming voltage to the phototransistors in the phototransistor array after the phototransistor is irradiated by light, so as to perform non-volatile programming on the phototransistors and obtain the programmed phototransistors.

[0023] In one possible implementation of the second aspect, the programming module can also be used to apply a positive programming voltage to the gate of the phototransistor, and the effect of erasing the non-volatile programming causes the phototransistor to return to its original state.

[0024] In one possible implementation of the second aspect, the key generation module may include at least one true random number generator. Each true random number generator is connected to the gate of at least one phototransistor. The true random number generator can be used to generate at least one random number. If the random number is a first random number, the true random number generator can be used to apply a first threshold voltage to the phototransistor connected to the true random number generator; if the random number is a second random number, the true random number generator can be used to apply a second threshold voltage to the phototransistor connected to the true random number generator.

[0025] For example, the random number includes a first random number and a second random number.

[0026] For example, the voltage key is constructed from all random numbers.

[0027] For example, the first threshold voltage is the voltage threshold of the phototransistor transfer curve when it is not non-volatile programmed.

[0028] For example, the second threshold voltage is the voltage threshold of the phototransistor transfer curve after non-volatile programming.

[0029] In one possible implementation of the second aspect, the readout circuit module may include at least one comparator connected to the source of at least one phototransistor. The comparator can be used to compare the output current of each encrypted phototransistor with a reference current to binarize the output current of each encrypted phototransistor, thereby obtaining the value of each encrypted pixel in the encrypted image.

[0030] In one possible implementation of the second aspect, the comparator in the reading circuit module can be used to compare the output current of the encrypted phototransistor with the reference current. If the output current is greater than the reference current, the value of the encrypted pixel corresponding to the phototransistor is set to 1; if the output current is less than or equal to the reference current, the value of the encrypted pixel corresponding to the phototransistor is set to 0.

[0031] In one possible implementation of the second aspect, the reading circuit module can also be used to send an encrypted image to the receiving end, and the key generation module can also be used to send a voltage key to the receiving end; so that the receiving end can decrypt the encrypted image according to the voltage key to obtain the original image obtained by the sensor detecting light.

[0032] It is understandable that the beneficial effects of the second aspect mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here.

[0033] The beneficial effects of the embodiments of the present invention compared with the prior art are as follows: According to the method provided by the present invention, by performing non-volatile programming on the sensor and encrypting the programmed phototransistor according to the voltage key, the detection results of the sensor can be directly encrypted within the sensor, thereby avoiding the problems of low security and easy cracking of traditional security algorithms that rely on post-processing computing units, and reducing the risk of information leakage; at the same time, direct encryption on the sensor can also avoid the problem of excessive power consumption caused by the separation of the sensor and computing unit in traditional encryption methods. Attached Figure Description

[0034] Figure 1 A schematic diagram of the structure of an encrypted sensor based on non-volatile programming provided in an embodiment of the present invention;

[0035] Figure 2 A schematic diagram of a bipolar phototransistor based on a non-volatile van der Waals heterojunction is provided for an embodiment of the present invention.

[0036] Figure 3 A flowchart illustrating a sensor-based encryption method based on non-volatile programming, provided for an embodiment of the present invention;

[0037] Figure 4 This is a schematic diagram illustrating a scenario for implementing an intra-sensor encryption method based on non-volatile programming, as provided in an embodiment of the present invention.

[0038] Figure 5 A comparative schematic diagram of the transfer characteristic curves of a phototransistor provided in an embodiment of the present invention;

[0039] Figure 6 This is a schematic diagram of the truth table of the output current of an encrypted phototransistor provided in an embodiment of the present invention. Detailed Implementation

[0040] The present invention will be further described in detail below with reference to specific embodiments, but the implementation of the present invention is not limited thereto.

[0041] Figure 1 The diagram illustrates the structure of an encrypted sensor based on non-volatile programming provided in an embodiment of the present invention. As an example and not a limitation, the encrypted sensor 100 may include a phototransistor array 110, a control circuit module 120, a reading circuit module 130, a programming module 140, and a key generation module 150.

[0042] The programming module is connected to the gate of at least one phototransistor in the phototransistor array;

[0043] The key generation module is connected to the gate of the phototransistor;

[0044] The control circuit module is connected to the drain of the phototransistor;

[0045] The readout circuit module is connected to the source of the phototransistor;

[0046] The programming module is used to perform non-volatile programming on each phototransistor in the phototransistor array after it has been exposed to light, so as to obtain the programmed phototransistor.

[0047] The key generation module is used to generate voltage keys;

[0048] The key generation module is also used to apply a threshold voltage to the gate of the programmed phototransistor according to the voltage key, and the control circuit module is used to apply a drain bias voltage to the drain of each programmed phototransistor to obtain an encrypted phototransistor.

[0049] The reading circuit module is used to determine the encrypted image of the light based on the output current of the encrypted phototransistor.

[0050] For example, the output current is determined based on the illumination range of the phototransistor array and the threshold voltage of each phototransistor.

[0051] For example, an encrypted sensor can be used to detect light illuminating a phototransistor array and obtain a raw image of the light.

[0052] For example, the threshold voltage may include a first threshold voltage and a second threshold voltage. The first threshold voltage may be the voltage threshold of the phototransistor transfer curve when the phototransistor is not non-volatile programmed, and the second threshold voltage may be the voltage threshold of the phototransistor transfer curve after non-volatile programming.

[0053] In some embodiments, the phototransistor array may include at least one phototransistor.

[0054] For example, a phototransistor may be a bipolar phototransistor based on a nonvolatile van der Waals heterojunction.

[0055] For example, see Figure 2 The phototransistor can be constructed from a heterostructure based on WSe2 / h-BN / Al2O3. In this structure, multiple layers of WSe2 and h-BN are stacked to form a van der Waals heterostructure as the channel, and Al2O3 serves as the dielectric layer.

[0056] In some embodiments, the programming module can be specifically used to apply a negative programming voltage to the phototransistors in the phototransistor array after the phototransistor is irradiated by light, so as to perform non-volatile programming on the phototransistors and obtain the programmed phototransistors.

[0057] For example, the programming module can be composed of a CMOS peripheral circuit pulse generator.

[0058] For example, the programming module can be connected to the gate of the phototransistor in the phototransistor array via word line WL, and apply a negative programming voltage to the gate of the phototransistor via word line WL.

[0059] In one possible implementation, the programming module can also be used to apply a positive programming voltage to the gate of the phototransistor, and the effect of erasing the non-volatile programming causes the phototransistor to return to its original state.

[0060] In some embodiments, the key generation module may include at least one true random number generator.

[0061] For example, each true random number generator may be connected to the gate of at least one phototransistor.

[0062] For example, a true random number generator can be constructed using memristors. Currently, keys used for information security are mainly based on software algorithms that use pseudo-random numbers. Hardware-inherent security primitives are less vulnerable to attack than software implementations. Physically unclonable functions (PNCs) have been widely used as a hardware security primitive for key generation; however, traditional CMOS-based PNCs have high requirements for process conditions and may not provide sufficient randomness, making them more susceptible to attack. Therefore, keys generated by memristor-based PNCs offer higher reliability and security.

[0063] In one possible implementation, a true random number generator can be used to generate at least one random number. A threshold voltage corresponding to that random number is then applied to the gate of a phototransistor connected to it.

[0064] For example, the random number may include a first random number and a second random number, such as 0 and 1.

[0065] For example, all the random numbers constitute the voltage key.

[0066] In one example, if the random number generated by the true random number generator is a first random number, a first threshold voltage can be applied to the phototransistor connected to it; if the random number generated by the true random number generator is a second random number, a second threshold voltage can be applied to the gate of the transistor connected to it.

[0067] In one possible implementation, the other end of the key generation module can be connected to the receiving end, and the key generation module can send a voltage key to the receiving end.

[0068] In some embodiments, the control circuit module may be composed of CMOS peripheral circuits, and the output of each CMOS peripheral circuit can be connected to the drain of at least one phototransistor via a control line OL. While the key generation module applies a threshold voltage to the gate of the phototransistor, the CMOS peripheral circuit in the control module can apply a drain bias voltage to the drain of the connected phototransistor, thereby encrypting the phototransistor and obtaining an encrypted phototransistor.

[0069] For example, see Figure 1 The control circuit module can apply a drain bias voltage to the drain of the transistor in the nth row through the control line OLn, n = 1, 2, ...

[0070] In some embodiments, the readout circuit module may include at least one comparator, each comparator being connected to the source of at least one phototransistor.

[0071] Specifically, the comparator can be used to compare the output current of the connected phototransistor with the reference current in order to binarize the output current of the phototransistor and obtain the value of the encrypted pixels of the encrypted image.

[0072] For example, each phototransistor corresponds to a pixel in either an encrypted image of light or a raw image.

[0073] In one possible implementation, if the output current of the phototransistor is greater than the reference current, the output value of the comparator can be 1, that is, the value of the encrypted pixel of the encrypted image corresponding to the phototransistor is 1; if the output current of the phototransistor is less than or equal to the reference current, the output value of the comparator can be 0, that is, the value of the encrypted pixel of the encrypted image corresponding to the phototransistor is 0; thus achieving binarization of the output current.

[0074] For example, one input of the comparator can be connected to the source of at least one phototransistor to receive the encrypted output current of the phototransistor. The input current at the other input of the comparator is a reference current.

[0075] Specifically, the value of the encrypted pixel corresponding to the phototransistor output by the comparator can be obtained by performing an XOR operation on the pixel value of the corresponding pixel in the original image and the random number corresponding to the phototransistor in the voltage key.

[0076] In one possible implementation, the output of the reading circuit module can be connected to the receiving end, and the reading circuit module can send an encrypted image of the output current to the receiving end. Upon receiving the voltage key and the encrypted image of the light, the receiving end can decrypt the encrypted image of the light using the voltage key to obtain the original image of the light detected by the sensor.

[0077] The encrypted sensor provided by this invention, by performing non-volatile programming on the sensor and encrypting the programmed phototransistor according to a voltage key, enables direct encryption calculations on the sensor's detection results within the sensor itself. This avoids the problems of low security and susceptibility to cracking of traditional security algorithms that rely on post-processing computing units, reducing the risk of information leakage. Simultaneously, direct encryption on the sensor avoids the excessive power consumption caused by separating the sensor from the computing unit in traditional encryption methods. Furthermore, obtaining the voltage key from a memristor provides higher reliability and security. Moreover, by performing non-volatile programming on the non-volatile van der Waals heterojunction bipolar phototransistor, an XOR logic gate can be constructed using only one phototransistor, reducing the hardware consumption required to construct the XOR logic gate.

[0078] Figure 3 This diagram illustrates a schematic flowchart of a wireless blockchain network sharding method provided by an embodiment of the present invention. As an example and not a limitation, method 300 can be applied to the aforementioned encrypted sensor 100. Sensor 100 may include a phototransistor array, a programming module, a key generation module, a control module, and a reading circuit module. Method 300 may include steps S301-S305, each of which is described below.

[0079] S301, the programming module performs non-volatile programming on each phototransistor in the phototransistor array after it is illuminated by light, and obtains the programmed phototransistor.

[0080] In one possible implementation, before non-volatile programming of the phototransistors, the light to be detected can be directed to illuminate the phototransistors in the phototransistor array of the encryption sensor 100 to obtain the original image of the light.

[0081] For example, a phototransistor array may include at least one phototransistor.

[0082] For example, each phototransistor corresponds to a pixel in either the original image of light or the encrypted image.

[0083] For example, the encryption sensor 100 can acquire image information of the light illuminating the sensor (i.e., the original image of the light). The output pixel value of the phototransistors illuminated by the light is 1, and the output pixel value of the phototransistors not illuminated is 0.

[0084] For example, see Figure 4In the original image 401, light illuminates the phototransistor array of the sensor. Phototransistors not illuminated output a pixel value of 0 for their corresponding original image (white pixels in the image). Illuminated phototransistors output a pixel value of 1 for their corresponding original image (black pixels in the image). All pixels together constitute the original image 401.

[0085] In one possible implementation, the programming module can non-volatilely program the phototransistors by applying a negative threshold voltage to the gate of all phototransistors, thus obtaining the programmed phototransistors.

[0086] In one example, the phototransistor may include a bipolar phototransistor based on a nonvolatile van der Waals heterojunction, consisting of a heterostructure based on WSe2 / h-BN / Al2O3.

[0087] For example, due to the inherent bipolarity of WSe2, its transfer characteristic curve also exhibits bipolarity. When the phototransistor is illuminated, a negative programming voltage is applied to its gate. The photogenerated holes generated by the illumination are captured by the h-BN / Al2O3 interface under the influence of the negative pulse electric field of the gate, thus shifting the transfer characteristic curve to the left; while the transfer characteristic curve of the phototransistor that is not illuminated remains unchanged.

[0088] For example, see Figure 5 , Figure 5 501 in the figure represents the transfer characteristic curve of a phototransistor that has not been exposed to light, or the transfer characteristic curve of a phototransistor that has not been non-volatile programmed. Figure 5 The 502 in the figure represents the transfer characteristic curve of the phototransistor after being illuminated by light and non-volatilely programmed.

[0089] S302, the key generation module generates the voltage key.

[0090] In some embodiments, the key generation module may include at least one true random number generator, each of which may be connected to the gate of at least one phototransistor.

[0091] For example, a true random number generator can be constructed from memristors. Currently, keys used for information security are mainly based on software algorithms using pseudo-random numbers. Hardware-inherent security primitives are less vulnerable to attack than software implementations. Physically unclonable functions (PNCs) have been widely used as a hardware security primitive for key generation; however, traditional CMOS-based PNCs have high requirements for process conditions and may not provide sufficient randomness, making them more susceptible to attack. Therefore, keys generated based on memristor-based PNCs are more reliable and secure.

[0092] In one possible implementation, a true random number generator can be used to generate at least one random number.

[0093] For example, the random number may include a first random number and a second random number, such as 0 and 1.

[0094] For example, all the random numbers constitute the voltage key.

[0095] For example, if the random number sequence generated by the true random number generator connected to the first column of phototransistors in the phototransistor array is 10001, and the random number sequence generated by the true random number generator connected to the second column of phototransistors in the phototransistor array is 01000, then the voltage key can be: The voltage key can be visualized to obtain... Figure 4 The voltage key image 402 is shown in the image. In this image, the pixel corresponding to the phototransistor with the first random number is white, and the pixel corresponding to the phototransistor with the second random number is black.

[0096] S303, the key generation module applies a threshold voltage to the gate of the programmed phototransistor according to the voltage key.

[0097] For example, the threshold voltage may include a first threshold voltage and a second threshold voltage. The first threshold voltage may be the voltage threshold of the phototransistor transfer curve when the phototransistor is not non-volatile programmed, and the second threshold voltage may be the voltage threshold of the phototransistor transfer curve after non-volatile programming.

[0098] For example, see Figure 5 , Figure 5 The voltage Voff0 corresponding to the lowest point of curve 501 is the first threshold voltage. Figure 5 The voltage Voff1 corresponding to the lowest point of curve 502 is the second threshold voltage.

[0099] In one example, the true random number generator in the key generation module can apply a threshold voltage corresponding to the random number it generates to the gate of the phototransistor connected to it.

[0100] For example, if the random number generated by the true random number generator is a first random number, a first threshold voltage can be applied to the phototransistor connected to it; if the random number generated by the true random number generator is a second random number, a second threshold voltage can be applied to the gate of the transistor connected to it.

[0101] S304, the control circuit module applies a drain bias voltage to the drain of each programmed phototransistor to obtain the encrypted phototransistor.

[0102] In one example, the output current of the encrypted phototransistor is determined based on the illumination range of the phototransistor array and the threshold voltage of each phototransistor.

[0103] For example, see Figure 5 The output current I1 of the programmed phototransistor exposed to light is larger when a first threshold voltage Voff0 is applied compared to the output current I2 of the phototransistor exposed to light when a second threshold voltage Voff1 is applied. Conversely, the output current I3 (which is the same value as I2) of the programmed phototransistor not exposed to light is smaller when a first threshold voltage Voff0 is applied compared to the output current I4 of the phototransistor exposed to light when a second threshold voltage Voff1 is applied. However, when the same first threshold voltage is applied, the output current I3 of the phototransistor not exposed to light is smaller than the output current I1 of the phototransistor exposed to light. Therefore, by non-volatile programming the phototransistor, shifting the transfer characteristic curve of the phototransistor exposed to light to the left, and applying different threshold voltages to the gate of the phototransistor, the magnitude of the output current can be changed, thus achieving encryption of the phototransistor and obtaining an encrypted phototransistor.

[0104] S305, the reading circuit module determines the encrypted image of the light based on the output current of the encrypted phototransistor.

[0105] In some embodiments, the reading circuit module can compare the output current of each encrypted phototransistor with a reference current to binarize the output current of each encrypted phototransistor, thereby obtaining the value of each encrypted pixel in the encrypted image. All encrypted pixels constitute the encrypted image.

[0106] For example, the reference current can be the current corresponding to the intersection of the original transfer curve of the phototransistor and the transfer curve of the phototransistor after shifting to the left. See also Figure 5 The intersection point A and its corresponding current value Iref.

[0107] In one possible implementation, the readout circuit module may include at least one comparator, each comparator being connected to the source of at least one phototransistor. Specifically, the comparator compares the output current of the connected phototransistor with a reference current to binarize the phototransistor's output current, obtaining the value of the encrypted pixels of the encrypted image.

[0108] In one example, if the output current of the phototransistor is greater than the reference current, the output value of the comparator connected to it can be 1, that is, the value of the encrypted pixel of the encrypted image corresponding to the phototransistor is 1; if the output current of the phototransistor is less than or equal to the reference current, the output value of the comparator can be 0, that is, the value of the encrypted pixel of the encrypted image corresponding to the phototransistor is 0; thus, the binarization of the output current is achieved.

[0109] For example, according to Figure 5 The transfer characteristic curve in the image can be obtained by binarizing the output current of the phototransistor. Figure 6 The truth table shown in the figure.

[0110] Specifically, see Figure 6 The truth table of the output current of the encrypted phototransistor. The voltage at the gate of the phototransistor under illumination (denoted as 1) is V. off0 When Ids is 0, the output current Ids is greater than the reference current Iref (denoted as 1); the voltage at the gate of the phototransistor under illumination (denoted as 1) is V. off1 When Ids is denoted as 1, the output current Ids is less than Iref (denoted as 0); the voltage at the gate of the phototransistor in the absence of light (denoted as 0) is V. off1 When Ids is greater than Iref (denoted as 1), the output current Ids is greater than Iref (denoted as 1); the voltage at the gate of the phototransistor in the absence of light (denoted as 0) is V. off0 When the output current Ids is less than Iref (denoted as 0), the output current Ids is less than Iref. If we denote whether the image is illuminated as photoelectric, and the input A of the phototransistor is the voltage at the phototransistor's gate, then the output C of the phototransistor is the value of the encrypted pixel in the encrypted image obtained from the output current. From the truth table, we can see that the illumination input and the voltage key are XORed to achieve the encryption effect on the original image.

[0111] For example, the input A, input B, and output C of a phototransistor can satisfy the following formula:

[0112]

[0113] Here, ⊕ represents the XOR operation.

[0114] For example, see Figure 4 The encrypted image 403 is obtained by performing an XOR operation on the pixel values ​​of the original image 401 and the voltage key image 402.

[0115] Optionally, method 300 may also include steps S306 and S307.

[0116] S306, the key generation module sends the voltage key to the receiving end.

[0117] S307, the read circuit module sends an encrypted image to the receiving end.

[0118] Accordingly, the receiving end can receive the voltage key and the encrypted image, and then decrypt the encrypted image according to the voltage key to obtain the original image of the light detected by the sensor.

[0119] For example, see Figure 4 The receiving end can perform an XOR operation on the obtained voltage key image 402 and encrypted image 403 to obtain the original image 401 of the light.

[0120] Optionally, method 300 may also include step 308.

[0121] S308, the programming module applies a positive programming voltage to the gate of the encrypted phototransistor to erase the non-volatile programming effect of the phototransistor and restore the phototransistor to its original state.

[0122] For example, after a positive programming voltage is applied to the gate of the encrypted phototransistor, the transfer characteristic curve of the phototransistor illuminated by light will shift to the right and return to its original state.

[0123] According to the method provided by this invention, by performing non-volatile programming on the sensor and encrypting the programmed phototransistor based on the voltage key, the detection results of the sensor can be directly encrypted within the sensor. This avoids the problems of low security and easy cracking of traditional security algorithms that rely on post-processing computing units, thus reducing the risk of information leakage. Simultaneously, direct encryption on the sensor also avoids the excessive power consumption caused by the separation of the sensor and computing unit in traditional encryption methods. Furthermore, obtaining the voltage key based on the memristor provides higher reliability and security. Furthermore, by performing non-volatile programming on the non-volatile van der Waals heterojunction bipolar phototransistor, an XOR logic gate can be constructed using only one phototransistor, significantly reducing the hardware consumption required to construct the XOR logic gate.

[0124] In the description of this invention, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this invention, "a plurality of" means two or more, unless otherwise explicitly specified.

[0125] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. In addition, those skilled in the art can combine and integrate the different embodiments or examples described in this specification.

[0126] Although the invention has been described herein in conjunction with various embodiments, those skilled in the art will understand and implement other variations of the disclosed embodiments by reviewing the accompanying drawings, disclosure, and appended claims in carrying out the claimed invention. In the claims, the word "comprising" does not exclude other components or steps, and "a" or "an" does not exclude a plurality. A single processor or other unit can implement several functions listed in the claims. While different dependent claims may recite certain measures, this does not mean that these measures cannot be combined to produce good results.

[0127] The above description, in conjunction with specific preferred embodiments, provides a further detailed explanation of the present invention. It should not be construed that the specific implementation of the present invention is limited to these descriptions. For those skilled in the art, any modifications made without departing from the inventive concept should be considered within the scope of protection of the present invention.

Claims

1. A sensor-based encryption method based on non-volatile programming, characterized in that, The method is applied to an encrypted sensor based on non-volatile programming. The encrypted sensor includes a phototransistor array, a control circuit module, a readout circuit module, a programming module, and a key generation module. The method includes: The programming module performs non-volatile programming on each phototransistor in the phototransistor array after it is illuminated by light, resulting in a programmed phototransistor, each phototransistor corresponding to a pixel in the encrypted image of the light. The key generation module generates a voltage key; The key generation module applies a threshold voltage to the gate of the programmed phototransistor according to the voltage key, and the control circuit module applies a drain bias voltage to the drain of each programmed phototransistor to obtain an encrypted phototransistor. The reading circuit module determines the encrypted image of the light based on the output current of the encrypted phototransistor, wherein the output current is determined based on the illumination range of the phototransistor array and the threshold voltage of each phototransistor; The programming module performs non-volatile programming on the phototransistor array after it has been irradiated by light to obtain the programmed phototransistor, including: after the phototransistor array is irradiated by light, the programming module applies a negative programming voltage to the gate of the phototransistor to perform non-volatile programming on the phototransistor to obtain the programmed phototransistor. The key generation module includes at least one true random number generator connected to the gate of at least one of the phototransistors. The threshold voltage includes a first threshold voltage and a second threshold voltage. The key generation module applies the threshold voltage to the gate of the programmed phototransistor according to the voltage key, comprising: the true random number generator generating at least one random number, wherein the random number includes a first random number and a second random number; the voltage key is constructed based on all the random numbers; if the random number is the first random number, the true random number generator applies the first threshold voltage to the phototransistor connected to the true random number generator, wherein the first threshold voltage is the voltage threshold of the phototransistor's transfer curve when it is not non-volatile programmed; if the random number is the second random number, the true random number generator applies the second threshold voltage to the phototransistor connected to the true random number generator, wherein the second threshold voltage is the voltage threshold of the phototransistor's transfer curve after it has been non-volatile programmed. The reading circuit module determines the encrypted image of the light based on the output current of the encrypted phototransistor, including: the reading circuit module compares the output current of each encrypted phototransistor with the magnitude of a reference current to binarize the output current of each encrypted phototransistor to obtain the value of each encrypted pixel in the encrypted image.

2. The method according to claim 1, characterized in that, The method further includes: The programming module applies a positive programming voltage to the gate of the encrypted phototransistor to erase the non-volatile programming effect of the phototransistor and restore the phototransistor to its original state.

3. The method according to claim 1, characterized in that, The reading circuit module compares the output current of each encrypted phototransistor with the reference current to binarize the output current of each encrypted phototransistor, thereby obtaining the value of each encrypted pixel in the encrypted image, including: The reading circuit module compares the output current of the encrypted phototransistor with the reference current. If the output current is greater than the reference current, the value of the encrypted pixel corresponding to the phototransistor is set to 1. If the output current is less than or equal to the reference current, then the value of the encrypted pixel corresponding to the phototransistor is determined to be 0.

4. The method according to claim 1, characterized in that, The method further includes: The reading circuit module sends the encrypted image to the receiving end; The key generation module sends the voltage key to the receiving end, so that the receiving end can decrypt the encrypted image according to the voltage key to obtain the original image obtained by the sensor detecting the light.

5. An encrypted sensor based on non-volatile programming, characterized in that, The sensor includes a phototransistor array, a control circuit module, a reading circuit module, a programming module, and a key generation module; The programming module is connected to the gate of at least one phototransistor in the phototransistor array; The key generation module is connected to the gate of the phototransistor; The control circuit module is connected to the drain of the phototransistor; The readout circuit module is connected to the source of the phototransistor; The programming module is used to perform non-volatile programming on each phototransistor in the phototransistor array after it is illuminated by light, so as to obtain a programmed phototransistor, wherein each phototransistor corresponds to a pixel in the encrypted image of the light. The key generation module is used to generate voltage keys; The key generation module is further configured to apply a threshold voltage to the gate of the programmed phototransistor according to the voltage key, and the control circuit module is configured to apply a drain bias voltage to the drain of each programmed phototransistor to obtain an encrypted phototransistor. The reading circuit module is used to determine the encrypted image of the light based on the output current of the encrypted phototransistor, wherein the output current is determined based on the illumination range of the phototransistor array and the threshold voltage of each phototransistor; The programming module is specifically used to apply a negative programming voltage to the gate of the phototransistor after the phototransistor array is irradiated by the light, so as to perform non-volatile programming on the phototransistor and obtain the programmed phototransistor. The key generation module includes at least one true random number generator connected to the gate of at least one of the phototransistors. The threshold voltage includes a first threshold voltage and a second threshold voltage. The true random number generator generates at least one random number, which includes a first random number and a second random number. The voltage key is constructed based on all the random numbers. If the random number is the first random number, the true random number generator applies the first threshold voltage to the phototransistor connected to it, wherein the first threshold voltage is the voltage threshold of the phototransistor's transfer curve when it is not non-volatile programmed. If the random number is the second random number, the true random number generator applies the second threshold voltage to the phototransistor connected to it, wherein the second threshold voltage is the voltage threshold of the phototransistor's transfer curve after it has been non-volatile programmed. The reading circuit module includes at least one comparator connected to the source of at least one of the phototransistors; the comparator is used to compare the output current of each of the encrypted phototransistors with the magnitude of a reference current, so as to binarize the output current of each of the encrypted phototransistors to obtain the value of each encrypted pixel in the encrypted image.