CN117657067A - Vehicle anti-theft method and system based on encryption algorithm - Google Patents

Vehicle anti-theft method and system based on encryption algorithm Download PDF

Info

Publication number
CN117657067A
CN117657067A CN202311814481.5A CN202311814481A CN117657067A CN 117657067 A CN117657067 A CN 117657067A CN 202311814481 A CN202311814481 A CN 202311814481A CN 117657067 A CN117657067 A CN 117657067A
Authority
CN
China
Prior art keywords
vehicle
encryption algorithm
plaintext
preset
initial
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
CN202311814481.5A
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.)
Western Car Network Chongqing Co ltd
Original Assignee
Western Car Network Chongqing 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 Western Car Network Chongqing Co ltd filed Critical Western Car Network Chongqing Co ltd
Priority to CN202311814481.5A priority Critical patent/CN117657067A/en
Publication of CN117657067A publication Critical patent/CN117657067A/en
Pending legal-status Critical Current

Links

Landscapes

  • Lock And Its Accessories (AREA)

Abstract

The invention relates to a vehicle safety technology, and discloses a vehicle anti-theft method based on an encryption algorithm, which comprises the following steps: generating an initial plaintext randomly by using a preset vehicle starting system, generating an encrypted ciphertext by using a preset encryption algorithm model according to the initial plaintext, and transmitting the encrypted ciphertext to a preset vehicle control system; the preset vehicle control system receives the encrypted ciphertext and decrypts the encrypted ciphertext by using the encryption algorithm model to obtain a decrypted plaintext; judging the consistency of the decrypted plaintext and the initial plaintext, and allowing the vehicle to normally run when the decrypted plaintext is consistent with the initial plaintext; and when the decrypted plaintext is inconsistent with the initial plaintext, sending out an alarm signal. The invention also provides a system of the vehicle anti-theft method based on the encryption algorithm. The invention can improve the anti-theft safety of the vehicle.

Description

Vehicle anti-theft method and system based on encryption algorithm
Technical Field
The invention relates to the technical field of vehicle safety, in particular to a vehicle anti-theft method and system based on an encryption algorithm.
Background
Vehicle theft prevention refers to a system that prevents a vehicle from being stolen. The anti-theft system of the vehicle can be divided into mechanical type, chip type, electronic type, network type and the like, and the difficulty of vehicle theft is increased by different modes and technologies, so that the property and the safety of a vehicle owner are protected.
The operating principle and function of the anti-theft system of the vehicle are mostly different, but the anti-theft system of the vehicle generally relates to components such as a vehicle key, an electronic control circuit, an alarm device, an actuating mechanism and the like. The vehicle anti-theft system is an important component part of the development of the automobile technology and is also an important content for the use and maintenance of an automobile owner. The traditional vehicle anti-theft methods mainly comprise mechanical locks, remote control locks, fingerprint identification and the like, and the methods have the defects of easy cracking, damage, counterfeiting and the like although playing a certain role in anti-theft, so that the safety of vehicle anti-theft is lower.
Disclosure of Invention
The invention provides a vehicle anti-theft method and a system based on an encryption algorithm, which can improve the safety of vehicle anti-theft.
In order to achieve the above object, the present invention provides a vehicle anti-theft method based on an encryption algorithm, comprising:
generating an initial plaintext randomly by using a preset vehicle starting system, generating an encrypted ciphertext by using a preset encryption algorithm model according to the initial plaintext, and transmitting the encrypted ciphertext to a preset vehicle control system;
the preset vehicle control system receives the encrypted ciphertext and decrypts the encrypted ciphertext by using the encryption algorithm model to obtain a decrypted plaintext;
judging the consistency of the decrypted plaintext and the initial plaintext, and allowing the vehicle to normally run when the decrypted plaintext is consistent with the initial plaintext;
and when the decrypted plaintext is inconsistent with the initial plaintext, sending out an alarm signal.
Optionally, the generating the encrypted ciphertext according to the initial plaintext by using a preset encryption algorithm model includes:
dividing the initial plaintext into a plurality of data blocks, wherein the length of each data block is the input length of an encryption algorithm model;
encrypting each data block by using the preset encryption algorithm model to obtain a plurality of encrypted data blocks;
and splicing all the encrypted data blocks to form a final encrypted ciphertext.
Optionally, encrypting each data block by using the preset encryption algorithm model to obtain a plurality of encrypted data blocks, including:
acquiring a random initial vector from the preset encryption algorithm model;
extracting a first data block in each data block, and performing exclusive-or operation on the first data block by using the random initial vector to obtain an exclusive-or operation result;
encrypting the exclusive-or operation result by utilizing a random key in the preset encryption algorithm model to obtain a first encrypted data block;
sequentially performing exclusive-or operation on the random initial vector by using other data blocks except the first data block to obtain a sequential exclusive-or operation result;
encrypting the sequence exclusive OR operation result by utilizing a random key in the preset encryption algorithm model to obtain a sequence encryption data block;
and summarizing the first encrypted data block and the sequentially encrypted data blocks to obtain the plurality of encrypted data blocks.
Optionally, before the encrypting the exclusive-or operation result by using the random key pair in the preset encryption algorithm model, the method further includes:
selecting a random number generator, and generating binary numbers with preset digits by using the random number generator;
and converting binary numbers into hexadecimal numbers to obtain the random key.
Optionally, the decrypting the encrypted ciphertext using the encryption algorithm model includes:
and converting the encrypted ciphertext into matrix data, and performing inverse operation on the matrix data by using a plurality of preset subkeys to obtain the decrypted plaintext.
Optionally, before the inverse operation is performed on the matrix data by using a plurality of preset subkeys, the method further includes:
generating a plurality of expansion keys by the random key according to a preset expansion table rule;
summarizing the plurality of expansion keys to obtain the plurality of sub-keys;
and calling the plurality of sub-keys to decrypt the encrypted ciphertext.
Optionally, the determining the consistency of the decrypted plaintext and the initial plaintext includes:
converting the decrypted plaintext and the initial plaintext into the same encoding format;
comparing whether each character of the decrypted plaintext and the initial plaintext is the same or not one by one, and when all characters are the same, indicating that the decrypted plaintext and the initial plaintext are consistent;
when any character is different, the decrypted plaintext is inconsistent with the initial plaintext.
In order to solve the above problems, the present invention also provides a system of a vehicle anti-theft method based on an encryption algorithm, the system comprising:
optionally, a vehicle and a vehicle system are included, the vehicle system including a vehicle control system and a vehicle start system.
Optionally, the vehicle control system sends a start command to the vehicle start system, and the vehicle start system starts the vehicle according to the start command.
Optionally, the vehicle control system controls an alarm sensing device in the vehicle to perform an alarm operation.
According to the embodiment of the invention, the initial plaintext is randomly generated by utilizing the preset vehicle starting system, the encryption ciphertext is generated by utilizing the preset encryption algorithm model according to the initial plaintext, so that different keys are ensured to be available when the vehicle is started each time, the safety of the vehicle is increased, in addition, the initial plaintext is ensured not to be changed or stolen after the encryption ciphertext is generated, the privacy can be enhanced, furthermore, the preset vehicle control system receives the encryption ciphertext, decrypts the encryption ciphertext by utilizing the encryption algorithm model, obtains the decrypted plaintext, and can be combined with the vehicle control system to inquire whether a legal starting request exists, so that the illegal starting request is refused, and the safety and timeliness of vehicle theft prevention can be realized.
Drawings
FIG. 1 is a schematic flow chart of a vehicle anti-theft method based on an encryption algorithm according to an embodiment of the invention;
FIG. 2 is a system configuration diagram of a vehicle anti-theft method based on an encryption algorithm according to an embodiment of the present invention;
the achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Referring to fig. 1, a flow chart of a vehicle anti-theft method based on an encryption algorithm according to an embodiment of the invention is shown. In this embodiment, the vehicle anti-theft method based on the encryption algorithm includes:
s1, randomly generating an initial plaintext by using a preset vehicle starting system, generating an encrypted ciphertext by using a preset encryption algorithm model according to the initial plaintext, and transmitting the encrypted ciphertext to a preset vehicle control system.
In the embodiment of the invention, the system for starting the vehicle by using the preset vehicle starting system refers to a system used for starting the vehicle, and for example, the preset vehicle starting system may be a vehicle key system.
In the embodiment of the invention, the initial plaintext refers to a random number generated in a vehicle starting system.
In the embodiment of the present invention, the preset encryption algorithm model refers to an algorithm for encrypting and decrypting data, and may adopt a symmetric algorithm and an asymmetric algorithm.
As an embodiment of the present invention, the generating the encrypted ciphertext according to the initial plaintext using a preset encryption algorithm model includes:
dividing the initial plaintext into a plurality of data blocks, wherein the length of each data block is the input length of an encryption algorithm model;
encrypting each data block by using the preset encryption algorithm model to obtain a plurality of encrypted data blocks;
and splicing all the encrypted data blocks to form a final encrypted ciphertext.
Further, encrypting each data block by using the preset encryption algorithm model to obtain a plurality of encrypted data blocks, including:
acquiring a random initial vector from the preset encryption algorithm model;
extracting a first data block in each data block, and performing exclusive-or operation on the first data block by using the random initial vector to obtain an exclusive-or operation result;
encrypting the exclusive-or operation result by utilizing a random key in the preset encryption algorithm model to obtain a first encrypted data block;
sequentially performing exclusive-or operation on the random initial vector by using other data blocks except the first data block to obtain a sequential exclusive-or operation result;
encrypting the sequence exclusive OR operation result by utilizing a random key in the preset encryption algorithm model to obtain a sequence encryption data block;
and summarizing the first encrypted data block and the sequentially encrypted data blocks to obtain the plurality of encrypted data blocks.
As an embodiment of the present invention, before the encrypting the exclusive-or operation result by using the random key pair in the preset encryption algorithm model, the method further includes:
selecting a random number generator, and generating binary numbers with preset digits by using the random number generator;
and converting binary numbers into hexadecimal numbers to obtain the random key.
In the embodiment of the invention, the random number generator refers to a tool for generating a group of random sequences by using a random algorithm.
The embodiment of the invention can reduce the storage pressure of the random key and the convenience of transmission by converting binary numbers into hexadecimal numbers.
According to the embodiment of the invention, the initial plaintext is randomly generated by using the preset vehicle starting system, and the encrypted ciphertext is generated by using the preset encryption algorithm model according to the initial plaintext, so that the encryption processing of the starting end can be controlled.
S2, the preset vehicle control system receives the encrypted ciphertext, and decrypts the encrypted ciphertext by using the encryption algorithm model to obtain a decrypted plaintext.
In the embodiment of the invention, the preset vehicle control system refers to a system for controlling the overall operation of the vehicle, for example, the preset vehicle control system may control the starting or stopping of the vehicle.
As an embodiment of the present invention, the decrypting the encrypted ciphertext using the encryption algorithm model includes:
and converting the encrypted ciphertext into matrix data, and performing inverse operation on the matrix data by using a plurality of preset subkeys to obtain the decrypted plaintext.
In the embodiment of the present invention, the matrix data refers to a data matrix generated by using the size of an encrypted data block, where each element in the matrix data represents one byte.
Further, before the inverse operation is performed on the matrix data by using the preset plurality of subkeys, the method further includes:
generating a plurality of expansion keys by the random key according to a preset expansion table rule;
summarizing the plurality of expansion keys to obtain the plurality of sub-keys;
and calling the plurality of sub-keys to decrypt the encrypted ciphertext.
In the embodiment of the invention, the preset expansion table rule refers to a rule table for key expansion in an AES symmetric encryption algorithm, wherein the preset expansion table rule comprises expansion constants and operation rules.
In the embodiment of the invention, the inverse operation refers to an operation of decrypting an encrypted ciphertext in an encryption algorithm, and the inverse operation comprises inverse byte substitution, inverse shift, inverse column confusion and inverse round key addition, wherein the inverse byte substitution (Invsubbytes): in contrast to byte substitution, each byte is replaced by a fixed byte, and the inverse byte substitution used in the AES encryption algorithm is a 16 x 16 matrix, wherein each element represents an inverse of a byte; retrograde shift (InvShiftRows): in contrast to the line shift, each line is cyclically shifted right by a different number of bits, line 1 is not shifted, line 2 is shifted right by 1 bit, line 3 is shifted right by 2 bits, and line 4 is shifted right by 3 bits; reverse column confusion (InvMixColumns): in contrast to column aliasing, each column is considered to be a coefficient at GF (2 8 ) Polynomial of degree less than 4 over domain, then multiplied by a fixed polynomial, and then modulo m (x) =x 4 +1, a new column is obtained, wherein the fixed polynomial used for column aliasing is a (x) = {03} x 3 +{01}x 2 The fixed polynomial used for the inverse column confusion is an inverse column confusion fixed polynomial d (x) = {0b } x corresponding to the fixed polynomial used for the column confusion 3 +{0d}x 2 ++ {09} x+ {0e }; reverse round key addition (InvAddRoundKey): and the same as the round key addition, carrying out bit exclusive OR on the output of each round and the corresponding round key to obtain new output.
S3, judging the consistency of the decrypted plaintext and the initial plaintext, and allowing the vehicle to normally run when the decrypted plaintext is consistent with the initial plaintext.
In the embodiment of the invention, the consistency judgment is used for determining whether the data transmission process is tampered, and in addition, whether the vehicle control module is matched with the vehicle key system or not can be detected.
In the embodiment of the present invention, the determining the consistency of the decrypted plaintext and the initial plaintext includes:
converting the decrypted plaintext and the initial plaintext into the same encoding format;
comparing whether each character of the decrypted plaintext and the initial plaintext is the same or not one by one, and when all characters are the same, indicating that the decrypted plaintext and the initial plaintext are consistent;
when any character is different, the decrypted plaintext is inconsistent with the initial plaintext.
S4, when the decrypted plaintext is inconsistent with the initial plaintext, an alarm signal is sent out.
The alarm signal sent by the embodiment of the invention can be sent to alarm through alarm sensing equipment in the vehicle, and can be the flashing of the vehicle light or the sending of sound to alarm.
According to the embodiment of the invention, the initial plaintext is randomly generated by utilizing the preset vehicle starting system, the encryption ciphertext is generated by utilizing the preset encryption algorithm model according to the initial plaintext, so that different keys are ensured to be available when the vehicle is started each time, the safety of the vehicle is increased, in addition, the initial plaintext is ensured not to be changed or stolen after the encryption ciphertext is generated, the privacy can be enhanced, furthermore, the preset vehicle control system receives the encryption ciphertext, decrypts the encryption ciphertext by utilizing the encryption algorithm model, obtains the decrypted plaintext, and can be combined with the vehicle control system to inquire whether a legal starting request exists, so that the illegal starting request is refused, and the safety and timeliness of vehicle theft prevention can be realized.
Referring to fig. 2, a system structure diagram of a vehicle anti-theft method based on an encryption algorithm according to an embodiment of the present invention is shown, where the system includes: a vehicle and a vehicle system, the vehicle system including a vehicle control system and a vehicle start system; the vehicle control system sends a starting instruction to the vehicle starting system, and the vehicle starting system starts a vehicle according to the starting instruction; the vehicle control system controls an alarm sensing device in the vehicle to perform an alarm operation.
In the embodiment of the invention, the alarm sensing device can be a light device, a sound device and the like in the vehicle sensing device.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential characteristics thereof.
The present embodiments are, therefore, to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference signs in the claims shall not be construed as limiting the claim concerned.
Furthermore, it is evident that the word "comprising" does not exclude other elements or steps, and that the singular does not exclude a plurality. A plurality of units or means recited in the system claims can also be implemented by means of software or hardware by means of one unit or means. The terms first, second, etc. are used to denote a name, but not any particular order.
Finally, it should be noted that the above-mentioned embodiments are merely for illustrating the technical solution of the present invention and not for limiting the same, and although the present invention has been described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications and equivalents may be made to the technical solution of the present invention without departing from the spirit and scope of the technical solution of the present invention.

Claims (10)

1. A vehicle anti-theft method based on an encryption algorithm, the method comprising:
generating an initial plaintext randomly by using a preset vehicle starting system, generating an encrypted ciphertext by using a preset encryption algorithm model according to the initial plaintext, and transmitting the encrypted ciphertext to a preset vehicle control system;
the preset vehicle control system receives the encrypted ciphertext and decrypts the encrypted ciphertext by using the encryption algorithm model to obtain a decrypted plaintext;
judging the consistency of the decrypted plaintext and the initial plaintext, and allowing the vehicle to normally run when the decrypted plaintext is consistent with the initial plaintext;
and when the decrypted plaintext is inconsistent with the initial plaintext, sending out an alarm signal.
2. The vehicle anti-theft method based on an encryption algorithm according to claim 1, wherein the generating the encrypted ciphertext using a preset encryption algorithm model from the initial plaintext comprises:
dividing the initial plaintext into a plurality of data blocks, wherein the length of each data block is the input length of an encryption algorithm model;
encrypting each data block by using the preset encryption algorithm model to obtain a plurality of encrypted data blocks;
and splicing all the encrypted data blocks to form a final encrypted ciphertext.
3. The vehicle anti-theft method based on an encryption algorithm according to claim 2, wherein encrypting each of the data blocks using the preset encryption algorithm model to obtain a plurality of encrypted data blocks comprises:
acquiring a random initial vector from the preset encryption algorithm model;
extracting a first data block in each data block, and performing exclusive-or operation on the first data block by using the random initial vector to obtain an exclusive-or operation result;
encrypting the exclusive-or operation result by utilizing a random key in the preset encryption algorithm model to obtain a first encrypted data block;
sequentially performing exclusive-or operation on the random initial vector by using other data blocks except the first data block to obtain a sequential exclusive-or operation result;
encrypting the sequence exclusive OR operation result by utilizing a random key in the preset encryption algorithm model to obtain a sequence encryption data block;
and summarizing the first encrypted data block and the sequentially encrypted data blocks to obtain the plurality of encrypted data blocks.
4. The encryption algorithm-based vehicle theft prevention method according to claim 3, further comprising, before the encrypting the exclusive or operation result using the random key pair in the preset encryption algorithm model:
selecting a random number generator, and generating binary numbers with preset digits by using the random number generator;
and converting binary numbers into hexadecimal numbers to obtain the random key.
5. The vehicle anti-theft method based on an encryption algorithm according to claim 1, wherein decrypting the encrypted ciphertext using the encryption algorithm model comprises:
and converting the encrypted ciphertext into matrix data, and performing inverse operation on the matrix data by using a plurality of preset subkeys to obtain the decrypted plaintext.
6. The encryption algorithm-based vehicle theft prevention method according to claim 5, further comprising, before the inverse operation of the matrix data using a predetermined plurality of subkeys:
generating a plurality of expansion keys by the random key according to a preset expansion table rule;
summarizing the plurality of expansion keys to obtain the plurality of sub-keys;
and calling the plurality of sub-keys to decrypt the encrypted ciphertext.
7. The encryption algorithm-based vehicle theft prevention method according to claim 1, wherein the judging of the coincidence of the decrypted plaintext and the initial plaintext includes:
converting the decrypted plaintext and the initial plaintext into the same encoding format;
comparing whether each character of the decrypted plaintext and the initial plaintext is the same or not one by one, and when all characters are the same, indicating that the decrypted plaintext and the initial plaintext are consistent;
when any character is different, the decrypted plaintext is inconsistent with the initial plaintext.
8. A system based on the vehicle anti-theft method based on the encryption algorithm according to any one of claims 1 to 7, characterized by comprising a vehicle and a vehicle system, the vehicle system comprising a vehicle control system and a vehicle start system.
9. The system of an encryption algorithm-based vehicle theft prevention method according to claim 8, wherein the vehicle control system transmits a start instruction to the vehicle start system, and the vehicle start system starts the vehicle according to the start instruction.
10. The system of an encryption algorithm-based vehicle theft prevention method according to claim 8, wherein the vehicle control system controls an alarm sensing device in the vehicle to perform an alarm operation.
CN202311814481.5A 2023-12-26 2023-12-26 Vehicle anti-theft method and system based on encryption algorithm Pending CN117657067A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311814481.5A CN117657067A (en) 2023-12-26 2023-12-26 Vehicle anti-theft method and system based on encryption algorithm

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311814481.5A CN117657067A (en) 2023-12-26 2023-12-26 Vehicle anti-theft method and system based on encryption algorithm

Publications (1)

Publication Number Publication Date
CN117657067A true CN117657067A (en) 2024-03-08

Family

ID=90073334

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311814481.5A Pending CN117657067A (en) 2023-12-26 2023-12-26 Vehicle anti-theft method and system based on encryption algorithm

Country Status (1)

Country Link
CN (1) CN117657067A (en)

Similar Documents

Publication Publication Date Title
US20030123667A1 (en) Method for encryption key generation
EP0802653A2 (en) Multi-cycle non-parallel data encryption engine
JPS61501484A (en) Method and apparatus for protecting stored and transmitted data from danger or eavesdropping
CN101248612A (en) Secure device authentication
CN101213814A (en) Secure patch system
AU2008327506A1 (en) Method and system for encryption of data
CN102833246A (en) Social video information security method and system
CN105871549A (en) Digital signal encryption processing method
WO2006095891A1 (en) Data processing apparatus
CN115883052A (en) Data encryption method, data decryption method, device and storage medium
CN101710307A (en) Method for protecting data security of digital equipment
RU2077113C1 (en) Method for cryptoprotection of telecommunication know-how systems
CN113098675B (en) Binary data encryption system and method based on polynomial complete homomorphism
CN115442043A (en) Video data transmission method for boiler production monitoring
JP4703805B2 (en) ENCRYPTION DEVICE, ENCRYPTION METHOD, DECRYPTION DEVICE, DECRYPTION METHOD, AND COMMUNICATION SYSTEM
WO2006073201A1 (en) Communication system and communication method
US20040131181A1 (en) Method and apparatus for encrypting content
KR101602803B1 (en) The encryption and decryption Method of using to polarization
CN117657067A (en) Vehicle anti-theft method and system based on encryption algorithm
CN113746642B (en) Method and system for communication between computers
CN105959106A (en) Low-complexity digital encryption method
CN108809889B (en) Data deterministic deletion method based on data block random position negation
CN113783687B (en) Method and system for generating, encrypting and decrypting automobile electronic anti-theft code
CN115766244A (en) Internet of vehicles information encryption method and device, computer equipment and storage medium
JP5586758B1 (en) Dynamic encryption key generation 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