The invention relates to a method for encrypting an automobile
CAN bus. Firstly, a sending node reassembles the data to be sent in the
CAN bus network into several data blocks according to the block
byte length requirements of the AES
encryption algorithm, and adds a
verification mechanism to each data block. And add a
check digit at the end of the end data block, and then use random data to fill the end data block, use the AES
encryption algorithm to encrypt each data block to obtain each
ciphertext data block, and then send the node to each
ciphertext data After dividing the block into data and setting the
time mark and order mark, it is sent to the receiving node through the CAN network. The receiving node receives each
ciphertext data block and checks its integrity. The
time mark and the order mark are set to be extracted, spliced and decrypted, and after decryption, combined with the
verification mechanism for
verification to confirm the validity of the
data transmission, which improves the efficiency of
data transmission and ensures the security of
data information transmission on the car.