CN105072094A - Voice data encryption method and vehicle-mounted terminal - Google Patents

Voice data encryption method and vehicle-mounted terminal Download PDF

Info

Publication number
CN105072094A
CN105072094A CN201510425367.2A CN201510425367A CN105072094A CN 105072094 A CN105072094 A CN 105072094A CN 201510425367 A CN201510425367 A CN 201510425367A CN 105072094 A CN105072094 A CN 105072094A
Authority
CN
China
Prior art keywords
car
mounted terminal
terminal
voice data
user terminal
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.)
Granted
Application number
CN201510425367.2A
Other languages
Chinese (zh)
Other versions
CN105072094B (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.)
Shenzhen Launch Technology Co Ltd
Original Assignee
Shenzhen Launch Technology Co 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 Shenzhen Launch Technology Co Ltd filed Critical Shenzhen Launch Technology Co Ltd
Priority to CN201510425367.2A priority Critical patent/CN105072094B/en
Publication of CN105072094A publication Critical patent/CN105072094A/en
Application granted granted Critical
Publication of CN105072094B publication Critical patent/CN105072094B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload

Abstract

The embodiment of the invention discloses a voice data encryption method and a vehicle-mounted terminal. The method comprises: when detecting that a conversation connection is established, the vehicle-mounted terminal obtains voice data acquired in a conversation connection process; the vehicle-mounted terminal generates an encryption key according to a preset encryption method by using a data list including the terminal equipment number of the vehicle-mounted terminal and encryptes the voice data by using the encryption key in order to obtain encrypted voice data; and the vehicle-mounted terminal sends the encrypted voice data to a user terminal establishing the conversation connection in order that the user terminal generates a decryption key used for decrypting the encrypted voice data and decrypts the encrypted voice data with the decryption key. Accordingly, the method may improve security in a voice data transmission process.

Description

A kind of method of encrypt voice data and car-mounted terminal
Technical field
The present invention relates to communication technical field, particularly relate to a kind of method and car-mounted terminal of encrypt voice data.
Background technology
Along with the development of the communication technology, quality is high, multi-functional, reliability high not only to require communication system to have, and it is also proposed more and more higher requirement to the confidentiality of communication system, and the scope of coded communication extends to domestic consumer from special user.The disguise that existing communication system provides, confidentiality and fail safe cannot meet the requirement of secret communication.For fixing telephone system, only needing simply to make contact just to reach the object of eavesdropping; Even the mobile car-mounted terminal that confidentiality is higher, also voice are not encrypted, thus reduce the fail safe of voice data transmission.
Summary of the invention
Embodiments provide a kind of method and car-mounted terminal of encrypt voice data, the fail safe in voice data transmission process can be improved.
First aspect, the embodiment of the invention discloses a kind of method of encrypt voice data, comprising:
When detecting built vertical call and connecting, car-mounted terminal obtains the speech data collected in described call connection process;
Described car-mounted terminal uses the data list of the terminal equipment number comprising described car-mounted terminal to generate encryption key according to the cipher mode preset, and uses described encryption key to be encrypted described speech data, obtains encrypted voice data;
Described car-mounted terminal sends described encrypted voice data to the user terminal setting up described call connection, to make the decruption key of described user terminal generation for deciphering described encrypted voice data, described decruption key is used to be decrypted described encrypted voice data.
In conjunction with the implementation of first aspect, in the first possible implementation of first aspect, described method can also comprise the following steps:
Described car-mounted terminal receives the described decruption key that described user terminal sends, and detects described encryption key and whether described decruption key matches;
If described car-mounted terminal detects described encryption key and described decruption key matches, described car-mounted terminal sends for triggering the play instruction that described user terminal is decrypted described enciphered data to described user terminal, described play instruction is responded to make described user terminal, to use described decruption key, described encrypted voice data is decrypted, to obtain decrypted voice data, and play described decrypted voice data.
In conjunction with the first possible implementation of first aspect, in the implementation that the second of first aspect is possible, described method also comprises:
Do not mate with described decruption key if described car-mounted terminal detects described encryption key, then described car-mounted terminal stops sending speech data to described user terminal.
In conjunction with any one implementation in the implementation that the second of the implementation of first aspect, the first possible implementation of first aspect and first aspect is possible, in the third possible implementation of first aspect, described method can also comprise the following steps:
Described car-mounted terminal sends call connection request to described user terminal, described call connection request carries the terminal equipment number of described car-mounted terminal, described terminal equipment is number for generating solution decryption key, and this decruption key is used for being decrypted the enciphered data that described car-mounted terminal sends;
When described car-mounted terminal receive described user terminal respond the connection response that described call connection request sends time, set up the data list comprising described terminal equipment number.
In conjunction with the third possible implementation of first aspect, in the 4th kind of possible implementation of first aspect, described car-mounted terminal uses the data list of the terminal equipment number comprising described car-mounted terminal to generate encryption key according to the cipher mode preset, and comprising:
Described car-mounted terminal extracts described terminal equipment number from described data list;
Described car-mounted terminal uses described terminal equipment number to generate encryption key according to the cipher mode preset.
Second aspect, the embodiment of the invention discloses a kind of car-mounted terminal, comprising:
Acquiring unit, for when detecting built vertical call and connecting, obtains the speech data collected in described call connection process;
Generation unit, generates encryption key for using the data list of the terminal equipment number comprising described car-mounted terminal according to the cipher mode preset;
Ciphering unit, for using described encryption key to be encrypted described speech data, obtains encrypted voice data;
First transmitting element, for sending described encrypted voice data to the user terminal setting up described call connection, to make the decruption key of described user terminal generation for deciphering described encrypted voice data, described decruption key is used to be decrypted described encrypted voice data.
In conjunction with the car-mounted terminal of second aspect, in the first possible car-mounted terminal of second aspect, described car-mounted terminal can also comprise:
Receiving element, for receiving the described decruption key that described user terminal sends;
Detecting unit, for detecting described encryption key and whether described decruption key matches;
Second transmitting element, if detect described encryption key for described detecting unit and described decruption key matches, send for triggering the play instruction that described user terminal is decrypted described enciphered data to described user terminal, described play instruction is responded to make described user terminal, to use described decruption key, described encrypted voice data is decrypted, to obtain decrypted voice data, and play described decrypted voice data.
In conjunction with the first possible car-mounted terminal of second aspect, in the car-mounted terminal that the second of second aspect is possible, described car-mounted terminal also comprises:
Control unit, does not mate with described decruption key if detect described encryption key for described detecting unit, then control described first transmitting element and stop sending speech data to described user terminal.
In conjunction with any one car-mounted terminal in the car-mounted terminal that the second of the car-mounted terminal of second aspect, the first possible car-mounted terminal of second aspect and second aspect is possible, in the third possible car-mounted terminal of second aspect, described car-mounted terminal can also comprise:
3rd transmitting element, for sending call connection request to described user terminal, described call connection request carries the terminal equipment number of described car-mounted terminal, and described terminal equipment is number for generating solution decryption key, and this decruption key is used for being decrypted the enciphered data that described car-mounted terminal sends;
Set up unit, for receive when described receiving element described user terminal respond the connection response that described call connection request sends time, set up the data list comprising described terminal equipment number.
In conjunction with the third possible car-mounted terminal of second aspect, in the 4th kind of possible car-mounted terminal of second aspect, described generation unit comprises:
Extraction module, for extracting described terminal equipment number from described data list;
Generation module, generates encryption key for using described terminal equipment number according to the cipher mode preset.
In the embodiment of the present invention, when detecting built vertical call and connecting, first car-mounted terminal obtains the speech data collected in call connection process; Then car-mounted terminal uses the data list of the terminal equipment number comprising car-mounted terminal to generate encryption key according to the cipher mode preset, and uses encryption key to be encrypted speech data, obtains encrypted voice data; Car-mounted terminal sends encrypted voice data to the user terminal setting up call connection again, to make user terminal generation for the decruption key of enabling decryption of encrypted speech data, uses decruption key to be decrypted encrypted voice data.In embodiments of the present invention, when car-mounted terminal collects speech data in call connection process, car-mounted terminal can first use encryption key to be encrypted speech data, and encryption key is the encryption key using the data list of the terminal equipment number comprising car-mounted terminal to generate according to the cipher mode preset, thus further increase the fail safe of speech data.Visible, the enforcement embodiment of the present invention can improve the fail safe in voice data transmission process.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, be briefly described to the accompanying drawing used required in embodiment below, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of the method for a kind of encrypt voice data disclosed in the embodiment of the present invention;
Fig. 2 is the schematic flow sheet of the method for another kind of encrypt voice data disclosed in the embodiment of the present invention;
Fig. 3 is the structural representation of a kind of car-mounted terminal disclosed in the embodiment of the present invention;
Fig. 4 is the structural representation of another kind of car-mounted terminal disclosed in the embodiment of the present invention;
Fig. 5 is the structural representation of the embodiment of the present invention another car-mounted terminal disclosed.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Embodiments provide a kind of method and car-mounted terminal of encrypt voice data.In embodiments of the present invention, when car-mounted terminal collects speech data in call connection process, car-mounted terminal can first use encryption key to be encrypted speech data, and encryption key is the encryption key using the data list of the terminal equipment number comprising car-mounted terminal to generate according to the cipher mode preset, thus further increase the fail safe of speech data.Visible, the enforcement embodiment of the present invention can improve the fail safe in voice data transmission process.
Refer to Fig. 1, Fig. 1 is the schematic flow sheet of the method for a kind of encrypt voice data disclosed in the embodiment of the present invention.As shown in Figure 1, the method for this encrypt voice data can comprise the following steps:
S101, when detecting built vertical call connection, car-mounted terminal obtains the speech data collected in call connection process.
In the embodiment of the present invention, call connection can comprise the call that user set up by phone number (one in mobile number, UNICOM's number and telecom number) and car-mounted terminal and be connected, can also comprise the call connection of foundation by some chat applications application programs such as () micro-letter, QQ.Wherein, this car-mounted terminal supports Subscriber Identity Module.It can be that this car-mounted terminal sends call connection request to other car-mounted terminals that the call of setting up connects, and the call of setting up connects; Also can be that this car-mounted terminal responds call connection request that other car-mounted terminals of receiving send and the call of setting up connects.
In the embodiment of the present invention, the speech data collected in call connection process comprises the user using this car-mounted terminal, the speech data sent.Particularly, when car-mounted terminal has set up call connection, then car-mounted terminal can obtain the speech data that user exports.
S102, car-mounted terminal use the data list of the terminal equipment number comprising car-mounted terminal to generate encryption key according to the cipher mode preset, and use encryption key to be encrypted speech data, obtain encrypted voice data.
In the embodiment of the present invention, terminal equipment number can include but not limited to mobile device international identity code (InternationalMobileEquipmentIdentity, IMEI).
In the embodiment of the present invention, cipher mode can include but not limited to Message Digest Algorithm 5 (MessageDigestAlgorithm, MD5), Secure Hash Algorithm (SecureHashAlgorithm, and the cipher mode such as data encryption standard (DataEncryptionStandard, DES) SHA).Wherein, MD5 is the widely used a kind of hash function of computer safety field, in order to provide the integrity protection of message.Secure Hash Algorithm (SecureHashAlgorithm, SHA) DSS (DigitalSignatureStandard is mainly applicable to, DSS) Digital Signature Algorithm (DigitalSignatureAlgorithm, DSA) of the inside definition.Length is less than to the message of 2^64 position, SHA can produce the eap-message digest of 160.In time receiving message, this eap-message digest can be used for the integrality of verification msg.In the process of transmission, data change possibly, so at this time will produce different eap-message digests.Wherein, SHA1 has following characteristic: cannot restore information from eap-message digest; Two different message can not produce same eap-message digest.Data encryption standard (DataEncryptionStandard, DES) is a kind of block algorithm using secret key encryption.
Particularly, after this car-mounted terminal and other car-mounted terminals connect, then this car-mounted terminal can go to obtain speech data, and is encrypted the speech data got.Wherein, should adopt in above-mentioned cipher mode when encryption one or more, and with the data list of the terminal equipment comprising car-mounted terminal number for according to generating encryption key.And use the encryption key generated to be encrypted this speech data.For example, when terminal equipment number comprises IMEI, then the encryption key generated should be relevant to IMEI, selecting as cipher mode, then can be the one of arbitrary cipher mode, or the combination of multiple cipher mode.
S103, car-mounted terminal send encrypted voice data to the user terminal setting up call connection, to make user terminal generation for the decruption key of enabling decryption of encrypted speech data, use decruption key to be decrypted encrypted voice data.
In the embodiment of the present invention, user terminal can include but not limited to that smart mobile phone (as Android phone, iOS mobile phone etc.), panel computer, palmtop PC and mobile internet device (MobileInternetDevices, MID), PAD etc. have the user terminal of voice data transmission function.
In the embodiment of the present invention, when car-mounted terminal is encrypted according to the encryption rule preset the speech data collected, after obtaining encrypted voice data, this encrypted voice data can be sent to the user terminal setting up call connection.After user terminal receives the encrypted voice data that car-mounted terminal sends, then the data list of the terminal equipment number comprising car-mounted terminal can be used according to the manner of decryption generating solution decryption key preset.Wherein, encrypted voice data is that car-mounted terminal uses encryption key speech data to be encrypted to the data obtained, and encryption key is that car-mounted terminal uses the data list of the terminal equipment number comprising car-mounted terminal to generate encryption key according to the cipher mode preset.
In FIG, when detecting built vertical call and connecting, first car-mounted terminal obtains the speech data collected in call connection process; Then car-mounted terminal uses the data list of the terminal equipment number comprising car-mounted terminal to generate encryption key according to the cipher mode preset, and uses encryption key to be encrypted speech data, obtains encrypted voice data; Car-mounted terminal sends encrypted voice data to the user terminal setting up call connection again, to make user terminal generation for the decruption key of enabling decryption of encrypted speech data, uses decruption key to be decrypted encrypted voice data.In embodiments of the present invention, when car-mounted terminal collects speech data in call connection process, car-mounted terminal can first use encryption key to be encrypted speech data, and encryption key is the encryption key using the data list of the terminal equipment number comprising car-mounted terminal to generate according to the cipher mode preset, thus further increase the fail safe of speech data.Visible, the enforcement embodiment of the present invention can improve the fail safe in voice data transmission process.
Refer to Fig. 2, Fig. 2 is the schematic flow sheet of the method for another kind of encrypt voice data disclosed in the embodiment of the present invention.As shown in Figure 2, the method for this encrypt voice data can comprise the following steps:
S201, car-mounted terminal send call connection request to user terminal.
In the embodiment of the present invention, the terminal equipment number of call connection request carrying cart mounted terminal, terminal equipment is number for generating solution decryption key, and the enciphered data that this decruption key is used for car-mounted terminal sends is decrypted.
In the embodiment of the present invention, is connected because call connection can comprise the call that user set up by phone number (one in mobile number, UNICOM's number and telecom number) and car-mounted terminal, the call connection of foundation by some chat applications application programs such as () micro-letter, QQ can also be comprised.Then when car-mounted terminal sends call connection to other car-mounted terminals, the terminal equipment number of this terminal can be carried.And sending in different call connections, different information can also be carried.For example, when car-mounted terminal sends call connection by connecting WIFI to other car-mounted terminals, the IP address of the corresponding server of this WIFI can also be carried.
S202, when car-mounted terminal receives the connection response that user terminal response call connection request sends, set up the data list comprising terminal equipment number.
In the embodiment of the present invention, according to step S201, when car-mounted terminal sends call connection by connecting WIFI to other car-mounted terminals, due to when sending call connection request, during except the terminal equipment of this car-mounted terminal, also carry the IP address setting up the server that network is connected with this car-mounted terminal.Therefore, when car-mounted terminal receives the connection response that user terminal response call connection request sends, the data list of the IP address comprising terminal equipment number and set up the server that network is connected with this car-mounted terminal is set up.
S203, when detecting built vertical call connection, car-mounted terminal obtains the speech data collected in call connection process.
S204, car-mounted terminal extract terminal equipment number from data list.
In the embodiment of the present invention, terminal equipment number can include but not limited to mobile device international identity code (InternationalMobileEquipmentIdentity, IMEI).
S205, car-mounted terminal use terminal equipment number to generate encryption key according to the cipher mode preset, and use encryption key to be encrypted speech data, obtain encrypted voice data.
S206, car-mounted terminal send encrypted voice data to the user terminal setting up call connection, to make user terminal generation for the decruption key of enabling decryption of encrypted speech data, use decruption key to be decrypted encrypted voice data.
In the embodiment of the present invention, cipher mode can include but not limited to Message Digest Algorithm 5 (MessageDigestAlgorithm, MD5), Secure Hash Algorithm (SecureHashAlgorithm, and the cipher mode such as data encryption standard (DataEncryptionStandard, DES) SHA).Wherein, MD5 is the widely used a kind of hash function of computer safety field, in order to provide the integrity protection of message.Secure Hash Algorithm (SecureHashAlgorithm, SHA) DSS (DigitalSignatureStandard is mainly applicable to, DSS) Digital Signature Algorithm (DigitalSignatureAlgorithm, DSA) of the inside definition.Length is less than to the message of 2^64 position, SHA can produce the eap-message digest of 160.In time receiving message, this eap-message digest can be used for the integrality of verification msg.In the process of transmission, data change possibly, so at this time will produce different eap-message digests.Wherein, SHA1 has following characteristic: cannot restore information from eap-message digest; Two different message can not produce same eap-message digest.Data encryption standard (DataEncryptionStandard, DES) is a kind of block algorithm using secret key encryption.
In the embodiment of the present invention, when the speech data collected is encrypted according to the encryption rule preset by car-mounted terminal, obtain encrypted voice data, and when encrypted voice data is sent to user terminal, user terminal can obtain the manner of decryption corresponding with encryption rule and be decrypted, to obtain decrypted voice data from the manner of decryption set pre-set.
As the optional execution mode of one, when user terminal obtains the manner of decryption corresponding with cipher mode according to the cipher mode of encrypted voice data from the manner of decryption set pre-set, and generating solution decryption key, and after decruption key is sent to car-mounted terminal, can also comprise the following steps:
11) car-mounted terminal receives the decruption key that user terminal sends, and detects encryption key and whether decruption key matches;
12) if car-mounted terminal detects encryption key and decruption key matches, car-mounted terminal sends the play instruction being used for activated user terminal and being decrypted enciphered data to user terminal, to make user's terminal response play instruction, to use decruption key, encrypted voice data is decrypted, to obtain decrypted voice data, and play described decrypted voice data.
In the embodiment of the present invention, when car-mounted terminal receives the decruption key of user terminal transmission, then whether the decruption key that the encryption key of car-mounted terminal meeting inspection vehicle mounted terminal generation and user terminal send matches.Wherein, whether whether the encryption key that generates of above-mentioned car-mounted terminal and the decruption key that user terminal sends match to can be understood as encryption key that car-mounted terminal generates identical with the decruption key that user terminal sends; Whether the encryption key that also can be understood as car-mounted terminal generation conforms to the matched rule prestored with the decruption key that user terminal sends.
In the embodiment of the present invention, when the encryption key that car-mounted terminal generates and the decruption key that user terminal sends whether match be understood as encryption key that car-mounted terminal generates whether identical with the decruption key that user terminal sends time, corresponding example can be: the decruption key generated when car-mounted terminal is 123*, the decruption key that user terminal sends is 123*, then illustrate that the encryption key that car-mounted terminal generates is identical with the decruption key that user terminal sends.When the decruption key that the encryption key generated by car-mounted terminal and user terminal send whether match be understood as encryption key that car-mounted terminal generates whether conform to the matched rule prestored with the decruption key that user terminal sends time, its corresponding example can be: when the matched rule prestored increases by the form adding 1 at every turn, and when all carrying * after key, as: the encryption key generated when car-mounted terminal is 123*, and the decruption key that user terminal sends is when being 456*, then illustrate that the encryption key that car-mounted terminal generates conforms to the decruption key that user terminal sends.If when the decruption key that user terminal sends is 458#, then illustrate that the encryption key that car-mounted terminal generates does not conform to the decruption key that user terminal sends.
In the embodiment of the present invention, if when car-mounted terminal does not match according to the decruption key that the encryption key of above-mentioned detection foundation inspection vehicle mounted terminal generation and user terminal send, then car-mounted terminal can stop continuing to send data to this user terminal.And user terminal when not continuing to receive the speech data that this car-mounted terminal sends within the time period preset, then the speech data relevant to the data that this transmits received before can be abandoned.
In fig. 2, describe in detail car-mounted terminal receive user terminal send decruption key time, can by local terminal generate encryption key mate with the decruption key received.Only have when car-mounted terminal detects the encryption key that local terminal generates and the decruption key received the match is successful, can continue to send encrypted voice data, and send the play instruction being used for activated user terminal and enciphered data is decrypted, to obtain decrypted voice data, and play this decrypted voice data.Visible, the enforcement embodiment of the present invention can improve the fail safe in voice data transmission process further.
Refer to Fig. 3, Fig. 3 is the structural representation of a kind of car-mounted terminal disclosed in the embodiment of the present invention, for performing the method for above-mentioned encrypt voice data.As shown in Figure 3, this car-mounted terminal can comprise: acquiring unit 301, generation unit 302, ciphering unit 303 and the first transmitting element 304, wherein,
Acquiring unit 301, for when detecting built vertical call and connecting, obtains the speech data collected in call connection process.
In the embodiment of the present invention, call connection can comprise the call that user set up by phone number (one in mobile number, UNICOM's number and telecom number) and this car-mounted terminal and be connected, can also comprise the call connection of foundation by some chat applications application programs such as () micro-letter, QQ.Wherein, this car-mounted terminal supports Subscriber Identity Module.It can be that this car-mounted terminal sends call connection request to other car-mounted terminals that the call of setting up connects, and the call of setting up connects; Also can be that this car-mounted terminal responds call connection request that other car-mounted terminals of receiving send and the call of setting up connects.
In the embodiment of the present invention, the speech data that acquiring unit 301 collects in call connection process comprises the user using this car-mounted terminal, the speech data sent.Particularly, when car-mounted terminal has set up call connection, then acquiring unit 301 can obtain the speech data that user exports.
Generation unit 302, generates encryption key for using the data list of the terminal equipment number comprising car-mounted terminal according to the cipher mode preset.
In the embodiment of the present invention, terminal equipment number can include but not limited to mobile device international identity code (InternationalMobileEquipmentIdentity, IMEI).
In the embodiment of the present invention, cipher mode can include but not limited to Message Digest Algorithm 5 (MessageDigestAlgorithm, MD5), Secure Hash Algorithm (SecureHashAlgorithm, and the cipher mode such as data encryption standard (DataEncryptionStandard, DES) SHA).Wherein, MD5 is the widely used a kind of hash function of computer safety field, in order to provide the integrity protection of message.Secure Hash Algorithm (SecureHashAlgorithm, SHA) DSS (DigitalSignatureStandard is mainly applicable to, DSS) Digital Signature Algorithm (DigitalSignatureAlgorithm, DSA) of the inside definition.Length is less than to the message of 2^64 position, SHA can produce the eap-message digest of 160.In time receiving message, this eap-message digest can be used for the integrality of verification msg.In the process of transmission, data change possibly, so at this time will produce different eap-message digests.Wherein, SHA1 has following characteristic: cannot restore information from eap-message digest; Two different message can not produce same eap-message digest.Data encryption standard (DataEncryptionStandard, DES) is a kind of block algorithm using secret key encryption.
Particularly, after this car-mounted terminal and other car-mounted terminals connect, then acquiring unit 301 can go to obtain speech data, and generation unit 302 can generate encryption key, and uses encryption key to be encrypted the speech data got.Wherein, should adopt in above-mentioned cipher mode when encryption one or more, and with the data list of the terminal equipment comprising car-mounted terminal number for according to generating encryption key.And use the encryption key generated to be encrypted this speech data.For example, when terminal equipment number comprises IMEI, then the encryption key generated should be relevant to IMEI, selecting as cipher mode, then can be the one of arbitrary cipher mode, or the combination of multiple cipher mode.
Ciphering unit 303, for using encryption key to be encrypted speech data, obtains encrypted voice data.
First transmitting element 304, for sending encrypted voice data to the user terminal setting up call connection, to make user terminal generation for the decruption key of enabling decryption of encrypted speech data, uses decruption key to be decrypted encrypted voice data.
In the embodiment of the present invention, user terminal can include but not limited to that smart mobile phone (as Android phone, iOS mobile phone etc.), panel computer, palmtop PC and mobile internet device (MobileInternetDevices, MID), PAD etc. have the user terminal of voice data transmission function.
In the embodiment of the present invention, when ciphering unit 303 is encrypted according to the encryption rule preset the speech data collected, after obtaining encrypted voice data, this encrypted voice data can send to the user terminal setting up call connection by the first transmitting element 304.After user terminal receives the encrypted voice data that car-mounted terminal sends, then the data list of the terminal equipment number comprising car-mounted terminal can be used according to the manner of decryption generating solution decryption key preset.Wherein, encrypted voice data is that the encryption key using generation unit 302 to generate is encrypted the data obtained to speech data, and encryption key is that ciphering unit 3032 uses the data list of the terminal equipment number comprising car-mounted terminal to generate encryption key according to the cipher mode preset.
In figure 3, when detecting built vertical call and connecting, first acquiring unit 301 obtains the speech data collected in call connection process; Then generation unit 302 uses the data list of the terminal equipment number comprising car-mounted terminal to generate encryption key according to the cipher mode preset, and ciphering unit 303 also uses encryption key to be encrypted speech data, obtains encrypted voice data; First transmitting element 304 sends encrypted voice data to the user terminal setting up call connection again, to make user terminal generation for the decruption key of enabling decryption of encrypted speech data, uses decruption key to be decrypted encrypted voice data.In embodiments of the present invention, when acquiring unit 301 collects speech data in call connection process, ciphering unit 303 can first use encryption key to be encrypted speech data, and encryption key is the encryption key using the data list of the terminal equipment number comprising car-mounted terminal to generate according to the cipher mode preset, thus further increase the fail safe of speech data.Visible, the enforcement embodiment of the present invention can improve the fail safe in voice data transmission process.
Refer to Fig. 4, Fig. 4 is the structural representation of another kind of car-mounted terminal disclosed in the embodiment of the present invention, for performing the method for above-mentioned encrypt voice data.Wherein, Fig. 4 obtains at the enterprising step refining in the basis of Fig. 3, except comprising all unit shown in Fig. 3, can also comprise: the 3rd transmitting element 305, set up unit 306, receiving element 307, detecting unit 308, second transmitting element 309 and control unit 310, wherein
3rd transmitting element 305, for sending call connection request to user terminal.
In the embodiment of the present invention, the terminal equipment number of call connection request carrying cart mounted terminal, terminal equipment is number for generating solution decryption key, and the enciphered data that this decruption key is used for car-mounted terminal sends is decrypted.
In the embodiment of the present invention, is connected because call connection can comprise the call that user set up by phone number (one in mobile number, UNICOM's number and telecom number) and this car-mounted terminal, the call connection of foundation by some chat applications application programs such as () micro-letter, QQ can also be comprised.Then when car-mounted terminal sends call connection to other car-mounted terminals, the terminal equipment number of this terminal can be carried.And sending in different call connections, different information can also be carried.For example, when the 3rd transmitting element 305 sends call connection by connecting WIFI to other car-mounted terminals, the IP address of the corresponding server of this WIFI can also be carried.
Set up unit 306, during for receiving connection response that user terminal response call connection request sends when receiving element 305, set up the data list comprising terminal equipment number.
In the embodiment of the present invention, when the 3rd transmitting element 305 sends call connection by connecting WIFI to other car-mounted terminals, due to when sending call connection request, during except the terminal equipment of this car-mounted terminal, also carry the IP address setting up the server that network is connected with this car-mounted terminal.Therefore, when receiving the connection response that user terminal response call connection request sends, the data list of the IP address comprising terminal equipment number and set up the server that network is connected with this car-mounted terminal is set up.
Receiving element 307, for receiving the decruption key that user terminal sends.
Detecting unit 308, for detecting encryption key and whether decruption key matches.
Second transmitting element 309, if detect encryption key for detecting unit 308 and decruption key matches, the play instruction being used for activated user terminal and enciphered data is decrypted is sent to user terminal, to make user's terminal response play instruction, to use decruption key, encrypted voice data is decrypted, to obtain decrypted voice data, and play decrypted voice data.
In the embodiment of the present invention, when receiving element 307 receives the decruption key that user terminal sends, then detecting unit 308 can detect encryption key that generation unit 302 generates and whether the decruption key that sends of user terminal matches.Wherein, whether whether the encryption key that generates of above-mentioned generation unit 302 and the decruption key that user terminal sends match to can be understood as encryption key that generation unit 302 generates identical with the decruption key that user terminal sends; Whether the encryption key that also can be understood as generation unit 302 generation conforms to the matched rule prestored with the decruption key that user terminal sends.
In the embodiment of the present invention, when the encryption key that generation unit 302 generates and the decruption key that user terminal sends whether match be understood as encryption key that generation unit 302 generates whether identical with the decruption key that user terminal sends time, corresponding example can be: the decruption key generated when generation unit 302 is 123*, the decruption key that user terminal sends is 123*, then illustrate that the encryption key that generation unit 302 generates is identical with the decruption key that user terminal sends.When the decruption key that the encryption key generated by generation unit 302 and user terminal send whether match be understood as encryption key that generation unit 302 generates whether conform to the matched rule prestored with the decruption key that user terminal sends time, its corresponding example can be: when the matched rule prestored increases by the form adding 1 at every turn, and when all carrying * after key, as: the encryption key generated when generation unit 302 is 123*, and the decruption key that user terminal sends is when being 456*, then illustrate that the encryption key that generation unit 302 generates conforms to the decruption key that user terminal sends.If when the decruption key that user terminal sends is 458#, then illustrate that the encryption key that generation unit 302 generates does not conform to the decruption key that user terminal sends.
Control unit 310, does not mate with decruption key if detect encryption key for detecting unit 308, then control the first transmitting element 304 and stop sending speech data to user terminal.
If when detecting unit 308 does not match according to the decruption key that the encryption key and user terminal that detect generation unit 302 generation send according to above-mentioned detection, then the first transmitting element 304 can stop continuing to send data to this user terminal.And user terminal when not continuing to receive the speech data that this car-mounted terminal sends within the time period preset, then the speech data relevant to the data that this transmits received before can be abandoned.
As the optional execution mode of one, generation unit 302 can obtain further in refinement: extraction module 3020 and generation module 3021, wherein,
Extraction module 3020, for extracting terminal equipment number from data list.
Generation module 3021, generates encryption key for using terminal equipment number according to the cipher mode preset.
In the embodiment of the present invention, terminal equipment number can include but not limited to mobile device international identity code (InternationalMobileEquipmentIdentity, IMEI).
In the embodiment of the present invention, cipher mode can include but not limited to Message Digest Algorithm 5 (MessageDigestAlgorithm, MD5), Secure Hash Algorithm (SecureHashAlgorithm, and the cipher mode such as data encryption standard (DataEncryptionStandard, DES) SHA).Wherein, MD5 is the widely used a kind of hash function of computer safety field, in order to provide the integrity protection of message.Secure Hash Algorithm (SecureHashAlgorithm, SHA) DSS (DigitalSignatureStandard is mainly applicable to, DSS) Digital Signature Algorithm (DigitalSignatureAlgorithm, DSA) of the inside definition.Length is less than to the message of 2^64 position, SHA can produce the eap-message digest of 160.In time receiving message, this eap-message digest can be used for the integrality of verification msg.In the process of transmission, data change possibly, so at this time will produce different eap-message digests.Wherein, SHA1 has following characteristic: cannot restore information from eap-message digest; Two different message can not produce same eap-message digest.Data encryption standard (DataEncryptionStandard, DES) is a kind of block algorithm using secret key encryption.
In the diagram, describe in detail receiving element 307 receive user terminal send decruption key time, detecting unit 308 can by local terminal generate encryption key mate with the decruption key received.Only have when detecting unit 308 detects the encryption key that local terminal generates and the decruption key received the match is successful, first transmitting element 304 can continue to send encrypted voice data, second transmitting element 309 also sends the play instruction being used for activated user terminal and being decrypted enciphered data, to obtain decrypted voice data, and play this decrypted voice data.Visible, the enforcement embodiment of the present invention can improve the fail safe in voice data transmission process further.
Refer to Fig. 5, Fig. 5 is the structural representation of the embodiment of the present invention another terminal disclosed, for performing the method for above-mentioned encrypt voice data.As shown in Figure 5, this terminal 500 can comprise: at least one processor 501, at least one input unit 502, at least one output device 503, assembly such as memory 505 grade.Wherein, these assemblies are communicated to connect by one or more bus 504.It will be appreciated by those skilled in the art that, the structure of the terminal shown in Fig. 5 does not form the restriction to the embodiment of the present invention, it both can be busbar network, also can be hub-and-spoke configuration, the parts more more or less than diagram can also be comprised, or combine some parts, or different parts are arranged.Wherein:
Processor 501 is the control centre of terminal, utilize the various piece of various interface and the whole terminal of connection, by running or perform the program in memory 505 of being stored in and/or module, and call the data be stored in memory 505, to perform various function and the deal with data of terminal.Processor 501 by integrated circuit (IntegratedCircuit is called for short IC) composition, such as, can be made up of the IC of single encapsulation, also can be made up of the encapsulation IC connecting many identical functions or difference in functionality.For example, processor 501 can only comprise central processing unit (CentralProcessingUnit, be called for short CPU), also can be CPU, digital signal processor (digitalsignalprocessor, be called for short DSP), the combination of graphic process unit (GraphicProcessingUnit, be called for short GPU) and various control chip.In embodiments of the present invention, CPU can be single arithmetic core, also can comprise multioperation core.
Input unit 502 can comprise the touch-screen, keyboard etc. of standard, also can include line interface, wave point etc.
Output device 503 can comprise display screen, loud speaker etc., also can include line interface, wave point etc.
Memory 505 can be used for storing software program and module, processor 501, input unit 502 and output device 503 are stored in software program in memory 505 and module by calling, thus perform the various functions application of terminal and realize data processing.Memory 505 mainly comprises program storage area and data storage area, and wherein, program storage area can storage operation system, application program etc. needed at least one function; Data storage area can store the data etc. created according to the use of terminal.In embodiments of the present invention, operating system can be android system, iOS system or Windows operating system etc.
Concrete, processor 501 calls the application program be stored in memory 505, for performing following operation:
Processor 501 control inputs device, 502, when detecting built vertical call and connecting, obtain the speech data collected in call connection process;
Use the data list of the terminal equipment number comprising car-mounted terminal to generate encryption key according to the cipher mode preset, and use encryption key to be encrypted speech data, obtain encrypted voice data;
Processor 501 controls output device 503, sends encrypted voice data to the user terminal setting up call connection, to make user terminal generation for the decruption key of enabling decryption of encrypted speech data, uses decruption key to be decrypted encrypted voice data.
In the embodiment of the present invention, processor 501 calls the application program be stored in memory 505, also for performing following steps:
Receive the decruption key that user terminal sends, and detect encryption key and whether decruption key matches;
Processor 501 controls output device 503, if detection encryption key and decruption key match, the play instruction being used for activated user terminal and enciphered data is decrypted is sent to user terminal, to make user's terminal response play instruction, to use decruption key, encrypted voice data is decrypted, to obtain decrypted voice data, and play decrypted voice data.
In the embodiment of the present invention, processor 501 calls the application program be stored in memory 505, also for performing following steps:
Processor 501 controls output device 503, does not mate with decruption key if detect encryption key, then stop sending speech data to user terminal.
In the embodiment of the present invention, processor 501 calls the application program be stored in memory 505, also for performing following steps:
Processor 501 controls output device 503, send call connection request to user terminal, the terminal equipment number of call connection request carrying cart mounted terminal, terminal equipment is number for generating solution decryption key, and the enciphered data that this decruption key is used for car-mounted terminal sends is decrypted;
When receiving the connection response that user terminal response call connection request sends, set up the data list comprising terminal equipment number.
In the embodiment of the present invention, processor 501 calls the application program be stored in memory 505, performs step and uses the data list of the terminal equipment number comprising described car-mounted terminal to generate encryption key according to the cipher mode preset, mainly comprise the following steps:
Terminal equipment number is extracted from data list;
Described terminal equipment number is used to generate encryption key according to the cipher mode preset.
Concrete, the part or all of flow process in the embodiment of the method for the encrypt voice data that the terminal introduced in the embodiment of the present invention can implement composition graphs 1 of the present invention, Fig. 2 introduces.
Module in all embodiments of the present invention or submodule, universal integrated circuit can be passed through, such as CPU (CentralProcessingUnit, central processing unit), or realized by ASIC (ApplicationSpecificIntegratedCircuit, application-specific integrated circuit (ASIC)).
Step in embodiment of the present invention method can be carried out order according to actual needs and be adjusted, merges and delete.
Unit in embodiment of the present invention terminal can carry out merging, divide and deleting according to actual needs.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-OnlyMemory, ROM) or random access memory (RandomAccessMemory is called for short RAM) etc.
Above disclosedly be only present pre-ferred embodiments, certainly can not limit the interest field of the present invention with this, therefore according to the equivalent variations that the claims in the present invention are done, still belong to the scope that the present invention is contained.

Claims (10)

1. a method for encrypt voice data, is characterized in that, comprising:
When detecting built vertical call and connecting, car-mounted terminal obtains the speech data collected in described call connection process;
Described car-mounted terminal uses the data list of the terminal equipment number comprising described car-mounted terminal to generate encryption key according to the cipher mode preset, and uses described encryption key to be encrypted described speech data, obtains encrypted voice data;
Described car-mounted terminal sends described encrypted voice data to the user terminal setting up described call connection, to make the decruption key of described user terminal generation for deciphering described encrypted voice data, described decruption key is used to be decrypted described encrypted voice data.
2. method according to claim 1, is characterized in that, described method also comprises:
Described car-mounted terminal receives the described decruption key that described user terminal sends, and detects described encryption key and whether described decruption key matches;
If described car-mounted terminal detects described encryption key and described decruption key matches, described car-mounted terminal sends for triggering the play instruction that described user terminal is decrypted described enciphered data to described user terminal, described play instruction is responded to make described user terminal, to use described decruption key, described encrypted voice data is decrypted, to obtain decrypted voice data, and play described decrypted voice data.
3. method according to claim 2, is characterized in that, described method also comprises:
Do not mate with described decruption key if described car-mounted terminal detects described encryption key, then described car-mounted terminal stops sending speech data to described user terminal.
4. according to the method in claims 1 to 3 described in any one, it is characterized in that, described method also comprises:
Described car-mounted terminal sends call connection request to described user terminal, described call connection request carries the terminal equipment number of described car-mounted terminal, described terminal equipment is number for generating solution decryption key, and this decruption key is used for being decrypted the enciphered data that described car-mounted terminal sends;
When described car-mounted terminal receive described user terminal respond the connection response that described call connection request sends time, set up the data list comprising described terminal equipment number.
5. method according to claim 4, is characterized in that, described car-mounted terminal uses the data list of the terminal equipment number comprising described car-mounted terminal to generate encryption key according to the cipher mode preset, and comprising:
Described car-mounted terminal extracts described terminal equipment number from described data list;
Described car-mounted terminal uses described terminal equipment number to generate encryption key according to the cipher mode preset.
6. a car-mounted terminal, is characterized in that, comprising:
Acquiring unit, for when detecting built vertical call and connecting, obtains the speech data collected in described call connection process;
Generation unit, generates encryption key for using the data list of the terminal equipment number comprising described car-mounted terminal according to the cipher mode preset;
Ciphering unit, for using described encryption key to be encrypted described speech data, obtains encrypted voice data;
First transmitting element, for sending described encrypted voice data to the user terminal setting up described call connection, to make the decruption key of described user terminal generation for deciphering described encrypted voice data, described decruption key is used to be decrypted described encrypted voice data.
7. car-mounted terminal according to claim 6, is characterized in that, described car-mounted terminal also comprises:
Receiving element, for receiving the described decruption key that described user terminal sends;
Detecting unit, for detecting described encryption key and whether described decruption key matches;
Second transmitting element, if detect described encryption key for described detecting unit and described decruption key matches, send for triggering the play instruction that described user terminal is decrypted described enciphered data to described user terminal, described play instruction is responded to make described user terminal, to use described decruption key, described encrypted voice data is decrypted, to obtain decrypted voice data, and play described decrypted voice data.
8. car-mounted terminal according to claim 7, is characterized in that, described car-mounted terminal also comprises:
Control unit, does not mate with described decruption key if detect described encryption key for described detecting unit, then control described first transmitting element and stop sending speech data to described user terminal.
9. according to the car-mounted terminal in claim 6 ~ 8 described in any one, it is characterized in that, described car-mounted terminal also comprises:
3rd transmitting element, for sending call connection request to described user terminal, described call connection request carries the terminal equipment number of described car-mounted terminal, and described terminal equipment is number for generating solution decryption key, and this decruption key is used for being decrypted the enciphered data that described car-mounted terminal sends;
Set up unit, for receive when described receiving element described user terminal respond the connection response that described call connection request sends time, set up the data list comprising described terminal equipment number.
10. car-mounted terminal according to claim 9, is characterized in that, described generation unit comprises:
Extraction module, for extracting described terminal equipment number from described data list;
Generation module, generates encryption key for using described terminal equipment number according to the cipher mode preset.
CN201510425367.2A 2015-07-17 2015-07-17 A kind of method and car-mounted terminal of voice data encryption Active CN105072094B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510425367.2A CN105072094B (en) 2015-07-17 2015-07-17 A kind of method and car-mounted terminal of voice data encryption

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510425367.2A CN105072094B (en) 2015-07-17 2015-07-17 A kind of method and car-mounted terminal of voice data encryption

Publications (2)

Publication Number Publication Date
CN105072094A true CN105072094A (en) 2015-11-18
CN105072094B CN105072094B (en) 2019-02-15

Family

ID=54501377

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510425367.2A Active CN105072094B (en) 2015-07-17 2015-07-17 A kind of method and car-mounted terminal of voice data encryption

Country Status (1)

Country Link
CN (1) CN105072094B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105471874A (en) * 2015-11-30 2016-04-06 深圳市元征软件开发有限公司 Data transmission method and device
CN108629189A (en) * 2018-03-20 2018-10-09 蔚来汽车有限公司 Engine end data guard method, device and vehicle
CN111681662A (en) * 2020-06-01 2020-09-18 科大讯飞股份有限公司 In-vehicle interactive audio encryption method, device and equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040147246A1 (en) * 2003-01-14 2004-07-29 Samsung Electronics Co., Ltd. Secure communication system and method for integrated mobile communication terminals comprising a short-distance communication module
CN101420303A (en) * 2008-12-12 2009-04-29 广州杰赛科技股份有限公司 Communication method for audio data and apparatus thereof
CN103179557A (en) * 2011-12-26 2013-06-26 宇龙计算机通信科技(深圳)有限公司 Real-time encryption and decryption method and system for communication data and mobile terminal
CN103973696A (en) * 2014-05-16 2014-08-06 天地融科技股份有限公司 Data processing method of voice communication

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040147246A1 (en) * 2003-01-14 2004-07-29 Samsung Electronics Co., Ltd. Secure communication system and method for integrated mobile communication terminals comprising a short-distance communication module
CN101420303A (en) * 2008-12-12 2009-04-29 广州杰赛科技股份有限公司 Communication method for audio data and apparatus thereof
CN103179557A (en) * 2011-12-26 2013-06-26 宇龙计算机通信科技(深圳)有限公司 Real-time encryption and decryption method and system for communication data and mobile terminal
CN103973696A (en) * 2014-05-16 2014-08-06 天地融科技股份有限公司 Data processing method of voice communication

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105471874A (en) * 2015-11-30 2016-04-06 深圳市元征软件开发有限公司 Data transmission method and device
CN108629189A (en) * 2018-03-20 2018-10-09 蔚来汽车有限公司 Engine end data guard method, device and vehicle
CN111681662A (en) * 2020-06-01 2020-09-18 科大讯飞股份有限公司 In-vehicle interactive audio encryption method, device and equipment

Also Published As

Publication number Publication date
CN105072094B (en) 2019-02-15

Similar Documents

Publication Publication Date Title
EP3324572B1 (en) Information transmission method and mobile device
CN110401615B (en) Identity authentication method, device, equipment, system and readable storage medium
CN108769027B (en) Secure communication method, device, mobile terminal and storage medium
CN105634737B (en) Data transmission method, terminal and system
CN104660589A (en) Method and system for controlling encryption of information and analyzing information as well as terminal
CN106487659B (en) Information encryption method, information encryption device and terminal
CN110690956B (en) Bidirectional authentication method and system, server and terminal
KR20170092679A (en) System and Method for Enabling Secure Authentication
CN107733652B (en) Unlocking method and system for shared vehicle and vehicle lock
CN112232814A (en) Encryption and decryption method of payment key, payment authentication method and terminal equipment
CN102075615A (en) Method for sending and receiving short messages and subscriber identity module (SIM)
CN111245771B (en) Instant message encryption and decryption method, device, equipment and storage medium
TW201729562A (en) Server, mobile terminal, and internet real name authentication system and method
CN103729605A (en) Password input method based on touch screen, and touch terminal
CN105407467A (en) Short message encryption methods, devices and system
US20170091483A1 (en) Method and Device for Protecting Address Book, and Communication System
JP6294203B2 (en) Authentication system
CN105072094A (en) Voice data encryption method and vehicle-mounted terminal
CN109451504B (en) Internet of things module authentication method and system
CN114501431A (en) Message transmission method and device, storage medium and electronic equipment
EP2993856B1 (en) Establishment of communication connection between mobile device and secure element
CN105554557A (en) Method for sharing of multimedia content, and user terminal
CN109492359B (en) Secure network middleware for identity authentication and implementation method and device thereof
CN104184873A (en) Information security attachment device for voice communication and information security method
CN108769989B (en) Wireless network connection method, wireless access device and equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant