CN115017529B - Encryption method for automobile diagnosis software - Google Patents
Encryption method for automobile diagnosis software Download PDFInfo
- Publication number
- CN115017529B CN115017529B CN202210935125.8A CN202210935125A CN115017529B CN 115017529 B CN115017529 B CN 115017529B CN 202210935125 A CN202210935125 A CN 202210935125A CN 115017529 B CN115017529 B CN 115017529B
- Authority
- CN
- China
- Prior art keywords
- file
- automobile
- encrypted
- diagnosis
- automobile diagnosis
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 52
- 238000003745 diagnosis Methods 0.000 claims abstract description 95
- 238000003860 storage Methods 0.000 claims description 13
- 238000012545 processing Methods 0.000 claims description 10
- 241000533950 Leucojum Species 0.000 claims description 7
- 238000004590 computer program Methods 0.000 claims description 7
- 238000004519 manufacturing process Methods 0.000 claims description 5
- 238000012856 packing Methods 0.000 claims description 3
- 238000012512 characterization method Methods 0.000 claims 1
- 230000008569 process Effects 0.000 description 9
- 238000010586 diagram Methods 0.000 description 8
- 238000004891 communication Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 4
- 238000012423 maintenance Methods 0.000 description 4
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000004806 packaging method and process Methods 0.000 description 2
- 238000006467 substitution reaction Methods 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000005336 cracking Methods 0.000 description 1
- 230000006378 damage Effects 0.000 description 1
- 238000000151 deposition Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000000802 evaporation-induced self-assembly Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/602—Providing cryptographic facilities or services
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/10—Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM]
- G06F21/12—Protecting executable software
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
Abstract
The invention provides an encryption method of automobile diagnosis software, relates to the technical field of automobile diagnosis, and solves the technical problem that an encrypted file in the automobile diagnosis software is easy to crack in the prior art. The method comprises the following steps: carrying out first encryption on the file content of the automobile diagnosis software to obtain an encrypted intermediate file; responding to a downloading request of the automobile diagnosis equipment for the target automobile diagnosis software, and determining a target intermediate file corresponding to the target automobile diagnosis software; acquiring characteristic information of the diagnostic joint, and determining a version of a public key file stored in the diagnostic joint based on the characteristic information; determining a private key file corresponding to the public key file based on the version of the public key file; performing second encryption on the intermediate file and the private key file to obtain an encrypted file; and sending the encrypted file to the automobile diagnosis equipment.
Description
Technical Field
The application relates to the technical field of automobile diagnosis, in particular to an encryption method of automobile diagnosis software.
Background
Data is increasingly becoming the core of personal life, economic development and security. This means that the data must be secured at all times. This is as well as locking doors, restricting access to important items, and protecting important corporate property in the real world, relying on encryption to ensure that data is not subject to intrusion and theft by various cyber crimes. With the increase of automobile holding capacity, more and more automobile maintenance technologies use a diagnostic tool decoder to work, and automobile data security is more and more emphasized.
However, the technical problem that the encrypted file in the automobile diagnosis software is easy to crack exists in the prior art.
Disclosure of Invention
The application aims to provide an encryption method of automobile diagnosis software to solve the technical problem that an encrypted file in the automobile diagnosis software in the prior art is easy to crack.
In a first aspect, an embodiment of the present application provides an encryption method for automobile diagnostic software, which is applied to a server, where the server is connected to an automobile diagnostic device, the automobile diagnostic device is connected to a diagnostic connector, and a public key file is stored in the diagnostic connector; the method comprises the following steps:
performing first encryption on the file content of the automobile diagnosis software to obtain an encrypted intermediate file;
responding to a downloading request of the automobile diagnosis equipment for target automobile diagnosis software, and determining a target intermediate file corresponding to the target automobile diagnosis software;
acquiring characteristic information of the diagnostic joint, and determining a version of a public key file stored in the diagnostic joint based on the characteristic information;
determining a private key file corresponding to the public key file based on the version of the public key file;
performing second encryption on the intermediate file and the private key file to obtain an encrypted file;
and sending the encrypted file to the automobile diagnosis equipment.
In one possible implementation, the first encrypting the file content of the automobile diagnostic software to obtain an encrypted intermediate file includes:
randomly selecting a plurality of files to be encrypted from the file contents by utilizing a snowflake algorithm;
and randomly arranging the file sequences of the files to be encrypted to obtain an encrypted intermediate file of the automobile diagnosis software.
In one possible implementation, the characteristic information of the diagnostic tap includes any one or more of:
a serial number of the diagnostic tap, a production timestamp of the diagnostic tap.
In a possible implementation, the second encrypting the target intermediate file and the private key file to obtain an encrypted file includes:
and carrying out second encryption on the target intermediate file and the private key file through an RSA encryption algorithm to obtain an encrypted file.
In one possible implementation, the format type of the file content includes any one or more of the following:
SO format, BIN format, TXT format, GGP format, PNG format, INI format.
In one possible implementation, the diagnosis connector is connected with a vehicle to be diagnosed, and the diagnosis connector is used for sending vehicle-mounted data of the vehicle to be diagnosed to the vehicle diagnosis device; after the sending the encrypted file to the automobile diagnosis device, the method further comprises:
the diagnostic connector decrypts the encrypted file through the public key file;
and if the decryption is successful, the automobile diagnosis equipment diagnoses the automobile to be diagnosed based on the vehicle-mounted data by using the target automobile diagnosis software.
In a second aspect, an embodiment of the present application provides an encryption system for automobile diagnostic software, where the system includes:
the system comprises a server, automobile diagnosis equipment and a diagnosis joint, wherein the automobile diagnosis equipment is respectively connected with the server and the diagnosis joint;
the server is used for encrypting the file content in the automobile diagnosis software and sending the encrypted file to the automobile diagnosis equipment;
the diagnosis joint is connected with the automobile to be diagnosed and used for sending vehicle-mounted data of the automobile to be diagnosed to the automobile diagnosis equipment;
a public key file is stored in the diagnosis joint;
the automobile diagnosis equipment is used for downloading the encrypted file from the server side and decrypting the encrypted file into the automobile diagnosis software by using the public key file stored in the diagnosis joint;
the automobile diagnosis device is also used for operating the automobile diagnosis software.
In a third aspect, an embodiment of the present application provides an encryption apparatus for automobile diagnostic software, which is applied to a server, where the server is connected to an automobile diagnostic device, the automobile diagnostic device is connected to a diagnostic connector, and a public key file is stored in the diagnostic connector; the device comprises:
the first encryption module is used for carrying out first encryption on the file content of the automobile diagnosis software to obtain an encrypted intermediate file;
the first determination module is used for responding to a downloading request of the automobile diagnosis equipment for target automobile diagnosis software, and determining a target intermediate file corresponding to the target automobile diagnosis software;
the acquisition module is used for acquiring the characteristic identifier of the diagnostic joint and determining the version of the public key file stored in the diagnostic joint based on the characteristic identifier;
the second determining module is used for determining a private key file corresponding to the public key file based on the version of the public key file;
the second encryption module is used for carrying out second encryption on the target intermediate file and the private key file to obtain an encrypted file;
and the sending module is used for sending the encrypted file to the automobile diagnosis equipment.
In a fourth aspect, an embodiment of the present application provides an electronic device, which includes a memory and a processor, where the memory stores a computer program that is executable on the processor, and the processor executes the computer program to implement the steps of the method according to the first aspect.
In a fifth aspect, embodiments of the present application provide a computer-readable storage medium storing computer-executable instructions that, when invoked and executed by a processor, cause the processor to perform the steps of the method of the first aspect.
The embodiment of the application brings the following beneficial effects:
the embodiment of the application provides an encryption method of automobile diagnostic software, which comprises the steps of firstly encrypting file contents of the automobile diagnostic software to obtain an encrypted intermediate file, then responding to a download request of an automobile diagnostic device for target automobile diagnostic software, determining a target intermediate file corresponding to the target automobile diagnostic software, then obtaining characteristic information of a diagnostic joint, determining a version of a public key file stored in the diagnostic joint based on the characteristic information, further determining a private key file corresponding to the public key file based on the version of the public key file, further carrying out second encryption on the intermediate file and the private key file to obtain an encrypted file, and sending the encrypted file to the automobile diagnostic device. In the scheme, the server side firstly determines the file content of each automobile diagnosis software, carries out first encryption processing on the file content of each automobile diagnosis software to obtain respective corresponding intermediate files, then responds to a downloading request of the automobile diagnosis equipment for the target automobile diagnosis software to determine the corresponding target intermediate files, obtains a public key file version stored in the diagnosis joint in advance according to characteristic information of the diagnosis joint, determines a private key file corresponding to the public key file, further carries out second encryption processing on the target intermediate files and the private key file after the first encryption processing to obtain a final encrypted file, and sends the encrypted file to the automobile diagnosis equipment.
Drawings
In order to more clearly illustrate the detailed description of the present application or the technical solutions in the prior art, the drawings needed to be used in the detailed description of the present application or the prior art description will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a schematic flowchart of an encryption method for automobile diagnostic software according to an embodiment of the present disclosure;
fig. 2 is a schematic diagram illustrating an encryption and decryption process of automotive diagnostic software according to an embodiment of the present application;
fig. 3 is a schematic diagram of a first encryption algorithm provided in an embodiment of the present application;
fig. 4 is a schematic structural diagram of an encryption system of automobile diagnostic software according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an encryption device for automotive diagnostic software according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions of the present application will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are some, but not all embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "comprising" and "having," and any variations thereof, as referred to in the embodiments of the present application, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Data security is becoming increasingly important when depositing, shopping and communicating. The core of this security is encryption. As life increasingly relies on the internet, people should increasingly raise awareness of data security and, to do so, protect the digital world from continuing attack and destruction by various cyber crimes.
Based on this, the embodiment of the application provides an encryption method for automobile diagnosis software, and the technical problem that an encrypted file in the automobile diagnosis software is easy to crack in the prior art can be solved through the encryption method.
Embodiments of the present application are further described below with reference to the accompanying drawings.
Fig. 1 is a schematic flowchart of an encryption method for automotive diagnostic software according to an embodiment of the present disclosure, where the method may be applied to a server, the server is connected to an automotive diagnostic device, the automotive diagnostic device is connected to a diagnostic connector, and a public key file is stored in the diagnostic connector. As shown in fig. 1, the method includes:
step S110, the file content of the automobile diagnosis software is encrypted firstly, and an encrypted intermediate file is obtained.
For example, as shown in fig. 2, after a software development engineer develops a piece of car diagnosis software, the car diagnosis software may undergo package compilation, test and online process for a user to download and use in a server. In the embodiment of the application, the first encryption process is placed in the packing and compiling stage. The server side completes first encryption on file contents of the automobile diagnosis software when the software is packaged and compiled to obtain corresponding encrypted intermediate files, and the intermediate files are stored in the server side for a user to download.
And step S120, responding to a downloading request of the automobile diagnosis equipment for the target automobile diagnosis software, and determining a target intermediate file corresponding to the target automobile diagnosis software.
For example, as shown in fig. 2, an automobile maintenance worker operates an automobile diagnostic device to perform diagnostic analysis on an automobile to be diagnosed, when the automobile diagnostic device needs to download a certain target automobile diagnostic software to diagnose the automobile to be diagnosed through the software, the maintenance worker may click a download button of the automobile diagnostic device to control the automobile diagnostic device to send a download request to a server, and the server may respond to the download request for the target automobile diagnostic software to determine a target intermediate file corresponding to the target automobile diagnostic software.
Step S130, acquiring the characteristic information of the diagnosis joint, and determining the version of the public key file stored in the diagnosis joint based on the characteristic information.
For example, as shown in fig. 2, each diagnostic connector is produced by storing a public key file in advance, and the service end may identify the version of the public key file corresponding to the diagnostic connector by obtaining characteristic information of the diagnostic connector, for example, obtaining a unique serial number of the diagnostic connector.
In step S140, the private key file corresponding to the public key file is determined based on the version of the public key file.
For example, as shown in fig. 2, the public key and the private key of the server are a pair of keys, the server stores the public key in the diagnostic adapter, and the private key is still stored in the server. The server side can determine the private key file corresponding to the public key file version stored in the diagnosis joint based on the public key file version.
And S150, performing second encryption on the target intermediate file and the private key file to obtain an encrypted file.
For example, as shown in fig. 2, the server may put a target intermediate file corresponding to the target diagnostic software and a private key file together to perform a second encryption process, so as to obtain an encrypted specific encrypted file (license file, encryption rule file, and the like).
Step S160, the encrypted file is sent to the automobile diagnostic apparatus.
Illustratively, after generating a specific encrypted file, the server sends the file to the automobile diagnosis device requesting for downloading, so that a maintenance worker can diagnose the vehicle to be diagnosed through the software by using the automobile diagnosis device.
In the prior art, the client receives encrypted information sent by the server, then obtains the data of the automobile diagnostic software encrypted by the first algorithm and a first decryption key encrypted by the second algorithm according to the encrypted information, then decrypts the first decryption key encrypted by the second algorithm according to a preset decryption public key of the second algorithm to obtain a decryption key of the first algorithm, and decrypts the data of the automobile diagnostic software encrypted by the first algorithm by the decryption key of the first algorithm to obtain the automobile diagnostic software. The scheme is that automobile diagnosis software data and a first decryption key are encrypted respectively and independently, so that the data are encrypted.
In the embodiment of the application, the server firstly encrypts once before the automobile diagnostic software is on line for downloading, a time-consuming encryption process is put into compiling and packaging of the diagnostic software, firstly, file content of each automobile diagnostic software is determined, first encryption processing is carried out on the file content of each automobile diagnostic software to obtain respective corresponding intermediate files, then, a downloading request of the automobile diagnostic equipment for target automobile diagnostic software is responded, a corresponding target intermediate file is determined, a public key file version stored in the diagnostic joint in advance is obtained according to characteristic information of the diagnostic joint, a private key file corresponding to the public key file is determined, further, second encryption processing is carried out on the target intermediate file and the private key file after the first encryption processing, a final encrypted file is obtained, the encrypted file is sent to the automobile diagnostic equipment in multiple ways, the automobile diagnostic software file is not easy to crack in an encryption mode, the technical problem that the encrypted file in the automobile diagnostic software in the prior art is easy to crack is solved, and the time-consuming encryption process is put into compiling and packaging of the diagnostic software, time consumed in use can be shortened, and encryption efficiency is improved.
The above steps are described in detail below.
In some embodiments, the first encryption of the contents of the automobile diagnostic software file can be flexibly realized in multiple ways, for example, the file can be disorderly recombined, so that the intermediate file corresponding to the diagnostic software is in an unordered random state, and the encryption effect is better realized. As an example, the step S110 may specifically include the following steps:
and a) randomly selecting a plurality of files to be encrypted from the file contents by utilizing a snowflake algorithm.
And b) randomly arranging the file sequences of the plurality of files to be encrypted to obtain an encrypted intermediate file of the automobile diagnosis software.
For each developed automobile diagnostic software, the server may first obtain format types of all files in the diagnostic software, then randomly select any number of files from the format types of all files based on a snowflake algorithm, use the selected files as files to be encrypted, generate a corresponding encrypted file list, and use the encrypted file list as a data file array, where data of the files to be encrypted are in a 2-system format. And then acquiring the total number n of the encrypted files, traversing all the encrypted files based on the total number n, and randomly arranging the file sequence of all the files to be encrypted to obtain an encrypted intermediate file. The method for traversing all encrypted files is shown in fig. 3, and a for loop statement can be used to traverse from i = 0; and generating a random subscript serial number j according to the value of i and the value of n, wherein the format of the subscript serial number j can be as follows: next (i, n), where i, n respectively denote two subscript sequence numbers of the encrypted files in the file array; exchanging the encrypted files in the file array according to the subscript sequence number j; after the exchange is finished, i is automatically added with 1, and the loop is returned to continue, wherein the numerical value of i is less than the total number n; after the circulation is finished, a disordered file array, namely the sorted intermediate files (in an unordered random state) is obtained. After that, the 2 system of the intermediate file can be converted into 16 system for storage, and the storage format can be.MD 5.
The files in the diagnostic software are disorganized and recombined, so that the intermediate files of the diagnostic software are in an unordered and random state, the cracking difficulty can be increased, and finally, the 2-system data in the intermediate files are converted into 16-system data to be downloaded, so that the data of the intermediate files can be further protected, and the safety of the files is ensured as much as possible.
In some embodiments, the characteristic information of the diagnostic connector may include multiple types, so that the server may verify the diagnostic connector in multiple ways to determine the public key and the private key more accurately. As an example, the characteristic information of the diagnostic tap includes any one or more of:
a serial number of the diagnostic tap, a production time stamp of the diagnostic tap.
For example, the server may determine the public key corresponding to the diagnostic connector according to the serial number of the diagnostic connector and the timestamp during production as query conditions, and further determine the corresponding private key.
In some embodiments, the second encryption of the contents of the diagnostic software file can be flexibly implemented in various ways, for example, the target intermediate file and the private key file are subjected to second encryption by using an RSA encryption algorithm, so that the finally obtained encrypted file has stronger confidentiality and is less prone to being cracked. As an example, the step S150 may specifically include the following steps:
and c), carrying out second encryption on the target intermediate file and the private key file through an RSA encryption algorithm to obtain an encrypted file.
For example, the server may perform a second encryption process on the target intermediate file and the private key file through an RSA encryption algorithm to obtain a license file and an encryption rule file (encrypted file).
It should be noted that the encrypted file corresponds to the device serial number of the vehicle diagnostic device and/or the diagnostic connector, so that only the corresponding device connector can be decrypted.
And performing second encryption on the target intermediate file and the private key file through an RSA encryption algorithm to obtain an encrypted file, so that the second encryption of the content of the diagnostic software file is realized, the software file is more difficult to crack, and the security is improved.
In some embodiments, file contents in various formats in the automobile diagnosis software can be encrypted, so that application scenes are wider, and the encryption effect on the automobile diagnosis software is improved. As one example, the format type of the file content includes any one or more of:
SO format, BIN format, TXT format, GGP format, PNG format, INI format.
The file contents in various formats in the automobile diagnosis software can be encrypted by enabling the format types of the file contents to be various, so that the application scenes are wider, and the encryption effect of the automobile diagnosis software is improved.
In some embodiments, the encrypted file can be decrypted through a public key in the diagnostic connector, and the automobile diagnostic software can be operated only if the decryption is successful, so that the data security is ensured. As an example, the diagnosis connector is connected with a vehicle to be diagnosed, and is used for sending vehicle-mounted data of the vehicle to be diagnosed to the vehicle diagnosis device; after the step S160, the method may further include the steps of:
step d), the diagnosis joint decrypts the encrypted file through the public key file;
and e), if the decryption is successful, the automobile diagnosis equipment diagnoses the automobile to be diagnosed based on the vehicle-mounted data by using the target automobile diagnosis software.
For example, as shown in fig. 2, the diagnostic connector may decrypt the license file according to a built-in public key based on an RSA algorithm, and if the decryption is successful, the vehicle diagnostic device runs the diagnostic software to start diagnosis based on vehicle-mounted data transmitted by the diagnostic connector; if the decryption is unsuccessful, the diagnostic software rejects the diagnosis and exits.
When the automobile is diagnosed, the diagnosis joint needs to decrypt the license files by using the pre-stored public key every time, and the decryption of the diagnosis software fails due to the modification of any one of the license files, so that the safety of the files in the diagnosis software can be further protected, the software is prevented from being cracked, and the data safety is ensured.
Fig. 4 is a schematic structural diagram of an encryption system of automobile diagnostic software according to an embodiment of the present application. As shown in fig. 4, the system includes a service end, an automotive diagnostic device, and a diagnostic tap.
The automobile diagnosis equipment and the service end can be connected through a wireless network, and the automobile diagnosis equipment and the diagnosis joint can be connected in a wireless or wired mode.
The server is used for encrypting the file content in the automobile diagnosis software, firstly, the file content in the diagnosis software is encrypted firstly in a packing and compiling stage to obtain a corresponding intermediate file, then, the file content is encrypted secondly in a downloading requesting stage of the automobile diagnosis equipment to obtain a final encrypted file, and the encrypted file is sent to the automobile diagnosis equipment.
The diagnosis joint is inserted on the automobile to be diagnosed and used for sending vehicle-mounted data of the automobile to be diagnosed to the automobile diagnosis equipment. The method comprises the steps that public key files are stored in the diagnosis joints, when each diagnosis joint is produced, the public key is obtained from the encryption server, the public key and the private key of the encryption server are a pair of secret keys, the public key is stored in the diagnosis joints, and the private key is still stored in the encryption server.
The automobile diagnosis equipment is used for downloading the encrypted file from the server side, decrypting the encrypted file into automobile diagnosis software by using the public key file stored in the diagnosis joint and operating the automobile diagnosis software, so that the automobile diagnosis software diagnoses the automobile to be diagnosed according to the vehicle-mounted data.
Fig. 5 is a schematic structural diagram of an encryption device for automobile diagnostic software according to an embodiment of the present application. As shown in fig. 5, the encryption apparatus 500 of the automobile diagnostic software includes:
the first encryption module 501 is configured to perform first encryption on file content of the automobile diagnostic software to obtain an encrypted intermediate file.
The first determining module 502 is configured to perform first encryption on the file content to obtain an encrypted intermediate file of the target automobile diagnostic software.
The obtaining module 503 is configured to determine a target intermediate file corresponding to the target automobile diagnostic software in response to a download request of the automobile diagnostic device for the target automobile diagnostic software.
A second determining module 504, configured to determine, based on the version of the public key file, a private key file corresponding to the public key file.
The second encryption module 505 is configured to perform second encryption on the target intermediate file and the private key file to obtain an encrypted file.
And a sending module 506, configured to send the encrypted file to the automobile diagnostic apparatus.
In some embodiments, the first encryption module 501 is specifically configured to:
selecting a plurality of files to be encrypted at random from the file contents by utilizing a snowflake algorithm;
and randomly arranging the file sequences of the plurality of files to be encrypted to obtain an encrypted intermediate file of the automobile diagnosis software.
In some embodiments, the characteristic information of the diagnostic tap includes any one or more of:
a serial number of the diagnostic joint, a production timestamp of the diagnostic joint.
In some embodiments, the second encryption module 505 is specifically configured to:
and carrying out second encryption on the target intermediate file and the private key file through an RSA encryption algorithm to obtain an encrypted file.
In some embodiments, the format type of the file content includes any one or more of:
SO format, BIN format, TXT format, GGP format, PNG format, INI format.
In some embodiments, the diagnosis connector is connected with the automobile to be diagnosed, and is used for sending vehicle-mounted data of the automobile to be diagnosed to the automobile diagnosis equipment; the device also includes:
the decryption module is used for decrypting the encrypted file through the public key file by the diagnosis joint after the encrypted file is sent to the automobile diagnosis equipment;
and if the decryption is successful, the automobile diagnosis equipment diagnoses the automobile to be diagnosed based on the vehicle-mounted data by using the target automobile diagnosis software.
The device provided by the embodiment of the present invention has the same implementation principle and technical effect as the method embodiments, and for the sake of brief description, no mention is made in the system embodiments, and reference may be made to the corresponding contents in the method embodiments.
The embodiment of the invention provides electronic equipment, which particularly comprises a processor and a storage device; the storage means has stored thereon a computer program which, when executed by the processor, performs the method of any of the above embodiments.
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, where the electronic device includes: a processor 601, a memory 602, a bus 603 and a communication interface 604, wherein the processor 601, the communication interface 604 and the memory 602 are connected through the bus 603; the processor 601 is used to execute executable modules, such as computer programs, stored in the memory 602.
The Memory 602 may include a high-speed Random Access Memory (RAM) and may further include a Non-volatile Memory (Non-volatile Memory), such as at least one disk Memory. The communication connection between the network element of the system and at least one other network element is implemented through at least one communication interface 604 (which may be wired or wireless), and the internet, a wide area network, a local network, a metropolitan area network, and the like may be used.
The bus 603 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 6, but this does not indicate only one bus or one type of bus.
The memory 602 is used for storing a program, and the processor 601 executes the program after receiving an execution instruction, and the method performed by the apparatus defined by the flow program disclosed in any of the foregoing embodiments of the present invention may be applied to the processor 601, or implemented by the processor 601.
The processor 601 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 601. The Processor 601 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the Integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, or discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 602, and the processor 601 reads the information in the memory 602 and completes the steps of the method in combination with the hardware thereof.
The computer program product of the readable storage medium provided in the embodiment of the present invention includes a computer readable storage medium storing a program code, and instructions included in the program code may be used to execute the method in the foregoing method embodiment, and specific implementation may refer to the foregoing method embodiment, which is not described herein again.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention or a part thereof which substantially contributes to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Finally, it should be noted that: although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that: those skilled in the art can still make modifications or changes to the embodiments described in the foregoing embodiments, or make equivalent substitutions for some features, within the scope of the disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present invention, and they should be construed as being included therein. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (8)
1. The encryption method of the automobile diagnosis software is characterized by being applied to a server side, wherein the server side is connected with automobile diagnosis equipment, the automobile diagnosis equipment is connected with a diagnosis joint, and a public key file is stored in the diagnosis joint; the method comprises the following steps:
performing first encryption on the file content of the automobile diagnosis software to obtain an encrypted intermediate file;
responding to a downloading request of the automobile diagnosis equipment for target automobile diagnosis software, and determining a target intermediate file corresponding to the target automobile diagnosis software;
acquiring characteristic information of the diagnostic joint, and determining a version of a public key file stored in the diagnostic joint based on the characteristic information;
determining a private key file corresponding to the public key file based on the version of the public key file;
performing second encryption on the target intermediate file and the private key file to obtain an encrypted file;
sending the encrypted file to the automobile diagnosis device;
the first encryption of the file content of the automobile diagnosis software to obtain an encrypted intermediate file comprises the following steps:
randomly selecting a plurality of files to be encrypted from the file contents by utilizing a snowflake algorithm;
randomly arranging the file sequences of the files to be encrypted to obtain an encrypted intermediate file of the automobile diagnosis software;
the diagnosis connector is connected with an automobile to be diagnosed and used for sending vehicle-mounted data of the automobile to be diagnosed to the automobile diagnosis equipment; after the sending the encrypted file to the automobile diagnosis device, the method further comprises:
the diagnosis joint decrypts the encrypted file through the public key file;
and if the decryption is successful, the automobile diagnosis equipment diagnoses the automobile to be diagnosed based on the vehicle-mounted data by using the target automobile diagnosis software.
2. The method of claim 1, wherein the characterization information of the diagnostic tap comprises any one or more of:
a serial number of the diagnostic tap, a production timestamp of the diagnostic tap.
3. The method according to claim 1, wherein the second encrypting the target intermediate file and the private key file to obtain an encrypted file comprises:
and carrying out second encryption on the target intermediate file and the private key file through an RSA encryption algorithm to obtain an encrypted file.
4. The method according to claim 1, wherein the format type of the file content comprises any one or more of the following items:
SO format, BIN format, TXT format, GGP format, PNG format, INI format.
5. An encryption system for automotive diagnostic software, the system comprising:
the system comprises a server, automobile diagnosis equipment and a diagnosis joint, wherein the automobile diagnosis equipment is respectively connected with the server and the diagnosis joint;
the server is used for encrypting the file content in the automobile diagnosis software, firstly, carrying out first encryption processing on the file content in the automobile diagnosis software in a packing and compiling stage to obtain a corresponding intermediate file, then, carrying out second encryption processing in a downloading request stage of the automobile diagnosis equipment to obtain a final encrypted file, and sending the encrypted file to the automobile diagnosis equipment;
the diagnosis joint is connected with the automobile to be diagnosed and used for sending vehicle-mounted data of the automobile to be diagnosed to the automobile diagnosis equipment;
a public key file is stored in the diagnosis joint;
the automobile diagnosis equipment is used for downloading the encrypted file from the server side and decrypting the encrypted file into the automobile diagnosis software by using the public key file stored in the diagnosis joint;
the automobile diagnosis equipment is also used for operating the automobile diagnosis software;
the server is also used for randomly selecting a plurality of files to be encrypted from the file contents by utilizing a snowflake algorithm; randomly arranging the file sequences of the files to be encrypted to obtain an encrypted intermediate file of the automobile diagnosis software;
the service end is also used for decrypting the encrypted file by the diagnosis joint through the public key file after the encrypted file is sent to the automobile diagnosis equipment; and if the decryption is successful, the automobile diagnosis equipment diagnoses the automobile to be diagnosed based on the vehicle-mounted data by utilizing the automobile diagnosis software.
6. The encryption device of the automobile diagnosis software is characterized by being applied to a server side, wherein the server side is connected with automobile diagnosis equipment, the automobile diagnosis equipment is connected with a diagnosis joint, and a public key file is stored in the diagnosis joint; the device comprises:
the first encryption module is used for carrying out first encryption on the file content of the automobile diagnosis software to obtain an encrypted intermediate file;
the first determining module is used for responding to a downloading request of the automobile diagnosis equipment for target automobile diagnosis software and determining a target intermediate file corresponding to the target automobile diagnosis software;
the acquisition module is used for acquiring the characteristic identifier of the diagnostic joint and determining the version of the public key file stored in the diagnostic joint based on the characteristic identifier;
the second determining module is used for determining a private key file corresponding to the public key file based on the version of the public key file;
the second encryption module is used for carrying out second encryption on the target intermediate file and the private key file to obtain an encrypted file;
the sending module is used for sending the encrypted file to the automobile diagnosis equipment;
the first determining module is further used for randomly selecting a plurality of files to be encrypted from the file contents by utilizing a snowflake algorithm; randomly arranging the file sequences of the files to be encrypted to obtain an encrypted intermediate file of the automobile diagnosis software;
the decryption module is used for decrypting the encrypted file by the diagnosis joint through the public key file after the encrypted file is sent to the automobile diagnosis equipment; if the decryption is successful, the automobile diagnosis equipment diagnoses the automobile to be diagnosed based on the vehicle-mounted data by using the target automobile diagnosis software; the diagnosis connector is connected with a vehicle to be diagnosed and used for sending the vehicle-mounted data of the vehicle to be diagnosed to the vehicle diagnosis equipment.
7. An electronic device comprising a memory and a processor, wherein the memory stores a computer program operable on the processor, and wherein the processor implements the steps of the method of any of claims 1 to 4 when executing the computer program.
8. A computer readable storage medium having stored thereon computer executable instructions which, when invoked and executed by a processor, cause the processor to execute the method of any of claims 1 to 4.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210935125.8A CN115017529B (en) | 2022-08-05 | 2022-08-05 | Encryption method for automobile diagnosis software |
PCT/CN2023/096607 WO2024027301A1 (en) | 2022-08-05 | 2023-05-26 | Encryption method for automobile diagnosis software |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210935125.8A CN115017529B (en) | 2022-08-05 | 2022-08-05 | Encryption method for automobile diagnosis software |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115017529A CN115017529A (en) | 2022-09-06 |
CN115017529B true CN115017529B (en) | 2022-11-15 |
Family
ID=83066269
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210935125.8A Active CN115017529B (en) | 2022-08-05 | 2022-08-05 | Encryption method for automobile diagnosis software |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN115017529B (en) |
WO (1) | WO2024027301A1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115017529B (en) * | 2022-08-05 | 2022-11-15 | 深圳市星卡软件技术开发有限公司 | Encryption method for automobile diagnosis software |
Family Cites Families (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
AUPP559898A0 (en) * | 1998-09-01 | 1998-09-24 | Ross, Peter William | Large user-editable data file enabling both a character rotation which is variable and custom encryption/decryption programs |
CN101420306B (en) * | 2008-12-12 | 2010-12-08 | 肖佐楠 | Automobile mounted automatic diagnosis method based on RSA ciphering and signature algorithm |
CN105930695B (en) * | 2016-04-11 | 2019-03-19 | 江苏通付盾科技有限公司 | A kind of guard method of Software Development Kit and device |
KR102542546B1 (en) * | 2016-11-22 | 2023-06-13 | 현대모비스 주식회사 | Telematics server and remote diagnosis method for vehicle thereof |
CN108124491B (en) * | 2017-12-28 | 2022-11-11 | 深圳市元征软件开发有限公司 | Diagnostic joint upgrading verification method and device of diagnostic equipment and diagnostic joint |
CN108566368B (en) * | 2018-02-08 | 2021-04-02 | 深圳市元征软件开发有限公司 | Data processing method, server and diagnosis connector |
CN110602036A (en) * | 2019-07-26 | 2019-12-20 | 深圳市元征科技股份有限公司 | Automobile diagnosis software management method and related device |
US20210075783A1 (en) * | 2019-09-10 | 2021-03-11 | William Mazzara, JR. | Authenticated vehicle diagnostic access techniques |
CN111181928B (en) * | 2019-12-14 | 2022-08-09 | 深圳市元征科技股份有限公司 | Vehicle diagnosis method, server, and computer-readable storage medium |
CN111245818A (en) * | 2020-01-08 | 2020-06-05 | 中国信息安全测评中心 | File transmission method and system, sending end equipment and receiving end equipment |
CN111835511A (en) * | 2020-06-30 | 2020-10-27 | 平安国际智慧城市科技股份有限公司 | Data security transmission method and device, computer equipment and storage medium |
CN113158268B (en) * | 2021-04-28 | 2022-10-21 | 福建金成信息科技有限公司 | Computer software encryption protection device |
CN115017529B (en) * | 2022-08-05 | 2022-11-15 | 深圳市星卡软件技术开发有限公司 | Encryption method for automobile diagnosis software |
-
2022
- 2022-08-05 CN CN202210935125.8A patent/CN115017529B/en active Active
-
2023
- 2023-05-26 WO PCT/CN2023/096607 patent/WO2024027301A1/en unknown
Also Published As
Publication number | Publication date |
---|---|
WO2024027301A1 (en) | 2024-02-08 |
CN115017529A (en) | 2022-09-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6199335B2 (en) | Communication network system and message inspection method | |
CN111181928B (en) | Vehicle diagnosis method, server, and computer-readable storage medium | |
CN107770159B (en) | Vehicle accident data recording method and related device and readable storage medium | |
CN110519309B (en) | Data transmission method, device, terminal, server and storage medium | |
CN110149209B (en) | Internet of things equipment and method and device for improving data transmission safety of Internet of things equipment | |
JP6190404B2 (en) | Receiving node, message receiving method and computer program | |
CN108124491B (en) | Diagnostic joint upgrading verification method and device of diagnostic equipment and diagnostic joint | |
CN110995720B (en) | Encryption method, device, host terminal and encryption chip | |
CN112528236B (en) | Application software authorization method based on virtual machine | |
CN115017529B (en) | Encryption method for automobile diagnosis software | |
CN113439425A (en) | Message transmission method and device | |
CN116781263B (en) | Identity authentication and secret key self-updating method among in-vehicle ECUs and readable storage medium | |
US8862893B2 (en) | Techniques for performing symmetric cryptography | |
CN110602036A (en) | Automobile diagnosis software management method and related device | |
CN115022035A (en) | CAN communication encryption method and device, electronic equipment and storage medium | |
CN114390478A (en) | Equipment authentication system, method and terminal equipment | |
JP6454917B2 (en) | Communication network system and message inspection method | |
CN108242997A (en) | The method and apparatus of secure communication | |
CN103179088A (en) | Protection method and protection system of common gateway interface business | |
CN112910641A (en) | Verification method and device for cross-link transaction supervision, relay link node and medium | |
JP2004320174A (en) | Authentication system, authentication apparatus, and authentication method | |
CN112016055A (en) | Software authorized activation code generation method and system based on hardware characteristics | |
CN111385099A (en) | Safety authentication method and device for vehicle-mounted intelligent hardware | |
CN116566744B (en) | Data processing method and security verification system | |
CN116032532A (en) | Method, device, equipment and computer storage medium for authorizing air download service |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20231207 Address after: 518129 2606, building 4, Tianan Yungu Industrial Park, Gangtou community, Bantian street, Longgang District, Shenzhen City, Guangdong Province Patentee after: Shenzhen xingka Technology Co.,Ltd. Address before: Room 2604, Building 4, Phase II, Tianan Yungu Industrial Park, Gangtou Community, Bantian Street, Longgang District, Shenzhen, Guangdong 518100 Patentee before: Shenzhen xingka Software Technology Development Co.,Ltd. |
|
TR01 | Transfer of patent right |