Vehicle data acquisition method and device, equipment, storage medium and product

Through the combination of blockchain technology and user-type decryption keys, security risks in the vehicle data acquisition process are solved, efficient and safe storage and transmission of vehicle data are achieved, and user privacy and data security are ensured.

CN118694779APending Publication Date: 2024-09-24CHINA ELECTRONICS RELIABILITY AND ENVIRONMENTAL TESTING INSTITUTE ((THE FIFTH INSTITUTE OF ELECTRONICS MINISTRY OF INDUSTRY AND INFORMATION TECHNOLOGY) (CHINA SAIBAO LABORATORY)
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410492737.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-23
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

The existing technology has security risks in the process of vehicle data acquisition, and it is difficult to effectively protect user privacy and data security, especially in the process of data exchange between vehicles and between vehicles and road infrastructure.

Method used

Through blockchain technology, combined with the user type and decryption key of the logged-in user, the access data type is determined and the candidate vehicle data ciphertext is extracted from the blockchain network, and encryption and decryption operations are performed to ensure that only logged-in users can access their permissions. external vehicle data to improve the security of vehicle data.

Benefits of technology

It effectively improves the security and privacy protection of vehicle data, prevents unauthorized access and tampering, reduces the risk of data leakage and tampering, and enhances the stability and attack resistance of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118694779A
    Figure CN118694779A
Patent Text Reader

Abstract

The invention relates to a vehicle data acquisition method and device, equipment, a storage medium and a product. Comprising the steps of determining an access data type corresponding to a login user according to a user type of the login user under the condition that the login user enters a vehicle data storage platform; wherein the login user carries a decryption key corresponding to the candidate vehicle data ciphertext under the corresponding access data type; extracting at least one candidate vehicle data ciphertext corresponding to the access data type from the block chain network, and according to a data acquisition request of a login user, acquiring a target vehicle data ciphertext corresponding to the data acquisition request from the at least one candidate vehicle data ciphertext; wherein the candidate vehicle data ciphertext is obtained by encrypting the corresponding candidate vehicle data plaintext based on an encryption algorithm under the corresponding access data type; and based on a decryption key carried by the login user, decrypting the target vehicle data ciphertext to obtain a target vehicle data plaintext. By adopting the method, the safety of the vehicle data can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of information security technology, and in particular to a vehicle data acquisition method, device, equipment, storage medium and product. Background Art

[0002] With the rapid development of vehicle technology, the vehicle data generated during vehicle operation is becoming more and more abundant, and there will also be some data involving user privacy in the vehicle data. In many application scenarios, there is a need to extract vehicle data. For example, during vehicle maintenance and servicing, maintenance personnel need to obtain vehicle data to determine the vehicle's maintenance record. For another example, traffic management parties need to obtain vehicle data to determine the vehicle's driving record.

[0003] Normally, data demanders can obtain all vehicle data of the vehicle to be processed through authorized devices, which will bring certain security risks. Summary of the invention

[0004] Based on this, it is necessary to provide a vehicle data acquisition method, device, equipment, storage medium and product that can improve the security of vehicle data in response to the above technical problems.

[0005] In a first aspect, the present application provides a vehicle data acquisition method, which is applied to a vehicle data storage platform; comprising:

[0006] When a logged-in user enters the vehicle data storage platform, the access data type corresponding to the logged-in user is determined according to the user type of the logged-in user; wherein the logged-in user carries a decryption key corresponding to the candidate vehicle data ciphertext under the corresponding access data type;

[0007] Extracting at least one candidate vehicle data ciphertext corresponding to the access data type from the blockchain network, and obtaining the target vehicle data ciphertext corresponding to the data acquisition request from the at least one candidate vehicle data ciphertext according to the data acquisition request of the logged-in user; wherein the candidate vehicle data ciphertext is obtained by encrypting the corresponding candidate vehicle data plaintext based on the encryption algorithm under the corresponding access data type;

[0008] Based on the decryption key carried by the logged-in user, the target vehicle data ciphertext is decrypted to obtain the target vehicle data plaintext.

[0009] In one of the embodiments, different encryption algorithms are used for the candidate vehicle data ciphertexts of different storage data types;

[0010] Correspondingly, based on the decryption key carried by the logged-in user, the target vehicle data ciphertext is decrypted to obtain the target vehicle data plaintext, including:

[0011] According to the data acquisition request, determine the target data type that matches the current visit of the logged-in user;

[0012] Based on the decryption key carried by the logged-in user and the encryption algorithm corresponding to the target data type, the target vehicle data ciphertext is decrypted to obtain the target vehicle data plaintext.

[0013] In one embodiment, based on the decryption key carried by the logged-in user and according to the encryption algorithm corresponding to the target data type, the target vehicle data ciphertext is decrypted to obtain the target vehicle data plaintext, including:

[0014] If the encryption algorithm corresponding to the target data type is a symmetric encryption algorithm, then when the decryption key carried by the logged-in user is the same as the encryption key corresponding to the target vehicle ciphertext, the target vehicle data ciphertext is decrypted to obtain the target vehicle data plaintext;

[0015] If the encryption algorithm corresponding to the target data type is an asymmetric encryption algorithm, when the decryption key carried by the logged-in user matches the encryption key corresponding to the target vehicle data ciphertext, the target vehicle data ciphertext is decrypted to obtain the target vehicle data plaintext.

[0016] In one of the embodiments, if the target data type is vehicle operation status data, the encryption algorithm corresponding to the target data type is a lightweight block encryption algorithm;

[0017] If the target data type is the vehicle's operating environment data, the encryption algorithm corresponding to the target data type is the elliptic curve cryptography algorithm;

[0018] If the target data type is the driving trajectory data of the vehicle, the encryption algorithm corresponding to the target data type is the identity-based encryption algorithm or the attribute-based encryption algorithm;

[0019] If the target data type is vehicle maintenance record data, the encryption algorithm corresponding to the target data type is a homomorphic encryption algorithm, or a functional encryption algorithm.

[0020] In one embodiment, the method further comprises:

[0021] Obtaining the candidate vehicle data plaintext uploaded by the vehicle, and determining the data type of the corresponding candidate vehicle data plaintext according to the data source of the candidate vehicle data plaintext;

[0022] Based on the encryption algorithm corresponding to the data type of the candidate vehicle data plaintext, the candidate vehicle data plaintext is encrypted to obtain the candidate vehicle data ciphertext; the candidate vehicle data ciphertext carries the data type labeling information;

[0023] The candidate vehicle data ciphertext is stored in the blockchain network.

[0024] In a second aspect, the present application also provides a vehicle data acquisition device, comprising:

[0025] A data type determination module is used to determine the access data type corresponding to the logged-in user according to the user type of the logged-in user when the logged-in user enters the vehicle data storage platform; wherein the logged-in user carries a decryption key corresponding to the candidate vehicle data ciphertext under the corresponding access data type;

[0026] A data ciphertext determination module is used to extract at least one candidate vehicle data ciphertext corresponding to the access data type from the blockchain network, and obtain the target vehicle data ciphertext corresponding to the data acquisition request from the at least one candidate vehicle data ciphertext according to the data acquisition request of the logged-in user; wherein the candidate vehicle data ciphertext is obtained by encrypting the corresponding candidate vehicle data plaintext based on the encryption algorithm under the corresponding access data type;

[0027] The data plaintext determination module is used to decrypt the target vehicle data ciphertext based on the decryption key carried by the logged-in user to obtain the target vehicle data plaintext.

[0028] In a third aspect, the present application also provides a vehicle-mounted device, which is provided with a vehicle data storage platform.

[0029] In a fourth aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0030] When a logged-in user enters the vehicle data storage platform, the access data type corresponding to the logged-in user is determined according to the user type of the logged-in user; wherein the logged-in user carries a decryption key corresponding to the candidate vehicle data ciphertext under the corresponding access data type;

[0031] Extracting at least one candidate vehicle data ciphertext corresponding to the access data type from the blockchain network, and obtaining the target vehicle data ciphertext corresponding to the data acquisition request from the at least one candidate vehicle data ciphertext according to the data acquisition request of the logged-in user; wherein the candidate vehicle data ciphertext is obtained by encrypting the corresponding candidate vehicle data plaintext based on the encryption algorithm under the corresponding access data type;

[0032] Based on the decryption key carried by the logged-in user, the target vehicle data ciphertext is decrypted to obtain the target vehicle data plaintext.

[0033] In a fifth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the following steps are implemented:

[0034] When a logged-in user enters the vehicle data storage platform, the access data type corresponding to the logged-in user is determined according to the user type of the logged-in user; wherein the logged-in user carries a decryption key corresponding to the candidate vehicle data ciphertext under the corresponding access data type;

[0035] Extracting at least one candidate vehicle data ciphertext corresponding to the access data type from the blockchain network, and obtaining the target vehicle data ciphertext corresponding to the data acquisition request from the at least one candidate vehicle data ciphertext according to the data acquisition request of the logged-in user; wherein the candidate vehicle data ciphertext is obtained by encrypting the corresponding candidate vehicle data plaintext based on the encryption algorithm under the corresponding access data type;

[0036] Based on the decryption key carried by the logged-in user, the target vehicle data ciphertext is decrypted to obtain the target vehicle data plaintext.

[0037] In a sixth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:

[0038] When a logged-in user enters the vehicle data storage platform, the access data type corresponding to the logged-in user is determined according to the user type of the logged-in user; wherein the logged-in user carries a decryption key corresponding to the candidate vehicle data ciphertext under the corresponding access data type;

[0039] Extracting at least one candidate vehicle data ciphertext corresponding to the access data type from the blockchain network, and obtaining the target vehicle data ciphertext corresponding to the data acquisition request from the at least one candidate vehicle data ciphertext according to the data acquisition request of the logged-in user; wherein the candidate vehicle data ciphertext is obtained by encrypting the corresponding candidate vehicle data plaintext based on the encryption algorithm under the corresponding access data type;

[0040] Based on the decryption key carried by the logged-in user, the target vehicle data ciphertext is decrypted to obtain the target vehicle data plaintext.

[0041] The above-mentioned vehicle data acquisition method, device, equipment, storage medium and product have different user types corresponding to different logged-in users, and different user types correspond to different access data types, so that the logged-in user can only access and obtain the vehicle data that matches his own type, which can improve the security of vehicle data to a certain extent. Furthermore, this method determines the access data type corresponding to the logged-in user according to the user type of the logged-in user, and extracts at least one candidate vehicle data ciphertext corresponding to the access data type from the blockchain network, and obtains the target vehicle data ciphertext corresponding to the data acquisition request from at least one candidate vehicle data ciphertext according to the data acquisition request of the logged-in user. Therefore, the target vehicle data ciphertext is the vehicle data required by the logged-in user, and the target vehicle data ciphertext is the vehicle data of the corresponding access data type of the logged-in user, ensuring that the logged-in user cannot access and obtain vehicle data outside of his authority, thereby improving the security of vehicle data. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0043] Figure 1 An application environment diagram of a vehicle data acquisition method provided by this embodiment;

[0044] Figure 2 A schematic diagram of a process flow of a vehicle data acquisition method provided in this embodiment;

[0045] Figure 3 A schematic diagram of a vehicle data storage process provided by this embodiment;

[0046] Figure 4 A schematic diagram of a process for decrypting ciphertext of target vehicle data provided in this embodiment;

[0047] Figure 5 A schematic diagram of a flow chart of another vehicle data acquisition method provided in this embodiment;

[0048] Figure 6 A structural block diagram of a vehicle data acquisition device provided in this embodiment;

[0049] Figure 7 This is a diagram of the internal structure of a computer device provided in this embodiment. DETAILED DESCRIPTION

[0050] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0051] Before introducing the vehicle data acquisition method provided in the embodiment of the present application, it should be noted that with the continuous development of science and technology, the automotive industry is undergoing unprecedented changes. As the two major development directions of the automotive industry, new energy vehicles and intelligent networked vehicles are gradually changing people's cognition and use of cars. New energy vehicles use electricity as a power source, have the advantages of zero emissions, low energy consumption, low noise, etc., and are favored by the government and consumers. Intelligent networked vehicles realize information exchange between vehicles and real-time interaction with the external environment through Internet technology, and have functions such as automatic driving, remote monitoring, and intelligent navigation, which greatly improves the safety, convenience and comfort of vehicles. However, with the rapid development of new energy vehicles and intelligent networked vehicles, the data related to automobiles is increasing, such as vehicle driving data, vehicle fault data, vehicle video data, and vehicle location data. There is a large amount of sensitive information in these data. However, the current traditional data interaction and data sharing methods have great security risks, which are easy to be attacked by hackers, tampered with, and leaked, which is also one of the increasingly serious problems in the automotive industry.

[0052] Both types of cars generate massive amounts of data, including vehicle status data, driving behavior data, road condition data, etc., which are crucial to the development of intelligent transportation systems. However, this is accompanied by challenges in data security and privacy protection. Traditional data storage and transmission methods often have security risks such as data leakage and tampering, especially in the process of data exchange between vehicles and between vehicles and road infrastructure, there are high security risks.

[0053] In addition, in recent years, blockchain technology has gradually become a hot direction for solving data security and privacy protection issues. As a decentralized and tamper-proof distributed ledger technology, blockchain has the characteristics of secure data storage, traceable transactions, and transparent information. It is widely used in finance, the Internet of Things, medical care and other fields. In the field of intelligent transportation, the application of blockchain technology also shows great potential.

[0054] Blockchain technology can realize the secure storage and transmission of vehicle data, ensuring that the data is not tampered with, forged or lost, thereby improving the security and reliability of vehicle data. At the same time, due to the decentralized characteristics of blockchain, it also reduces the risk of single point failure and data centralization, and improves the stability and anti-attack capabilities of the system. Therefore, the application of blockchain technology in the security protection of new energy vehicle data and intelligent networked vehicle data has important theoretical and practical significance. The embodiment of this application is based on blockchain technology to achieve secure storage and transmission of vehicle data.

[0055] The vehicle data acquisition method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. Among them, the terminal 102 communicates with the vehicle data storage platform 104 through the network. The vehicle data storage platform can be integrated on the server, or it can be placed on the cloud or other network servers. Specifically, when the logged-in user enters the vehicle data storage platform 104, the vehicle data storage platform 104 determines the access data type corresponding to the logged-in user according to the user type of the logged-in user; wherein the logged-in user carries the decryption key corresponding to the candidate vehicle data ciphertext under the corresponding access data type; the vehicle data storage platform 104 extracts at least one candidate vehicle data ciphertext corresponding to the access data type from the blockchain network, and obtains the target vehicle data ciphertext corresponding to the data acquisition request from at least one candidate vehicle data ciphertext according to the data acquisition request of the logged-in user; wherein the candidate vehicle data ciphertext is obtained by encrypting the corresponding candidate vehicle data plaintext based on the encryption algorithm under the corresponding access data type; the vehicle data storage platform 104 decrypts the target vehicle data ciphertext based on the decryption key carried by the logged-in user to obtain the target vehicle data plaintext, and displays the target vehicle data plaintext on the terminal 102.

[0056] In one embodiment, Figure 2 As shown, a vehicle data acquisition method is provided, and the method is applied to Figure 1 Taking the vehicle data storage platform 104 in FIG. 1 as an example, the method includes the following steps:

[0057] S201, when a logged-in user enters the vehicle data storage platform, determining the access data type corresponding to the logged-in user according to the user type of the logged-in user.

[0058] The logged-in user may have multiple identity types, for example, the user may be a vehicle owner, a vehicle maintenance personnel, or a vehicle developer. The vehicle data storage platform is capable of storing all data generated during the entire life cycle of the vehicle. The specific data types are described in detail in the following embodiments. The access data type may be the data type that the logged-in user is allowed to access. The logged-in user carries the decryption key corresponding to the candidate vehicle data ciphertext under the corresponding access data type.

[0059] Exemplarily, when a logged-in user enters the vehicle data storage platform, the authority of the logged-in user can be determined based on the account information of the logged-in user, thereby determining the user type of the logged-in user.

[0060] It should be noted that the vehicle data storage platform has an administrator who can manage the permissions of each logged-in user. The purpose of permission management is to ensure that access, modification and operation of vehicle data are limited to authorized users to ensure data security and privacy. The implementation of permission management not only needs to consider user identity authentication and access control, but also needs to combine the characteristics of blockchain technology, such as smart contracts and distributed consensus mechanisms, to ensure the effectiveness and reliability of permission management. Once the user passes the identity authentication, the permission management system will assign corresponding access rights to the user according to the user's identity and role. In this patent, role-based access control (e.g., RBAC permission model) or policy-based access control (e.g., ABAC data permissions) and other methods can be used to implement permission allocation. Through the RBAC permission model, users can be divided into different roles, such as administrators, ordinary users, etc., and a specific set of permissions can be assigned to each role. ABAC data permissions are based on pre-defined policies and dynamically determine the user's permissions according to the user's attributes and environmental conditions.

[0061] It is understandable that in order to ensure the security of vehicle data, before logging in to the vehicle data storage platform, the user needs to undergo identity verification to confirm the legitimacy of his or her identity. For example, user identity verification can be achieved in a variety of ways, including but not limited to password authentication, fingerprint recognition, biometric recognition, etc. These verification methods can ensure that only users who have passed legal identity verification can further access vehicle data and related functions.

[0062] Exemplarily, the access data types corresponding to different user types may be pre-set. In an embodiment of the present application, after determining the user type of the logged-in user, the access data type corresponding to the logged-in user may be determined according to a comparison table of predetermined user types and access data types.

[0063] S202, extracting at least one candidate vehicle data ciphertext corresponding to the access data type from the blockchain network, and obtaining a target vehicle data ciphertext corresponding to the data acquisition request from the at least one candidate vehicle data ciphertext according to the data acquisition request of the logged-in user.

[0064] The blockchain network may be a blockchain deployed in a vehicle data storage platform, and the vehicle data of the corresponding vehicle is stored on the blockchain network. The candidate vehicle data ciphertext may be all vehicle data ciphertexts pre-stored in the blockchain network, and the candidate vehicle data ciphertext is obtained by encrypting the corresponding candidate vehicle data plaintext based on the encryption algorithm under the corresponding access data type. The data acquisition request may be a data acquisition requirement input by a logged-in user, and may include the vehicle data required by the logged-in user. The target vehicle data ciphertext may be the ciphertext corresponding to the vehicle data plaintext required by the logged-in user.

[0065] For example, in this embodiment, all vehicle data ciphertexts stored in the blockchain network can be used as candidate vehicle data ciphertexts, and candidate vehicle data ciphertexts accessible to the logged-in user can be extracted from each candidate vehicle data ciphertext according to the access data type. For at least one extracted candidate vehicle data ciphertext, the data corresponding to the data acquisition request of the logged-in user is used as the target vehicle data ciphertext.

[0066] S203, decrypting the target vehicle data ciphertext based on the decryption key carried by the logged-in user to obtain the target vehicle data plaintext.

[0067] Specifically, in this embodiment, after the target vehicle data ciphertext is obtained, it can be decrypted based on the decryption key carried by the logged-in user to obtain the target vehicle data plaintext, and the target vehicle data plaintext is synchronized to the logged-in user.

[0068] It is understandable that, since the target vehicle data ciphertext is data in the access data type corresponding to the logged-in user, the decryption key carried by the logged-in user can decrypt the target vehicle data ciphertext. In this embodiment, the encryption method corresponding to the target vehicle data ciphertext is not limited, but the decryption key carried by the logged-in user corresponds to the encryption method.

[0069] In the above vehicle data acquisition method, different logged-in users correspond to different user types, and different user types correspond to different access data types, so that the logged-in user can only access and obtain the vehicle data that matches his type, which can improve the security of vehicle data to a certain extent. Further, this method determines the access data type corresponding to the logged-in user according to the user type of the logged-in user, extracts at least one candidate vehicle data ciphertext corresponding to the access data type from the blockchain network, and obtains the target vehicle data ciphertext corresponding to the data acquisition request from at least one candidate vehicle data ciphertext according to the data acquisition request of the logged-in user. Therefore, the target vehicle data ciphertext is the vehicle data required by the logged-in user, and the target vehicle data ciphertext is the vehicle data of the corresponding access data type of the logged-in user, ensuring that the logged-in user cannot access and obtain the vehicle data outside of his authority, thereby improving the security of vehicle data. Further, based on the decryption key carried by the logged-in user, the target vehicle data ciphertext is decrypted to obtain the target vehicle data plaintext, so that the logged-in user can obtain the vehicle data he needs.

[0070] Based on the above embodiments, the storage method of candidate vehicle data in the blockchain network is described as follows: Figure 3 As shown, it can be stored in the following way:

[0071] S301, obtaining candidate vehicle data plaintext uploaded by the vehicle, and determining the data type of the corresponding candidate vehicle data plaintext according to the data source of the candidate vehicle data plaintext.

[0072] The candidate vehicle data plaintext may be all vehicle data generated by the vehicle during the entire operation cycle.

[0073] For example, it can be real-time acquisition of vehicle status and environmental information through various sensors during the operation of the vehicle. Such information includes but is not limited to vehicle speed, steering, braking, acceleration, vehicle position, surrounding environment, etc. It can also be historical data stored in a vehicle data database, for example, it can include vehicle driving records, fault information, maintenance history, etc.

[0074] The data source of the vehicle data plaintext may be the sensor corresponding to the collection of such vehicle data, for example, a vehicle speed sensor: used to measure the actual speed of the vehicle. A steering sensor: used to monitor the steering angle and direction of the vehicle. A brake sensor: used to detect the braking condition and braking force of the vehicle. An acceleration sensor: used to measure the acceleration and driving status of the vehicle. A Global Positioning System (GPS) module: used to obtain the geographic location coordinates of the vehicle. A camera: used to record real-time video and images in front of the vehicle. Furthermore, the data type of each type of vehicle data is determined based on the data source corresponding to each type of vehicle data. Exemplarily, the data type corresponding to the data collected by each type of sensor may be predetermined, for example, the data collected by the vehicle speed sensor is vehicle speed data; the data collected by the steering sensor is steering data, and so on.

[0075] For example, the candidate vehicle data can be divided into multiple types such as vehicle operation status data, vehicle operation environment data, vehicle driving trajectory data, and vehicle maintenance record data. Accordingly, data such as vehicle speed, steering, braking, acceleration, etc. are used as vehicle operation status data; data such as temperature, humidity, air pressure, and light that can reflect the vehicle's surrounding environment are used as vehicle operation environment data; the vehicle's geographical location coordinates and historical driving record information are used as vehicle driving trajectory data; and data such as engine status, battery status, and vehicle system fault codes used to diagnose vehicle faults and repairs are used as vehicle maintenance record data.

[0076] S302, encrypting the candidate vehicle data plaintext based on the encryption algorithm corresponding to the data type of the candidate vehicle data plaintext to obtain the candidate vehicle data ciphertext.

[0077] Among them, the candidate vehicle data ciphertext carries data type annotation information, that is, after obtaining the candidate vehicle data ciphertext, the corresponding data type can be directly determined.

[0078] Exemplarily, in this embodiment, the encryption algorithm corresponding to each candidate vehicle data plaintext can be determined according to a predetermined data type and encryption algorithm comparison table, and then the corresponding candidate vehicle data plaintext is encrypted based on the corresponding encryption algorithm to obtain the corresponding candidate vehicle data ciphertext.

[0079] Exemplarily, if the target data type is the vehicle's operating status data, the encryption algorithm corresponding to the target data type is a lightweight block encryption algorithm; if the target data type is the vehicle's operating environment data, the encryption algorithm corresponding to the target data type is an elliptic curve cryptography algorithm; if the target data type is the vehicle's driving trajectory data, the encryption algorithm corresponding to the target data type is an identity-based encryption algorithm, or an attribute-based encryption algorithm; if the target data type is the vehicle's maintenance record data, the encryption algorithm corresponding to the target data type is a homomorphic encryption algorithm, or a functional encryption algorithm.

[0080] Among them, different types of encryption algorithms have different characteristics: lightweight block encryption algorithms can include ChaCha20 or Salsa20, which can have faster encryption speed and lower computing cost while ensuring high security, and are suitable for real-time encryption requirements for processing large amounts of data. Elliptic curve cryptography algorithms require shorter key lengths at the same security level, which is conducive to reducing the burden of data transmission, and have higher security, which is suitable for protecting the privacy of environmental data. Identity-based encryption algorithms and attribute-based encryption algorithms can encrypt and decrypt data according to the user's identity or attributes, thereby achieving more refined data access control and protecting the privacy of location data. Homomorphic encryption algorithms can perform a certain degree of calculation and operation in an encrypted state without decrypting the results, which is suitable for protecting the privacy and integrity of vehicle diagnostic data. Functional encryption algorithms allow data to be operated in an encrypted state, and can only be decrypted to obtain results under specific conditions. Functional encryption can support data analysis and calculation while achieving data security and privacy protection.

[0081] Furthermore, before encrypting the candidate vehicle data plaintext, the candidate vehicle data plaintext may be preprocessed, including data cleaning, formatting, and standardization, etc. This can ensure the consistency and integrity of the data and provide a good data foundation for subsequent encryption operations.

[0082] S303, storing the candidate vehicle data ciphertext in the blockchain network.

[0083] In the above embodiment, a method is provided for encrypting the candidate vehicle data plaintext and storing the encrypted candidate vehicle data ciphertext in the blockchain network. Different types of candidate vehicle data are encrypted using different data encryption algorithms, which can better protect the candidate vehicle data of each type.

[0084] Furthermore, in order to further improve the security of vehicle data, in one embodiment, although the data has been encrypted, a series of measures will be taken to ensure its security: Key management: manage and protect the keys used by the encryption algorithm, including the processes of key generation, storage, distribution and destruction. Key management needs to be strictly controlled to ensure the security of the keys and prevent them from being leaked. Access control: access control is performed on the encrypted data, and only authorized users are allowed to access and decrypt the data. Technologies such as permission management and identity authentication are used to ensure data access rights and security. Encryption algorithm update: encryption algorithms are updated and upgraded regularly to adapt to evolving security threats and attack methods. The latest and most secure encryption algorithms are selected to improve data security and reliability. Through the above encryption process, encryption algorithm selection and security measures, the security and privacy of vehicle data can be effectively protected, data can be prevented from being accessed and tampered with without authorization, and the data transmission and storage process can be ensured to be safe and reliable.

[0085] On the basis of the above embodiments, further, under the premise that different encryption algorithms are used for the candidate vehicle data ciphertexts of different storage data types, such as Figure 4 As shown, the method of obtaining the plain text of the target vehicle data may include the following steps:

[0086] S401, according to the data acquisition request, determine the target data type that matches the current visit of the logged-in user.

[0087] Specifically, the data acquisition request will carry the target data type that the logged-in user needs to access this time. In this embodiment, the data acquisition request can be parsed to determine the target data type that matches the logged-in user's access this time.

[0088] S402, based on the decryption key carried by the logged-in user and according to the encryption algorithm corresponding to the target data type, the target vehicle data ciphertext is decrypted to obtain the target vehicle data plaintext.

[0089] Specifically, if the encryption algorithm corresponding to the target data type is a symmetric encryption algorithm, then when the decryption key carried by the logged-in user is the same as the encryption key corresponding to the target vehicle data ciphertext, the target vehicle data ciphertext is decrypted to obtain the target vehicle data plaintext; if the encryption algorithm corresponding to the target data type is an asymmetric encryption algorithm, then when the decryption key carried by the logged-in user matches the encryption key corresponding to the target vehicle data ciphertext, the target vehicle data ciphertext is decrypted to obtain the target vehicle data plaintext.

[0090] In the above embodiment, a specific method for decrypting the target vehicle data ciphertext is provided when the encryption algorithms used for the candidate vehicle data ciphertexts of the same storage data type are different.

[0091] In order to facilitate those skilled in the art to understand the present solution, in one embodiment, the vehicle data acquisition method provided by the present application is described in detail. Figure 5 As shown, it includes the following steps:

[0092] S501, obtaining candidate vehicle data plaintext uploaded by the vehicle, and determining the data type of the corresponding candidate vehicle data plaintext according to the data source of the candidate vehicle data plaintext.

[0093] S502, encrypting the candidate vehicle data plaintext based on the encryption algorithm corresponding to the data type of the candidate vehicle data plaintext to obtain the candidate vehicle data ciphertext; the candidate vehicle data ciphertext carries the data type labeling information.

[0094] S503, storing the candidate vehicle data ciphertext in the blockchain network.

[0095] S504: When a logged-in user enters the vehicle data storage platform, determine the access data type corresponding to the logged-in user according to the user type of the logged-in user.

[0096] Among them, the logged-in user carries the decryption key corresponding to the ciphertext of the candidate vehicle data under the corresponding access data type.

[0097] S505, extracting at least one candidate vehicle data ciphertext corresponding to the access data type from the blockchain network, and obtaining the target vehicle data ciphertext corresponding to the data acquisition request from the at least one candidate vehicle data ciphertext according to the data acquisition request of the logged-in user.

[0098] The candidate vehicle data ciphertext is obtained by encrypting the corresponding candidate vehicle data plaintext based on the encryption algorithm under the corresponding access data type.

[0099] S506, different encryption algorithms are used for candidate vehicle data ciphertexts of different storage data types, and according to the data acquisition request, a target data type matching the current access of the logged-in user is determined.

[0100] S507, if the encryption algorithm corresponding to the target data type is a symmetric encryption algorithm, then when the decryption key carried by the logged-in user is the same as the encryption key corresponding to the target vehicle ciphertext, the target vehicle data ciphertext is decrypted to obtain the target vehicle data plaintext.

[0101] S508, if the encryption algorithm corresponding to the target data type is an asymmetric encryption algorithm, then when the decryption key carried by the logged-in user matches the encryption key corresponding to the target vehicle data ciphertext, the target vehicle data ciphertext is decrypted to obtain the target vehicle data plaintext.

[0102] Specifically, if the target data type is the vehicle's operating status data, the encryption algorithm corresponding to the target data type is a lightweight block encryption algorithm; if the target data type is the vehicle's operating environment data, the encryption algorithm corresponding to the target data type is an elliptic curve cryptography algorithm; if the target data type is the vehicle's driving trajectory data, the encryption algorithm corresponding to the target data type is an identity-based encryption algorithm, or an attribute-based encryption algorithm; if the target data type is the vehicle's maintenance record data, the encryption algorithm corresponding to the target data type is a homomorphic encryption algorithm, or a functional encryption algorithm.

[0103] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0104] Based on the same inventive concept, the embodiment of the present application also provides a vehicle data acquisition device for implementing the vehicle data acquisition method involved above. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above method, so the specific limitations in one or more vehicle data acquisition device embodiments provided below can refer to the limitations of the vehicle data acquisition method above, and will not be repeated here.

[0105] In one embodiment, Figure 6 As shown, a vehicle data acquisition device is provided, including: a data type determination module 610, a data ciphertext determination module 620 and a data plaintext determination module 630, wherein:

[0106] The data type determination module 610 is used to determine the access data type corresponding to the logged-in user according to the user type of the logged-in user when the logged-in user enters the vehicle data storage platform.

[0107] Among them, the logged-in user carries the decryption key corresponding to the ciphertext of the candidate vehicle data under the corresponding access data type.

[0108] The data ciphertext determination module 620 is used to extract at least one candidate vehicle data ciphertext corresponding to the access data type from the blockchain network, and obtain the target vehicle data ciphertext corresponding to the data acquisition request from the at least one candidate vehicle data ciphertext according to the data acquisition request of the logged-in user.

[0109] The candidate vehicle data ciphertext is obtained by encrypting the corresponding candidate vehicle data plaintext based on the encryption algorithm under the corresponding access data type.

[0110] The data plaintext determination module 630 is used to decrypt the target vehicle data ciphertext based on the decryption key carried by the logged-in user to obtain the target vehicle data plaintext.

[0111] In one embodiment, the encryption algorithms used for candidate vehicle data ciphertexts of different storage data types are different; accordingly, the data plaintext determination module includes a first determination unit, which is used to determine the target data type that matches the current access of the logged-in user according to the data acquisition request; a data decryption unit, which is used to decrypt the target vehicle data ciphertext based on the decryption key carried by the logged-in user and the encryption algorithm corresponding to the target data type to obtain the target vehicle data plaintext.

[0112] In one embodiment, the data decryption unit includes a first decryption sub-unit, which is used to decrypt the target vehicle data ciphertext to obtain the target vehicle data plaintext if the encryption algorithm corresponding to the target data type is a symmetric encryption algorithm and the decryption key carried by the logged-in user is the same as the encryption key corresponding to the target vehicle data ciphertext; and a second decryption sub-unit, which is used to decrypt the target vehicle data ciphertext to obtain the target vehicle data plaintext if the encryption algorithm corresponding to the target data type is an asymmetric encryption algorithm and the decryption key carried by the logged-in user matches the encryption key corresponding to the target vehicle data ciphertext.

[0113] In one embodiment, the data decryption unit includes an encryption algorithm determination subunit, which is used to determine that the encryption algorithm corresponding to the target data type is a lightweight block encryption algorithm if the target data type is the vehicle's operating status data; if the target data type is the vehicle's operating environment data, then the encryption algorithm corresponding to the target data type is determined to be an elliptic curve cryptography algorithm; if the target data type is the vehicle's driving trajectory data, then the encryption algorithm corresponding to the target data type is determined to be an identity-based encryption algorithm, or an attribute-based encryption algorithm; if the target data type is the vehicle's maintenance record data, then the encryption algorithm corresponding to the target data type is determined to be a homomorphic encryption algorithm, or a functional encryption algorithm.

[0114] In one embodiment, the vehicle data acquisition device also includes a data storage module, including a data acquisition unit, which is used to obtain the candidate vehicle data plaintext uploaded by the vehicle, and determine the data type of the corresponding candidate vehicle data plaintext according to the data source of the candidate vehicle data plaintext; a data encryption unit, which is used to encrypt the candidate vehicle data plaintext based on the encryption algorithm corresponding to the data type of the candidate vehicle data plaintext to obtain the candidate vehicle data ciphertext; the candidate vehicle data ciphertext carries data type annotation information; and a data storage unit, which is used to store the candidate vehicle data ciphertext in the blockchain network.

[0115] Each module in the above vehicle data acquisition device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each module.

[0116] In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. Figure 7 As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a vehicle data acquisition method is realized. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.

[0117] Those skilled in the art will understand that Figure 7The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0118] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0119] When a logged-in user enters the vehicle data storage platform, the access data type corresponding to the logged-in user is determined according to the user type of the logged-in user; wherein the logged-in user carries a decryption key corresponding to the candidate vehicle data ciphertext under the corresponding access data type;

[0120] Extracting at least one candidate vehicle data ciphertext corresponding to the access data type from the blockchain network, and obtaining the target vehicle data ciphertext corresponding to the data acquisition request from the at least one candidate vehicle data ciphertext according to the data acquisition request of the logged-in user; wherein the candidate vehicle data ciphertext is obtained by encrypting the corresponding candidate vehicle data plaintext based on the encryption algorithm under the corresponding access data type;

[0121] Based on the decryption key carried by the logged-in user, the target vehicle data ciphertext is decrypted to obtain the target vehicle data plaintext.

[0122] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0123] According to the data acquisition request, determine the target data type that matches the current visit of the logged-in user;

[0124] Based on the decryption key carried by the logged-in user and the encryption algorithm corresponding to the target data type, the target vehicle data ciphertext is decrypted to obtain the target vehicle data plaintext.

[0125] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0126] If the encryption algorithm corresponding to the target data type is a symmetric encryption algorithm, then when the decryption key carried by the logged-in user is the same as the encryption key corresponding to the target vehicle ciphertext, the target vehicle data ciphertext is decrypted to obtain the target vehicle data plaintext;

[0127] If the encryption algorithm corresponding to the target data type is an asymmetric encryption algorithm, when the decryption key carried by the logged-in user matches the encryption key corresponding to the target vehicle data ciphertext, the target vehicle data ciphertext is decrypted to obtain the target vehicle data plaintext.

[0128] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0129] If the target data type is the vehicle's operating status data, the encryption algorithm corresponding to the target data type is a lightweight block encryption algorithm;

[0130] If the target data type is the vehicle's operating environment data, the encryption algorithm corresponding to the target data type is the elliptic curve cryptography algorithm;

[0131] If the target data type is the driving trajectory data of the vehicle, the encryption algorithm corresponding to the target data type is the identity-based encryption algorithm or the attribute-based encryption algorithm;

[0132] If the target data type is vehicle maintenance record data, the encryption algorithm corresponding to the target data type is a homomorphic encryption algorithm, or a functional encryption algorithm.

[0133] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0134] Obtaining the candidate vehicle data plaintext uploaded by the vehicle, and determining the data type of the corresponding candidate vehicle data plaintext according to the data source of the candidate vehicle data plaintext;

[0135] Based on the encryption algorithm corresponding to the data type of the candidate vehicle data plaintext, the candidate vehicle data plaintext is encrypted to obtain the candidate vehicle data ciphertext; the candidate vehicle data ciphertext carries the data type labeling information;

[0136] The candidate vehicle data ciphertext is stored in the blockchain network.

[0137] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0138] When a logged-in user enters the vehicle data storage platform, the access data type corresponding to the logged-in user is determined according to the user type of the logged-in user; wherein the logged-in user carries a decryption key corresponding to the candidate vehicle data ciphertext under the corresponding access data type;

[0139] Extracting at least one candidate vehicle data ciphertext corresponding to the access data type from the blockchain network, and obtaining the target vehicle data ciphertext corresponding to the data acquisition request from the at least one candidate vehicle data ciphertext according to the data acquisition request of the logged-in user; wherein the candidate vehicle data ciphertext is obtained by encrypting the corresponding candidate vehicle data plaintext based on the encryption algorithm under the corresponding access data type;

[0140] Based on the decryption key carried by the logged-in user, the target vehicle data ciphertext is decrypted to obtain the target vehicle data plaintext.

[0141] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0142] According to the data acquisition request, determine the target data type that matches the current visit of the logged-in user;

[0143] Based on the decryption key carried by the logged-in user and the encryption algorithm corresponding to the target data type, the target vehicle data ciphertext is decrypted to obtain the target vehicle data plaintext.

[0144] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0145] If the encryption algorithm corresponding to the target data type is a symmetric encryption algorithm, then when the decryption key carried by the logged-in user is the same as the encryption key corresponding to the target vehicle ciphertext, the target vehicle data ciphertext is decrypted to obtain the target vehicle data plaintext;

[0146] If the encryption algorithm corresponding to the target data type is an asymmetric encryption algorithm, when the decryption key carried by the logged-in user matches the encryption key corresponding to the target vehicle data ciphertext, the target vehicle data ciphertext is decrypted to obtain the target vehicle data plaintext.

[0147] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0148] If the target data type is the vehicle's operating status data, the encryption algorithm corresponding to the target data type is a lightweight block encryption algorithm;

[0149] If the target data type is the vehicle's operating environment data, the encryption algorithm corresponding to the target data type is the elliptic curve cryptography algorithm;

[0150] If the target data type is the driving trajectory data of the vehicle, the encryption algorithm corresponding to the target data type is the identity-based encryption algorithm or the attribute-based encryption algorithm;

[0151] If the target data type is vehicle maintenance record data, the encryption algorithm corresponding to the target data type is a homomorphic encryption algorithm, or a functional encryption algorithm.

[0152] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0153] Obtaining the candidate vehicle data plaintext uploaded by the vehicle, and determining the data type of the corresponding candidate vehicle data plaintext according to the data source of the candidate vehicle data plaintext;

[0154] Based on the encryption algorithm corresponding to the data type of the candidate vehicle data plaintext, the candidate vehicle data plaintext is encrypted to obtain the candidate vehicle data ciphertext; the candidate vehicle data ciphertext carries the data type labeling information;

[0155] The candidate vehicle data ciphertext is stored in the blockchain network.

[0156] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:

[0157] When a logged-in user enters the vehicle data storage platform, the access data type corresponding to the logged-in user is determined according to the user type of the logged-in user; wherein the logged-in user carries a decryption key corresponding to the candidate vehicle data ciphertext under the corresponding access data type;

[0158] Extracting at least one candidate vehicle data ciphertext corresponding to the access data type from the blockchain network, and obtaining the target vehicle data ciphertext corresponding to the data acquisition request from the at least one candidate vehicle data ciphertext according to the data acquisition request of the logged-in user; wherein the candidate vehicle data ciphertext is obtained by encrypting the corresponding candidate vehicle data plaintext based on the encryption algorithm under the corresponding access data type;

[0159] Based on the decryption key carried by the logged-in user, the target vehicle data ciphertext is decrypted to obtain the target vehicle data plaintext.

[0160] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0161] According to the data acquisition request, determine the target data type that matches the current visit of the logged-in user;

[0162] Based on the decryption key carried by the logged-in user and the encryption algorithm corresponding to the target data type, the target vehicle data ciphertext is decrypted to obtain the target vehicle data plaintext.

[0163] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0164] If the encryption algorithm corresponding to the target data type is a symmetric encryption algorithm, then when the decryption key carried by the logged-in user is the same as the encryption key corresponding to the target vehicle ciphertext, the target vehicle data ciphertext is decrypted to obtain the target vehicle data plaintext;

[0165] If the encryption algorithm corresponding to the target data type is an asymmetric encryption algorithm, when the decryption key carried by the logged-in user matches the encryption key corresponding to the target vehicle data ciphertext, the target vehicle data ciphertext is decrypted to obtain the target vehicle data plaintext.

[0166] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0167] If the target data type is the vehicle's operating status data, the encryption algorithm corresponding to the target data type is a lightweight block encryption algorithm;

[0168] If the target data type is the vehicle's operating environment data, the encryption algorithm corresponding to the target data type is the elliptic curve cryptography algorithm;

[0169] If the target data type is the driving trajectory data of the vehicle, the encryption algorithm corresponding to the target data type is the identity-based encryption algorithm or the attribute-based encryption algorithm;

[0170] If the target data type is vehicle maintenance record data, the encryption algorithm corresponding to the target data type is a homomorphic encryption algorithm, or a functional encryption algorithm.

[0171] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0172] Obtaining the candidate vehicle data plaintext uploaded by the vehicle, and determining the data type of the corresponding candidate vehicle data plaintext according to the data source of the candidate vehicle data plaintext;

[0173] Based on the encryption algorithm corresponding to the data type of the candidate vehicle data plaintext, the candidate vehicle data plaintext is encrypted to obtain the candidate vehicle data ciphertext; the candidate vehicle data ciphertext carries the data type labeling information;

[0174] The candidate vehicle data ciphertext is stored in the blockchain network.

[0175] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0176] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0177] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0178] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A vehicle data acquisition method, It is characterized in that Applied to a vehicle data storage platform; the method comprises: In the case where a logged-in user enters the vehicle data storage platform, determining the access data type corresponding to the logged-in user according to the user type of the logged-in user; wherein the logged-in user carries a decryption key corresponding to the candidate vehicle data ciphertext under the corresponding access data type; Extracting at least one candidate vehicle data ciphertext corresponding to the access data type from the blockchain network, and acquiring the target vehicle data ciphertext corresponding to the data acquisition request from the at least one candidate vehicle data ciphertext according to the data acquisition request of the logged-in user; wherein the candidate vehicle data ciphertext is obtained by encrypting the corresponding candidate vehicle data plaintext based on the encryption algorithm under the corresponding access data type; Based on the decryption key carried by the logged-in user, the target vehicle data ciphertext is decrypted to obtain the target vehicle data plaintext.

2. The method according to claim 1, It is characterized in that The encryption algorithms used for the candidate vehicle data ciphertexts of different storage data types are different; Correspondingly, the target vehicle data ciphertext is decrypted based on the decryption key carried by the logged-in user to obtain the target vehicle data plaintext, including: Determine, according to the data acquisition request, a target data type that matches the current visit of the logged-in user; Based on the decryption key carried by the logged-in user and according to the encryption algorithm corresponding to the target data type, the target vehicle data ciphertext is decrypted to obtain the target vehicle data plaintext.

3. The method according to claim 2, It is characterized in that The method of decrypting the target vehicle data ciphertext based on the decryption key carried by the logged-in user and according to the encryption algorithm corresponding to the target data type to obtain the target vehicle data plaintext includes: If the encryption algorithm corresponding to the target data type is a symmetric encryption algorithm, then when the decryption key carried by the logged-in user is the same as the encryption key corresponding to the target vehicle ciphertext, the target vehicle data ciphertext is decrypted to obtain the target vehicle data plaintext; If the encryption algorithm corresponding to the target data type is an asymmetric encryption algorithm, then when the decryption key carried by the logged-in user matches the encryption key corresponding to the target vehicle data ciphertext, the target vehicle data ciphertext is decrypted to obtain the target vehicle data plaintext.

4. The method according to claim 2, It is characterized in that If the target data type is vehicle operation status data, the encryption algorithm corresponding to the target data type is a lightweight block encryption algorithm; If the target data type is vehicle operating environment data, the encryption algorithm corresponding to the target data type is an elliptic curve cryptography algorithm; If the target data type is vehicle driving trajectory data, the encryption algorithm corresponding to the target data type is an identity-based encryption algorithm or an attribute-based encryption algorithm; If the target data type is vehicle maintenance record data, the encryption algorithm corresponding to the target data type is a homomorphic encryption algorithm, or a functional encryption algorithm.

5. The method according to any one of claims 1 to 4, It is characterized in that The method further comprises: Obtaining candidate vehicle data plaintext uploaded by the vehicle, and determining the data type of the corresponding candidate vehicle data plaintext according to the data source of the candidate vehicle data plaintext; Based on the encryption algorithm corresponding to the data type of the candidate vehicle data plaintext, the candidate vehicle data plaintext is encrypted to obtain the candidate vehicle data ciphertext; the candidate vehicle data ciphertext carries the data type labeling information; The candidate vehicle data ciphertext is stored in the blockchain network.

6. A vehicle data acquisition device, It is characterized in that Set up on the vehicle data storage platform, the device includes: A data type determination module is used to determine the access data type corresponding to the logged-in user according to the user type of the logged-in user when the logged-in user enters the vehicle data storage platform; wherein the logged-in user carries a decryption key corresponding to the candidate vehicle data ciphertext under the corresponding access data type; A data ciphertext determination module, configured to extract at least one candidate vehicle data ciphertext corresponding to the access data type from the blockchain network, and obtain, according to the data acquisition request of the logged-in user, a target vehicle data ciphertext corresponding to the data acquisition request from the at least one candidate vehicle data ciphertext; wherein the candidate vehicle data ciphertext is obtained by encrypting the corresponding candidate vehicle data plaintext based on the encryption algorithm under the corresponding access data type; The data plaintext determination module is used to decrypt the target vehicle data ciphertext based on the decryption key carried by the logged-in user to obtain the target vehicle data plaintext.

7. A vehicle-mounted device, It is characterized in that A vehicle data storage platform as described in any one of claims 1-5 is arranged thereon.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program. It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.

10. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.

Citation Information

Cited By

  • Rail transit vehicle maintenance strategy optimization method and system based on homomorphic encryption

    CN119850180A