CN113867818A - Method and device for generating ini file, computer equipment and medium - Google Patents

Method and device for generating ini file, computer equipment and medium Download PDF

Info

Publication number
CN113867818A
CN113867818A CN202111140709.8A CN202111140709A CN113867818A CN 113867818 A CN113867818 A CN 113867818A CN 202111140709 A CN202111140709 A CN 202111140709A CN 113867818 A CN113867818 A CN 113867818A
Authority
CN
China
Prior art keywords
ini file
authentication information
ini
generating
file
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.)
Granted
Application number
CN202111140709.8A
Other languages
Chinese (zh)
Other versions
CN113867818B (en
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.)
Weichai Power Co Ltd
Weifang Weichai Power Technology Co Ltd
Original Assignee
Weichai Power Co Ltd
Weifang Weichai Power Technology 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 Weichai Power Co Ltd, Weifang Weichai Power Technology Co Ltd filed Critical Weichai Power Co Ltd
Priority to CN202111140709.8A priority Critical patent/CN113867818B/en
Publication of CN113867818A publication Critical patent/CN113867818A/en
Priority to PCT/CN2022/121994 priority patent/WO2023051573A1/en
Application granted granted Critical
Publication of CN113867818B publication Critical patent/CN113867818B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4403Processor initialisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Storage Device Security (AREA)

Abstract

The embodiment of the invention discloses a method and a device for generating an ini file, computer equipment and a medium. The method for generating the ini file comprises the following steps: determining the ini file configuration parameter information of the current flash ini file and the timestamp for configuring the ini file; and determining ini file authentication information corresponding to the current flash ini file according to the ini file configuration parameter information and the time stamp of the configuration ini file, and generating a target ini file containing the ini file authentication information. The technical scheme of the embodiment of the invention can improve the security of the ini file and protect the security of the configuration information.

Description

Method and device for generating ini file, computer equipment and medium
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a method and a device for generating an ini file, computer equipment and a medium.
Background
The ini File is an abbreviation of an Initialization File, that is, an Initialization File, and the ini File is a File used for setting parameters for initializing an operating system or a program, and the content of the ini File is generally some variables and values or link statements of a database and the like. The ini file consists of sections, keys, values, for example: [ EcuVersion ], Version ═ WISEC10-P201-V174, where [ EcuVersion ] is a section, Version is a bond, and WISEC10-P201-V174 is a value.
Because the ini file has a simple structure and is easy to manufacture, a user familiar with the program system can easily forge the ini file, the system or the terminal can be randomly configured, the ini file is not effectively managed at the present stage, the system information and the data are easily falsified, and the data safety of a client during generating and using the ini file cannot be guaranteed.
Disclosure of Invention
The embodiment of the invention provides a method and a device for generating an ini file, computer equipment and a medium, which are used for improving the safety of the ini file and protecting the safety of configuration information.
In a first aspect, an embodiment of the present invention provides a method for generating an ini file, where the method for generating an ini file includes:
determining the ini file configuration parameter information of the current flash ini file and the timestamp for configuring the ini file;
and determining ini file authentication information corresponding to the current flash ini file according to the ini file configuration parameter information and the time stamp of the configuration ini file, and generating a target ini file containing the ini file authentication information.
Further, the ini file configuration parameter information comprises ECU version authentication information, variable name authentication information and variable number authentication information;
determining the ini file authentication information corresponding to the current flashing ini file according to the ini file configuration parameter information and the time stamp of the configuration ini file comprises the following steps:
and determining the ini file authentication information corresponding to the current flash ini file according to the ECU version authentication information, the variable name authentication information, the variable number authentication information and the timestamp of the configuration ini file.
Further, the ini file authentication information comprises 10 authentication bytes;
the ECU version authentication information comprises 1 authentication byte, the variable name authentication information comprises 1 authentication byte, the variable number authentication information comprises 1 authentication byte, and the time stamp of the configuration ini file comprises 7 authentication bytes.
Further, the ECU version authentication information, the variable name authentication information, the variable number authentication information, and the time stamp of the configuration ini file are configured with a 16-ary number.
Further, determining a timestamp of the configuration ini file of the current writing ini file comprises:
and determining the legal use starting time and the legal use ending time of the current flash ini file, and determining the time stamp of the configuration ini file according to the legal use starting time and the legal use ending time.
Further, the method for generating the ini file further comprises the following steps:
acquiring the current use time of an ini file to be refreshed, and legal use starting time and legal use ending time corresponding to the ini file to be refreshed;
if the current use time is between the legal use starting time and the legal use ending time, the ini file to be rewritten is considered to pass the ini file authentication; and if the current use time is not between the legal use starting time and the legal use ending time, stopping the flashing process of the ini file to be flashed.
Further, the method for generating the ini file further comprises the following steps:
and storing the target ini file into a memory.
In a second aspect, an embodiment of the present invention further provides a device for generating an ini file, where the device for generating an ini file includes:
the information generating module is used for determining the ini file configuration parameter information of the current flash ini file and the timestamp for configuring the ini file;
and the file generation module is used for determining the ini file authentication information corresponding to the current flash ini file according to the ini file configuration parameter information and the timestamp of the configuration ini file, and generating a target ini file containing the ini file authentication information.
In a third aspect, an embodiment of the present invention further provides a computer device, where the computer device includes:
one or more processors;
a storage device for storing a plurality of programs,
when at least one of the programs is executed by the one or more processors, the one or more processors are enabled to implement the method for generating the ini file provided by the embodiment of the first aspect of the present invention.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for generating an ini file provided in the embodiment of the first aspect of the present invention.
According to the technical scheme of the embodiment of the invention, the configuration parameter information of the ini file of the current brushing ini file and the timestamp of the configuration ini file are determined; and determining ini file authentication information corresponding to the current flash ini file according to the ini file configuration parameter information and the time stamp of the configuration ini file, and generating a target ini file containing the ini file authentication information. The problem that the system information and data are easily tampered due to lack of effective management on the ini file at the present stage, and data safety of a client during generating and using the ini file cannot be guaranteed is solved, so that the safety of the ini file is improved, and the safety of configuration information is protected.
Drawings
Fig. 1 is a flowchart of a method for generating an ini file according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for generating an ini file according to a second embodiment of the present invention;
fig. 3 is a structural diagram of an ini file generating device according to a third embodiment of the present invention;
fig. 4 is a schematic diagram of a hardware structure of a computer device according to a fourth embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention are described in further detail below with reference to the accompanying drawings. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention.
It should be further noted that, for the convenience of description, only some but not all of the relevant aspects of the present invention are shown in the drawings. Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently or simultaneously. In addition, the order of the operations may be re-arranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
When an ECU (Electronic Control Unit) writes a variable in a flash, the ini file format used is generally as follows:
start byte Field(s) Data type Description and claims
0 ECU software version STRING ASCII, max 20Bytes
20 Variable information WORD Key, value
The ini file is easy to manufacture and crack, and further tampering of program system information and data is caused. In order to solve the existing technical problems, a method, a device, computer equipment and a medium for generating an ini file are provided, so that the safety of the ini file is improved, and the safety of configuration information is protected.
Example one
Fig. 1 is a flowchart of a method for generating an ini file according to an embodiment of the present invention, where the embodiment is applicable to a case where encryption and authentication of the ini file are effectively managed, the method for generating the ini file may be executed by a device for generating the ini file, and the device for generating the ini file may be implemented in a form of software and/or hardware. The method for generating the ini file specifically comprises the following steps:
s110, determining the ini file configuration parameter information of the current flash ini file and the timestamp for configuring the ini file.
The ini file configuration parameter information comprises ECU version authentication information, variable name authentication information and variable number authentication information.
Specifically, determining the ini file authentication information corresponding to the current flashing ini file according to the ini file configuration parameter information and the timestamp of the configuration ini file as follows: and determining the ini file authentication information corresponding to the current flash ini file according to the ECU version authentication information, the variable name authentication information, the variable number authentication information and the timestamp of the configuration ini file.
On the basis, the ECU version authentication information, the variable name authentication information, the variable number authentication information, and the time stamp of the configuration ini file are configured with a 16-ary number.
In this embodiment, the special characters are removed from the ECU version information of the current flash ini file, the rest is converted into 16-system numbers, and after all the characters are added and summed, only the 16-system number with the lowest two bits is reserved as the ECU version authentication information. The ECU version information may be configured and generated by the ECU itself, or preset in the program system by those skilled in the art, which is not limited in this embodiment.
All variables of the current writing ini file are obtained, characters corresponding to the initial letters of all the variable names are converted into 16-system numbers, and after the 16-system numbers are added and summed, only the 16-system numbers with the lowest two bits are reserved and used as variable name authentication information.
On the basis, the number of all variables of the current writing ini file is obtained, the variable number is converted into a 16-system number, and only the 16-system number with the lowest two bits is reserved and used as variable number authentication information. The number of variables of the current flash ini file is determined by the ini file, and the number of the variables is not explained too much in the embodiment, so that the specific number of the readable variables is used as the standard.
Further, determining a timestamp of the configuration ini file of the current writing ini file comprises: and determining the legal use starting time and the legal use ending time of the current flash ini file, and determining the time stamp of the configuration ini file according to the legal use starting time and the legal use ending time.
The time stamp for configuring the ini file specifies the legal use time of the ini file, and the legal use time of the ini file comprises legal use starting time and legal use ending time.
In this embodiment, the legal use start time and the legal use end time of the current flash ini file are taken as a numerical value, and are converted into a 16-system number to generate the time stamp of the configuration ini file.
In one embodiment, the ini file authentication information comprises 10 authentication bytes; the ECU version authentication information comprises 1 authentication byte, the variable name authentication information comprises 1 authentication byte, the variable number authentication information comprises 1 authentication byte, and the time stamp of the configuration ini file comprises 7 authentication bytes.
S120, determining ini file authentication information corresponding to the current flash ini file according to the ini file configuration parameter information and the time stamp of the configuration ini file, and generating a target ini file containing the ini file authentication information.
It can be understood that the ECU version authentication information, the variable name authentication information, the variable number authentication information, and the time stamp of the configuration ini file collectively form the ini file authentication information corresponding to the current flash ini file, so that the ini file is encrypted and is safer.
When the ini file is generated, the ini file authentication information of the current brushing ini file is added to obtain the target ini file containing the ini file authentication information, so that the brushing data and content of the ini file are effectively prevented from being maliciously tampered by a client, and the information safety of a program system and a terminal is guaranteed.
On the basis of the above embodiment, the method for generating an ini file further includes: acquiring the current use time of an ini file to be refreshed, and legal use starting time and legal use ending time corresponding to the ini file to be refreshed; if the current use time is between the legal use starting time and the legal use ending time, the ini file to be rewritten is considered to pass the ini file authentication; and if the current use time is not between the legal use starting time and the legal use ending time, stopping the flashing process of the ini file to be flashed.
On the basis, if the current use time of the ini file to be refreshed is determined before the ini file to be refreshed is read, the timestamp of the configuration ini file in the ini file authentication information corresponding to the ini file to be refreshed is obtained through the ini file authentication information corresponding to the ini file to be refreshed, and the legal use starting time and the legal use ending time corresponding to the ini file to be refreshed are obtained.
If the current use time is between the legal use starting time and the legal use ending time, the ini file to be rewritten is considered to pass the ini file authentication, namely the ini file to be rewritten is in a legal time period; if the current use time is not between the legal use starting time and the legal use ending time, the ini file authentication cannot be passed, namely the ini file to be rewritten is not in the legal time period, the rewriting process of the ini file to be rewritten is stopped, so that the legal use of the ini file is ensured, and the safety of the configuration information is protected.
In an embodiment, the method for generating an ini file further includes: and storing the target ini file into a memory.
It can be understood that the target ini file containing the ini file authentication information is stored in a memory of the program system. When the generation information and the legal use time of the ini file to be refreshed are required to be inquired, the ini file containing the ini file authentication information and stored in the memory of the program system can be inquired, the generation information of the ini file and the corresponding ini file authentication information content can be traced back through the ini file authentication information of the ini file to be refreshed, the storage history of the ini file can be conveniently inquired, and the safety of the ini file is improved.
According to the technical scheme of the embodiment of the invention, the configuration parameter information of the ini file of the current brushing ini file and the timestamp of the configuration ini file are determined; and determining ini file authentication information corresponding to the current flash ini file according to the ini file configuration parameter information and the time stamp of the configuration ini file, and generating a target ini file containing the ini file authentication information. The problem that the system information and data are easily tampered due to lack of effective management on the ini file at the present stage, and data safety of a client during generating and using the ini file cannot be guaranteed is solved, so that the safety of the ini file is improved, and the safety of configuration information is protected.
Example two
Fig. 2 is a flowchart of a method for generating an ini file according to a second embodiment of the present invention, which is optimized based on the second embodiment.
Correspondingly, the method of the embodiment specifically includes:
s210, determining the ECU version authentication information, the variable name authentication information and the variable number authentication information of the current flash ini file.
In one embodiment, the ECU version authentication information includes 1 authentication byte, taking the ECU version number WISE63-P920-V102 as an example, removing special characters, taking the ECU version number WISE63P920V102 as the example, adding and summing all characters to obtain 61B, and keeping only the 16-digit number of the lowest two bits, that is, the length of the last two bits is 1B, and 1B is used as the ECU version authentication information of 1 authentication byte.
The variable name authentication information comprises 1 authentication byte, and assuming that the ini file shares three variables, namely ACComp _ TiTrqDes _ C, ACComp _ TiTrqDyn _ C and ACComp _ TiTrqResv _ C, characters corresponding to the initial letters AAA of all variable names are converted into 16-system numbers, C3 is obtained by adding and summing, and the overflow part of the sum is not calculated, then C3 is used as the variable name authentication information of 1 authentication byte.
The variable number authentication information includes 1 authentication byte, for example, there are 312 variables in the ini file, the converted 16-ary number is 138, the overflow part after the conversion is not counted, only the 16-ary number of the lowest two bits is reserved, and then 38 is used as the variable number authentication information of 1 authentication byte.
S220, determining the legal use starting time and the legal use ending time of the current flash ini file, and determining the time stamp of the configuration ini file according to the legal use starting time and the legal use ending time.
In an embodiment, the time stamp of the configuration ini file includes 7 authentication bytes, for example, if the legal use time of the ini file is set from 8 months 1 days in 2021 to 12 months 1 days in 2021, the value 2021080120211201 is obtained and converted into a 16-ary number 72E2962A0B701 with a length of 7 bytes, and if the number is less than 7 bytes, the number is complemented with 0 in the high order, and the 072E2962A0B701 is the time stamp of the configuration ini file with 7 authentication bytes.
And S230, determining the ini file authentication information corresponding to the current flash ini file according to the ECU version authentication information, the variable name authentication information, the variable number authentication information and the timestamp of the configuration ini file.
In this embodiment, the ini file authentication information includes 10 authentication bytes; the ECU version authentication information comprises 1 authentication byte, the variable name authentication information comprises 1 authentication byte, the variable number authentication information comprises 1 authentication byte, and the time stamp of the configuration ini file comprises 7 authentication bytes.
On the basis, the ECU version authentication information, the variable name authentication information, the variable number authentication information, and the time stamp of the configuration ini file collectively form ini file authentication information corresponding to the current flash ini file, that is, the ini file authentication information is 1B C338072E 2962a0B701, and 10 authentication bytes are counted.
S240, generating a target ini file containing the ini file authentication information.
Specifically, when an ini file is generated, the ini file authentication information of the current brushing ini file is added, and a target ini file containing the ini file authentication information is obtained.
And S250, storing the target ini file into a memory.
Specifically, the generated ini file and ini file authentication information, namely the target ini file, are recorded, and the ini file authentication information are stored in a memory of a program system, so that the generation information of the corresponding ini file can be inquired through the ini file authentication information in the following process.
In another embodiment, the current use time of the ini file to be refreshed, and the legal use starting time and the legal use ending time corresponding to the ini file to be refreshed are obtained; if the current use time is between the legal use starting time and the legal use ending time, the ini file to be rewritten is considered to pass the ini file authentication; and if the current use time is not between the legal use starting time and the legal use ending time, stopping the flashing process of the ini file to be flashed.
According to the technical scheme of the embodiment of the invention, the ini file authentication information is added when the ini file is generated, and the ini file authentication information contains 10 length authentication bytes, namely 10 length authentication bytes are added in the ini file, so that the function of encrypting the ini file can be realized, the ini file is safer, the written data and content of the ini file are effectively prevented from being maliciously tampered by a client, the information safety of a system and a terminal is ensured, meanwhile, the generation information and the corresponding content of the ini file can be traced, and the historical record of the ini file can be conveniently inquired. On the other hand, the ini file authentication information includes a time stamp for arranging the ini file, and defines a valid use time of the ini file.
EXAMPLE III
Fig. 3 is a structural diagram of an ini file generating device according to a third embodiment of the present invention, which is applicable to a case where encryption and authentication of an ini file are effectively managed.
As shown in fig. 3, the apparatus for generating an ini file includes: an information generation module 310 and a file generation module 320, wherein:
the information generating module 310 is configured to determine the ini file configuration parameter information of the current brushing ini file and a timestamp for configuring the ini file;
the file generating module 320 is configured to determine ini file authentication information corresponding to the current flashing ini file according to the ini file configuration parameter information and the timestamp of the configuration ini file, and generate a target ini file including the ini file authentication information.
The generating device of the ini file of the embodiment is used for generating the ini file by determining the ini file configuration parameter information of the current flash ini file and the timestamp for configuring the ini file; and determining ini file authentication information corresponding to the current flash ini file according to the ini file configuration parameter information and the time stamp of the configuration ini file, and generating a target ini file containing the ini file authentication information. The problem that the system information and data are easily tampered due to lack of effective management on the ini file at the present stage, and data safety of a client during generating and using the ini file cannot be guaranteed is solved, so that the safety of the ini file is improved, and the safety of configuration information is protected.
On the basis of the above embodiments, the ini file configuration parameter information includes ECU version authentication information, variable name authentication information, and variable number authentication information;
determining the ini file authentication information corresponding to the current flashing ini file according to the ini file configuration parameter information and the time stamp of the configuration ini file comprises the following steps:
and determining the ini file authentication information corresponding to the current flash ini file according to the ECU version authentication information, the variable name authentication information, the variable number authentication information and the timestamp of the configuration ini file.
On the basis of the above embodiments, the ini file authentication information includes 10 authentication bytes;
the ECU version authentication information comprises 1 authentication byte, the variable name authentication information comprises 1 authentication byte, the variable number authentication information comprises 1 authentication byte, and the time stamp of the configuration ini file comprises 7 authentication bytes.
On the basis of the above embodiments, the ECU version authentication information, the variable name authentication information, the variable number authentication information, and the time stamp of the configuration ini file are arranged in 16-ary numbers.
On the basis of the above embodiments, determining the timestamp of the configuration ini file of the current brushing ini file includes:
and determining the legal use starting time and the legal use ending time of the current flash ini file, and determining the time stamp of the configuration ini file according to the legal use starting time and the legal use ending time.
On the basis of the foregoing embodiments, the apparatus for generating an ini file further includes:
the time acquisition module is used for acquiring the current use time of the ini file to be refreshed, and the legal use starting time and the legal use ending time corresponding to the ini file to be refreshed;
the flash judging module is used for considering that the ini file to be flashed passes the ini file authentication if the current use time is between the legal use starting time and the legal use ending time; and if the current use time is not between the legal use starting time and the legal use ending time, stopping the flashing process of the ini file to be flashed.
On the basis of the foregoing embodiments, the apparatus for generating an ini file further includes:
and the file storage module is used for storing the target ini file into a memory.
The apparatus for generating an ini file provided in the foregoing embodiments may execute the method for generating an ini file provided in any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the method for generating an ini file.
Example four
Fig. 4 is a schematic structural diagram of a computer apparatus according to a fourth embodiment of the present invention, as shown in fig. 4, the computer apparatus includes a processor 410, a memory 420, an input device 430, and an output device 440; the number of the processors 410 in the computer device may be one or more, and one processor 410 is taken as an example in fig. 4; the processor 410, the memory 420, the input device 430 and the output device 440 in the computer apparatus may be connected by a bus or other means, and the connection by the bus is exemplified in fig. 4.
The memory 420, which is a computer-readable storage medium, may be used to store software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the method for generating an ini file in the embodiment of the present invention (for example, the information generating module 310 and the file generating module 320 in the device for generating an ini file). The processor 410 executes various functional applications and data processing of the computer device by executing software programs, instructions and modules stored in the memory 420, that is, the method for generating the ini file described above is implemented.
The memory 420 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 420 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, memory 420 may further include memory located remotely from processor 410, which may be connected to a computer device through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 430 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the computer apparatus. The output device 440 may include a display device such as a display screen.
EXAMPLE five
An embodiment of the present invention further provides a storage medium containing computer-executable instructions, where the computer-executable instructions are executed by a computer processor to perform a method for generating an ini file, where the method for generating an ini file includes:
determining the ini file configuration parameter information of the current flash ini file and the timestamp for configuring the ini file;
and determining ini file authentication information corresponding to the current flash ini file according to the ini file configuration parameter information and the time stamp of the configuration ini file, and generating a target ini file containing the ini file authentication information.
Of course, the storage medium provided by the embodiment of the present invention contains computer-executable instructions, and the computer-executable instructions are not limited to the method operations described above, and may also perform related operations in the method for generating an ini file provided by any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It should be noted that, in the embodiment of the apparatus for generating an ini file, each unit and each module included in the embodiment are only divided according to functional logic, but are not limited to the above division as long as the corresponding function can be realized; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A method for generating an ini file is characterized by comprising the following steps:
determining the ini file configuration parameter information of the current flash ini file and the timestamp for configuring the ini file;
and determining ini file authentication information corresponding to the current flash ini file according to the ini file configuration parameter information and the time stamp of the configuration ini file, and generating a target ini file containing the ini file authentication information.
2. The method for generating an ini file according to claim 1, wherein the ini file configuration parameter information includes ECU version authentication information, variable name authentication information, and variable number authentication information;
determining the ini file authentication information corresponding to the current flashing ini file according to the ini file configuration parameter information and the time stamp of the configuration ini file comprises the following steps:
and determining the ini file authentication information corresponding to the current flash ini file according to the ECU version authentication information, the variable name authentication information, the variable number authentication information and the timestamp of the configuration ini file.
3. The method of generating an ini file according to claim 2, wherein the ini file authentication information includes 10 authentication bytes;
the ECU version authentication information comprises 1 authentication byte, the variable name authentication information comprises 1 authentication byte, the variable number authentication information comprises 1 authentication byte, and the time stamp of the configuration ini file comprises 7 authentication bytes.
4. The method of generating an ini file according to claim 2, wherein the ECU version authentication information, the variable name authentication information, the variable number authentication information, and the time stamp of the configuration ini file are configured with a 16-ary number.
5. The method for generating the ini file as claimed in claim 1, wherein the step of determining the time stamp of the configuration ini file of the current brushing ini file comprises the steps of:
and determining the legal use starting time and the legal use ending time of the current flash ini file, and determining the time stamp of the configuration ini file according to the legal use starting time and the legal use ending time.
6. The method for generating an ini file according to claim 5, further comprising:
acquiring the current use time of an ini file to be refreshed, and legal use starting time and legal use ending time corresponding to the ini file to be refreshed;
if the current use time is between the legal use starting time and the legal use ending time, the ini file to be rewritten is considered to pass the ini file authentication; and if the current use time is not between the legal use starting time and the legal use ending time, stopping the flashing process of the ini file to be flashed.
7. The method for generating an ini file according to claim 1, further comprising:
and storing the target ini file into a memory.
8. An ini file generation device, comprising:
the information generating module is used for determining the ini file configuration parameter information of the current flash ini file and the timestamp for configuring the ini file;
and the file generation module is used for determining the ini file authentication information corresponding to the current flash ini file according to the ini file configuration parameter information and the timestamp of the configuration ini file, and generating a target ini file containing the ini file authentication information.
9. A computer device, characterized in that the computer device comprises:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the method of generating an ini file as recited in any one of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the method for generating an ini file according to any one of claims 1 to 7.
CN202111140709.8A 2021-09-28 2021-09-28 Method, device, computer equipment and medium for generating ini file Active CN113867818B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202111140709.8A CN113867818B (en) 2021-09-28 2021-09-28 Method, device, computer equipment and medium for generating ini file
PCT/CN2022/121994 WO2023051573A1 (en) 2021-09-28 2022-09-28 Method and apparatus for generating ini file, computer device, and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111140709.8A CN113867818B (en) 2021-09-28 2021-09-28 Method, device, computer equipment and medium for generating ini file

Publications (2)

Publication Number Publication Date
CN113867818A true CN113867818A (en) 2021-12-31
CN113867818B CN113867818B (en) 2024-04-16

Family

ID=78991688

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111140709.8A Active CN113867818B (en) 2021-09-28 2021-09-28 Method, device, computer equipment and medium for generating ini file

Country Status (2)

Country Link
CN (1) CN113867818B (en)
WO (1) WO2023051573A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023051573A1 (en) * 2021-09-28 2023-04-06 潍柴动力股份有限公司 Method and apparatus for generating ini file, computer device, and medium

Citations (40)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080262988A1 (en) * 2007-04-20 2008-10-23 Mark Williams Vertical curve system for surface grading
US20090006057A1 (en) * 2007-06-30 2009-01-01 Yuqiang Niu Simulating fluid flow in reservoir with modified grid
EP2270577A1 (en) * 2009-06-30 2011-01-05 Essilor International (Compagnie Générale D'Optique) Method of and apparatus for generating a surface of an optical lens
CN102833264A (en) * 2012-09-07 2012-12-19 北京星网锐捷网络技术有限公司 Method and device for preventing authenticated user from escaping from fee through agent and authenticated client side
US20140082236A1 (en) * 2012-09-14 2014-03-20 Weijia Zhang Systems and methods for intelligent system profile unique data management
US9298371B1 (en) * 2014-12-22 2016-03-29 American Megatrends, Inc. System and method of reducing write cycles and increasing longevity of non-volatile memory in baseboard management controller (BMC)
CN106850311A (en) * 2017-03-03 2017-06-13 上海蔚来汽车有限公司 For the data safe transmission system and method for firmware upgrade
CN107015914A (en) * 2016-01-28 2017-08-04 长城汽车股份有限公司 Data scaling method and system
CN107273749A (en) * 2017-05-31 2017-10-20 武汉英泰斯特电子技术有限公司 A kind of vehicle ECU file securities write with a brush dipped in Chinese ink method and system
EP3249955A1 (en) * 2016-05-23 2017-11-29 Oticon A/s A configurable hearing aid comprising a beamformer filtering unit and a gain unit
US20170353342A1 (en) * 2016-06-03 2017-12-07 Centre Of Excellence In Wireless Technology Ofdma apparatus and method thereof for performing ofdm based communication in wireless communication system
CN107450931A (en) * 2017-08-15 2017-12-08 竞技世界(北京)网络技术有限公司 Visualizing editing method and device based on INI configuration files
CN107637014A (en) * 2017-08-02 2018-01-26 福建联迪商用设备有限公司 Configurable POS key is to generation method, storage medium
CN107800819A (en) * 2017-11-17 2018-03-13 深圳市泉眼网络科技有限公司 A kind of generation method of file identification, device and server
CN107919955A (en) * 2017-12-28 2018-04-17 北京奇虎科技有限公司 A kind of vehicle network safety certifying method, system, vehicle, device and medium
CN107918863A (en) * 2017-10-19 2018-04-17 阿里巴巴集团控股有限公司 Preposition processing and collocation method, device and equipment based on financial product
CN109212999A (en) * 2018-07-20 2019-01-15 北京航空航天大学 The intelligent generation method and system of digital satellite emulation operating condition
CN109445892A (en) * 2018-10-15 2019-03-08 珠海格力电器股份有限公司 Data display method and device, electronic equipment and storage medium
CN109871225A (en) * 2019-02-22 2019-06-11 北京经纬恒润科技有限公司 Electronic control unit ECU upgrade method and ECU
CN109947465A (en) * 2019-03-29 2019-06-28 北京经纬恒润科技有限公司 A kind of data processing method and system
CN110138774A (en) * 2019-05-14 2019-08-16 重庆天蓬网络有限公司 A kind of hold-up interception method of the general CC attack of dynamic configuration
CN110196715A (en) * 2019-06-25 2019-09-03 上海仪电汽车电子系统有限公司 A kind of code generating system and method
CN110213113A (en) * 2019-06-19 2019-09-06 武汉虹信通信技术有限责任公司 The WEB configuring management method of base station and base station
CN110365540A (en) * 2019-07-30 2019-10-22 上海朝旭电子科技有限公司 A kind of security system data processing equipment
CN110460581A (en) * 2019-07-12 2019-11-15 捷德(中国)信息科技有限公司 Sharing files method, equipment, SE device, is shared end and medium at system
CN110673892A (en) * 2019-09-17 2020-01-10 中电万维信息技术有限责任公司 Interface unified calling method based on component configuration
CN110824982A (en) * 2019-10-23 2020-02-21 武汉光庭信息技术股份有限公司 ECU remote debugging method, server and storage medium
CN110990282A (en) * 2019-12-04 2020-04-10 中国直升机设计研究所 Automatic unit testing method
CN111010305A (en) * 2019-12-23 2020-04-14 烽火通信科技股份有限公司 Configuration management system and method based on NETCONF protocol
CN111182066A (en) * 2019-12-31 2020-05-19 青梧桐有限责任公司 Log level dynamic adjustment method based on token authentication
CN111274385A (en) * 2019-08-29 2020-06-12 无锡畅云网络有限公司 Log clustering classification technology based on text similarity
CN111353168A (en) * 2020-02-27 2020-06-30 闻泰通讯股份有限公司 Multimedia file management method, device, equipment and storage medium
CN111464639A (en) * 2020-03-31 2020-07-28 潍柴动力股份有限公司 Data acquisition method and device, storage medium and processor
CN112084159A (en) * 2020-07-28 2020-12-15 重庆攸亮科技股份有限公司 File synchronization system and method based on Bluetooth communication
CN112202665A (en) * 2020-09-30 2021-01-08 郑州信大捷安信息技术股份有限公司 Vehicle-mounted security gateway and data communication method thereof
CN112363984A (en) * 2020-11-13 2021-02-12 北京天融信网络安全技术有限公司 In-vehicle safety rule file generation method and device
CN112540958A (en) * 2020-12-08 2021-03-23 北京百度网讯科技有限公司 File processing method, device, equipment and computer storage medium
CN112749383A (en) * 2019-10-29 2021-05-04 上海商汤智能科技有限公司 Software authentication method and related product
CN112883382A (en) * 2021-03-03 2021-06-01 一汽解放汽车有限公司 Vehicle flashing method, vehicle networking box, vehicle and storage medium
CN112988218A (en) * 2021-02-05 2021-06-18 上海航天卫星应用有限公司 Configurable information flow management method and system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6574657B1 (en) * 1999-05-03 2003-06-03 Symantec Corporation Methods and apparatuses for file synchronization and updating using a signature list
US7007049B2 (en) * 2002-11-18 2006-02-28 Innopath Software, Inc. Device memory management during electronic file updating
US9627081B2 (en) * 2007-10-05 2017-04-18 Kinglite Holdings Inc. Manufacturing mode for secure firmware using lock byte
US9135268B2 (en) * 2009-12-30 2015-09-15 Symantec Corporation Locating the latest version of replicated data files
CN113867818B (en) * 2021-09-28 2024-04-16 潍柴动力股份有限公司 Method, device, computer equipment and medium for generating ini file

Patent Citations (41)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120143572A1 (en) * 2007-04-20 2012-06-07 Mark Williams Vertical curve system for surface grading
US20080262988A1 (en) * 2007-04-20 2008-10-23 Mark Williams Vertical curve system for surface grading
US20090006057A1 (en) * 2007-06-30 2009-01-01 Yuqiang Niu Simulating fluid flow in reservoir with modified grid
EP2270577A1 (en) * 2009-06-30 2011-01-05 Essilor International (Compagnie Générale D'Optique) Method of and apparatus for generating a surface of an optical lens
CN102833264A (en) * 2012-09-07 2012-12-19 北京星网锐捷网络技术有限公司 Method and device for preventing authenticated user from escaping from fee through agent and authenticated client side
US20140082236A1 (en) * 2012-09-14 2014-03-20 Weijia Zhang Systems and methods for intelligent system profile unique data management
US9298371B1 (en) * 2014-12-22 2016-03-29 American Megatrends, Inc. System and method of reducing write cycles and increasing longevity of non-volatile memory in baseboard management controller (BMC)
CN107015914A (en) * 2016-01-28 2017-08-04 长城汽车股份有限公司 Data scaling method and system
EP3249955A1 (en) * 2016-05-23 2017-11-29 Oticon A/s A configurable hearing aid comprising a beamformer filtering unit and a gain unit
US20170353342A1 (en) * 2016-06-03 2017-12-07 Centre Of Excellence In Wireless Technology Ofdma apparatus and method thereof for performing ofdm based communication in wireless communication system
CN106850311A (en) * 2017-03-03 2017-06-13 上海蔚来汽车有限公司 For the data safe transmission system and method for firmware upgrade
CN107273749A (en) * 2017-05-31 2017-10-20 武汉英泰斯特电子技术有限公司 A kind of vehicle ECU file securities write with a brush dipped in Chinese ink method and system
CN107637014A (en) * 2017-08-02 2018-01-26 福建联迪商用设备有限公司 Configurable POS key is to generation method, storage medium
CN107450931A (en) * 2017-08-15 2017-12-08 竞技世界(北京)网络技术有限公司 Visualizing editing method and device based on INI configuration files
CN107918863A (en) * 2017-10-19 2018-04-17 阿里巴巴集团控股有限公司 Preposition processing and collocation method, device and equipment based on financial product
CN107800819A (en) * 2017-11-17 2018-03-13 深圳市泉眼网络科技有限公司 A kind of generation method of file identification, device and server
CN107919955A (en) * 2017-12-28 2018-04-17 北京奇虎科技有限公司 A kind of vehicle network safety certifying method, system, vehicle, device and medium
CN109212999A (en) * 2018-07-20 2019-01-15 北京航空航天大学 The intelligent generation method and system of digital satellite emulation operating condition
CN109445892A (en) * 2018-10-15 2019-03-08 珠海格力电器股份有限公司 Data display method and device, electronic equipment and storage medium
CN109871225A (en) * 2019-02-22 2019-06-11 北京经纬恒润科技有限公司 Electronic control unit ECU upgrade method and ECU
CN109947465A (en) * 2019-03-29 2019-06-28 北京经纬恒润科技有限公司 A kind of data processing method and system
CN110138774A (en) * 2019-05-14 2019-08-16 重庆天蓬网络有限公司 A kind of hold-up interception method of the general CC attack of dynamic configuration
CN110213113A (en) * 2019-06-19 2019-09-06 武汉虹信通信技术有限责任公司 The WEB configuring management method of base station and base station
CN110196715A (en) * 2019-06-25 2019-09-03 上海仪电汽车电子系统有限公司 A kind of code generating system and method
CN110460581A (en) * 2019-07-12 2019-11-15 捷德(中国)信息科技有限公司 Sharing files method, equipment, SE device, is shared end and medium at system
CN110365540A (en) * 2019-07-30 2019-10-22 上海朝旭电子科技有限公司 A kind of security system data processing equipment
CN111274385A (en) * 2019-08-29 2020-06-12 无锡畅云网络有限公司 Log clustering classification technology based on text similarity
CN110673892A (en) * 2019-09-17 2020-01-10 中电万维信息技术有限责任公司 Interface unified calling method based on component configuration
CN110824982A (en) * 2019-10-23 2020-02-21 武汉光庭信息技术股份有限公司 ECU remote debugging method, server and storage medium
CN112749383A (en) * 2019-10-29 2021-05-04 上海商汤智能科技有限公司 Software authentication method and related product
CN110990282A (en) * 2019-12-04 2020-04-10 中国直升机设计研究所 Automatic unit testing method
CN111010305A (en) * 2019-12-23 2020-04-14 烽火通信科技股份有限公司 Configuration management system and method based on NETCONF protocol
CN111182066A (en) * 2019-12-31 2020-05-19 青梧桐有限责任公司 Log level dynamic adjustment method based on token authentication
CN111353168A (en) * 2020-02-27 2020-06-30 闻泰通讯股份有限公司 Multimedia file management method, device, equipment and storage medium
CN111464639A (en) * 2020-03-31 2020-07-28 潍柴动力股份有限公司 Data acquisition method and device, storage medium and processor
CN112084159A (en) * 2020-07-28 2020-12-15 重庆攸亮科技股份有限公司 File synchronization system and method based on Bluetooth communication
CN112202665A (en) * 2020-09-30 2021-01-08 郑州信大捷安信息技术股份有限公司 Vehicle-mounted security gateway and data communication method thereof
CN112363984A (en) * 2020-11-13 2021-02-12 北京天融信网络安全技术有限公司 In-vehicle safety rule file generation method and device
CN112540958A (en) * 2020-12-08 2021-03-23 北京百度网讯科技有限公司 File processing method, device, equipment and computer storage medium
CN112988218A (en) * 2021-02-05 2021-06-18 上海航天卫星应用有限公司 Configurable information flow management method and system
CN112883382A (en) * 2021-03-03 2021-06-01 一汽解放汽车有限公司 Vehicle flashing method, vehicle networking box, vehicle and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023051573A1 (en) * 2021-09-28 2023-04-06 潍柴动力股份有限公司 Method and apparatus for generating ini file, computer device, and medium

Also Published As

Publication number Publication date
CN113867818B (en) 2024-04-16
WO2023051573A1 (en) 2023-04-06

Similar Documents

Publication Publication Date Title
CN109474578B (en) Message checking method, device, computer equipment and storage medium
CN108875077B (en) Column storage method and device of database, server and storage medium
CN109493043A (en) The blocking method, apparatus of transaction record, electronic equipment and storage medium
CN111756522A (en) Data processing method and system
CN111580965A (en) Data request processing method and system
CN112540811A (en) Cache data detection method and device, computer equipment and storage medium
CN109949054B (en) Key code determination method, device, equipment and storage medium
CN104572781A (en) Method and device for generating transaction log
CN112527414A (en) Front-end-based data processing method, device, equipment and storage medium
CN113867818A (en) Method and device for generating ini file, computer equipment and medium
CN110378796A (en) Vehicle unique identification generation method, device, computer equipment and medium
CN108520401B (en) User list management method, device, platform and storage medium
CN112947911A (en) Interface script generation method, device, equipment and storage medium
CN111143399B (en) Data processing method, device, storage medium and computer equipment
CN111090616B (en) File management method, corresponding device, equipment and storage medium
CN112711696A (en) Request access method, device, electronic equipment and storage medium
CN111984989A (en) Method, device, system and medium for verifying, issuing and accessing URL (uniform resource locator)
CN111104693A (en) Android platform software data cracking method, terminal device and storage medium
CN110851446B (en) Data table generation method and device, computer equipment and storage medium
CN114970464A (en) Method, device, terminal equipment and storage medium for generating identification
CN108964884B (en) Method for generating dynamic password of mobile terminal, storage medium, electronic equipment and system
CN112559497A (en) Data processing method, information transmission method and device and electronic equipment
CN117668786B (en) Database watermark embedding method, device, computer equipment and medium
CN108777630B (en) Anti-repudiation method and device based on cloud computing network and readable storage medium
CN116028958B (en) Key encryption and decryption method and device, security machine and medium

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