CAN bus data encryption and decryption method and device

A technology of CAN bus and encryption method, which is applied in the field of encryption and decryption of CAN bus data, can solve the problems of economic loss of service and leasing units, data easy to crack, and data easy to crack, so as to reduce the possibility of tampering and improve safety effect

Active Publication Date: 2019-09-17
XCMG EXCAVATOR MACHINERY
View PDF3 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The existing technology is to change the position of the data byte in the ID according to a specific order, and the law can be found, which provides a reference for decryption, and the data is easy to be cracked
[0004] At present, the important data of the CAN bus of construction machinery is easy to crack, and the problem of tampering occurs from time to time, which brings certain economic losses to the service and leasing units

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • CAN bus data encryption and decryption method and device
  • CAN bus data encryption and decryption method and device
  • CAN bus data encryption and decryption method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0035] figure 1 A flowchart of a method for encrypting CAN bus data provided by Embodiment 1 of the present invention, figure 2 For a CAN bus data architecture diagram provided in Embodiment 1 of the present invention, please refer to figure 1 and figure 2 , the present embodiment provides a kind of encryption method of CAN bus data, is used on engineering machinery, and described CAN bus is connected to control unit, and described control unit stores preset function, and the encryption method of described CAN bus data comprises: The control unit generates a single-byte random number, and the range of the single-byte random number is 1-255. The single-byte random number is processed by a preset function to obtain a random ID with an ID field of 29 bits, that is, the random ID The address range is 16#00000000-16#1FFFFFFF, wherein the preset function is a reversible function, and the random ID for sending encrypted data is random every time, which improves the security of th...

Embodiment 2

[0046] Figure 4For the flow chart of a CAN bus data encryption and decryption method provided in Embodiment 2 of the present invention, please refer to Figure 4 , this embodiment provides a method for encrypting CAN bus data, the difference from Embodiment 1 is that the control unit generates at least two single-byte random numbers, and there is a predetermined number between the single-byte random numbers. Assuming a data relationship, at least two random IDs are sent to the CAN bus each time encryption is performed, and the true value exists in one of the random IDs, and the preset data relationship is used to determine whether the random ID carries the The single-byte random number of true value. The random ID for sending encrypted data is random every time, which improves the security of the data and avoids the economic loss caused by the modification of important parameters (hour meter, GPS parameters) of the service and leasing units. In addition, at least two IDs are...

Embodiment 3

[0051] The present invention also provides an encryption device and a decryption device for CAN bus data, wherein the encryption device includes a storage unit and a control unit;

[0052] The storage unit is used to store instructions, and the instructions are used to control the control unit to operate to perform the above-mentioned CAN bus data encryption method, and the random ID for sending encrypted data is random every time, which improves the security of the data To avoid economic losses caused by modification of important parameters (hour meter, GPS parameters) of service and leasing units.

[0053] The decryption device includes an execution unit, which is used to execute the above-mentioned CAN bus data decryption method, and the execution unit may be an electronic monitor, a GPS terminal and other equipment.

[0054] In summary, a method and device for encrypting and decrypting CAN bus data provided by the present invention utilizes a control unit to generate a sin...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a CAN bus data encryption and decryption method and device, and the method comprises the steps: generating a single-byte random number through a control unit, and enabling the range of the single-byte random number to be 1-255, processing the single-byte random number by a preset function to obtain a random ID with an ID domain of 29 bits, wherein the preset function is a reversible function, and the random ID for sending the encrypted data is random each time, data security is improved, the economic loss caused by modification of important parameters (hours, GPS parameters) of a service and leasing unit is avoided, at least two random IDs can be sent each time, and the true value exists in one random ID, so that the possibility that the CAN bus data is tampered is reduced, and the data security is greatly improved.

Description

technical field [0001] The invention relates to the technical field of engineering machinery, in particular to a CAN bus data encryption and decryption method and device. Background technique [0002] In the prior art, a symmetric encryption algorithm is used to encrypt the data content of the data packet. Transform the position of data bytes in a specific order, perform arithmetic operations on data bits and secret keys, and realize encryption. [0003] The existing technology is to change the data byte position in the ID according to a specific order, and the rules can be found, which provides a reference for decryption, and the data is easy to be cracked. [0004] At present, the important data of the CAN bus of construction machinery is easy to crack, and the problem of tampering occurs from time to time, which brings certain economic losses to the service and leasing units. Contents of the invention [0005] In order to overcome the deficiencies in the prior art, th...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): H04L9/08H04L29/06H04L12/40
CPCH04L9/0869H04L63/0435H04L12/40H04L2012/40215
Inventor 卞清荣宋之克魏红敏袁海飞李峰
Owner XCMG EXCAVATOR MACHINERY
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products