CN110198314A - Method, computer installation and the computer readable storage medium that the data transmitted in a kind of couple of on-vehicle machines people are encrypted - Google Patents

Method, computer installation and the computer readable storage medium that the data transmitted in a kind of couple of on-vehicle machines people are encrypted Download PDF

Info

Publication number
CN110198314A
CN110198314A CN201910452134.XA CN201910452134A CN110198314A CN 110198314 A CN110198314 A CN 110198314A CN 201910452134 A CN201910452134 A CN 201910452134A CN 110198314 A CN110198314 A CN 110198314A
Authority
CN
China
Prior art keywords
encryption
message
key module
machines people
vehicle machines
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.)
Pending
Application number
CN201910452134.XA
Other languages
Chinese (zh)
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.)
Zhongshan Anxintong Robot Manufacturing Co Ltd
Original Assignee
Zhongshan Anxintong Robot Manufacturing 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 Zhongshan Anxintong Robot Manufacturing Co Ltd filed Critical Zhongshan Anxintong Robot Manufacturing Co Ltd
Priority to CN201910452134.XA priority Critical patent/CN110198314A/en
Publication of CN110198314A publication Critical patent/CN110198314A/en
Pending legal-status Critical Current

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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/06Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols the encryption apparatus using shift registers or memories for block-wise or stream coding, e.g. DES systems or RC4; Hash functions; Pseudorandom sequence generators
    • H04L9/0618Block ciphers, i.e. encrypting groups of characters of a plain text message using fixed encryption transformation
    • H04L9/0631Substitution permutation network [SPN], i.e. cipher composed of a number of stages or rounds each involving linear and nonlinear transformations, e.g. AES algorithms

Abstract

The present invention provides method, computer installation and computer readable storage mediums that the data transmitted in a kind of couple of on-vehicle machines people are encrypted.This method includes the sending node acquisition task data in on-vehicle machines people, it converts task data to after CAN message and is sent to preset encryption key module in sending node, CAN message is encrypted in encryption key module and is sent to receiving node, CAN message after the receiving node of on-vehicle machines people receives encryption, CAN message after encryption is sent to preset decrypted private key module in receiving node, the CAN message after encryption is decrypted in decrypted private key module, task data is extracted according to the CAN message after decryption processing, decrypted private key module is corresponding with encryption key module.The present invention also provides the computer installations and computer readable storage medium of realizing the above method.The present invention can effectively encrypt the data transmitted in on-vehicle machines people.

Description

Method that the data transmitted in a kind of couple of on-vehicle machines people are encrypted, computer dress It sets and computer readable storage medium
Technical field
The present invention relates to the CAN system field of on-vehicle machines people, the interior data transmitted of specifically a kind of couple of on-vehicle machines people Method, computer installation and the computer readable storage medium encrypted.
Background technique
With the development of science and technology, assisting driver to drive by installation on-vehicle machines people on more and more automobiles It sails, for example, on-vehicle machines people, which can identify, carries out information exchange between the identity information of driver and driver Deng.
In existing technology, the data transmission in on-vehicle machines people between modules is based on CAN system.But CAN System itself belongs to low level protocol without security mechanism, causes in the on-vehicle machines people based on CAN system between modules The data of transmission are easy disturbed, invasion and interception, so that on-vehicle machines people is controlled, to influence driver's Safety lacks the method that the data transmitted in a kind of couple of on-vehicle machines people are encrypted.
Summary of the invention
The first object of the present invention is to provide a kind of method effectively encrypted to the data transmitted in on-vehicle machines people.
The second object of the present invention, which is to provide, to be realized and above-mentioned carries out encryption method to the data transmitted in on-vehicle machines people Computer installation.
The third object of the present invention, which is to provide, to be realized and above-mentioned carries out encryption method to the data transmitted in on-vehicle machines people Computer readable storage medium.
In order to realize that the first above-mentioned purpose, the data transmitted in a kind of couple of on-vehicle machines people provided by the invention add Close method obtains task data including the sending node in on-vehicle machines people, sends after converting CAN message for task data Preset encryption key module, is encrypted and is sent to CAN message in encryption key module in sending node Receiving node, the CAN message after the receiving node of on-vehicle machines people receives encryption, by the CAN message after encryption It is sent to preset decrypted private key module in receiving node, the CAN message after encryption is carried out in decrypted private key module Decryption processing extracts task data according to the CAN message after decryption processing, and decrypted private key module is opposite with encryption key module It answers.
It can be seen from the above, encryption key module is arranged by the sending node in on-vehicle machines people in this programme, in vehicle-mounted machine Receiving node setting and the decrypted private key module corresponding to encryption key module of device people, due to sending node and receiving node it Between transmission data be based on CAN system, so be converted into CAN message in the task data that sending node will acquire, then CAN message is encrypted by encryption key module, then passes through CAN system again for encrypted CAN message transmissions To receiving node, the CAN message after the encryption received is sent to decrypted private key template and place is decrypted by receiving node Reason, then extracts task data from the CAN message after decryption processing, reaches effectively to the data transmitted in on-vehicle machines people The purpose encrypted.
Further embodiment is CAN message to be encrypted in encryption key module, comprising: in encryption key Aes algorithm encryption is carried out to CAN message in module.
As it can be seen that the data throughout due to aes algorithm is very fast, aes algorithm can be set in encryption key module to CAN Message carries out quick encryption, further achievees the purpose that effectively to encrypt the data transmitted in on-vehicle machines people.
Further embodiment is, after carrying out aes algorithm encryption to CAN message in encryption key module, executes: The processing of DESL algorithm for encryption is carried out to the CAN message for carrying out aes algorithm encryption in encryption key module.
As it can be seen that DESL algorithm can also be arranged in encryption key template, the CAN for carrying out aes algorithm encryption is reported Text carries out the processing of DESL algorithm for encryption, further reaches the mesh effectively encrypted to the data transmitted in on-vehicle machines people 's.
Further embodiment is that the CAN message after encryption is decrypted in decrypted private key module, packet It includes: aes algorithm decryption processing being carried out to the CAN message after encryption in decrypted private key module.
As it can be seen that the data throughout due to aes algorithm is very fast, aes algorithm can be set in decrypted private key module, to adding Close treated CAN message carries out aes algorithm decryption processing, further reaches effectively to the data transmitted in on-vehicle machines people The purpose encrypted.
Further embodiment is to carry out at aes algorithm decryption in decrypted private key module to the CAN message after encryption It after reason, executes: the CAN message after progress aes algorithm decryption processing being carried out at the decryption of DESL algorithm in decrypted private key module Reason.
As it can be seen that aes algorithm can also be arranged in decrypted private key module, the CAN after progress aes algorithm encryption is reported Text carries out DESL algorithm decryption processing, further reaches the mesh effectively encrypted to the data transmitted in on-vehicle machines people 's.
In order to realize the second above-mentioned purpose, the present invention also provides computer installation include processor and memory, Memory access has computer program, realizes when computer program is executed by processor above-mentioned to the number transmitted in on-vehicle machines people According to each step for carrying out encryption method.
In order to realize above-mentioned third purpose, the present invention also provides computer readable storage medium, be stored thereon with meter Calculation machine program is realized above-mentioned to the data transmitted in on-vehicle machines people progress encryption method when computer program is executed by processor Each step.
Detailed description of the invention
Fig. 1 is the structural frames of the embodiment of the method encrypted using the present invention to the data transmitted in on-vehicle machines people Figure.
Fig. 2 is the flow chart for the embodiment of the method that the present invention encrypts the data transmitted in on-vehicle machines people.
The invention will be further described with reference to the accompanying drawings and embodiments.
Specific embodiment
The method that the data transmitted in a kind of couple of on-vehicle machines people provided by the invention are encrypted should be based on CAN system It, typically should be in the equipment such as on-vehicle machines people on the on-vehicle machines people of system transmission data.Computer installation of the invention can To be above-mentioned electronic equipment, computer readable storage medium can be the various storage mediums with data storage function, such as The nonvolatile memories such as FLASH, EEPROM.
The embodiment of the method that the data transmitted in on-vehicle machines people are encrypted:
The preferred terminal device of the present embodiment is on-vehicle machines people, and the console in automobile can be set in on-vehicle machines people On, referring to Fig. 1, the on-vehicle machines people of the present embodiment includes sending node 1 and receiving node 2, and sending node 1 and reception save Point 2 can be the hardware such as connector, MCU controller, motor drive circuit, LED control circuit in on-vehicle machines people respectively Module is carried out data transmission between sending node 1 and receiving node 2 by CAN system.Specifically, sending node 1 is for obtaining Task data, and after converting CAN message for task data, CAN message is sent to by receiving node by CAN system.It receives Node 2 is used to receive the CAN message of sending node transmission, and task data is read from CAN message.Preferably, sending node 1 It is interior to be equipped with encryption key module 2, be equipped with decrypted private key module 4 in receiving node 3, encryption key module 2 be used for CAN message into Row encryption, decrypted private key module 4 is for being decrypted encrypted CAN message.
Referring to fig. 2, step S1 is first carried out in the method for the present embodiment, obtains number of tasks in the sending node of on-vehicle machines people According to preset encryption key module in sending node being sent to after task data is converted to CAN message, in encryption key module In CAN message be encrypted and be sent to receiving node.As it can be seen that the present embodiment is private by the way that encryption is arranged in sending node Key module so that data will not be disturbed easily during transmission on the CAN system between sending node and receiving node, Invasion and interception, achieve the purpose that effectively to encrypt the data transmitted in on-vehicle machines people.
Wherein, it can be the task data for receiving the main body system of automobile and sending in the task data that sending node obtains. Preferably, CAN message is encrypted in encryption key module includes: first in encryption key module to CAN message Aes algorithm encryption is carried out, then, the CAN message for carrying out aes algorithm encryption is carried out in encryption key module The processing of DESL algorithm for encryption.As it can be seen that encryption key module is provided with aes algorithm and DESL algorithm, and AES in the present embodiment The data throughout of algorithm is very fast, is encrypted by encryption key module to the CAN message on sending node, reaches effectively right The purpose that the data transmitted in on-vehicle machines people are encrypted.
Finally, executing step S2, the CAN message after the receiving node of on-vehicle machines people receives encryption will be encrypted CAN message that treated is sent to preset decrypted private key module in receiving node, to encryption in decrypted private key module CAN message afterwards is decrypted, and is gone out on missions data according to the CAN message deduction after decryption processing.Wherein, decrypted private key mould Block is corresponding with encryption key module, and receiving node is carried out by decrypted private key module to using encryption key module Task data after encryption is decrypted, so that data are on the CAN system between sending node and receiving node It will not be disturbed, invade and intercept easily during transmission.
Preferably, the CAN message after encryption is decrypted in decrypted private key module includes: first to decrypt Aes algorithm decryption processing is carried out to the CAN message after encryption in private key module, then to progress in decrypted private key module CAN message after aes algorithm decryption processing carries out DESL algorithm decryption processing.As it can be seen that decrypted private key module is set in the present embodiment It is equipped with aes algorithm and DESL algorithm, and the data throughout of aes algorithm is very fast, by decrypted private key module to receiving node On encrypted CAN message be decrypted, reach and effectively the encrypted data transmitted in on-vehicle machines people be decrypted Purpose.
Computer installation embodiment:
The computer installation of the present embodiment include processor, memory and storage in memory and can be in processor The computer program of upper operation, such as the message handling program for realizing above- mentioned information processing method.Processor executes calculating Above-mentioned each step that the data transmitted in on-vehicle machines people are carried out with encryption method is realized when machine program.
For example, computer program can be divided into one or more modules, one or more module, which is stored in, is deposited It in reservoir, and is executed by processor, to complete modules of the invention.One or more modules can be can complete it is specific The series of computation machine program instruction section of function, the instruction segment is for describing execution of the computer program in terminal device Journey.
It should be noted that terminal device can be desktop PC, notebook, palm PC and cloud server etc. Calculate equipment.Terminal device may include, but be not limited only to, processor, memory.It will be understood by those skilled in the art that this hair Bright schematic diagram is only the example of terminal device, does not constitute the restriction to terminal device, may include than illustrate it is more or Less component perhaps combines certain components or different components, such as terminal device can also be set including input and output Standby, network access equipment, bus etc..
Processor alleged by the present invention can be central processing unit (Central Processing Unit, CPU), may be used also To be other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor Deng processor is the control centre of terminal device, utilizes the various pieces of various interfaces and the entire terminal device of connection.
Memory can be used for storing computer program and/or module, and processor is stored in memory by operation or execution Interior computer program and/or module, and the data being stored in memory are called, realize the various functions of terminal device. Memory can mainly include storing program area and storage data area, wherein storing program area can storage program area, at least one Application program needed for function (such as sound-playing function, image player function etc.) etc.;Storage data area can be stored according to hand Machine uses created data (such as audio data, phone directory etc.) etc..In addition, memory may include high random access Memory can also include nonvolatile memory, such as hard disk, memory, plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card), at least one magnetic Disk storage device, flush memory device or other volatile solid-state parts.
Computer readable storage medium:
If the integrated module of terminal device be realized in the form of SFU software functional unit and as the sale of independent product or In use, can store in a computer readable storage medium.Based on this understanding, the present invention realizes above-mentioned implementation All or part of the process in example method, can also instruct relevant hardware to complete, the computer by computer program Program can be stored in a computer readable storage medium, and the computer program is when being executed by processor, it can be achieved that above-mentioned right The data transmitted in on-vehicle machines people carry out each step of encryption method.
Wherein, computer program includes computer program code, and computer program code can be source code form, object Code form, executable file or certain intermediate forms etc..Computer-readable medium may include: that can carry computer program Any entity or device of code, recording medium, USB flash disk, mobile hard disk, magnetic disk, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, electricity Believe signal and software distribution medium etc..It should be noted that the content that computer-readable medium includes can be managed according to the administration of justice Local legislation and the requirement of patent practice carry out increase and decrease appropriate, such as in certain jurisdictions, according to legislation and patent Practice, computer-readable medium does not include electric carrier signal and telecommunication signal.
It should be noted that the above is only a preferred embodiment of the present invention, but the design concept invented is not limited thereto, All insubstantial modifications made using this design to the present invention, are also fallen within the scope of protection of the present invention.

Claims (7)

1. the method that the data transmitted in a kind of couple of on-vehicle machines people are encrypted, which is characterized in that this method comprises:
Task data is obtained in the sending node of the on-vehicle machines people, is sent after converting CAN message for the task data Preset encryption key module in the sending node, encrypts the CAN message in the encryption key module It handles and is sent to receiving node;
CAN message after the receiving node of the on-vehicle machines people receives the encryption, after the encryption CAN message is sent to preset decrypted private key module in the receiving node, to the encryption in the decrypted private key module Treated, and CAN message is decrypted, and extracts the task data, institute according to the CAN message after the decryption processing It is corresponding with the encryption key module to state decrypted private key module.
2. the method that the data transmitted in a kind of couple of on-vehicle machines people according to claim 1 are encrypted, feature exist In:
It is described that the CAN message is encrypted in encryption key module, comprising: to described in encryption key module CAN message carries out aes algorithm encryption.
3. the method that the data transmitted in a kind of couple of on-vehicle machines people according to claim 2 are encrypted, feature exist In:
It is described aes algorithm encryption is carried out to the CAN message in encryption key module after, execute: in encryption private The processing of DESL algorithm for encryption is carried out to the CAN message for carrying out the aes algorithm encryption in key module.
4. the method that the data transmitted in a kind of couple of on-vehicle machines people according to claim 3 are encrypted, feature exist In:
It is described that the CAN message after the encryption is decrypted in the decrypted private key module, comprising: described Aes algorithm decryption processing is carried out to the CAN message after the encryption in decrypted private key module.
5. the method that the data transmitted in a kind of couple of on-vehicle machines people according to claim 4 are encrypted, feature exist In:
It is described in the decrypted private key module to after the encryption CAN message carry out aes algorithm decryption processing after, hold Row: the CAN message after the progress aes algorithm decryption processing is carried out at the decryption of DESL algorithm in the decrypted private key module Reason.
6. computer installation, including processor and memory, the memory is stored with computer program, the computer journey When sequence is executed by the processor realize as it is described in any one of claim 1 to 5 to the data transmitted in on-vehicle machines people into The method of row encryption.
7. computer storage medium is stored thereon with computer program, real when the computer program is executed by the processor Now such as the method described in any one of claim 1 to 5 encrypted to the data transmitted in on-vehicle machines people.
CN201910452134.XA 2019-05-28 2019-05-28 Method, computer installation and the computer readable storage medium that the data transmitted in a kind of couple of on-vehicle machines people are encrypted Pending CN110198314A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910452134.XA CN110198314A (en) 2019-05-28 2019-05-28 Method, computer installation and the computer readable storage medium that the data transmitted in a kind of couple of on-vehicle machines people are encrypted

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910452134.XA CN110198314A (en) 2019-05-28 2019-05-28 Method, computer installation and the computer readable storage medium that the data transmitted in a kind of couple of on-vehicle machines people are encrypted

Publications (1)

Publication Number Publication Date
CN110198314A true CN110198314A (en) 2019-09-03

Family

ID=67753238

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910452134.XA Pending CN110198314A (en) 2019-05-28 2019-05-28 Method, computer installation and the computer readable storage medium that the data transmitted in a kind of couple of on-vehicle machines people are encrypted

Country Status (1)

Country Link
CN (1) CN110198314A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106850230A (en) * 2017-02-15 2017-06-13 北京航空航天大学 A kind of data safety exchange method based on CAN network
US20180145829A1 (en) * 2016-11-24 2018-05-24 Samsung Electronics Co, Ltd Data management method
CN108462705A (en) * 2018-02-27 2018-08-28 成都四海万联科技有限公司 A kind of car-mounted terminal of encipherment protection
CN108494725A (en) * 2018-01-30 2018-09-04 惠州市德赛西威汽车电子股份有限公司 A kind of encryption communication method of vehicle-mounted CAN bus message

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180145829A1 (en) * 2016-11-24 2018-05-24 Samsung Electronics Co, Ltd Data management method
CN106850230A (en) * 2017-02-15 2017-06-13 北京航空航天大学 A kind of data safety exchange method based on CAN network
CN108494725A (en) * 2018-01-30 2018-09-04 惠州市德赛西威汽车电子股份有限公司 A kind of encryption communication method of vehicle-mounted CAN bus message
CN108462705A (en) * 2018-02-27 2018-08-28 成都四海万联科技有限公司 A kind of car-mounted terminal of encipherment protection

Similar Documents

Publication Publication Date Title
US20170180330A1 (en) Method and electronic device for vehicle remote control and a non-transitory computer readable storage medium
CN107707347B (en) User key backup method and device and user key importing method and device
US10726130B2 (en) Method and device for verifying upgrade of diagnosis connector of diagnostic equipment, and diagnosis connector
CN110100422B (en) Data writing method and device based on block chain intelligent contract and storage medium
EP3816909A1 (en) Payment processing method for offline scenario, server, and readable storage medium
CN111262910B (en) Wireless equipment firmware protection method and system
CN110197541A (en) A kind of shared automobile management method based on block chain
CN110598429B (en) Data encryption storage and reading method, terminal equipment and storage medium
CN104951712A (en) Data safety protection method in Xen virtualization environment
CN113242134B (en) Digital certificate signing method, device, system and storage medium
CN102523095A (en) User digital certificate remote update method with intelligent card protection function
CN111934873A (en) Bidding file encryption and decryption method and device
CN111935197A (en) Bidding document encryption and decryption method and device
CN113472805B (en) Model training method and device, storage medium and electronic equipment
CN111628863B (en) Data signature method and device, electronic equipment and storage medium
CN112134911A (en) Remote program upgrading method, device and medium
CN111459869B (en) Data access method, device, equipment and storage medium
CN104112364A (en) Vehicle management system and management method based on cloud computing platform
CN105022965A (en) Data encryption method and apparatus
CN115001869B (en) Encryption transmission method and system
CN106161036A (en) The mobile station (MS) state transition method of a kind of credit and system
CN110198314A (en) Method, computer installation and the computer readable storage medium that the data transmitted in a kind of couple of on-vehicle machines people are encrypted
CN113343309B (en) Natural person database privacy security protection method and device and terminal equipment
CN115909560A (en) Data encryption method, data decryption method and door lock system
CN103902921A (en) File encryption method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190903