CN102970129B - Time information-based signal encrypting and decrypting method and time information-based signal encrypting and decrypting device - Google Patents

Time information-based signal encrypting and decrypting method and time information-based signal encrypting and decrypting device Download PDF

Info

Publication number
CN102970129B
CN102970129B CN 201210462334 CN201210462334A CN102970129B CN 102970129 B CN102970129 B CN 102970129B CN 201210462334 CN201210462334 CN 201210462334 CN 201210462334 A CN201210462334 A CN 201210462334A CN 102970129 B CN102970129 B CN 102970129B
Authority
CN
China
Prior art keywords
signal
time information
unit
descrambling
scrambling
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN 201210462334
Other languages
Chinese (zh)
Other versions
CN102970129A (en
Inventor
刘若鹏
栾琳
肖光锦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jiangsu Xuhui Electronics Co ltd
Nantong Wote Optoelectronics Technology Co ltd
Original Assignee
Kuang Chi Innovative Technology Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kuang Chi Innovative Technology Ltd filed Critical Kuang Chi Innovative Technology Ltd
Priority to CN 201210462334 priority Critical patent/CN102970129B/en
Publication of CN102970129A publication Critical patent/CN102970129A/en
Application granted granted Critical
Publication of CN102970129B publication Critical patent/CN102970129B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a time information-based signal encrypting and decrypting method and a time information-based signal encrypting and decrypting device. The encrypting method comprises the following steps of: encrypting an original signal by location time information of a transmitting end to obtain an encrypting signal; and extracting the time information from the received encrypting signal by a receiving end, comparing with the local time information of the receiving end, considering that the received signal is legal if the time does not exceed an overtime, and passing the authentication. According to the invention, the authentication of a copied illegal signal through the receiving end when a wireless signal is transmitted can be avoided.

Description

Signal encryption and decryption method and device based on time information
Technical Field
The invention relates to the technical field of encryption, in particular to a signal encryption and decryption method and device based on time information in a short-distance wireless communication technology.
Background
Wireless communication plays an increasingly important role in people's life, low power consumption and miniaturization are strong pursuits of users for current wireless communication products, especially portable products, and therefore near field wireless communication is gradually drawing more and more attention. At present, the short-distance wireless communication products on the market are diversified, and various wireless remote control products are typical. The principle of the wireless remote control technology is that a transmitting end encodes a controlled electric signal and then converts the encoded electric signal into a wireless signal to be transmitted. The receiving end receives the wireless signal carrying information, amplifies and decodes the wireless signal to obtain the original control electric signal, and the electric signal is subjected to power amplification to drive the related electric elements so as to realize wireless remote control.
In the prior art, infrared signals, radio frequency signals, bluetooth signals, Wi-Fi signals, visible light signals and the like are common in near field wireless communication signals, in the transmission process of the wireless signals, information source encryption is usually performed on an information source through certain digital operation, and the encrypted signals are fixed and unchangeable. If the signals such as radio frequency signals, infrared signals and the like are intercepted, the original signals can be obtained through a password deciphering technology, and the signals can pass the authentication of a receiving end; or the high-speed camera is used for shooting the visible light signal sent by the transmitting equipment, the same signal can be copied according to the stroboscopic change condition of the light signal, and the transmitting equipment capable of transmitting the copied visible light signal is manufactured. Therefore, the existing encryption mode is adopted to encrypt the short-distance wireless signals, and potential safety hazards exist.
Disclosure of Invention
The technical problem to be solved by the present invention is to prevent an illegal signal copied during short-range wireless communication from passing through the authentication of a receiving end, thereby reducing security.
In order to solve the above technical problem, an embodiment of the present invention provides a signal encryption method based on time information, including:
the transmitting terminal reads the local time information of the current moment;
adding and inserting the time information into a preset field of an original signal to obtain an encrypted signal;
and sending the encrypted signal by adopting a visible light signal.
Optionally, after obtaining the encrypted signal, the method further includes: modulating the encrypted signal.
Optionally, after the transmitting end reads the local time information of the current time, the method further includes:
and scrambling the time information.
Optionally, scrambling the time information specifically includes:
and performing negation operation on the time information.
Optionally, scrambling the time information specifically includes:
performing logic operation on the time information and a preset pseudorandom sequence; and/or arithmetic operations.
Optionally, the logical operation includes:
an exclusive OR operation, or a NAND operation.
Wherein the arithmetic operation comprises:
addition, subtraction, multiplication, or division operations.
The scrambling of the time information specifically includes:
the time information is scrambled using an MD5 encryption algorithm, an RSA encryption algorithm, a DES encryption algorithm, or an AES encryption algorithm.
Optionally, the method further includes:
and the transmitting end scrambles the encrypted signal.
Optionally, the merging the time information into the original signal specifically includes:
adding the time information into a preset field of an original signal; or,
the time information is randomly combined into the original signal.
Optionally, the method further comprises:
an original signal is received from the outside.
Wherein the original signal is: a visible light signal, an infrared signal, a far infrared signal, or an ultraviolet signal.
Optionally, the original signal is: a digital signal representing the ID information; or, a digital signal characterizing biometric information.
In order to solve the above technical problem, an embodiment of the present invention further provides a signal decryption method based on time information, including:
a receiving end receives an encrypted signal which is sent by a transmitting end and represented in a visible light signal form;
the receiving end separates time information from a preset field of the encrypted signal;
and reading local time information at the current moment, comparing the time information with the local time information, and judging that the signal is legal if the time difference is less than the preset timeout time.
Optionally, after the receiving end receives the encrypted signal that is sent by the transmitting end and characterized in the form of the visible light signal, the method further includes:
demodulating the encrypted signal.
Optionally, before the receiving end receives the encrypted signal that is sent by the transmitting end and characterized in the form of the visible light signal, the method further includes:
and the receiving end synchronizes the local time information with the time information of the transmitting end.
Optionally, before the receiving end separates the time information from the preset field of the encrypted signal, the method further includes:
descrambling the encrypted signal.
Optionally, after separating the time information from the preset field of the encrypted signal, the method further includes:
and descrambling the time information.
Optionally, descrambling the time information specifically includes:
and performing negation operation on the time information.
Descrambling the time information specifically comprises:
performing logic operation on the time information and a preset pseudorandom sequence; and/or arithmetic operations.
Descrambling the time information specifically comprises:
and descrambling the time information by adopting an MD5 decryption algorithm, an RSA decryption algorithm, a DES decryption algorithm or an AES decryption algorithm.
In order to solve the above technical problem, an embodiment of the present invention further provides a signal encryption apparatus based on time information, where the signal encryption apparatus includes:
the reading unit is used for reading the local time information of the current moment from the clock;
the processing unit is used for adding and inserting the time information into a preset field of an original signal to obtain an encrypted signal; and the number of the first and second groups,
and the visible light signal sending unit is connected with the processing unit and is used for sending the encrypted signal.
Optionally, the signal encryption device further includes a modulation unit connected between the processing unit and the visible light signal sending unit, and configured to modulate the encrypted signal.
Optionally, the signal encryption apparatus further includes a first scrambling unit, configured to scramble the time information read by the reading unit.
Optionally, the first scrambling unit is an inverse operation scrambling unit, and is configured to perform an inverse operation on the time information.
Optionally, the first scrambling unit is a logic operation scrambling unit and/or an arithmetic operation scrambling unit.
The logical operation scrambling unit is an exclusive-OR operation scrambling unit, an exclusive-OR operation scrambling unit or a NAND operation scrambling unit.
Wherein the arithmetic operation scrambling unit is an addition operation scrambling unit, a subtraction operation scrambling unit, a multiplication operation scrambling unit, or a division operation scrambling unit.
Optionally, the signal encryption apparatus further includes a second scrambling unit, configured to scramble the encrypted signal.
The signal encryption device can be integrated on an electronic device such as a mobile phone, an MP3, or a PSP.
In order to solve the above technical problem, an embodiment of the present invention further provides a signal decryption apparatus based on time information, where the signal decryption apparatus includes:
the visible light signal receiving unit is used for receiving the encrypted signal which is sent by the transmitting terminal and represented in the form of the visible light signal;
a separation unit for separating time information from a preset field of the encrypted signal;
and the authentication unit is used for reading the local time information at the current moment, comparing the time information with the local time information, and judging that the signal is legal if the time difference is less than the preset timeout time.
Optionally, the signal decryption apparatus further includes a demodulation unit connected to the receiving unit, and configured to demodulate the encrypted signal.
Optionally, the signal decryption apparatus further includes a first descrambling unit, configured to descramble the time information separated by the separation unit.
Optionally, the first descrambling unit is an inverse operation descrambling unit, and is configured to perform an inverse operation on the time information separated by the separation unit.
Optionally, the first descrambling unit is a logic operation descrambling unit, and is configured to perform logic operation on the time information and a preset pseudorandom sequence; and/or the presence of a gas in the gas,
and the arithmetic operation descrambling unit is used for carrying out arithmetic operation on the time information and a preset pseudorandom sequence.
The logic operation descrambling unit is an exclusive-OR operation descrambling unit, an exclusive-OR operation descrambling unit or a NAND operation descrambling unit.
The arithmetic operation descrambling unit is an addition operation descrambling unit, a subtraction operation descrambling unit, a multiplication operation descrambling unit or a division operation descrambling unit.
Optionally, the signal decryption apparatus further includes a second descrambling unit connected to the separation unit, and configured to descramble the encrypted signal.
The signal decryption device can be integrated on a receiving terminal such as a door lock or a household appliance.
In the technical scheme, the transmitting terminal encrypts the original signal by adopting the local time information, so that the legal signal transmitted by the transmitting terminal changes along with the local time information, the intercepted signal needs time for copying, the copied signal is different from the signal transmitted by the transmitting terminal at the current moment, the time difference between the time information carried by the copied signal and the local time of the receiving terminal is greater than the timeout time, and the authentication of the receiving terminal cannot be passed, thereby improving the safety of signal transmission.
Drawings
Fig. 1 is a flowchart of a method for encrypting and decrypting a signal based on time information according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for encrypting and decrypting a signal based on time information according to a second embodiment of the present invention;
fig. 3 is a flowchart of a method for encrypting and decrypting a signal based on time information according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a signal encryption and decryption system based on time information according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of a signal encryption and decryption system based on time information according to a fifth embodiment of the present invention;
fig. 6 is a schematic structural diagram of a signal encryption and decryption system based on time information according to a sixth embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be described below by referring to the drawings in the embodiments of the present invention, respectively, by way of examples.
First, in order to better understand the technical solution of the present invention, the following briefly describes the technical solution of the present invention:
the principle of the encryption at the transmitting end of the present invention is to incorporate time information in the original signal, which represents the time when the transmitting end transmits the signal. The receiving end judges the time of the transmitting end and the local clock time thereof through the time information field in the received signal, and judges the signal as a legal signal under the condition that the time does not exceed the specified timeout time. Because the time of the transmitting end and the receiving end is calibrated by the same time standard, the time change of the transmitting end and the receiving end is the same, and the time difference between the transmitting end and the receiving end does not exceed the specified time under the conditions of small error and short running time. The copied signal can not change along with time, so the field of the time information can be kept unchanged, the local time of the receiving end is changed, the difference between the finally copied signal time information field and the local time of the receiving end exceeds the specified timeout time along with the change of the time, and the copied signal can be always judged as an illegal signal as long as the specified timeout time is less than the time required for copying the visible light signal to manufacture the same transmitting device.
The overtime time can be set to different values according to the security level, and if the security level requirement is high, the overtime time is set to be 3 minutes; if the requirement of the security level is high, setting the timeout time to be 10 minutes; if the security level requirement is moderate, the timeout time is set to 20 minutes.
Example 1:
referring to fig. 1, which is a flowchart of a method for encrypting and decrypting a signal based on time information according to an embodiment of the present invention, the method for encrypting and decrypting specifically includes:
the encryption process comprises the following steps:
s101: and the transmitting terminal reads the local time information of the current moment through the local clock. For example, the local time information of the current time read by the transmitting terminal from the local clock is 57 minutes at 8, 15, 10 and 2012, and is represented by 201208151057 in a standard time format of decimal numbers.
S102: and the transmitting terminal combines the read local time information into the original signal to obtain an encrypted signal.
Specifically, a random interpolation mode can be adopted to add the local time to the original signal; the time information can also be added to a preset field of the original signal; or time information is inserted into different fields of the original signal according to a preset rule.
For example, the transmitting end inserts the read local time information into a preset field of an original signal, and the data format of the original signal is as follows: header-source-parity bits; the data format of the encrypted signal is: header-source-time information-parity bits. Assuming that the header is represented by binary digits as 1111, the source part field, i.e., the ID number, is represented by binary digits as 10000001, and the check code field is represented by binary digits as 1010, the specified timeout time is set to 10 minutes, wherein the time information field is accurate to minutes. At time T1, the transmitter's time information is assumed to be 57 minutes at 8/15/10/2012, and is represented as 201208151057 in a standard time format with crisscross numbers. Each ten-system number is represented as 001000000001001000001000000101010001000001010111 in binary digits. The encrypted signal at the time T1 is represented in binary as 1111100000010010000000010010000010000001010100010000010101111010.
S103: the transmitting terminal sends out the encrypted signal in the form of a visible light signal. For example, the encrypted signal is transmitted in the form of a flash of light, the light being on to represent a "1" of the binary data and the light being off to represent a "0" of the binary data.
In a specific implementation process, the encrypted signal can also be sent in the form of an infrared signal, a far infrared signal, an ultraviolet signal, a radio frequency signal, a bluetooth signal, a laser signal, or a wifi signal according to the requirements of the communication system.
With the encryption method provided in embodiment 1, if the visible light signal emitted from the visible light signal emitting terminal is photographed by the high-speed camera at time T1 and copied by using the photographed signal, then a visible light emitting device capable of emitting the copied signal is manufactured. Assuming that the minimum time required for manufacturing such a visible light emitting device is 30 minutes, the time has reached the time T2 when the manufacturing is completed, and the copy signal transmitted by the manufactured visible light emitting device at this time is the signal at the time T1, and the time difference between the time T1 and the time T2 is 30 minutes, which is greater than the timeout time 10 minutes, so that the copy signal transmitted by the manufactured visible light emitting device is an illegal signal.
And (II) decryption process:
s104: and the receiving end receives, transmits and sends the encrypted signal characterized in the form of the visible light signal.
In a specific implementation, the encrypted signal may also be characterized in the form of an infrared signal, a far infrared signal, an ultraviolet signal, a radio frequency signal, a bluetooth signal, a laser signal, or a wifi signal.
S105: the receiving end converts the visible light signal representing the encrypted signal into an electrical signal, and then converts the electrical signal into a digital signal. For example, the digital signal characterizing the encrypted signal is obtained as 1111100000010010000000010010000010000001010100010000010101111010.
S106: the receiving end separates the time information from the digital signal representing the encrypted signal. For example, the separated time information is 001000000001001000001000000101010001000001010111, expressed in decimal notation as: 201208151057.
s107: the receiving end reads the local time information. Since the time for the transmitting end to transmit the optical signal to the receiver is very short, and the receiving end and the transmitting end are synchronized in time, the local time information read by the receiving end is also 201208151057.
S108: and the receiving end compares the time information separated in the S106 with the local time information, and if the time difference is smaller than the preset timeout time, the signal is judged to be legal.
The time information separated by the receiving end is 201208151057 with the local time information, the time difference is 0, and the time difference is less than the specified timeout time by 10 minutes, so the signal is a legal signal.
With the decryption method provided in embodiment 1, at time T1, the receiving end receives and converts the data into a decimal standard time format of 201208151057, and at time T2, the receiver receives the copied signal and reads local time of 201208151127. When the two times are compared, the time difference is 30 minutes and is obviously greater than the specified timeout time by 10 minutes, and the signal can be judged to be illegally copied. For a legal transmitting end, the clock is always synchronized with the clock of the receiver, and the time difference does not exceed the specified timeout time, so the legal transmitting end is always considered as a legal signal.
Example 2:
referring to fig. 2, it is a flowchart of a method for encrypting and decrypting a signal based on time information according to a second embodiment of the present invention, where the method for encrypting and decrypting specifically includes:
the encryption process comprises the following steps:
s201: and the transmitting terminal reads the local time information of the current moment through the local clock. Assuming that the current time is T1, the local time information of the current time read by the transmitting terminal from the local clock is 30 minutes at 08 th 12 th 10 th 2012, 201210120830 in the standard time format of decimal numbers, and 001000000001001000010000000100100000100000110000 in each of the decimal numbers.
S202: the transmitting end scrambles the time information. Specifically, the transmitting end can scramble by performing an inversion operation on the time information; the time information can also be scrambled by performing a logical operation with a preset pseudorandom sequence and/or an arithmetic operation, such as an exclusive-nor operation, an exclusive-or operation, or a nand operation in the logical operation, and/or an addition, subtraction, multiplication, or division operation in the arithmetic operation; the time information may also be scrambled using an MD5 encryption algorithm, an RSA encryption algorithm, a DES encryption algorithm, or an AES encryption algorithm.
Taking pseudo-random sequence scrambling as an example, assuming that the pseudo-random sequence is 101001100101001010000100100101100001111100110101, the pseudo-random sequence and the time information are logically operated, for example, after performing xor operation, the scrambled time information is obtained as follows: 100001100100000010010100100001000001011100000101, represented by binary 864094841705.
S203: and the transmitting terminal adds the scrambled local time information into a preset field of the original signal to obtain an encrypted signal.
For example, the data format of the original signal is: header-source-parity bits; the data format of the encrypted signal is: header-source-time information-parity bits. It is assumed that the header is represented by binary digits as 1111, the source part field, i.e., the ID number, is represented by binary digits as 10000001, and the check code field is represented by binary digits as 1010, where the time information field is accurate to minutes. Then the encrypted signal at time T1, i.e., 30 minutes at 10 months, 12 days, 08 days 2012, is represented in binary as 1111100000011000011001000000100101001000010000010111000001011010.
While the encrypted signal not scrambled with the time information, the encrypted signal at the time T1 is represented in binary as 1111100000010010000000010010000100000001001000001000001100001010.
S204: the transmitting end modulates the encrypted signal.
S205: the transmitting terminal sends out the encrypted signal in the form of an infrared signal.
Specifically, the transmitting terminal transmits the infrared signal by powering on and powering off, wherein the powering on is represented by "1", and the powering off is represented by "0".
In a specific implementation process, the encrypted signal may also be sent in the form of a visible light signal, a radio frequency signal, a far infrared signal, a bluetooth signal, a laser signal, or a wifi signal, according to the requirements of the communication system.
Compared with embodiment 1, if the encrypted signal is illegally intercepted and the data inserted into the data of the original signal is found to be changed along with time, but the time information is scrambled, so that the inserted number is '864094841705', and the actual time information '201210120830', it is difficult to find that the inserted data is the time information, that is, the change rule of the transmitted signal is not easy to find, and the safety is further improved.
And (II) decryption process:
s206: the receiving end receives an encrypted signal characterized in the form of an infrared signal.
S207: the receiving end demodulates the received encrypted signal.
S208: the receiving end separates the time information from the demodulated encrypted signal. For example, the separated time information is 100001100100000010010100100001000001011100000101, expressed in decimal notation as: 864094841705.
s209: and the receiving end descrambles the separated time information.
Specifically, the descrambling is performed in a manner corresponding to the scrambling manner of the time information in S203. Taking descrambling with a pseudo-random sequence as an example, assuming that the pseudo-random sequence is 101001100101001010000100100101100001111100110101, performing a logic operation on the pseudo-random sequence and the separated time information, and if an exclusive-or operation is performed, obtaining the time information after descrambling as follows: 001000000001001000010000000100100000100000110000, represented by binary 201210120830.
S210: the receiving end reads the local time information. Because the time for the transmitting end to transmit the infrared signal to the receiver is extremely short, and the receiving end and the transmitting end are synchronous in time, the local time information read by the receiving end does not exceed 10 minutes.
S211: the receiving end compares the time information separated in the step S208 with the local time information, and determines that the signal is legal if the time difference is smaller than a preset timeout.
The time information separated by the receiving end is 201210120830, the local time information is 201210120831, the time difference is 1 minute and is less than the preset timeout time by 10 minutes, so the signal is a legal signal.
By adopting the decryption method provided by embodiment 2, at time T1, the receiving end receives and converts the data into a decimal standard time format of 201210120830, and at time T2, after the receiver receives the copy signal, the read local time is 201210120905. When the two times are compared, the time difference is 35 minutes and is obviously greater than the specified timeout time by 10 minutes, and then the received copy signal can be judged to be an illegal signal. For a legal transmitting end, the clock is always synchronized with the clock of the receiver, and the time difference does not exceed the specified timeout time, so the legal transmitting end is always considered as a legal signal.
Example 3:
referring to fig. 3, which is a flowchart of a method for encrypting and decrypting a signal based on time information according to a third embodiment of the present invention, the method for encrypting and decrypting specifically includes:
(A) encryption Process
S301: and the transmitting terminal reads the local time information of the current moment through the local clock. For example, the local time information of the current time read by the transmitting terminal from the local clock is 57 minutes at 8, 15, 10 and 2012, and is represented by 201208151057 in a standard time format of decimal numbers.
S302: and adding the read local time information into a preset field of the original signal to obtain an encrypted signal.
For example, the data format of the original signal is: header-source-parity bits; the data format of the encrypted signal is: header-source-time information-parity bits. Assuming that the header is represented by binary digits as 1111, the source part field, i.e., the ID number, is represented by binary digits as 10000001, and the check code field is represented by binary digits as 1010, the specified timeout time is set to 10 minutes, wherein the time information field is accurate to minutes. At time T1, the time information of the transmitter is assumed to be 57 minutes at 8, 15, and 10 of 2012, which is represented by a binary number 001000000001001000001000000101010001000001010111. The encrypted signal at the time T1 is represented in binary as 1111100000010010000000010010000010000001010100010000010101111010.
S303: the encrypted signal is scrambled by means of an MD5 encryption algorithm, an RSA encryption algorithm, a DES encryption algorithm, an AES encryption algorithm, negation, or by means of a pseudorandom sequence.
Taking pseudo-random sequence scrambling as an example, assuming that the pseudo-random sequence is 1011100110001010011001010010100001001001011000011111001101010100, the pseudo-random sequence and the time information are logically operated, and if the time information is subjected to exclusive-or operation, the scrambled encryption information is obtained as follows: 0100000110011000011001000000100011001000001100001111011000101110.
the information inserted in the original signal is 100001100100000010001100100000110000111101100010, expressed in decimal notation: 86408128301562, rather than real time information 201208151057.
S304: and sending out the scrambled encrypted signal in the form of a radio frequency signal.
In a specific implementation process, the encrypted signal may also be sent in the form of an infrared signal, a visible light signal, a bluetooth signal, or a wifi signal, according to the requirements of the communication system.
Compared with embodiment 1, if the encrypted signal is illegally intercepted and the data inserted into the original signal is found to be changed along with time, the time information is scrambled, so that the inserted number is '86408128301562' instead of the real time information '201208151057', and therefore, the fact that the inserted data is time information is difficult to find, namely, the change rule of the transmitted signal is not easy to find, and the safety is further improved.
And (II) decryption process:
s305: the receiving end receives an encrypted signal characterized by a radio frequency signal.
S306: the receiving end converts the radio frequency signal into a digital signal. For example, the digital signal characterizing the encrypted signal is 0100000110011000011001000000100011001000001100001111011000101110.
S307: and the receiving end descrambles the digital signal obtained by the conversion in the S306. Taking descrambling of the pseudo-random sequence as an example, assuming that the pseudo-random sequence is 1011100110001010011001010010100001001001011000011111001101010100, performing a logic operation on the pseudo-random sequence and a digital signal representing the encrypted information, if an exclusive-or operation is performed, obtaining the descrambled encrypted information is: 1111100000010010000000010010000010000001010100010000010101111010.
s308: the receiving end separates the time information from the digital signal representing the encrypted signal. For example, the separated time information is 001000000001001000001000000101010001000001010111, expressed in decimal notation as: 201208151057.
s309: the receiving end reads the local time information. Since the time for the transmitting end to transmit the optical signal to the receiver is very short, and the receiving end and the transmitting end are synchronized in time, the local time information read by the receiving end is also 201208151057.
S310: the receiving end compares the time information separated in the step S308 with the local time information, and determines that the signal is legal if the time difference is smaller than the preset timeout time.
The time information separated by the receiving end is 201208151057 with the local time information, the time difference is 0, and the time difference is less than the specified timeout time by 10 minutes, so the signal is a legal signal.
With the decryption method provided in embodiment 1, at time T1, the receiving end receives and converts the signal into a decimal standard time format of 201208151057, and at time T2, when the receiver receives a copy signal obtained by copying the signal at time T1, the read local time is 201208151127. Comparing the two times, the time difference is 30 minutes, which is obviously more than the specified timeout time by 10 minutes, and the received copy signal can be judged as an illegal signal. For a legal transmitting end, the clock is always synchronized with the clock of the receiver, and the time difference does not exceed the specified timeout time, so the legal transmitting end is always considered as a legal signal.
In other embodiments, the time information and the encrypted signal may be scrambled by using an MD5 encryption algorithm, an RSA encryption algorithm, a DES encryption algorithm, an AES encryption algorithm, inversion, or a pseudo-random sequence.
Example 4:
fig. 4 is a schematic structural diagram of a signal encryption and decryption system based on time information according to a fourth embodiment of the present invention. The signal encryption apparatus 400 may be integrated in a mobile electronic device such as a mobile phone, MP3, or PSP, or may be an independent apparatus, and includes a reading unit 401 for reading local time information of the current time from a clock. For example, the local time information of the current time read by the transmitting terminal from the local clock is 57 minutes at 8, 15, 10 and 2012, and is represented by 201208151057 in a standard time format of decimal numbers. A processing unit 402 connected to the reading unit 401 for combining the time information into the original signal to obtain an encrypted signal. For example, the data format of the original signal is: header-source-parity bits; the data format of the encrypted signal is: header-source-time information-parity bits. It is assumed that the header is represented by binary digits as 1111, the source part field, i.e., the ID number, is represented by binary digits as 10000001, and the check code field is represented by binary digits as 1010. The encrypted signal at the time T1 is represented in binary as 1111100000010010000000010010000010000001010100010000010101111010. And a sending unit 403 connected to the processing unit 402, configured to send the encrypted signal processed by the processing unit 402. In a specific implementation process, the sending unit 403 may be a visible light signal sending unit, an infrared signal sending unit, a far infrared signal sending unit, an ultraviolet signal sending unit, a radio frequency signal sending unit, a bluetooth signal sending unit, a laser signal sending unit, or a wifi signal sending unit according to specific requirements.
The decryption apparatus 400 'may be integrated on a receiving terminal such as a door lock, a locker, a home appliance, a vehicle, or a network device, and includes a receiving unit 401' for receiving the encrypted signal transmitted by the encryption apparatus 400 (transmitting terminal). The receiving unit 401' may be a visible light signal receiving unit, an infrared signal receiving unit, a far infrared signal receiving unit, an ultraviolet signal receiving unit, a radio frequency signal receiving unit, a bluetooth signal receiving unit, a laser signal receiving unit, or a wifi signal receiving unit.
A separation unit 402 'connected to the receiving unit 401' for separating time information from the encrypted signal, for example time information 001000000001001000001000000101010001000001010111, in decimal notation 201208151057, from the binary encrypted signal 1111100000010010000000010010000010000001010100010000010101111010. And an authentication unit 403 'connected to the separation unit 402' and configured to read local time information of the current time from a local clock, compare the time information with the local time information, and determine that the signal is legal if the time difference is smaller than a preset timeout time. For example, the time read by the authentication unit 403' from the local clock is 201208151058, the time difference from the received time information is 1 minute, which is less than the preset timeout time of 10 minutes, and the signal is determined to be legitimate.
Example 5:
fig. 5 is a schematic structural diagram of a signal encryption and decryption system based on time information according to a fifth embodiment of the present invention. This embodiment is opposite to the fourth embodiment, and the encryption apparatus 500 further includes a first scrambling unit 501 and a modulation unit 502. The first scrambling unit 501 is configured to scramble the time information read by the reading unit 401. Specifically, the first scrambling unit 501 may be an inverse operation scrambling unit, configured to perform an inverse operation on the time information; the device can be a logic operation scrambling unit used for carrying out logic encryption operation on the time information and a preset pseudorandom sequence, and/or an arithmetic operation scrambling unit used for carrying out arithmetic encryption operation on the time information and the preset pseudorandom sequence, wherein the logic operation scrambling unit is an exclusive-OR operation scrambling unit, an exclusive-OR operation scrambling unit or a NAND operation scrambling unit, and the arithmetic operation scrambling unit is an addition operation scrambling unit, a subtraction operation scrambling unit, a multiplication operation scrambling unit or a division operation scrambling unit; it may also be an MD5 encryption operation unit, an RSA encryption operation unit, a DES encryption operation unit, or an AES encryption operation unit. Modulating section 502 is connected between processing section 402 and transmitting section 403, and modulates the encrypted signal processed by processing section 402.
The decryption device 500 ' further comprises a first descrambling unit 501 ' and a demodulation unit 502 '. The first descrambling unit 501 'is used for descrambling the time information separated by the separation unit 402'. Specifically, descrambling may be performed in a manner corresponding to scrambling by the first scrambling unit 501. For example, the first descrambling unit 501' may be an inverse operation descrambling unit, configured to perform an inverse operation on the time information separated by the separation unit; the descrambling unit can be a logic operation descrambling unit used for carrying out logic decryption operation on the time information and a preset pseudorandom sequence, and/or an arithmetic operation descrambling unit used for carrying out arithmetic decryption operation on the time information and the preset pseudorandom sequence, wherein the logic operation descrambling unit is an exclusive OR operation descrambling unit, an exclusive OR operation descrambling unit or a NAND operation descrambling unit, and the arithmetic operation descrambling unit is an addition operation descrambling unit, a subtraction operation descrambling unit, a multiplication operation descrambling unit or a division operation descrambling unit; it may also be an MD5 decryption operation unit, an RSA decryption operation unit, a DES decryption operation unit, or an AES decryption operation unit. The demodulation unit 502 ' is connected to the receiving unit 401 ' and is configured to demodulate the encrypted signal received by the receiving unit 401 '.
In this embodiment, the first scrambling unit 501 and the modulating unit 502 are added to the encryption apparatus 400, the first descrambling unit 501 'and the demodulating unit 502' are added to the decryption apparatus 400 ', and by adding the first scrambling unit 501 and the first descrambling unit 501', when the encrypted signal is illegally intercepted, the change rule of time is not easily recognized, or the inserted time information is not recognized, so that the security is improved; by adding the modulation unit 502 and the demodulation unit 502', the stability of the signal can be improved.
Example 6:
fig. 6 is a schematic structural diagram of a signal encryption and decryption system based on time information according to a sixth embodiment of the present invention. This embodiment is opposite to the fourth embodiment, and the encryption apparatus 600 further includes a second scrambling unit 601 for scrambling the encrypted signal output by the processing unit 402. Specifically, the time information may be scrambled by using an AES encryption algorithm, negation, or by using a pseudo-random sequence.
The decryption apparatus 600 ' further comprises a second descrambling unit 601 ' for descrambling the time information received by the receiving unit 401 '. Specifically, descrambling may be performed in a manner corresponding to scrambling by the second scrambling unit 601.
In this embodiment, the second scrambling unit 601 is added to the encryption apparatus 400, and the second descrambling unit 601 'is added to the decryption apparatus 400', when the encrypted signal is illegally intercepted, the time information inserted with the change in the original signal is not easily recognized, thereby improving the security.
In summary, the present invention encrypts the original signal by using the local time information of the transmitting end, and the local time information of the transmitting end is changed, so that the intercepted signal cannot be identified by the receiving end at the next time. In a specific implementation process, the original signal may also be scrambled by using a pseudo-random sequence that varies with unit time, and correspondingly, at the same time, the receiving end descrambles by using the same pseudo-random sequence.
While the invention has been described in connection with what is presently considered to be the most practical and preferred embodiment, it is to be understood that the invention is not to be limited to the disclosed embodiment, but on the contrary, is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.

Claims (39)

1. A method for encrypting a signal based on time information, comprising:
the transmitting terminal reads the local time information of the current moment;
adding and inserting the time information into a preset field of an original signal to obtain an encrypted signal;
and sending the encrypted signal by adopting a visible light signal.
2. The signal encryption method of claim 1, after obtaining the encrypted signal, further comprising: modulating the encrypted signal.
3. The signal encryption method according to claim 1, wherein after the transmitting end reads the local time information of the current time, the method further comprises:
and scrambling the time information.
4. The signal encryption method according to claim 3, wherein scrambling the time information specifically comprises:
and performing negation operation on the time information.
5. The signal encryption method according to claim 3, wherein scrambling the time information specifically comprises:
performing logic operation on the time information and a preset pseudorandom sequence; and/or arithmetic operations.
6. The signal encryption method of claim 5, wherein the logical operation comprises:
an exclusive OR operation, or a NAND operation.
7. The signal encryption method according to claim 5, wherein the arithmetic operation comprises:
addition, subtraction, multiplication, or division operations.
8. The signal encryption method according to claim 3, wherein scrambling the time information specifically comprises:
the time information is scrambled using an MD5 encryption algorithm, an RSA encryption algorithm, a DES encryption algorithm, or an AES encryption algorithm.
9. The signal encryption method of claim 1, wherein the method further comprises:
and the transmitting end scrambles the encrypted signal.
10. The signal encryption method according to claim 1, wherein the combining the time information into the original signal specifically comprises:
adding the time information into a preset field of an original signal; or,
the time information is randomly combined into the original signal.
11. The signal encryption method of claim 1, further comprising, before the method:
an original signal is received from the outside.
12. The signal encryption method according to claim 11, wherein the original signal is: a visible light signal, an infrared signal, a far infrared signal, or an ultraviolet signal.
13. The signal encryption method according to claim 11, wherein the original signal is: a digital signal representing the ID information; or, a digital signal characterizing biometric information.
14. A method for decrypting a signal based on time information, comprising:
a receiving end receives an encrypted signal which is sent by a transmitting end and represented in a visible light signal form;
the receiving end separates time information from a preset field of the encrypted signal;
and reading local time information at the current moment, comparing the time information with the local time information, and judging that the signal is legal if the time difference is less than the preset timeout time.
15. The signal decryption method according to claim 14, wherein after the receiving end receives the encrypted signal, which is characterized in the form of a visible light signal, sent by the transmitting end, the method further comprises:
demodulating the encrypted signal.
16. The signal decryption method according to claim 14, wherein before the receiving end receives the encrypted signal, which is characterized in the form of the visible light signal, sent by the transmitting end, the method further comprises:
and the receiving end synchronizes the local time information with the time information of the transmitting end.
17. The signal decrypting method of claim 14, wherein before the receiving end separates the time information from the preset field of the encrypted signal, the method further comprises:
descrambling the encrypted signal.
18. The signal decryption method of claim 14, wherein after separating the time information from the preset field of the encrypted signal, further comprising:
and descrambling the time information.
19. The signal decryption method of claim 18, wherein descrambling the time information specifically comprises:
and performing negation operation on the time information.
20. The signal decryption method of claim 18, wherein descrambling the time information specifically comprises:
performing logic operation on the time information and a preset pseudorandom sequence; and/or arithmetic operations.
21. The signal decryption method of claim 18, wherein descrambling the time information specifically comprises:
and descrambling the time information by adopting an MD5 decryption algorithm, an RSA decryption algorithm, a DES decryption algorithm or an AES decryption algorithm.
22. A signal encryption apparatus based on time information, characterized in that the signal encryption apparatus comprises:
the reading unit is used for reading the local time information of the current moment from the clock;
the processing unit is used for adding and inserting the time information into a preset field of an original signal to obtain an encrypted signal; and the number of the first and second groups,
and the visible light signal sending unit is connected with the processing unit and is used for sending the encrypted signal.
23. The signal encryption apparatus of claim 22, further comprising a modulation unit connected between the processing unit and the visible light signal transmission unit for modulating the encrypted signal.
24. The signal encryption apparatus according to claim 22, further comprising a first scrambling unit for scrambling the time information read by the reading unit.
25. The signal encryption apparatus according to claim 24, wherein the first scrambling unit is an inverting operation scrambling unit for inverting the time information.
26. The signal encryption apparatus according to claim 24, wherein the first scrambling unit is a logical operation scrambling unit for performing a logical encryption operation on the time information with a preset pseudo random sequence; and/or the presence of a gas in the gas,
and the arithmetic operation scrambling unit is used for carrying out arithmetic encryption operation on the time information and a preset pseudorandom sequence.
27. The signal encryption apparatus of claim 26, wherein the logical operation scrambling unit is an exclusive-nor operation scrambling unit, an exclusive-or operation scrambling unit, or a nand operation scrambling unit.
28. The signal encryption apparatus of claim 26, wherein the arithmetic operation scrambling unit is an addition scrambling unit, a subtraction scrambling unit, a multiplication scrambling unit, or a division scrambling unit.
29. The signal encryption apparatus of claim 22, further comprising a second scrambling unit for scrambling the encrypted signal.
30. The signal encryption apparatus according to any one of claims 22 to 29, wherein the signal encryption apparatus is integrated with an electronic device such as a mobile phone, MP3, PSP, or a stand-alone device.
31. A signal decrypting apparatus based on time information, characterized by comprising:
the visible light signal receiving unit is used for receiving the encrypted signal which is sent by the transmitting terminal and represented in the form of the visible light signal;
a separation unit for separating time information from a preset field of the encrypted signal;
and the authentication unit is used for reading the local time information at the current moment, comparing the time information with the local time information, and judging that the signal is legal if the time difference is less than the preset timeout time.
32. The signal decrypting apparatus according to claim 31, further comprising a demodulating unit connected to the receiving unit, for demodulating the encrypted signal.
33. The signal decrypting apparatus according to claim 31, further comprising a first descrambling unit operable to descramble the time information separated by the separating unit.
34. The signal decrypting apparatus of claim 33, wherein the first descrambling unit is an inversion operation descrambling unit that inverts the time information separated by the separating unit.
35. The signal decrypting apparatus of claim 33, wherein the first descrambling unit is a logical operation descrambling unit for performing a logical decryption operation on the time information and a preset pseudo-random sequence; and/or the presence of a gas in the gas,
and the arithmetic operation descrambling unit is used for carrying out arithmetic decryption operation on the time information and a preset pseudorandom sequence.
36. The signal decrypting apparatus of claim 35, wherein the logical operation descrambling unit is an exclusive or operation descrambling unit, or a nand operation descrambling unit.
37. The signal decrypting apparatus of claim 35, wherein the arithmetic operation descrambling unit is an addition descrambling unit, a subtraction descrambling unit, a multiplication descrambling unit, or a division descrambling unit.
38. The signal decryption device of claim 31, further comprising a second descrambling unit coupled to the separating unit for descrambling the encrypted signal.
39. The signal decrypting apparatus of any one of claims 31 to 38, wherein the signal decrypting apparatus is integrated with a door lock, a locker, a home appliance, a vehicle, or a network device.
CN 201210462334 2012-11-16 2012-11-16 Time information-based signal encrypting and decrypting method and time information-based signal encrypting and decrypting device Expired - Fee Related CN102970129B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201210462334 CN102970129B (en) 2012-11-16 2012-11-16 Time information-based signal encrypting and decrypting method and time information-based signal encrypting and decrypting device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201210462334 CN102970129B (en) 2012-11-16 2012-11-16 Time information-based signal encrypting and decrypting method and time information-based signal encrypting and decrypting device

Publications (2)

Publication Number Publication Date
CN102970129A CN102970129A (en) 2013-03-13
CN102970129B true CN102970129B (en) 2013-10-30

Family

ID=47800024

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201210462334 Expired - Fee Related CN102970129B (en) 2012-11-16 2012-11-16 Time information-based signal encrypting and decrypting method and time information-based signal encrypting and decrypting device

Country Status (1)

Country Link
CN (1) CN102970129B (en)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102015955B1 (en) * 2013-03-27 2019-10-21 한화테크윈 주식회사 Method for authenticating client
CN104243148A (en) * 2013-06-24 2014-12-24 中科英华湖州工程技术研究中心有限公司 Encryption method and encryption device
CN103812657B (en) * 2013-12-31 2015-02-18 深圳光启创新技术有限公司 Authentication method
CN103956034B (en) * 2014-04-27 2017-01-25 桂林理工大学 Visible light communication and radio frequency identification dual-mode wireless control device
CN103956035B (en) * 2014-04-27 2017-02-15 桂林理工大学 Dual-mode wireless control method
CN104469330B (en) * 2015-01-04 2017-09-12 安徽波维电子科技有限公司 The outdoor unit anti-theft device of satellite television receiving system
CN105262749A (en) * 2015-10-16 2016-01-20 西北工业大学 WiFi authentication system
CN105307172B (en) * 2015-11-13 2018-11-23 四川虹信软件有限公司 Bluetooth base. station legality identification method based on dynamic time
KR102389576B1 (en) * 2016-01-08 2022-04-22 삼성전자주식회사 Apparatus and method for detecting counterfeit advertiser in wireless communication system
CN107438848A (en) * 2016-11-14 2017-12-05 北京大学深圳研究生院 A kind of file security access method, terminal device and dedicated storage means
CN107277048B (en) * 2017-07-26 2020-04-24 浙江吉利汽车研究院有限公司 Encryption and decryption method for communication authentication
CN108196225B (en) * 2018-03-27 2021-07-20 北京凌宇智控科技有限公司 Three-dimensional space positioning method and system fusing coding information
CN109005187A (en) * 2018-08-21 2018-12-14 广州飞硕信息科技股份有限公司 A kind of communication information guard method and device
CN110034821A (en) * 2019-03-25 2019-07-19 浩云科技股份有限公司 A kind of two dimensional code isolation network information transfer device and its method with feedback signal
CN110795747A (en) * 2019-10-18 2020-02-14 浪潮电子信息产业股份有限公司 Data encryption storage method, device, equipment and readable storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012153220A1 (en) * 2011-05-06 2012-11-15 Koninklijke Philips Electronics N.V. Lighting device and receiver

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102542713A (en) * 2007-12-29 2012-07-04 同方威视技术股份有限公司 Vehicle-mounted device used for anti-theft alarm system
CN102497354A (en) * 2011-11-08 2012-06-13 陈嘉贤 Method, system and device for identifying user's identity

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012153220A1 (en) * 2011-05-06 2012-11-15 Koninklijke Philips Electronics N.V. Lighting device and receiver

Also Published As

Publication number Publication date
CN102970129A (en) 2013-03-13

Similar Documents

Publication Publication Date Title
CN102970129B (en) Time information-based signal encrypting and decrypting method and time information-based signal encrypting and decrypting device
JP4610225B2 (en) COMMUNICATION SYSTEM AND DEVICE AND COMMUNICATION METHOD
US9363079B2 (en) Method of generating message authentication code and authentication device and authentication request device using the method
CN103795487B (en) Visible optical signal sending processing method, receiving processing method, and processing system, and visible optical signal transmission terminal and receiving terminal
KR101675332B1 (en) Data commincaiton method for vehicle, Electronic Control Unit and system thereof
CN102983961B (en) Encrypting and deciphering method and device based on light guide signal
WO2010103628A1 (en) Encryption communication system
JP2019024209A (en) One-way key fob and vehicle pairing
CN101394280B (en) Mobile terminal and data service message protecting method
US20070136587A1 (en) Method for device authentication
CN104168109A (en) Method and device for achieving remote controller protocol encrypted based on AES
KR101424972B1 (en) Method for using contents with a mobile card, host device, and mobile card
CN110249645B (en) Secure near field communication
KR20170032210A (en) Data commincaiton method for vehicle, Electronic Control Unit and system thereof
KR101912443B1 (en) Public key based encryption method and key generation server
CN102833065B (en) Transmitting device and method and receiving device and method based on multi-user asynchronous encryption
US20200364177A1 (en) Safety communication module
JP5280518B2 (en) Cryptographic communication system
Kandul et al. Steganography with cryptography in android
CN116821920A (en) Data storage method, device, equipment and computer storage medium
KR101489862B1 (en) Systme for controlling access authority comprising device for controlling access authority and terminal device, method for encrypting, dercypting and controlling for access authority
CN114978500A (en) Data transmission method and device, electronic equipment and storage medium
KR101094093B1 (en) Method for restricting use of mobile device in wireless lan environment
Jurdi et al. Dual channel security
KR101334574B1 (en) Method for make a secure communication channel between devices

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
ASS Succession or assignment of patent right

Owner name: SHENZHEN GUANGQI INTELLIGENT PHOTONICS TECHNOLOGY

Free format text: FORMER OWNER: SHENZHEN KUANG-CHI INNOVATION TECHNOLOGY CO., LTD.

Effective date: 20150720

C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20150720

Address after: 518000 Guangdong city of Shenzhen province Futian District Shennan Road and CaiTian Road intersection East Xintiandi Plaza C block 2007-27

Patentee after: KUANG-CHI INTELLIGENT PHOTONIC TECHNOLOGY Ltd.

Address before: 518034 A international business center, No. 1061, Xiang Mei Road, Guangdong, Shenzhen, Futian District, China 18B

Patentee before: KUANG-CHI INNOVATIVE TECHNOLOGY Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20201130

Address after: No.288, Changjiang West Road, Hai'an hi tech Zone (former Hai'an town), Hai'an City, Nantong City, Jiangsu Province 226600

Patentee after: Jiangsu Xuhui Electronics Co.,Ltd.

Address before: 226300 No. 266 Century Avenue, hi tech Zone, Jiangsu, Nantong

Patentee before: NANTONG WOTE OPTOELECTRONICS TECHNOLOGY Co.,Ltd.

Effective date of registration: 20201130

Address after: 226300 No. 266 Century Avenue, hi tech Zone, Jiangsu, Nantong

Patentee after: NANTONG WOTE OPTOELECTRONICS TECHNOLOGY Co.,Ltd.

Address before: 518000 Guangdong city of Shenzhen province Futian District Shennan Road and CaiTian Road intersection East Xintiandi Plaza C block 2007-27

Patentee before: KUANG-CHI INTELLIGENT PHOTONIC TECHNOLOGY Ltd.

CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20131030

CF01 Termination of patent right due to non-payment of annual fee