Movatterモバイル変換


[0]ホーム

URL:


CN113867818A - A method, device, computer equipment and medium for generating an ini file - Google Patents

A method, device, computer equipment and medium for generating an ini file
Download PDF

Info

Publication number
CN113867818A
CN113867818ACN202111140709.8ACN202111140709ACN113867818ACN 113867818 ACN113867818 ACN 113867818ACN 202111140709 ACN202111140709 ACN 202111140709ACN 113867818 ACN113867818 ACN 113867818A
Authority
CN
China
Prior art keywords
ini file
authentication information
ini
file
configuration
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 LtdfiledCriticalWeichai Power Co Ltd
Priority to CN202111140709.8ApriorityCriticalpatent/CN113867818B/en
Publication of CN113867818ApublicationCriticalpatent/CN113867818A/en
Priority to PCT/CN2022/121994prioritypatent/WO2023051573A1/en
Application grantedgrantedCritical
Publication of CN113867818BpublicationCriticalpatent/CN113867818B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

Translated fromChinese

本发明实施例公开了一种ini文件的生成方法、装置、计算机设备及介质。该ini文件的生成方法包括:确定当前刷写ini文件的ini文件配置参数信息以及配置ini文件的时间戳;根据所述ini文件配置参数信息和所述配置ini文件的时间戳确定所述当前刷写ini文件对应的ini文件认证信息,并生成包含所述ini文件认证信息的目标ini文件。本发明实施例的技术方案,以实现提高ini文件的安全性,保护配置信息安全。

Figure 202111140709

The embodiments of the present invention disclose a method, device, computer equipment and medium for generating an ini file. The method for generating the ini file includes: determining the ini file configuration parameter information of the ini file currently being refreshed and the time stamp of configuring the ini file; Write the ini file authentication information corresponding to the ini file, and generate a target ini file including the ini file authentication information. The technical solution of the embodiment of the present invention is to improve the security of the ini file and protect the security of configuration information.

Figure 202111140709

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 byteField(s)Data typeDescription and claims
0ECU software versionSTRINGASCII, max 20Bytes
20Variable informationWORDKey, 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: aninformation generation module 310 and afile generation module 320, wherein:
theinformation 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;
thefile 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 aprocessor 410, amemory 420, aninput device 430, and anoutput device 440; the number of theprocessors 410 in the computer device may be one or more, and oneprocessor 410 is taken as an example in fig. 4; theprocessor 410, thememory 420, theinput device 430 and theoutput 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.
Thememory 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, theinformation generating module 310 and thefile generating module 320 in the device for generating an ini file). Theprocessor 410 executes various functional applications and data processing of the computer device by executing software programs, instructions and modules stored in thememory 420, that is, the method for generating the ini file described above is implemented.
Thememory 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, thememory 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 fromprocessor 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.
Theinput 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. Theoutput 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)

Translated fromChinese
1.一种ini文件的生成方法,其特征在于,包括:1. a generation method of ini file, is characterized in that, comprises:确定当前刷写ini文件的ini文件配置参数信息以及配置ini文件的时间戳;Determine the ini file configuration parameter information of the current ini file being refreshed and the time stamp of configuring the ini file;根据所述ini文件配置参数信息和所述配置ini文件的时间戳确定所述当前刷写ini文件对应的ini文件认证信息,并生成包含所述ini文件认证信息的目标ini文件。According to the configuration parameter information of the ini file and the time stamp of the configuration ini file, the ini file authentication information corresponding to the ini file currently being refreshed is determined, and a target ini file including the ini file authentication information is generated.2.根据权利要求1所述的ini文件的生成方法,其特征在于,所述ini文件配置参数信息包括ECU版本认证信息、变量名称认证信息和变量个数认证信息;2. The method for generating an ini file according to claim 1, wherein the ini file configuration parameter information comprises ECU version authentication information, variable name authentication information and variable number authentication information;根据所述ini文件配置参数信息和所述配置ini文件的时间戳确定所述当前刷写ini文件对应的ini文件认证信息包括:According to the configuration parameter information of the ini file and the timestamp of the configuration ini file, the ini file authentication information corresponding to the current flashing ini file is determined to include:根据所述ECU版本认证信息、所述变量名称认证信息、所述变量个数认证信息和所述配置ini文件的时间戳确定所述当前刷写ini文件对应的ini文件认证信息。The ini file authentication information corresponding to the currently flashed ini file is determined according to the ECU version authentication information, the variable name authentication information, the variable number authentication information and the time stamp of the configuration ini file.3.根据权利要求2所述的ini文件的生成方法,其特征在于,所述ini文件认证信息包括10个认证字节;3. the generation method of ini file according to claim 2, is characterized in that, described ini file authentication information comprises 10 authentication bytes;其中,所述ECU版本认证信息包括1个认证字节,所述变量名称认证信息包括1个认证字节,所述变量个数认证信息包括1个认证字节,所述配置ini文件的时间戳包括7个认证字节。The ECU version authentication information includes 1 authentication byte, the variable name authentication information includes 1 authentication byte, the variable number authentication information includes 1 authentication byte, and the time stamp of the configuration ini file Includes 7 authentication bytes.4.根据权利要求2所述的ini文件的生成方法,其特征在于,所述ECU版本认证信息、所述变量名称认证信息、所述变量个数认证信息和所述配置ini文件的时间戳以16进制数配置。4 . The method for 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 the same as 4 . Hexadecimal number configuration.5.根据权利要求1所述的ini文件的生成方法,其特征在于,确定当前刷写ini文件的配置ini文件的时间戳,包括:5. the generation method of ini file according to claim 1, is characterized in that, determining the time stamp of the configuration ini file of current brushing ini file, comprises:确定当前刷写ini文件的合法使用起始时间和合法使用终止时间,并根据所述合法使用起始时间和所述合法使用终止时间确定所述配置ini文件的时间戳。Determine the legal use start time and legal use end time of the current ini file for flashing, and determine the time stamp of the configuration ini file according to the legal use start time and the legal use end time.6.根据权利要求5所述的ini文件的生成方法,其特征在于,所述ini文件的生成方法还包括:6. the generation method of ini file according to claim 5, is characterized in that, the generation method of described ini file also comprises:获取待刷写ini文件的当前使用时间,以及所述待刷写ini文件对应的合法使用起始时间和合法使用终止时间;Obtain the current usage time of the ini file to be refreshed, and the legal usage start time and legal usage termination time corresponding to the ini file to be refreshed;若所述当前使用时间处于合法使用起始时间和合法使用终止时间之间,则认为所述待刷写ini文件通过ini文件认证;若所述当前使用时间未处于合法使用起始时间和合法使用终止时间之间,则停止所述待刷写ini文件的刷写进程。If the current use time is between the legal use start time and the legal use end time, it is considered that the ini file to be flashed has passed the ini file authentication; if the current use time is not between the legal use start time and the legal use end time Between the termination time, the flushing process of the ini file to be flushed is stopped.7.根据权利要求1所述的ini文件的生成方法,其特征在于,所述ini文件的生成方法还包括:7. the generation method of ini file according to claim 1 is characterized in that, the generation method of described ini file also comprises:将所述目标ini文件存储至内存中。Store the target ini file in memory.8.一种ini文件的生成装置,其特征在于,包括:8. a generation device of ini file, is characterized in that, comprises:信息生成模块,用于确定当前刷写ini文件的ini文件配置参数信息以及配置ini文件的时间戳;The information generation module is used to determine the configuration parameter information of the ini file of the current ini file and the time stamp of the configuration ini file;文件生成模块,用于根据所述ini文件配置参数信息和所述配置ini文件的时间戳确定所述当前刷写ini文件对应的ini文件认证信息,并生成包含所述ini文件认证信息的目标ini文件。A file generation module, configured to determine 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, and generate a target ini including the ini file authentication information document.9.一种计算机设备,其特征在于,所述计算机设备包括:9. A computer device, characterized in that the computer device comprises:一个或多个处理器;one or more processors;存储装置,用于存储一个或多个程序;a storage device for storing one or more programs;当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如权利要求1-7中任一项所述的ini文件的生成方法。When the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the method for generating an ini file according to any one of claims 1-7.10.一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现如权利要求1-7中任一项所述的ini文件的生成方法。10. A computer-readable storage medium on which a computer program is stored, characterized in that, when the program is executed by a processor, the method for generating an ini file according to any one of claims 1-7 is implemented.
CN202111140709.8A2021-09-282021-09-28Method, device, computer equipment and medium for generating ini fileActiveCN113867818B (en)

Priority Applications (2)

Application NumberPriority DateFiling DateTitle
CN202111140709.8ACN113867818B (en)2021-09-282021-09-28Method, device, computer equipment and medium for generating ini file
PCT/CN2022/121994WO2023051573A1 (en)2021-09-282022-09-28Method and apparatus for generating ini file, computer device, and medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202111140709.8ACN113867818B (en)2021-09-282021-09-28Method, device, computer equipment and medium for generating ini file

Publications (2)

Publication NumberPublication Date
CN113867818Atrue CN113867818A (en)2021-12-31
CN113867818B CN113867818B (en)2024-04-16

Family

ID=78991688

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202111140709.8AActiveCN113867818B (en)2021-09-282021-09-28Method, device, computer equipment and medium for generating ini file

Country Status (2)

CountryLink
CN (1)CN113867818B (en)
WO (1)WO2023051573A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
WO2023051573A1 (en)*2021-09-282023-04-06潍柴动力股份有限公司Method and apparatus for generating ini file, computer device, and medium

Citations (40)

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

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US6574657B1 (en)*1999-05-032003-06-03Symantec CorporationMethods and apparatuses for file synchronization and updating using a signature list
US7007049B2 (en)*2002-11-182006-02-28Innopath Software, Inc.Device memory management during electronic file updating
US9627081B2 (en)*2007-10-052017-04-18Kinglite Holdings Inc.Manufacturing mode for secure firmware using lock byte
US9135268B2 (en)*2009-12-302015-09-15Symantec CorporationLocating the latest version of replicated data files
CN113867818B (en)*2021-09-282024-04-16潍柴动力股份有限公司Method, device, computer equipment and medium for generating ini file

Patent Citations (41)

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

Cited By (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
WO2023051573A1 (en)*2021-09-282023-04-06潍柴动力股份有限公司Method and apparatus for generating ini file, computer device, and medium

Also Published As

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

Similar Documents

PublicationPublication DateTitle
CN114363412B (en)Message data processing method, device, computer equipment and storage medium
CN109949054B (en)Key code determination method, device, equipment and storage medium
CN108833133B (en)Network configuration management method and device based on cloud computing network and storage medium
CN114970464A (en)Method, device, terminal equipment and storage medium for generating identification
CN113867818A (en) A method, device, computer equipment and medium for generating an ini file
CN110780855A (en)Method, device and system for uniformly managing and controlling interface
CN111143399B (en)Data processing method, device, storage medium and computer equipment
CN111090616B (en)File management method, corresponding device, equipment and storage medium
CN115001700B (en) A blockchain-based ecological environment supervision method and system
CN114201774B (en) Master key encryption method, master key decryption method, electronic device and storage medium
CN111404889A (en)Auditing method and device and client
WO2017067513A1 (en)Data processing method and storage gateway
CN112947911A (en)Interface script generation method, device, equipment and storage medium
CN113886087A (en) An application memory management method, device, device and storage medium
CN115913547B (en)Quantum security root key derivation device, method, root key center and medium
CN116028958B (en)Key encryption and decryption method and device, security machine and medium
CN113141369A (en)Artificial intelligence-based firewall policy management method and related equipment
CN111104363A (en)FPGA cloud platform using method, device, equipment and medium
CN116956345A (en)Data query method, device, equipment and medium
CN111104693A (en)Android platform software data cracking method, terminal device and storage medium
CN108964884B (en)Method for generating dynamic password of mobile terminal, storage medium, electronic equipment and system
CN117134955A (en)Computer network information security monitoring method and device and computing equipment
CN116248469A (en) Distributed ID generation method, system, device, medium and product
CN110851446B (en)Data table generation method and device, computer equipment and storage medium
CN112685706A (en)Request authentication method and related equipment

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp