Vehicle management information processing method, device, equipment and storage medium
Patent Information
- Application Number
- CN202311631827.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-30
- Publication Date
- 2026-08-21
- Estimated Expiration
- 2043-11-30
AI Technical Summary
那么,当车辆管理平台存在网络漏洞时,会有泄露敏感数据的风险
Smart Images

Figure CN117852070B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of information processing technology, and in particular to a method, apparatus, device and storage medium for processing vehicle management information. Background Technology
[0002] Currently, the vehicle management platform can intelligently manage vehicle management information generated by train depot information systems, locomotive depot information systems, and other systems. Specifically, after vehicle management information from these systems flows into the platform, it can store this information in a local database.
[0003] However, vehicle management information may contain sensitive data (such as staff identification information and contact numbers), which is stored in plaintext on the vehicle management platform. Therefore, if the vehicle management platform has network vulnerabilities, there is a risk of sensitive data being leaked. Summary of the Invention
[0004] This application provides a method, apparatus, device, and storage medium for processing vehicle management information, which can reduce the risk of leakage of sensitive data.
[0005] To achieve the above objectives, this application adopts the following technical solution:
[0006] In a first aspect, this application provides a method for processing vehicle management information, comprising: upon receiving a storage request for target vehicle management information, determining at least one sensitive data field from the target vehicle management information carried in the storage request; determining the number of transformation rows corresponding to each sensitive data field according to a preset random number generation rule; for each sensitive data field, recombining each data element in the current sensitive data field based on the number of transformation rows corresponding to the current sensitive data field using a predetermined N-shaped transformation algorithm to obtain the current recombined data field corresponding to the current sensitive data field; and determining encrypted vehicle management information for the target vehicle management information based on the recombined data fields corresponding to each sensitive data field, and storing the encrypted vehicle management information.
[0007] In the technical solution provided in this application, when it is necessary to store target vehicle management information, at least one sensitive data field can be identified from the target vehicle management information first. Then, according to a preset random number generation rule, the number of transformation rows corresponding to each sensitive data field can be determined. For each sensitive data field, based on the number of transformation rows corresponding to the current sensitive data field, the data elements in the current sensitive data field are recombined using a pre-determined N-shaped transformation algorithm to obtain the current recombined data field corresponding to the current sensitive data field. Afterwards, based on the recombined data fields corresponding to each sensitive data field, encrypted vehicle management information for the target vehicle management information can be determined and stored. It can be seen that this application does not directly store the target vehicle management information, but uses an N-shaped transformation algorithm to recombine the sensitive data fields in the target vehicle management information before storing the resulting encrypted vehicle management information. In this way, when there is a network vulnerability in the vehicle management platform, even if the stored encrypted vehicle management information is stolen, it is difficult for the thief to recover the original target vehicle management information from the encrypted vehicle management information without knowing the encryption rules. Therefore, this application can reduce the risk of sensitive data leakage.
[0008] Optionally, in one possible design approach, the aforementioned "determining encrypted vehicle management information for the target vehicle management information based on the reconstructed data fields corresponding to each sensitive data field" may include:
[0009] For the current reorganized data field in each reorganized data field, determine the current adjusted data field corresponding to the current sensitive data field based on the current reorganized data field;
[0010] The sensitive data fields in the target vehicle management information are replaced with the corresponding adjusted data fields to obtain encrypted vehicle management information.
[0011] Optionally, in another possible design approach, the aforementioned "based on the number of transformation rows corresponding to the current sensitive data field, reorganizing each data element in the current sensitive data field using a pre-determined N-shaped transformation algorithm to obtain the current reorganized data field corresponding to the current sensitive data field" may include: based on the number of transformation rows corresponding to the current sensitive data field, rearranging each data element in the current sensitive data field using an N-shaped transformation algorithm to obtain the current N-shaped transformation sequence corresponding to the current sensitive data field; and recombining each sequence element in the current N-shaped transformation sequence based on a preset reorganization rule to obtain the current reorganized data field corresponding to the current sensitive data field.
[0012] Correspondingly, the above-mentioned "determining the current adjusted data field corresponding to the current sensitive data field based on the current recombined data field" may include: determining the current address encryption sequence for the current recombined data field based on the arrangement order of each sequence element in the current N-word transformation sequence; recombining each sequence element in the current address encryption sequence based on a preset recombination rule to obtain the current address information field for the current recombined data field; and determining the current adjusted data field based on the current recombined data field, the current address information field, and the transformation row number corresponding to the current sensitive data field.
[0013] Optionally, in another possible design approach, the above-mentioned "determining the current address encryption sequence for the current reconstructed data field based on the arrangement order of the sequence elements in the current N-word transformation sequence" may include:
[0014] Determine the first sequence element based on the order of the sequence elements in the current N-word transformation sequence;
[0015] The first element of the sequence is set as the current element, and the current element is replaced with the current preset value.
[0016] Determine whether the current element is the last element in the current N-word transform sequence;
[0017] If it is determined that the current element is not the last element in the current N-word transform sequence, increment the current preset value by one to obtain a new current preset value, determine the next sequence element according to the order of the sequence elements in the current N-word transform sequence, determine the next sequence element as the new current element, and replace the new current element with the new current preset value, until the current element is the last element in the current N-word transform sequence; if it is determined that the current element is the last element in the current N-word transform sequence, determine the current address encryption sequence after replacement.
[0018] Optionally, in another possible design, the method for processing vehicle management information provided in this application may further include:
[0019] Upon receiving a query request, retrieve the encrypted vehicle management information corresponding to the query request from the database;
[0020] Identify the adjusted data fields from the retrieved encrypted vehicle management information;
[0021] For each adjusted data field, based on the current address information field in the current adjusted data field and the number of transformed rows corresponding to the current sensitive data field, the current reconstructed data field in the current adjusted data field is restored to obtain the current sensitive data field;
[0022] The encrypted vehicle management information is decrypted based on the restored sensitive data fields to obtain the target vehicle management information.
[0023] Optionally, in another possible design approach, at least one sensitive data field is identified from the target vehicle management information carried in the storage request, including:
[0024] From each candidate information format, determine the target information format that corresponds to the information type of the target vehicle management information;
[0025] Based on the target information format, the target vehicle management information is parsed to identify each sensitive data field.
[0026] Alternatively, in another possible design approach, the target vehicle management information may be fault diagnosis information, tool issuance and return information, tool management information, or system maintenance information.
[0027] Secondly, this application provides a vehicle management information processing device, including: a receiving module, a determining module, and a processing module;
[0028] The receiving module is used to determine at least one sensitive data field from the target vehicle management information carried in the storage request when it receives a storage request for target vehicle management information.
[0029] The determination module is used to determine the number of transformed rows corresponding to each sensitive data field according to the preset random number generation rules;
[0030] The determination module is also used to reorganize each data element in the current sensitive data field based on the number of transformation rows corresponding to the current sensitive data field, using a pre-determined N-shaped transformation algorithm, to obtain the current reorganized data field corresponding to the current sensitive data field.
[0031] The processing module is used to determine the encrypted vehicle management information for the target vehicle management information based on the recombined data fields corresponding to each sensitive data field, and to store the encrypted vehicle management information.
[0032] Optionally, in one possible design, the processing module is specifically used for:
[0033] For the current reorganized data field in each reorganized data field, determine the current adjusted data field corresponding to the current sensitive data field based on the current reorganized data field;
[0034] The sensitive data fields in the target vehicle management information are replaced with the corresponding adjusted data fields to obtain encrypted vehicle management information.
[0035] Optionally, in another possible design, the determining module is further used to: rearrange the data elements in the current sensitive data field based on the number of transformation rows corresponding to the current sensitive data field using an N-shaped transformation algorithm to obtain the current N-shaped transformation sequence corresponding to the current sensitive data field; and recombine the sequence elements in the current N-shaped transformation sequence based on a preset recombination rule to obtain the current recombined data field corresponding to the current sensitive data field.
[0036] Correspondingly, the processing module is also specifically used for: determining the current address encryption sequence for the current recombined data field based on the arrangement order of each sequence element in the current N-word transformation sequence; recombining each sequence element in the current address encryption sequence based on the preset recombination rules to obtain the current address information field for the current recombined data field; and determining the current adjustment data field based on the transformation row number corresponding to the current recombined data field, the current address information field, and the current sensitive data field.
[0037] Alternatively, in another possible design, the processing module is further used for:
[0038] Determine the first sequence element based on the order of the sequence elements in the current N-word transformation sequence;
[0039] The first element of the sequence is set as the current element, and the current element is replaced with the current preset value.
[0040] Determine whether the current element is the last element in the current N-word transform sequence;
[0041] If it is determined that the current element is not the last element in the current N-word transform sequence, increment the current preset value by one to obtain a new current preset value, determine the next sequence element according to the order of the sequence elements in the current N-word transform sequence, determine the next sequence element as the new current element, and replace the new current element with the new current preset value, until the current element is the last element in the current N-word transform sequence; if it is determined that the current element is the last element in the current N-word transform sequence, determine the current address encryption sequence after replacement.
[0042] Optionally, in another possible design, the vehicle management information processing device provided in this application may further include a search module;
[0043] The search module is used to retrieve encrypted vehicle management information corresponding to the query request from the database upon receiving a query request.
[0044] The determination module is also used to identify the various adjustment data fields from the found encrypted vehicle management information;
[0045] The determination module is also used to restore the current recombined data field in the current adjusted data field based on the current address information field in the current adjusted data field and the number of transformed rows corresponding to the current sensitive data field, so as to obtain the current sensitive data field;
[0046] The processing module is also used to decrypt the encrypted vehicle management information based on the restored sensitive data fields to obtain the target vehicle management information.
[0047] Alternatively, in another possible design, the receiving module is specifically used for:
[0048] From each candidate information format, determine the target information format that corresponds to the information type of the target vehicle management information;
[0049] Based on the target information format, the target vehicle management information is parsed to identify each sensitive data field.
[0050] Alternatively, in another possible design approach, the target vehicle management information may be fault diagnosis information, tool requisition and return information, tool management information, or system maintenance information.
[0051] Thirdly, this application provides a vehicle management information processing device, including a memory, a processor, a bus, and a communication interface; the memory is used to store computer execution instructions, and the processor is connected to the memory via the bus; when the vehicle management information processing device is running, the processor executes the computer execution instructions stored in the memory, so that the vehicle management information processing device performs the vehicle management information processing method as provided in the first aspect above.
[0052] Fourthly, this application provides a computer-readable storage medium storing instructions that, when executed by a computer, cause the computer to perform the vehicle management information processing method provided in the first aspect.
[0053] Fifthly, this application provides a computer program product including computer instructions that, when executed on a computer, cause the computer to perform the vehicle management information processing method provided in the first aspect.
[0054] It should be noted that the aforementioned computer instructions may be stored, in whole or in part, on a computer-readable storage medium. This computer-readable storage medium may be packaged together with the processor of the vehicle management information processing device, or it may be packaged separately from the processor of the vehicle management information processing device; this application does not impose any limitations on this.
[0055] The descriptions of the second, third, fourth, and fifth aspects in this application can be referenced to the detailed description of the first aspect; and the beneficial effects of the descriptions of the second, third, fourth, and fifth aspects can be referenced to the analysis of the beneficial effects of the first aspect, which will not be repeated here.
[0056] In this application, the names of the aforementioned devices or functional modules are not limited, and in actual implementation, these devices or functional modules may appear under other names. As long as the functions of each device or functional module are similar to those in this application, they all fall within the scope of this application and its equivalents.
[0057] These or other aspects of this application will become more readily apparent in the following description. Attached Figure Description
[0058] Figure 1 A flowchart illustrating a method for processing vehicle management information provided in an embodiment of this application;
[0059] Figure 2 A flowchart illustrating another method for processing vehicle management information provided in this application embodiment;
[0060] Figure 3 A schematic diagram of the structure of a vehicle management information processing device provided in an embodiment of this application;
[0061] Figure 4 This is a schematic diagram of the structure of a vehicle management information processing device provided in an embodiment of this application. Detailed Implementation
[0062] The following description, in conjunction with the accompanying drawings, details the vehicle management information processing method, apparatus, equipment, and storage medium provided in the embodiments of this application.
[0063] In this article, the term "and / or" is merely a description of the relationship between related objects, indicating that there can be three relationships. For example, A and / or B can represent three situations: A exists alone, A and B exist simultaneously, and B exists alone.
[0064] The terms "first" and "second," etc., used in the specification and drawings of this application are used to distinguish different objects or to distinguish different treatments of the same object, rather than to describe a specific order of objects.
[0065] Furthermore, the terms "comprising" and "having," and any variations thereof, used in the description of this application are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the steps or units listed, but may optionally include other steps or units not listed, or may optionally include other steps or units inherent to such process, method, product, or apparatus.
[0066] It should be noted that in the embodiments of this application, the words "exemplary" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design scheme described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design schemes. Specifically, the use of the words "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.
[0067] In the description of this application, unless otherwise stated, "a plurality of" means two or more.
[0068] Furthermore, the acquisition, storage, use, and processing of data in this application's technical solution all comply with relevant national laws and regulations.
[0069] In existing technologies, vehicle management information often contains sensitive data (such as staff identification information and contact numbers), which is stored in plaintext on the vehicle management platform. Therefore, if the vehicle management platform has network vulnerabilities, there is a risk of sensitive data leakage.
[0070] To address the problems existing in the prior art, this application provides a method for processing vehicle management information. This method uses an N-shaped transformation algorithm to reorganize the sensitive data fields in the target vehicle management information, thereby reducing the risk of sensitive data leakage.
[0071] The vehicle management information processing method provided in this application embodiment can be executed by a vehicle management information processing device. This device can be implemented by software and / or hardware and integrated into the vehicle management information processing equipment that executes this method. For example, the vehicle management information processing equipment can be a server or server cluster corresponding to a vehicle management platform.
[0072] The method for processing vehicle management information provided in the embodiments of this application will be described below with reference to the accompanying drawings.
[0073] Reference Figure 1 The vehicle management information processing method provided in this application includes S101-S104:
[0074] S101. Upon receiving a storage request for target vehicle management information, determine at least one sensitive data field from the target vehicle management information carried in the storage request.
[0075] Among them, the storage request can be a request initiated by the vehicle management platform from the vehicle depot information system or the locomotive depot information system, such as the fault repair subsystem or the tool logistics management subsystem, to store the target vehicle management information.
[0076] The target vehicle management information can be fault repair information (representing the repair information of components), tool issuance and return information (representing the information of staff picking up or returning tools), tool management information (representing the full life cycle tracking information of tools), or system maintenance information (representing the maintenance information of the corresponding subsystem). Of course, in practical applications, the target vehicle management information can also be other types of vehicle management information initiated by other subsystems in the depot information system or locomotive depot information system.
[0077] Optionally, at least one sensitive data field is determined from the target vehicle management information carried in the storage request, including: determining the target information format corresponding to the information type to which the target vehicle management information belongs from each candidate information format; and parsing the target vehicle management information based on the target information format to determine each sensitive data field.
[0078] Because different types of target vehicle management information have different information formats, the locations of sensitive data fields in different types of target vehicle management information may also differ. Therefore, this application embodiment can predetermine the correspondence between various information types and information formats, and predetermine the locations of sensitive data fields in various information formats. When it is necessary to determine each sensitive data field in the target vehicle management information, the target information format corresponding to the information type to which the target vehicle management information belongs can be determined based on the correspondence between various information types and information formats. Then, the target vehicle management information can be parsed based on the locations of sensitive data fields in the target information format to determine each sensitive data field.
[0079] For example, taking fault repair information as an example, the information format corresponding to fault repair information is: "Repair personnel account; Repaired component name; Repair result; Repair time; Repair personnel contact number". This information format includes a total of 5 fields, of which the first and fifth fields are sensitive data fields. If the target vehicle management information carried in the storage request is "aaaaa; bbbbb; ccccc; ddddd; eeeee", then the fields "aaaaa" and "eeeee" can be identified as the sensitive data fields.
[0080] S102. Based on the preset random number generation rules, determine the number of transformed rows corresponding to each sensitive data field.
[0081] The preset random number generation rule can be a pre-determined rule for generating random numbers. For example, the preset random number generation rule can be to randomly select any number from 3, 4, 5, and 6.
[0082] S103. For each sensitive data field, based on the number of transformation rows corresponding to the current sensitive data field, the data elements in the current sensitive data field are reorganized using a pre-determined N-shaped transformation algorithm to obtain the current reorganized data field corresponding to the current sensitive data field.
[0083] The predetermined N-shaped transformation algorithm is a pre-determined algorithm for reconstructing sensitive data fields. For example, the N-shaped transformation algorithm can be as follows: First, arrange the data elements in the current sensitive data field into an "N" shape (the number of rows is the number of transformation rows) to obtain the current N-shaped transformation sequence. Then, starting from the first row of the current N-shaped transformation sequence, traverse each data element from left to right until the last row is traversed. Therefore, by following the traversal order of the data elements in the current N-shaped transformation sequence, the current reconstructed data field corresponding to the current sensitive data field can be obtained.
[0084] For example, if the current sensitive data field is "ABCDEFGHIJKLMN" and the number of transformation rows corresponding to the current sensitive data field is 4, then the arrangement style of the current N-shaped transformation sequence obtained by arranging the data elements in "ABCDEFGHIJKLMN" into an "N" shape is shown in Sequence 1 below:
[0085] AGM
[0086] BFHL N (Sequence 1)
[0087] CEI K
[0088] DJ
[0089] Taking the current N-word transformation sequence as sequence 1 as an example, the current recombined data field corresponding to the current sensitive data field can be obtained as "AGMBFHLNCEIKDJ" based on the current N-word transformation sequence.
[0090] S104. Based on the recombined data fields corresponding to each sensitive data field, determine the encrypted vehicle management information for the target vehicle management information, and store the encrypted vehicle management information.
[0091] After identifying the current reconstructed data field corresponding to the current sensitive data field, the current sensitive data field in the target vehicle management information can be adjusted based on the current reconstructed data field to obtain encrypted vehicle management information. For example, each sensitive data field can be directly replaced with its corresponding reconstructed data field.
[0092] Optionally, based on the reconstructed data fields corresponding to each sensitive data field, the encrypted vehicle management information for the target vehicle management information is determined, including: for the current reconstructed data field in each reconstructed data field, determining the current adjusted data field corresponding to the current sensitive data field based on the current reconstructed data field; replacing each sensitive data field in the target vehicle management information with the corresponding adjusted data field to obtain the encrypted vehicle management information.
[0093] In practical applications, instead of directly replacing the sensitive data field with the reconstructed data field, the decryption field used to decrypt the target vehicle management information from the encrypted vehicle management information and the reconstructed data field can be combined to obtain the adjusted data field. This adjusted data field then replaces the sensitive data field. This method facilitates recording the decryption field, making it easier for administrators to retrieve the target vehicle management information from the encrypted information based on the decryption field when querying it.
[0094] Optionally, based on the number of transformation rows corresponding to the current sensitive data field, the data elements in the current sensitive data field are recombined using a pre-determined N-shaped transformation algorithm to obtain the current recombined data field corresponding to the current sensitive data field. This includes: rearranging the data elements in the current sensitive data field using an N-shaped transformation algorithm based on the number of transformation rows corresponding to the current sensitive data field to obtain the current N-shaped transformation sequence corresponding to the current sensitive data field; and recombinating the sequence elements in the current N-shaped transformation sequence based on a preset recombination rule to obtain the current recombined data field corresponding to the current sensitive data field. Correspondingly, the current adjusted data field corresponding to the current sensitive data field is determined based on the current recombined data field. This includes: determining the current address encryption sequence for the current recombined data field based on the arrangement order of the sequence elements in the current N-shaped transformation sequence; recombinating the sequence elements in the current address encryption sequence based on a preset recombination rule to obtain the current address information field for the current recombined data field; and determining the current adjusted data field based on the current recombined data field, the current address information field, and the number of transformation rows corresponding to the current sensitive data field.
[0095] The preset recombination rule can be a predetermined recombination rule. For example, the preset recombination rule can be to start from the first line of the sequence (the current N-word transformation sequence or the current address encryption sequence), traverse each data element from left to right until the last line is traversed, and then obtain the new data field according to the traversal order of each data element in the sequence.
[0096] The current address information field and the number of transformation rows can be used to characterize the position of each data element in the current reconstructed data field within the current N-word transformation sequence. Therefore, in this embodiment, the current reconstructed data field, the current address information field, and the number of transformation rows corresponding to the current sensitive data field can be combined to obtain the current adjusted data field. Then, in the current adjusted data field, the current address information field and the number of transformation rows can serve as the decryption fields of the current reconstructed data field, that is, they can serve as the key for the current reconstructed data field. Using this key, the current sensitive data field corresponding to the current reconstructed data field can be reconstructed.
[0097] Optionally, based on the order of the sequence elements in the current N-word transform sequence, determine the current address encryption sequence for the currently recombined data field, including: determining the first sequence element according to the order of the sequence elements in the current N-word transform sequence; determining the first sequence element as the current element and replacing the current element with a current preset value; determining whether the current element is the last element in the current N-word transform sequence; if the current element is not the last element in the current N-word transform sequence, incrementing the current preset value by one to obtain a new current preset value, determining the next sequence element according to the order of the sequence elements in the current N-word transform sequence, determining the next sequence element as the new current element, and replacing the new current element with a new current preset value, until the current element is the last element in the current N-word transform sequence; if the current element is the last element in the current N-word transform sequence, determining the replaced current N-word transform sequence as the current address encryption sequence.
[0098] The initial value of the current preset value can be 0.
[0099] Taking the current N-word transformation sequence as Sequence 1 as an example, we can first take the first element "A" in Sequence 1 as the current element and replace "A" with "0"; then, we can adjust the current preset value to "1" and take the next sequence element "B" as the new current element and replace "B" with "1"; similarly, we can replace the remaining elements in Sequence 1 until the last element "N" in Sequence 1 is replaced with "13", thus obtaining the current address encryption sequence. The arrangement of the current address encryption sequence is shown in Sequence 2 below:
[0100]
[0101] Taking the current address encryption sequence as sequence 2 as an example, the current address information field can be determined as "0; 6; 12; 1; 5; 7; 11; 13; 2; 4; 8; 10; 3; 9" based on the current address encryption sequence.
[0102] Optionally, the vehicle management information processing method provided in this application embodiment further includes: upon receiving a query request, searching for encrypted vehicle management information corresponding to the query request in the database; determining each adjustment data field from the found encrypted vehicle management information; for each adjustment data field, restoring the current reconstructed data field in the current adjustment data field based on the current address information field in the current adjustment data field and the number of transformation rows corresponding to the current sensitive data field to obtain the current sensitive data field; and decrypting the encrypted vehicle management information according to the restored sensitive data fields to obtain the target vehicle management information.
[0103] For example, a query request can be based on a certain query condition to query one or more pieces of management information. For instance, a query request can be to query all vehicle management information within a certain time period, or it can be to query fault repair information of a certain component.
[0104] When a user requests to query the management information of a target vehicle, the encrypted vehicle management information can be found first based on the query conditions in the query request. Then, the original target vehicle management information can be obtained by reversing the process of generating the encrypted vehicle management information.
[0105] In summary, the vehicle management information processing method provided in this application embodiment, when it is necessary to store target vehicle management information, can first determine at least one sensitive data field from the target vehicle management information; then, according to a preset random number generation rule, determine the transformation row number corresponding to each sensitive data field; for each sensitive data field, based on the transformation row number corresponding to the current sensitive data field, reorganize each data element in the current sensitive data field using a predetermined N-shaped transformation algorithm to obtain the current reorganized data field corresponding to the current sensitive data field; subsequently, based on the reorganized data fields corresponding to each sensitive data field, determine the encrypted vehicle management information for the target vehicle management information, and store the encrypted vehicle management information. It can be seen that this application embodiment does not directly store the target vehicle management information, but rather uses an N-shaped transformation algorithm to reorganize each sensitive data field in the target vehicle management information before storing the resulting encrypted vehicle management information. Thus, when the vehicle management platform has network vulnerabilities, even if the stored encrypted vehicle management information is stolen, it is difficult for the thief to recover the original target vehicle management information from the encrypted vehicle management information without knowing the encryption rules. Therefore, the embodiments of this application can reduce the risk of leakage of sensitive data.
[0106] Optional, such as Figure 2 As shown, this application embodiment also provides a method for processing vehicle management information, including S201-S205:
[0107] S201. Upon receiving a storage request for target vehicle management information, determine at least one sensitive data field from the target vehicle management information carried in the storage request.
[0108] S202. Based on the preset random number generation rules, determine the number of transformed rows corresponding to each sensitive data field.
[0109] S203. For each sensitive data field, based on the number of transformation rows corresponding to the current sensitive data field, rearrange each data element in the current sensitive data field using the N-shaped transformation algorithm to obtain the current N-shaped transformation sequence corresponding to the current sensitive data field; and recombine each sequence element in the current N-shaped transformation sequence based on the preset recombination rules to obtain the current recombined data field corresponding to the current sensitive data field.
[0110] S204. For the current recombined data field in each recombined data field, determine the current address encryption sequence for the current recombined data field based on the arrangement order of each sequence element in the current N-word transformation sequence; recombine each sequence element in the current address encryption sequence based on the preset recombination rules to obtain the current address information field for the current recombined data field; determine the current adjustment data field according to the current recombined data field, the current address information field, and the transformation row number corresponding to the current sensitive data field.
[0111] S205. Replace each sensitive data field in the target vehicle management information with the corresponding adjusted data field to obtain encrypted vehicle management information, and store the encrypted vehicle management information.
[0112] like Figure 3 As shown in the figure, this application embodiment also provides a vehicle management information processing device, which may include: a receiving module 11, a determining module 21 and a processing module 31.
[0113] In this embodiment, the receiving module 11 executes S101, the determining module 21 executes S102 and S103, and the processing module 31 executes S104.
[0114] Specifically, the receiving module 11 is used to determine at least one sensitive data field from the target vehicle management information carried in the storage request when a storage request for target vehicle management information is received.
[0115] The determination module 21 is used to determine the number of transformed rows corresponding to each sensitive data field according to the preset random number generation rules;
[0116] The determination module 21 is also used to, for each sensitive data field, based on the number of transformation rows corresponding to the current sensitive data field, reorganize each data element in the current sensitive data field through a pre-determined N-shaped transformation algorithm to obtain the current reorganized data field corresponding to the current sensitive data field;
[0117] The processing module 31 is used to determine the encrypted vehicle management information for the target vehicle management information based on the recombined data fields corresponding to each sensitive data field, and to store the encrypted vehicle management information.
[0118] Optionally, in one possible design, processing module 31 is specifically used for:
[0119] For the current reorganized data field in each reorganized data field, determine the current adjusted data field corresponding to the current sensitive data field based on the current reorganized data field;
[0120] The sensitive data fields in the target vehicle management information are replaced with the corresponding adjusted data fields to obtain encrypted vehicle management information.
[0121] Optionally, in another possible design, the determining module 21 is further configured to: rearrange the data elements in the current sensitive data field based on the number of transformation rows corresponding to the current sensitive data field using an N-shaped transformation algorithm to obtain the current N-shaped transformation sequence corresponding to the current sensitive data field; and recombine the sequence elements in the current N-shaped transformation sequence based on a preset recombination rule to obtain the current recombined data field corresponding to the current sensitive data field.
[0122] Correspondingly, the processing module 31 is further configured to: determine the current address encryption sequence for the current recombined data field based on the arrangement order of each sequence element in the current N-word transformation sequence; recombine each sequence element in the current address encryption sequence based on the preset recombination rules to obtain the current address information field for the current recombined data field; and determine the current adjustment data field based on the number of transformation rows corresponding to the current recombined data field, the current address information field, and the current sensitive data field.
[0123] Optionally, in another possible design, the processing module 31 is further used for:
[0124] Determine the first sequence element based on the order of the sequence elements in the current N-word transformation sequence;
[0125] The first element of the sequence is set as the current element, and the current element is replaced with the current preset value.
[0126] Determine whether the current element is the last element in the current N-word transform sequence;
[0127] If it is determined that the current element is not the last element in the current N-word transform sequence, increment the current preset value by one to obtain a new current preset value, determine the next sequence element according to the order of the sequence elements in the current N-word transform sequence, determine the next sequence element as the new current element, and replace the new current element with the new current preset value, until the current element is the last element in the current N-word transform sequence; if it is determined that the current element is the last element in the current N-word transform sequence, determine the current address encryption sequence after replacement.
[0128] Optionally, in another possible design, the vehicle management information processing device provided in this application may further include a search module;
[0129] The search module is used to retrieve encrypted vehicle management information corresponding to the query request from the database upon receiving a query request.
[0130] The determination module 21 is also used to determine each adjustment data field from the found encrypted vehicle management information;
[0131] The determination module 21 is also used to restore the current recombined data field in the current adjusted data field based on the current address information field in the current adjusted data field and the number of transformation rows corresponding to the current sensitive data field, so as to obtain the current sensitive data field.
[0132] The processing module 31 is also used to decrypt the encrypted vehicle management information based on the restored sensitive data fields to obtain the target vehicle management information.
[0133] Alternatively, in another possible design, the receiving module 11 is specifically used for:
[0134] From each candidate information format, determine the target information format that corresponds to the information type of the target vehicle management information;
[0135] Based on the target information format, the target vehicle management information is parsed to identify each sensitive data field.
[0136] Alternatively, in another possible design approach, the target vehicle management information may be fault diagnosis information, tool requisition and return information, tool management information, or system maintenance information.
[0137] Optionally, the vehicle management information processing device may also include a storage module for storing the program code of the vehicle management information processing device.
[0138] like Figure 4 As shown, this application embodiment also provides a vehicle management information processing device, including a memory 41 and a processor (e.g., Figure 4 The processor includes 42-1 and 42-2, bus 43 and communication interface 44; memory 41 is used to store computer execution instructions, and the processor and memory 41 are connected through bus 43; when the vehicle management information processing device is running, the processor executes the computer execution instructions stored in memory 41 so that the vehicle management information processing device performs the vehicle management information processing method provided in the above embodiments.
[0139] In a specific implementation, as one example, the processor may include one or more central processing units (CPUs), for example... Figure 4 CPU0 and CPU1 are shown in the diagram. Furthermore, as one embodiment, the vehicle management information processing device may include multiple processors, such as... Figure 4The processors 42-1 and 42-2 are shown in the diagram. Each of these processors (CPUs) can be a single-core processor or a multi-core processor. Here, "processor" can refer to one or more devices, circuits, and / or processing cores used to process data (e.g., computer program instructions).
[0140] The memory 41 may be a read-only memory (ROM) or other type of static storage device capable of storing static information and instructions, random access memory (RAM) or other type of dynamic storage device capable of storing information and instructions, or electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital versatile optical discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but not limited thereto. The memory 41 may exist independently and be connected to the processor via bus 43. The memory 41 may also be integrated with the processor.
[0141] In a specific implementation, memory 41 is used to store the data in this application and the computer execution instructions corresponding to the software program of this application. The processor can perform various functions of the vehicle management information processing device by running or executing the software program stored in memory 41 and calling the data stored in memory 41.
[0142] Communication interface 44 uses any transceiver-like device for communicating with other devices or communication networks, such as control systems, radio access networks (RAN), wireless local area networks (WLANs), etc. Communication interface 44 may include a receiving unit to implement receiving functions and a transmitting unit to implement transmitting functions.
[0143] Bus 43 can be an industry standard architecture (ISA) bus, a peripheral component interconnect (PCI) bus, or an extended industry standard architecture (EISA) bus, etc. This bus 43 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 4 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.
[0144] As an example, combined Figure 3 The acquisition module in the vehicle management information processing device performs the same functions as... Figure 4 The receiving unit in the device performs the same function as the processing module in the vehicle management information processing device. Figure 4 The processor in the same module performs the same function. When the vehicle management information processing device includes a storage module, the storage module performs the same function as... Figure 4 The memory in them performs the same function.
[0145] The explanation of the relevant content in this embodiment can be found in the above method embodiment, and will not be repeated here.
[0146] Through the above description of the embodiments, those skilled in the art will clearly understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device, and unit described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0147] This application also provides a computer-readable storage medium storing instructions that, when executed by a computer, cause the computer to perform the vehicle management information processing method provided in the above embodiments.
[0148] The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium (a non-exhaustive list) include: an electrical connection having one or more wires, a portable computer disk, a hard disk, RAM, ROM, an erasable programmable read-only memory (EPROM), a register, a hard disk, an optical fiber, a CD-ROM, an optical storage device, a magnetic storage device, or any suitable combination thereof, or any other form of computer-readable storage medium known in the art. An exemplary storage medium is coupled to a processor, enabling the processor to read information from and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can reside in an application-specific integrated circuit (ASIC). In embodiments of this application, the computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
[0149] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A method for processing vehicle management information, characterized in that, include: Upon receiving a storage request for target vehicle management information, at least one sensitive data field is determined from the target vehicle management information carried in the storage request; According to the preset random number generation rules, determine the number of transformation rows corresponding to each of the aforementioned sensitive data fields; For each of the aforementioned sensitive data fields, based on the number of transformed rows corresponding to the current sensitive data field, a pre-determined N-shaped transformation algorithm is used to reorganize each data element in the current sensitive data field to obtain the current reorganized data field corresponding to the current sensitive data field, including: Based on the number of transformation rows corresponding to the current sensitive data field, the data elements in the current sensitive data field are rearranged using the N-shaped transformation algorithm to obtain the current N-shaped transformation sequence corresponding to the current sensitive data field; based on the preset recombination rules, the sequence elements in the current N-shaped transformation sequence are recombined to obtain the current recombined data field corresponding to the current sensitive data field; Correspondingly, determining the current adjusted data field corresponding to the current sensitive data field based on the current reorganized data field includes: Based on the order of the sequence elements in the current N-word transform sequence, the current address encryption sequence for the current recombined data field is determined, including: The first sequence element is determined based on the order of the sequence elements in the current N-word transformation sequence; The first element of the sequence is determined as the current element, and the current element is replaced with the current preset value; Determine whether the current element is the last element in the current N-word transform sequence; If it is determined that the current element is not the last element in the current N-word transform sequence, the current preset value is incremented by one to obtain a new current preset value. The next sequence element is determined according to the order of the sequence elements in the current N-word transform sequence, and the next sequence element is determined as the new current element. The new current element is replaced with the new current preset value until the current element is the last element in the current N-word transform sequence. If it is determined that the current element is the last element in the current N-word transform sequence, the replaced current N-word transform sequence is determined as the current address encryption sequence. Based on the preset recombination rule, each sequence element in the current address encryption sequence is recombined to obtain the current address information field for the current recombined data field; the current adjusted data field is determined according to the number of transformation rows corresponding to the current recombined data field, the current address information field, and the current sensitive data field. Based on the recombined data fields corresponding to each of the aforementioned sensitive data fields, encrypted vehicle management information for the target vehicle management information is determined and stored.
2. The method for processing vehicle management information according to claim 1, characterized in that, The step of determining encrypted vehicle management information for the target vehicle management information based on the reconstructed data fields corresponding to each of the aforementioned sensitive data fields includes: For each of the recombined data fields, the current recombined data field is determined based on the current recombined data field to correspond to the current sensitive data field; The encrypted vehicle management information is obtained by replacing each of the sensitive data fields in the target vehicle management information with the corresponding adjusted data fields.
3. The method for processing vehicle management information according to claim 2, characterized in that, The method further includes: Upon receiving a query request, the encrypted vehicle management information corresponding to the query request is retrieved from the database; The adjustment data fields are determined from the encrypted vehicle management information found; For each of the adjusted data fields, based on the current address information field in the current adjusted data field and the number of transformation rows corresponding to the current sensitive data field, the current reconstructed data field in the current adjusted data field is restored to obtain the current sensitive data field; The encrypted vehicle management information is decrypted based on the restored sensitive data fields to obtain the target vehicle management information.
4. The method for processing vehicle management information according to claim 3, characterized in that, The step of determining at least one sensitive data field from the target vehicle management information carried in the storage request includes: From each candidate information format, determine the target information format that corresponds to the information type to which the target vehicle management information belongs; Based on the target information format, the target vehicle management information is parsed to determine each of the sensitive data fields.
5. The method for processing vehicle management information according to claim 4, characterized in that, The target vehicle management information includes fault repair information, tool return information, tool management information, or system maintenance information.
6. A vehicle management information processing device, characterized in that, include: The receiving module is configured to, upon receiving a storage request for target vehicle management information, determine at least one sensitive data field from the target vehicle management information carried in the storage request; The determination module is used to determine the number of transformed rows corresponding to each of the aforementioned sensitive data fields according to a preset random number generation rule; The determining module is further configured to, for each of the sensitive data fields, based on the number of transformation rows corresponding to the current sensitive data field, reorganize each data element in the current sensitive data field using a pre-determined N-shaped transformation algorithm to obtain the current reorganized data field corresponding to the current sensitive data field, including: Based on the number of transformation rows corresponding to the current sensitive data field, the data elements in the current sensitive data field are rearranged using the N-shaped transformation algorithm to obtain the current N-shaped transformation sequence corresponding to the current sensitive data field; based on the preset recombination rules, the sequence elements in the current N-shaped transformation sequence are recombined to obtain the current recombined data field corresponding to the current sensitive data field; Correspondingly, determining the current adjusted data field corresponding to the current sensitive data field based on the current reorganized data field includes: Based on the order of the sequence elements in the current N-word transform sequence, the current address encryption sequence for the current recombined data field is determined, including: The first sequence element is determined based on the order of the sequence elements in the current N-word transformation sequence; The first element of the sequence is determined as the current element, and the current element is replaced with the current preset value; Determine whether the current element is the last element in the current N-word transform sequence; If it is determined that the current element is not the last element in the current N-word transform sequence, the current preset value is incremented by one to obtain a new current preset value. The next sequence element is determined according to the order of the sequence elements in the current N-word transform sequence, and the next sequence element is determined as the new current element. The new current element is replaced with the new current preset value until the current element is the last element in the current N-word transform sequence. If it is determined that the current element is the last element in the current N-word transform sequence, the replaced current N-word transform sequence is determined as the current address encryption sequence. Based on the preset recombination rule, each sequence element in the current address encryption sequence is recombined to obtain the current address information field for the current recombined data field; the current adjusted data field is determined according to the number of transformation rows corresponding to the current recombined data field, the current address information field, and the current sensitive data field. The processing module is used to determine the encrypted vehicle management information for the target vehicle management information based on the recombined data fields corresponding to each of the sensitive data fields, and to store the encrypted vehicle management information.
7. A vehicle management information processing device, characterized in that, It includes a memory, a processor, a bus, and a communication interface; the memory is used to store computer-executed instructions, and the processor is connected to the memory via the bus; When the vehicle management information processing device is running, the processor executes the computer execution instructions stored in the memory, so that the vehicle management information processing device performs the vehicle management information processing method as described in any one of claims 1-5.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores instructions that, when executed by a computer, cause the computer to perform the vehicle management information processing method as described in any one of claims 1-5.
Citation Information
Patent Citations
Information storage method and device and computer readable storage medium
CN110990846A
Image encryption method based on variable step size random number extraction and improved ZigZag transformation
CN116016795A