Summary of the invention
Technical problem to be solved by this invention is that the illegal signals that is replicated when avoiding wireless near field communication is by the authentication of receiving terminal, thus the reduction fail safe.
In order to solve the problems of the technologies described above, the embodiment of the invention provides a kind of signal encryption method of time-based information, comprising:
Transmitting terminal reads the local time information of current time;
Described temporal information is merged in the primary signal, obtain coded signal.
Optionally, described method also comprises: described coded signal is sent.
Wherein, described coded signal is sent, specifically comprises:
Adopt visible light signal, infrared signal, far infrared signal, UV signal, radiofrequency signal, Bluetooth signal, laser signal or wifi signal that described coded signal is sent.
Optionally, obtain also to comprise: described coded signal is modulated after the coded signal.
Optionally, transmitting terminal reads after the local time information of current time, also comprises:
Described temporal information is carried out scrambling.
Optionally, described temporal information is carried out scrambling, specifically comprises:
Described temporal information is carried out the negate computing.
Optionally, described temporal information is carried out scrambling, specifically comprises:
Described temporal information and the pseudo random sequence that presets are carried out logical operation; And/or arithmetical operation.
Optionally, described logical operation comprises:
Same exclusive disjunction, XOR or NAND operation.
Wherein, described arithmetical operation comprises:
Addition, subtraction, multiplication or division arithmetic.
Wherein, described temporal information is carried out scrambling, specifically comprises:
Adopt md5 encryption algorithm, RSA cryptographic algorithms, des encryption algorithm or AES cryptographic algorithm that temporal information is carried out scrambling.
Optionally, described method also comprises:
Transmitting terminal carries out scrambling to described coded signal.
Optionally, described temporal information is merged in the primary signal, specifically comprises:
Described temporal information is added the preset field that is inserted into primary signal; Perhaps,
Described temporal information is merged in the primary signal at random.
Optionally, also comprise before the described method:
Receive primary signal from the outside.
Wherein, described primary signal is: visible light signal, infrared signal, far infrared signal or UV signal.
Optionally, described primary signal is: the digital signal that characterizes id information; Perhaps, the digital signal of characterising biological characteristic information.
In order to solve the problems of the technologies described above, the embodiment of the invention also provides a kind of decrypted signal method of time-based information, comprising:
Receiving terminal is isolated temporal information from coded signal;
Read the local time information of current time, described temporal information and local time information compared, if the time difference less than default time-out time, decision signal is legal.
Optionally, also comprise before the described method:
Receiving terminal receives the coded signal that transmitting terminal sends.
Optionally, described receiving terminal receives after the coded signal of transmitting terminal transmission, also comprises:
Described coded signal is carried out demodulation.
Wherein, described receiving terminal receives the coded signal that transmitting terminal sends, and specifically comprises:
The coded signal that the form with visible light signal, infrared signal, far infrared signal, UV signal, radiofrequency signal, Bluetooth signal, laser signal or wifi signal that receiving terminal reception transmitting terminal sends characterizes.
Optionally, described receiving terminal receives before the coded signal of transmitting terminal transmission, also comprises:
Described receiving terminal carries out the temporal information of local time information and transmitting terminal synchronously.
Optionally, receiving terminal is isolated from coded signal before the temporal information, also comprises:
Described coded signal is carried out descrambling.
Optionally, from described coded signal, isolate after the temporal information, also comprise:
Described temporal information is carried out descrambling.
Optionally, described temporal information is carried out descrambling, specifically comprises:
Described temporal information is carried out the negate computing.
Wherein, described temporal information is carried out descrambling, specifically comprises:
Described temporal information and the pseudo random sequence that presets are carried out logical operation; And/or arithmetical operation.
Wherein, described temporal information is carried out descrambling, specifically comprises:
Adopt MD5 decipherment algorithm, RSA decipherment algorithm, DES decipherment algorithm or AES decipherment algorithm that temporal information is carried out descrambling.
In order to solve the problems of the technologies described above, the embodiment of the invention also provides a kind of signal encryption device of time-based information, and described signal encryption device comprises:
Reading unit is used for the local time information from the Clockreading current time;
Processing unit is used for described temporal information is merged to primary signal, obtains coded signal.
Optionally, described signal encryption device also comprises the transmitting element that is connected with described processing unit, is used for sending described coded signal.
Wherein, described transmitting element is visible light signal transmitting element, infrared signal transmitting element, far infrared signal transmitting unit, UV signal transmitting element, radiofrequency signal transmitting element, Bluetooth signal transmitting element, laser signal transmitting element or wifi signal transmitting unit.
Optionally, described signal encryption device also comprises the modulating unit that is connected between described processing unit and the transmitting element, is used for described coded signal is modulated.
Optionally, described signal encryption device also comprises the first scrambling unit, is used for the temporal information that described reading unit reads is carried out scrambling.
Optionally, described the first scrambling unit is anti-phase computing scrambling unit, is used for described temporal information is carried out the negate computing.
Optionally, described the first scrambling unit is logical operation scrambling unit and/or arithmetical operation scrambling unit.
Wherein, described logical operation scrambling unit is with exclusive disjunction scrambling unit, XOR scrambling unit or NAND operation scrambling unit.
Wherein, described arithmetical operation scrambling unit is add operation scrambling unit, subtraction scrambling unit, multiplying scrambling unit or division arithmetic scrambling unit.
Optionally, described signal encryption device also comprises the second scrambling unit, is used for described coded signal is carried out scrambling.
Wherein, described signal encryption device can be integrated on the electronic equipments such as mobile phone, MP3 or PSP.
In order to solve the problems of the technologies described above, the embodiment of the invention also provides a kind of decrypted signal device of time-based information, and described decrypted signal device comprises:
Separative element is used for isolating temporal information from coded signal;
Authenticating unit is used for reading the local time information of current time, described temporal information and local time information are compared, if the time difference less than the time-out time of presetting, decision signal is legal.
Optionally, described decrypted signal device also comprises receiving element, is used for receiving the coded signal that transmitting terminal sends.
Optionally, described decrypted signal device also comprises the demodulating unit that is connected with described receiving element, is used for described coded signal is carried out demodulation.
Wherein, described receiving element is visible light signal receiving element, infrared signal receiving element, far infrared signal receiving unit, UV signal receiving element, radiofrequency signal receiving element, Bluetooth signal receiving element, laser signal receiving element or wifi signal receiving unit.
Optionally, described decrypted signal device also comprises the first descrambling unit, is used for the isolated temporal information of described separative element is carried out descrambling.
Optionally, described the first descrambling unit is anti-phase computing descrambling unit, is used for the isolated temporal information of described separative element is carried out the negate computing.
Optionally, described the first descrambling unit is logical operation descrambling unit, is used for described temporal information and the pseudo random sequence that presets are carried out logical operation; And/or,
Arithmetical operation descrambling unit is used for described temporal information and the pseudo random sequence that presets are carried out arithmetical operation.
Wherein, described logical operation descrambling unit is with exclusive disjunction descrambling unit, XOR descrambling unit or NAND operation descrambling unit.
Wherein, described arithmetical operation descrambling unit is add operation descrambling unit, subtraction descrambling unit, multiplying descrambling unit or division arithmetic descrambling unit.
Optionally, described decrypted signal device also comprises the second descrambling unit that is connected with described separative element, is used for described coded signal is carried out descrambling.
Wherein, described decrypted signal device can be integrated on the receiving terminals such as door lock, household electrical appliance or office equipment.
In the technique scheme, transmitting terminal adopts local time information that primary signal is encrypted, therefore the legal signal of transmitting terminal transmission changes with local time information, and the signal replication that is intercepted needs the time, therefore reproducing signals is different from the signal that the transmitting terminal current time sends, the temporal information that reproducing signals carries and receiving terminal local zone time are poor greater than time-out time, can't be by the authentication of receiving terminal, thus improved the fail safe of signal transmission.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, enumerate respectively embodiment the technical scheme in the embodiment of the present invention is described.
At first, for those skilled in the art better understand technical scheme of the present invention, the below carries out brief description to technical scheme of the present invention:
The principle that transmitting terminal of the present invention is encrypted is to merge temporal information in primary signal, this temporal information representative be the time of transmitting terminal when transmitting.Receiving terminal is judged the time and its local clock time of transmitting terminal by the temporal information field in the signal that receives, in the situation of the time-out time that does not exceed regulation, then be judged as legal signal.Because the time of transmitting terminal and receiving terminal all calibrates with same time standard, so that their time changes is all the same, in and the situation that do not grow running time little in error, both time differences can not exceed official hour.And the signal that copies can not change in time, so the field of its time information can remain unchanged, and the local zone time of receiving terminal changes, variation along with the time, the signal time information field that finally copies and the poor time-out time that exceeds regulation of the local zone time of receiving terminal, as long as the time-out time of regulation is made the same transmit needed time of equipment less than copying visible light signal, the signal that then copies just always is judged as illegal signal.
Wherein, time-out time can arrange different values according to level of security, and high such as security level required, it is 3 minutes that time-out time is set; Higher such as security level required, it is 10 minutes that time-out time then is set; Medium such as security level required, it is 20 minutes that time-out time then is set.
Embodiment 1:
Referring to Fig. 1, be the signal encryption of a kind of time-based information of providing of the embodiment of the invention one and the method flow diagram of deciphering, the method for these encryption and decryption specifically comprises:
(1) ciphering process:
S101: transmitting terminal reads the local time information of current time by local clock.As, transmitting terminal is 10: 57 on the 15th August in 2012 from the local time information that local clock reads current time, decimally the standard time form shfft of numeral is shown 201208151057.
S102: transmitting terminal merges to the local time information that reads in the primary signal, obtains coded signal.
Concrete, can adopt the mode of inserting at random that local zone time is added and be inserted in the primary signal; Also temporal information can be added the preset field that is inserted into primary signal; Perhaps according to preset rules temporal information is added in the different field that is inserted into primary signal.
For example, transmitting terminal adds the preset field that is inserted into primary signal with the local time information that reads, and the data format of primary signal is: head-information source-check digit; The data format of coded signal is: head-information source-temporal information-check digit.Suppose that head is expressed as 1111 with binary digit, information source part field is to be expressed as 10000001 with binary digit ID number, the check code field is expressed as 1010 with binary digit, and the time-out time that regulation is set is 10 minutes, and wherein the temporal information field is accurate to minute.At T1 constantly, the temporal information of transmitter is assumed to be 10: 57 on the 15th August in 2012, is shown 201208151057 with the standard time form shfft of cross numeral processed.Each ten system numeral is expressed as 0,010 0,000 00,010,010 0,000 1,000 0,001 0,101 0,001 0,000 0,101 0111 with binary digit.Be shown 11,111,000,000,100,100,000,000,100,100,000,100,000,010,101,000,100,000,101 01111010 at T1 coded signal constantly with binary form so.
S103: transmitting terminal sends the form of coded signal with visible light signal.For example, with the form emission coded signal of flash of light, " 1 " of the bright representative binary data of lamp, lamp goes out and represents " 0 " of binary data.
In concrete implementation process, according to the demand of communication system, coded signal also can infrared signal, the form of far infrared signal, UV signal, radiofrequency signal, Bluetooth signal, laser signal or wifi signal sends.
The cipher mode that adopts embodiment 1 to provide if the visible light signal launched of visible light signal transmitting terminal is captured by high-speed camera constantly at T1, and utilizes the signal of taking to copy, and then makes the VISIBLE LIGHT EMISSION equipment that can launch reproducing signals.Supposing to make this needed shortest time of VISIBLE LIGHT EMISSION equipment is 30 minutes, when then completing this equipment, time has arrived T2 constantly, and be exactly T1 signal constantly at this reproducing signals that constantly sends with the VISIBLE LIGHT EMISSION equipment of making, T1 is 30 minutes with the T2 time difference constantly constantly, greater than time-out time 10 minutes, the reproducing signals that the VISIBLE LIGHT EMISSION equipment of therefore making sends was illegal signal.
(2) decrypting process:
S104: receiving terminal receives emission and sends the coded signal that characterizes with the visible light signal form.
In concrete implementation process, coded signal also can be the form sign with infrared signal, far infrared signal, UV signal, radiofrequency signal, Bluetooth signal, laser signal or wifi signal.
S105: the visible light signal that receiving terminal will characterize coded signal is converted to the signal of telecommunication, then the signal of telecommunication is converted to digital signal.For example, the digital signal that obtains characterizing coded signal is 11,111,000,000,100,100,000,000,100,100,000,100,000,010,101,000,100,000,101 01111010.
S106: receiving terminal is isolated temporal information from the digital signal that characterizes coded signal.For example, isolated temporal information is 0,010 0,000 0,001 0,010 0,000 1,000 0,001 0,101 0,001 0,000 0,101 0111, decimally is expressed as: 201208151057.
S107: receiving terminal read local temporal information.Lack to the time compole of receiver because transmitting terminal sends light signal, and receiving terminal and transmitting terminal also be synchronous in time, so the local time information that receiving terminal reads also is 201208151057.
S108: receiving terminal compares the isolated temporal information of S106 and local time information, if the time difference less than default time-out time, decision signal is legal.
The isolated temporal information of receiving terminal is to be 201208151057 with local time information, and the time difference is 0, less than the time-out time 10 minutes of regulation, so be legal signal.
The manner of decryption that adopts embodiment 1 to provide, at T1 constantly, receiving terminal receives and is converted to metric standard time form is 201208151057, and at T2 constantly, after receiver received reproducing signals, the time of this locality of reading was 201208151127.Two times compare, and the time difference is 30 minutes, obvious time-out time greater than stipulating 10 minutes, and can be judged to be the illegal signal that copies this moment.And for legal transmitting terminal, its clock is always done to change synchronously with the clock of receiver, and its time difference can not exceed the time-out time of regulation, so always can be considered to legal signal.
Embodiment 2:
Referring to Fig. 2, be the signal encryption of a kind of time-based information of providing of the embodiment of the invention two and the method flow diagram of deciphering, the method for these encryption and decryption specifically comprises:
(1) ciphering process:
S201: transmitting terminal reads the local time information of current time by local clock.Suppose that current time is T1, transmitting terminal is 08: 30 on the 12nd October in 2012 from the local time information that local clock reads current time, decimally the standard time form shfft of numeral is shown 201210120830, and each ten system numeral is expressed as 0,010 0,000 0,001 0,010 0,001 0,000 0,001 0,010 0,000 10,000,011 0000 with binary digit.
S202: transmitting terminal carries out scrambling to temporal information.Concrete, transmitting terminal can take temporal information is carried out the mode scrambling of negate computing; Also temporal information and the pseudo random sequence that presets can be carried out logical operation, and/or the mode scrambling of arithmetical operation, for example adopt same exclusive disjunction, XOR or NAND operation in the logical operation, and/or the addition in the arithmetical operation, subtraction, multiplication or division arithmetic; Can also adopt md5 encryption algorithm, RSA cryptographic algorithms, des encryption algorithm or AES cryptographic algorithm that temporal information is carried out scrambling.
Take the pseudo random sequence scrambling as example, suppose that pseudo random sequence is 1,010 0,110 0,101 0,010 1,000 01,001,001 0,110 0,001 1,111 0,011 0101, this pseudo random sequence and temporal information are carried out logical operation, as carry out after the XOR, the temporal information that obtains after the scrambling is: 1,000 0,110 0,100 0,000 1,001 01,001,000 0,100 0,001 0,111 0,000 0101, be shown 864094841705 with binary form.
S203: transmitting terminal adds the preset field that is inserted into primary signal with the local time information of scrambling, obtains coded signal.
For example, the data format of primary signal is: head-information source-check digit; The data format of coded signal is: head-information source-temporal information-check digit.Suppose that head is expressed as 1111 with binary digit, information source part field is to be expressed as 10000001 with binary digit ID number, and the check code field is expressed as 1010 with binary digit, and wherein the temporal information field is accurate to minute.At T1 constantly, the coded signal in namely 2012 on October 12,08: 30 is shown 11,111,000,000,110,000,110,010,000,001,001,010,010,000,100,000,101,110,000 01011010 with binary form so.
And not to the coded signal of temporal information scrambling, be shown 11,111,000,000,100,100,000,000,100,100,001,000,000,010,010,000,010,000,011 00001010 at T1 coded signal constantly with binary form.
S204: transmitting terminal is modulated coded signal.
S205: transmitting terminal sends the form of coded signal with infrared signal.
Concrete, transmitting terminal is with the transmission of switching on, outage realizes infrared signal, and switch on available " 1 " represents that outage represents with " 0 ".
In concrete implementation process, according to the demand of communication system, coded signal also can send with the form of visible light signal, the form of radiofrequency signal, the form of far infrared signal, the form of Bluetooth signal, the form of laser signal or the form of wifi signal.
The relative embodiment 1 of present embodiment, if coded signal is illegally intercepted, and the data in the data of discovery insertion primary signal are time dependent, but because temporal information has been done scrambling, the numeral of decoding out insertion is " 864094841705 ", and fict temporal information " 201210120830 " is difficult to find that data inserting is temporal information, namely be difficult for finding the Changing Pattern of transmitted signal, further improved fail safe.
(2) decrypting process:
S206: receiving terminal receives the coded signal that characterizes with the infrared signal form.
S207: receiving terminal carries out demodulation to the coded signal that receives.
S208: isolate temporal information the coded signal of receiving terminal after demodulation.For example, isolated temporal information is 1,000 0,110 0,100 0,000 1,001 0,100 1,000 0,100 0,001 0,111 0,000 0101, decimally is expressed as: 864094841705.
S209: receiving terminal carries out descrambling to isolated temporal information.
Concrete, adopt S203 that mode corresponding to the mode of temporal information scrambling carried out descrambling.To adopt the pseudo random sequence descrambling as example, suppose that pseudo random sequence is 1,010 0,110 0,101 0,010 1,000 0,100 1,001 01,100,001 1,111 0,011 0101, this pseudo random sequence and isolated temporal information are carried out logical operation, as carry out after the XOR, the temporal information that obtains behind the descrambling is: 0,010 0,000 0,001 0,010 0,001 00,000,001 0,010 0,000 1,000 0,011 0000, be shown 201210120830 with binary form.
S210: receiving terminal read local temporal information.Because it is short to the time compole of receiver that transmitting terminal sends infrared signal, and receiving terminal and transmitting terminal also be synchronous in time, so the local time information that receiving terminal reads can be above 10 minutes.
S211: receiving terminal compares the isolated temporal information of S208 and local time information, if the time difference less than default time-out time, decision signal is legal.
The isolated temporal information of receiving terminal is 201210120830, and local time information is 201210120831, and the time difference is 1 minute, less than default time-out time 10 minutes, so be legal signal.
The manner of decryption that adopts embodiment 2 to provide, at T1 constantly, receiving terminal receives and is converted to metric standard time form is 201210120830, at T2 constantly, after receiver received reproducing signals, the time of this locality of reading was 201210120905.Two times compare, and the time difference is 35 minutes, obvious time-out time greater than stipulating 10 minutes, and can judge that the reproducing signals of reception is illegal signals this moment.And for legal transmitting terminal, its clock is always done to change synchronously with the clock of receiver, and its time difference can not exceed the time-out time of regulation, so always can be considered to legal signal.
Embodiment 3:
Referring to Fig. 3, be the signal encryption of a kind of time-based information of providing of the embodiment of the invention three and the method flow diagram of deciphering, the method for these encryption and decryption specifically comprises:
(1) ciphering process
S301: transmitting terminal reads the local time information of current time by local clock.As, transmitting terminal is 10: 57 on the 15th August in 2012 from the local time information that local clock reads current time, decimally the standard time form shfft of numeral is shown 201208151057.
S302: the local time information that reads is added the preset field that is inserted into primary signal, obtain coded signal.
For example, the data format of primary signal is: head-information source-check digit; The data format of coded signal is: head-information source-temporal information-check digit.Suppose that head is expressed as 1111 with binary digit, information source part field is to be expressed as 10000001 with binary digit ID number, the check code field is expressed as 1010 with binary digit, and the time-out time that regulation is set is 10 minutes, and wherein the temporal information field is accurate to minute.At T1 constantly, the temporal information of transmitter is assumed to be 10: 57 on the 15th August in 2012, is expressed as 0,010 0,000 0,001 0,010 0,000 1,000 0,001 0,101 0,001 0,000 0,101 0111 with binary digit.Be shown 11,111,000,000,100,100,000,000,100,100,000,100,000,010,101,000,100,000,101 01111010 at T1 coded signal constantly with binary form so.
S303: adopt md5 encryption algorithm, RSA cryptographic algorithms, des encryption algorithm, AES cryptographic algorithm, negate or utilize the mode such as pseudo random sequence that coded signal is carried out scrambling.
Take the pseudo random sequence scrambling as example, suppose that pseudo random sequence is 1,011 1,001 1,000 1,010 0,110 01,010,010 1,000 0,100 1,001 0,110 0,001 1,111 0,011 0,101 0100, this pseudo random sequence and temporal information are carried out logical operation, as carry out after the XOR, the enciphered message that obtains after the scrambling is: 0,100 00,011,001 1,000 0,110 0,100 0,000 1,000 1,100 1,000 0,011 0,000 1,111 0,110 0,010 1110.
The information of inserting in primary signal is 1,000 0,110 0,100 0,000 1,000 1,100 1,000 0,011 00,001,111 0,110 0010, decimally is expressed as: 86408128301562, and the information 201208151057 of fict time.
S304: the form of the coded signal after the scrambling with radiofrequency signal sent.
In concrete implementation process, according to the demand of communication system, coded signal also can send with the form of infrared signal, the form of visible light signal or the form of Bluetooth signal or the form of wifi signal.
The relative embodiment 1 of present embodiment, if coded signal is illegally intercepted, and the data of finding the insertion primary signal are time dependent, but because temporal information has been done scrambling, the numeral of decoding out insertion is " 86408128301562 ", and fict temporal information " 201208151057 " therefore is difficult to find that data inserting is temporal information, namely be difficult for finding the Changing Pattern of transmitted signal, further improved fail safe.
(2) decrypting process:
S305: receiving terminal receives the coded signal that characterizes with radiofrequency signal.
S306: receiving terminal is converted to digital signal with radiofrequency signal.As, the digital signal that characterizes coded signal is 0,100 0,001 1,001 1,000 0,110 0,100 0,000 1,000 1,100 1,000 0,011 0,000 1,111 01,100,010 1110.
S307: receiving terminal carries out descrambling to the digital signal that S306 is converted to.Take the pseudo random sequence descrambling as example, suppose that pseudo random sequence is 1,011 1,001 1,000 1,010 0,110 0,101 0,010 1,000 0,100 10,010,110 0,001 1,111 0,011 0,101 0100, this pseudo random sequence is carried out logical operation with the digital signal that characterizes enciphered message, as carry out after the XOR, the enciphered message that obtains behind the descrambling is: 11,111,000,000,100,100,000,000,100,100,000,100,000,010,101,000,100,000,101 01111010.
S308: receiving terminal is isolated temporal information from the digital signal that characterizes coded signal.For example, isolated temporal information is 0,010 0,000 0,001 0,010 0,000 1,000 0,001 0,101 0,001 0,000 0,101 0111, decimally is expressed as: 201208151057.
S309: receiving terminal read local temporal information.Lack to the time compole of receiver because transmitting terminal sends light signal, and receiving terminal and transmitting terminal also be synchronous in time, so the local time information that receiving terminal reads also is 201208151057.
S310: receiving terminal compares the isolated temporal information of S308 and local time information, if the time difference less than default time-out time, decision signal is legal.
The isolated temporal information of receiving terminal is to be 201208151057 with local time information, and the time difference is 0, less than the time-out time 10 minutes of regulation, so be legal signal.
The manner of decryption that adopts embodiment 1 to provide, at T1 constantly, receiving terminal receives and is converted to metric standard time form is 201208151057, and T2 constantly, when receiver received the reproducing signals of signal gained when copying T1, the time of this locality of reading was 201208151127.Two times compare, and the time difference is 30 minutes, and obvious time-out time greater than stipulating 10 minutes can judge that the reproducing signals of reception is illegal signals.And for legal transmitting terminal, its clock is always done to change synchronously with the clock of receiver, and its time difference can not exceed the time-out time of regulation, so always can be considered to legal signal.
In other embodiments, can also adopt the modes such as md5 encryption algorithm, RSA cryptographic algorithms, des encryption algorithm, AES cryptographic algorithm, negate or pseudo random sequence that temporal information and coded signal are carried out scrambling.
Embodiment 4:
Referring to Fig. 4, be signal encryption and the deciphering system configuration schematic diagram of a kind of time-based information of providing of the embodiment of the invention four.Wherein, signal encryption device 400 can be integrated on the electronic equipments such as mobile phone, MP3 or PSP, also can be self-existent device, comprises reading unit 401, is used for the local time information from the Clockreading current time.As, transmitting terminal is 10: 57 on the 15th August in 2012 from the local time information that local clock reads current time, decimally the standard time form shfft of numeral is shown 201208151057.The processing unit 402 that is connected with reading unit 401 is used for described temporal information is merged to primary signal, obtains coded signal.For example, the data format of primary signal is: head-information source-check digit; The data format of coded signal is: head-information source-temporal information-check digit.Suppose that head is expressed as 1111 with binary digit, information source part field is to be expressed as 10000001 with binary digit ID number, and the check code field is expressed as 1010 with binary digit.Be shown 11,111,000,000,100,100,000,000,100,100,000,100,000,010,101,000,100,000,101 01111010 at T1 coded signal constantly with binary form so.The transmitting element 403 that is connected with processing unit 402 is used for the coded signal after transmission processing unit 402 is processed.According to real needs, this transmitting element 403 can be visible light signal transmitting element, infrared signal transmitting element, far infrared signal transmitting unit, UV signal transmitting element, radiofrequency signal transmitting element, Bluetooth signal transmitting element, laser signal transmitting element or wifi signal transmitting unit in concrete implementation process.
Decryption device 400 ' can be integrated on the receiving terminals such as door lock, locker, household electrical appliance, office equipment, industrial equipment, the vehicles or the network equipment, comprise receiving element 401 ', be used for to receive encryption device 400(transmitting terminal) coded signal that sends.This receiving element 401 ' can be visible light signal receiving element, infrared signal receiving element, far infrared signal receiving unit, UV signal receiving element, radiofrequency signal receiving element, Bluetooth signal receiving element, laser signal receiving element or wifi signal receiving unit.
The separative element 402 ' that is connected with receiving element 401 ', be used for isolating temporal information from coded signal, for example from following binary system coded signal 11,111,000,000,100,100,000,000,100,100,000,100,000,010,101,000,100,000,101 01111010, isolate temporal information 001000000001001000001000000101010001000001010111, decimally be expressed as 201208151057.The authenticating unit 403 ' that is connected with separative element 402 ' is used for reading from local clock the local time information of current time, described temporal information and local time information are compared, if the time difference less than the time-out time of presetting, decision signal is legal.For example, authenticating unit 403 ' from the time that local clock reads be 201208151058, with time difference of the temporal information that receives be 1 minute, less than default time-out time 10 minutes, decision signal was legal.
Embodiment 5:
Referring to Fig. 5, be signal encryption and the deciphering system configuration schematic diagram of a kind of time-based information of providing of the embodiment of the invention five.This embodiment is with respect to embodiment four, and encryption device 500 also comprises the first scrambling unit 501 and modulating unit 502.The first scrambling unit 501 is used for the temporal information that described reading unit 401 reads is carried out scrambling.Concrete, this first scrambling unit 501 can be anti-phase computing scrambling unit, is used for described temporal information is carried out the negate computing; It can be the logical operation scrambling unit, be used for described temporal information and the pseudo random sequence that presets are carried out the logical encrypt computing, and/or arithmetical operation scrambling unit, be used for described temporal information and the pseudo random sequence that presets are carried out the arithmetic cryptographic calculation, wherein, the logical operation scrambling unit is with exclusive disjunction scrambling unit, XOR scrambling unit or NAND operation scrambling unit, and the arithmetical operation scrambling unit is add operation scrambling unit, subtraction scrambling unit, multiplying scrambling unit or division arithmetic scrambling unit; Can also be md5 encryption arithmetic element, rsa encryption arithmetic element, des encryption arithmetic element or AES cryptographic calculation unit.Modulating unit 502 is connected between described processing unit 402 and the transmitting element 403, is used for the coded signal that obtains after processing unit 402 processing is modulated.
Decryption device 500 ' also comprises the first descrambling unit 501 ' and demodulating unit 502 '.The first descrambling unit 501 ' is used for separative element the 402 ' isolated temporal information is carried out descrambling.Concrete, can adopt the mode corresponding with 501 scramblings of the first scrambling unit to carry out descrambling.For example, this first descrambling unit 501 ' can be anti-phase computing descrambling unit, is used for the isolated temporal information of separative element is carried out the negate computing; It can be logical operation descrambling unit, be used for described temporal information and the pseudo random sequence that presets are carried out the logic decrypt operation, and/or arithmetical operation descrambling unit, be used for described temporal information and the pseudo random sequence that presets are carried out the arithmetic decrypt operation, wherein, logical operation descrambling unit is with exclusive disjunction descrambling unit, XOR descrambling unit or NAND operation descrambling unit, and arithmetical operation descrambling unit is add operation descrambling unit, subtraction descrambling unit, multiplying descrambling unit or division arithmetic descrambling unit; Can also be MD5 decrypt operation unit, RSA decrypt operation unit, DES decrypt operation unit or AES decrypt operation unit.Demodulating unit 502 ' is connected with described receiving element 401 ', is used for the coded signal that receiving element 401 ' receives is carried out demodulation.
Present embodiment has increased the first scrambling unit 501 and modulating unit 502 with respect to encryption device 400, decryption device 400 ' has increased by the first descrambling unit 501 ' and demodulating unit 502 ' relatively, by increasing the first scrambling unit 501 and the first descrambling unit 501 ', when coded signal is illegally intercepted, the Changing Pattern that is difficult for the time of identifying, what perhaps can not identify insertion is temporal information, thereby has improved fail safe; By increasing modulating unit 502 and demodulating unit 502 ', can improve the stability of signal.
Embodiment 6:
Referring to Fig. 6, be signal encryption and the deciphering system configuration schematic diagram of a kind of time-based information of providing of the embodiment of the invention six.This embodiment is with respect to embodiment four, and encryption device 600 also comprises the second scrambling unit 601, is used for the coded signal of processing unit 402 outputs is carried out scrambling.Concrete, can adopt AES cryptographic algorithm, negate or utilize the mode such as pseudo random sequence that temporal information is carried out scrambling.
Decryption device 600 ' also comprises the second descrambling unit 601 ', is used for the temporal information that receiving element 401 ' receives is carried out descrambling.Concrete, can adopt the mode corresponding with 601 scramblings of the second scrambling unit to carry out descrambling.
Present embodiment has increased by the second scrambling unit 601 with respect to encryption device 400, decryption device 400 ' has increased by the second descrambling unit 601 ' relatively, when coded signal is illegally intercepted, be difficult for identifying in primary signal, having inserted the temporal information that changes, thereby improved fail safe.
In sum, the invention process adopts the temporal information of transmitting terminal this locality that primary signal is encrypted, and the temporal information of transmitting terminal this locality changes, so the signal of being intercepted and captured can not be identified the receiving end at the next one constantly, in order further to improve fail safe, can also carry out scrambling to the primary signal after local time information or the encryption.In concrete implementation process, can also adopt the pseudo random sequence that changes with the unit interval that primary signal is carried out scrambling, corresponding, at synchronization, receiving terminal adopts identical pseudo random sequence to carry out descrambling.
Above disclosed is a kind of preferred embodiments of the present invention only, certainly can not limit with this interest field of the present invention, and the equivalent variations of therefore doing according to claim of the present invention still belongs to the scope that the present invention is contained.