Magnetic power strip data security detection method capable of displaying power consumption

By performing advanced encryption and identity authentication on the power consumption data of magnetic plug-ins and slots, combined with blockchain technology and Laplace mechanism, the security problem of magnetic plug-ins and slots in storing and transmitting power consumption data is solved, and user privacy protection and data security are achieved.

CN119936479APending Publication Date: 2025-05-06HANGZHOU YIZAO TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510018652.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-07
Publication Date
2025-05-06

AI Technical Summary

Technical Problem

The existing magnetic plug-in lacks effective security when storing and transmitting electrical data, which may lead to user privacy information leakage and data tampering.

Method used

Advanced encryption standard algorithms are used to encrypt power consumption data, and a strong identity authentication mechanism and access control policy are introduced. At the same time, blockchain technology is used to build a decentralized power consumption data audit network, and the privacy protection of user individual data is achieved through the Laplace mechanism.

Benefits of technology

It effectively protects users' privacy information, prevents data tampering and attacks, improves the data security of smart home systems, and thus promotes the sustainable development of smart home devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119936479A_ABST
    Figure CN119936479A_ABST
Patent Text Reader

Abstract

The invention discloses a multi-scale vegetation coverage calculation method based on an unmanned aerial vehicle, and relates to the technical field of vegetation coverage calculation. The method comprises the following steps: carrying out data encryption on power consumption data stored in the magnetic power strip by adopting an advanced encryption standard algorithm; wherein a socket body of the magnetic power strip is internally provided with an electricity consumption meter used for monitoring electricity consumption data, the electricity consumption meter is electrically connected with each jack seat in the magnetic power strip, the electricity consumption meter is electrically connected with a display screen used for displaying the electricity consumption data, and the display screen is installed on the surface of the socket body of the magnetic power strip; a data auditing system based on a block chain technology is introduced, and real-time monitoring and auditing of electricity consumption data are realized by constructing a decentralized electricity consumption data auditing network; based on a mode of adding noise or disturbance, a Laplacian mechanism is adopted to realize privacy protection of individual data of a user using the magnetic power strip. The privacy of the magnetic power strip user can be protected.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of power strip data security detection, and in particular to a magnetic power strip data security detection method capable of displaying power consumption. Background Art

[0002] With the popularity of smart home devices, magnetic sockets are widely used as important home appliance accessories. Magnetic sockets can monitor and display the power consumption and power of connected devices in real time through built-in sensors, providing users with a convenient way to manage electricity consumption. However, as the intelligence of magnetic sockets continues to improve, the electricity consumption data stored and transmitted internally is becoming more and more important.

[0003] Since magnetic sockets can connect to a wide variety of devices, the power usage data involved may also involve the user's privacy information, such as the living habits and daily routines of family members. Therefore, how to ensure the security of the power usage data stored and transmitted inside the magnetic socket has become an urgent problem to be solved.

[0004] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0005] The embodiment of the present application provides a magnetic power strip data security detection method that can display power consumption to solve the above technical problems.

[0006] The present application provides a data security detection method for a magnetic socket strip capable of displaying power consumption, comprising:

[0007] The advanced encryption standard algorithm is used to encrypt the power consumption data stored inside the magnetic suction socket; wherein, a power consumption meter for monitoring the power consumption data is provided in the socket body of the magnetic suction socket, the power consumption meter is electrically connected to each socket seat in the magnetic suction socket, the power consumption meter is electrically connected to a display screen for displaying the power consumption data, and the display screen is mounted on the surface of the socket body of the magnetic suction socket;

[0008] Introduce strong identity authentication mechanisms and access control strategies, including: adopt multi-factor identity authentication technology, combine passwords and user biometrics to authenticate users; establish access control strategies to finely manage access to the electricity consumption data based on user roles and permissions to prevent unauthorized data access;

[0009] The establishing of access control policies to perform refined management of access to the power consumption data according to user roles and permissions includes:

[0010] Generate a set of attributes required for attribute encryption and a conditional expression for accessing the electricity consumption data according to the access permission requirements of the electricity consumption data;

[0011] The attribute set is formed into a parameter sequence in descending order according to the information exchange standard code value; a function of generating a conditional expression for accessing the power consumption data based on the parameter sequence;

[0012] The function of the conditional expression for accessing the power consumption data satisfies the following formula: H(Arran)∈F; wherein H is a hash function, Arran is a conditional expression for accessing the power consumption data, and F is a multiplication cyclic group whose order is a prime number;

[0013] Generate a corresponding user private key set according to the user's role, the user's biometrics and the attribute set; generate a random string based on the user private key set, wherein the random string is used for data auditing;

[0014] Generate a target ciphertext according to the security parameters, the access structure and the conditional expression for accessing the power consumption data; optimize the access control strategy through the security parameters, the user private key and the target ciphertext;

[0015] Introduce a data audit system based on blockchain technology, and build a decentralized power consumption data audit network to achieve real-time monitoring and auditing of the power consumption data;

[0016] Based on the method of adding noise or disturbance, the Laplace mechanism is adopted to realize the privacy protection of the individual data of the user who uses the magnetic suction power strip.

[0017] Furthermore, generating a corresponding user private key set according to the user's role, the user's biometrics and the attribute set includes:

[0018] Extracting feature data through the user's biometric features; randomly determining a first private key in a private key box corresponding to the user based on the feature data, the user's role and the attribute set;

[0019] Calculating a random number that differs from the characteristic data by a preset error; determining a random private key according to the random number, and calculating a hash value of the random private key; when it is determined that the hash value of the random private key is the same as a preset hash value, using the random private key as a second private key;

[0020] Determine the user private key set SecretKey based on the first private key, the second private key and the attribute set;

[0021] SecretKey={a1,a2,{b1 i,j ,b2 i,j ,b3 i,j} (i,j)∈E}

[0022] Where a1 is the first private key; a2 is the second private key; b1 i,j ,b2 i,j ,b3 i,j are three private attribute keys randomly selected from the attribute set, and E is the attribute set.

[0023] Furthermore, the data audit system based on blockchain technology is introduced to realize real-time monitoring and auditing of the electricity consumption data by building a decentralized electricity consumption data audit network, including:

[0024] The preset object requests to upload the power consumption data, constructs an authentication tag matching the power consumption data based on a hash function, and stores the authentication tag in the blockchain;

[0025] The preset object uploads the target ciphertext to a server, and the server performs consistency detection on the target ciphertext and the authentication tag;

[0026] The preset object sends the challenge node and other nodes to the server in a certain order as a response. After the server receives the response set of the preset object, if the proof is passed, the preset object is allowed to upload the public key;

[0027] The blockchain receives the audit request submitted by the preset object, generates challenge information, and sends the challenge information to a random node selected by the blockchain; the random node performs verification and creates an audit log.

[0028] Furthermore, before the preset object sends the challenge node and other nodes to the server in a certain order as a response, the method further includes:

[0029] The server divides the target ciphertext into a plurality of data blocks, and randomly selects a group of data block numbers as a challenge and sends them to the target preset object.

[0030] Furthermore, the method of adding noise or disturbance and using the Laplace mechanism to implement privacy protection of individual data of users using the magnetic power strip includes:

[0031] According to the risk value of privacy leakage of the user role, different differential privacy encryption factors are set for the user individual data of the magnetic socket strip, and the differential privacy encryption factors are used as encryption parameters of the Laplace mechanism. The Laplace mechanism is adopted to encrypt the user individual data using the magnetic socket strip.

[0032] Furthermore, before using the Laplace mechanism to encrypt the individual data of the user using the magnetic power strip, the method further includes:

[0033] The individual data of users using the magnetic socket strip is subjected to the Laplace noise mechanism, and a noise value b is added to the original data model, where: GS is the global sensitivity and s is the privacy budget.

[0034] Furthermore, the user's biometric features include one or more of facial features, fingerprint features, and iris features.

[0035] Furthermore, during the transmission of the power consumption data, the SSL / TLS protocol is used for encrypted transmission.

[0036] Furthermore, after the Laplace mechanism is used to implement privacy protection of individual data of users using the magnetic power strip, the method further includes:

[0037] Security vulnerability discovery and repair work is carried out at a preset cycle, including: introducing vulnerability scanning tools to scan the software system and hardware system of the magnetic socket for security vulnerabilities; and repairing and upgrading the discovered security vulnerabilities by updating security patches.

[0038] Furthermore, after the blockchain receives the audit request submitted by the preset object, the method further includes:

[0039] The server receives the audit request sent by the preset object, generates partial aggregation evidence and integrity evidence corresponding to the audit request, generates a report on the audit results, and sends it to the preset object.

[0040] Based on the embodiments provided in the present application, the privacy of users of magnetic sockets can be protected. Specifically, the electricity consumption data recorded and displayed by the magnetic sockets may contain privacy information such as the user's living habits and the activity tracks of family members. Ensuring the security of this data is crucial to protecting user privacy. Data tampering and attacks can be prevented. That is, in a smart home system, the magnetic sockets, as an important data collection and transmission node, may face attacks and tampering from hackers and malicious programs. By studying data security detection methods, these potential security threats can be effectively prevented. The development of smart homes can be promoted. It can be understood that the development of smart home devices needs to be based on data security. Research on data security detection methods for magnetic sockets will help to improve the security of smart home devices and promote the sustainable development of the smart home industry. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] The drawings described herein are used to provide a further understanding of the embodiments of the present invention and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0042] Figure 1 It is a flow chart of an optional magnetic power strip data security detection method capable of displaying power consumption according to an embodiment of the present application;

[0043] Figure 2 This is another optional flowchart for generating a user private key set according to an embodiment of the present application.

[0044] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0045] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0046] Alternatively, if Figure 1 As shown, the present application provides a data security detection method for a magnetic socket strip capable of displaying power consumption, comprising:

[0047] S101, using an advanced encryption standard algorithm to encrypt the power consumption data stored in the magnetic socket strip; wherein a power consumption meter for monitoring the power consumption data is provided in the socket body of the magnetic socket strip, the power consumption meter is electrically connected to each socket seat in the magnetic socket strip, the power consumption meter is electrically connected to a display screen for displaying the power consumption data, and the display screen is mounted on the surface of the socket body of the magnetic socket strip;

[0048] S102, introduce strong identity authentication mechanism and access control strategy, including: adopt multi-factor identity authentication technology, combine password and user's biometrics to authenticate user identity; establish access control strategy, and manage access to electricity consumption data in a refined manner according to user roles and permissions to prevent unauthorized data access;

[0049] S103, introduce a data audit system based on blockchain technology, and build a decentralized power consumption data audit network to achieve real-time monitoring and auditing of power consumption data;

[0050] S104, based on the method of adding noise or disturbance, the Laplace mechanism is used to realize the privacy protection of the individual data of the user who uses the magnetic suction power strip.

[0051] In some embodiments of the present application, establishing an access control policy to perform refined management of access to power consumption data according to user roles and permissions includes:

[0052] Generate the attribute set required for attribute encryption and the conditional expression for accessing the electricity consumption data according to the access permission requirements of the electricity consumption data;

[0053] The attribute set is formed into a parameter sequence in descending order according to the information exchange standard code value; a function for generating a conditional expression for accessing the power consumption data based on the parameter sequence;

[0054] The function of the conditional expression for accessing the power consumption data satisfies the following formula: H(Arran)∈F; wherein H is a hash function, Arran is a conditional expression for accessing the power consumption data, and F is a multiplication cyclic group whose order is a prime number;

[0055] Generate a corresponding user private key set according to the user's role, the user's biometrics and attribute set; generate a random string based on the user private key set, wherein the random string is used for data auditing;

[0056] Generate target ciphertext based on security parameters, access structure and conditional expressions for accessing electricity consumption data; optimize access control strategy through security parameters, user private key and target ciphertext;

[0057] Based on the embodiments provided in the present application, the privacy of users of magnetic sockets can be protected. Specifically, the electricity consumption data recorded and displayed by the magnetic sockets may contain privacy information such as the user's living habits and the activity tracks of family members. Ensuring the security of this data is crucial to protecting user privacy. Data tampering and attacks can be prevented. That is, in a smart home system, the magnetic sockets, as an important data collection and transmission node, may face attacks and tampering from hackers and malicious programs. By studying data security detection methods, these potential security threats can be effectively prevented. The development of smart homes can be promoted. It can be understood that the development of smart home devices needs to be based on data security. Research on data security detection methods for magnetic sockets will help to improve the security of smart home devices and promote the sustainable development of the smart home industry.

[0058] One embodiment of the present invention, as Figure 2 As shown, the corresponding user private key set is generated according to the user's role, the user's biometrics and the attribute set, including:

[0059] S201, extracting feature data through the user's biometric features; randomly determining a first private key in the private key box corresponding to the user according to the feature data, the user's role and attribute set; wherein the user's biometric features include one or more of face features, fingerprint features and iris features. In addition, during the transmission of power consumption data, the SSL / TLS protocol is used for encrypted transmission.

[0060] S202, calculating a random number that differs from the characteristic data by a preset error; determining a random private key according to the random number, and calculating a hash value of the random private key; when it is determined that the hash value of the random private key is the same as the preset hash value, using the random private key as the second private key;

[0061] S203: Determine a user private key set SecretKey based on the first private key, the second private key, and the attribute set.

[0062] In some embodiments of the present application, SecretKey={a1, a2, {b1 i,j ,b2 i,j ,b3 i,j} (i,j)∈E}

[0063] Among them, a1 is the first private key; a2 is the second private key; b1 i,j ,b2 i,j ,b3 i,j are three private attribute keys randomly selected from the attribute set, and E is the attribute set.

[0064] The technical principle of the above technical solution is: extract the user's biometric data through specific biometric recognition technology (such as face recognition, fingerprint recognition, iris recognition, etc.) According to these feature data, the user's role (such as administrator, ordinary user, etc.) and a predefined attribute set, a first private key is randomly determined in the private key box corresponding to the user.

[0065] Calculate a random number that differs from the feature data by a preset error. This step may be done by using an algorithm to generate a random number within a certain error range based on the feature data. Use this random number to determine a random private key and calculate the hash value of the random private key. Compare the calculated hash value with the preset hash value. If the two are the same, then the random private key is considered valid and is used as the second private key.

[0066] The user's private key set is determined by combining the first private key, the second private key, and a private attribute key randomly selected from the attribute set (e.g., three private attribute keys are randomly selected). In this process, an encryption algorithm E may also be involved, which combines the selected attribute key with the first and second private keys to generate the final private key set.

[0067] The technical effect of the above technical solution is: using the user's biometrics as part of the private key generation increases the uniqueness and security of the private key. Even if the password or private key is stolen, it cannot be used without the corresponding biometrics. Combined with user roles and attribute sets, more fine-grained permission control can be achieved to improve the security of the system. Through the verification mechanism of random numbers and hash values, the randomness and uniqueness of the generated second private key can be ensured, which improves the flexibility and scalability of the system. According to actual needs, different numbers of private attribute keys can be selected from the attribute set to meet different security requirements. In the process of power consumption data transmission, the SSL / TLS protocol is used for encrypted transmission to ensure the security and integrity of the data during transmission. Through the private key set associated with the user's role and attribute set, the user's permissions and access control can be managed more conveniently, and better traceability is also provided. If a security problem occurs, it can be easier to track and locate the problem.

[0068] One embodiment of the present invention introduces a data audit system based on blockchain technology, and realizes real-time monitoring and auditing of electricity consumption data by building a decentralized electricity consumption data audit network, including:

[0069] The preset object requests to upload the electricity consumption data, constructs an authentication tag matching the electricity consumption data based on the hash function, and stores the authentication tag in the blockchain;

[0070] The preset object uploads the target ciphertext to the server, and the server performs consistency detection on the target ciphertext and the authentication tag;

[0071] The preset object sends the challenge node and other nodes to the server in a certain order as a response. After the server receives the response set of the preset object, if the proof is passed, the preset object is allowed to upload the public key;

[0072] The blockchain receives the audit request submitted by the preset object, generates challenge information, and sends the challenge information to a random node selected by the blockchain; the random node verifies and creates an audit log.

[0073] The technical principle of the above technical solution is: the preset object (such as power users or power suppliers) requests to upload power consumption data. The preset object constructs an authentication tag that matches the power consumption data based on a hash function (such as SHA-256). The hash function can generate a unique "fingerprint" of the data to ensure the integrity and authenticity of the data. The preset object stores the authentication tag in the blockchain to ensure the immutability and traceability of the tag.

[0074] The preset object uploads the electricity consumption data to the server in ciphertext form (encrypted by some encryption algorithm such as AES). After receiving the target ciphertext, the server checks its consistency with the authentication tag stored in the blockchain. This step ensures that the uploaded data matches the previous authentication tag, that is, the data has not been tampered with during transmission.

[0075] The preset object sends the information of the challenge node and other nodes (which may be verification nodes related to electricity consumption data) to the server in a certain order as a response. After receiving the response set of the preset object, the server verifies the validity of the response through a series of algorithms or verification processes (such as zero-knowledge proof, homomorphic encryption, etc.). If the verification is successful, the server allows the preset object to upload the public key. The public key is used for subsequent data decryption and verification.

[0076] The blockchain receives audit requests submitted by preset objects. Based on the audit request, the blockchain generates challenge information (which may include randomly selected data blocks, timestamps, etc.). The blockchain sends the challenge information to a random node of its choice (which may be a verification node or a data provider). The random node verifies based on the challenge information (such as checking data integrity, consistency, etc.) and creates an audit log. The audit log records the entire verification process and results.

[0077] The technical effects of the above technical solution are: through blockchain technology, real-time monitoring and auditing of electricity consumption data are realized to ensure the authenticity and integrity of the data. The decentralized audit network avoids the risks of single point failure and centralized control, and improves the reliability and security of the system. The authentication tags and audit logs in the blockchain are tamper-proof and traceable, providing strong guarantees for the authenticity and integrity of the data. Through the preset algorithm and verification process, automated data verification and auditing are realized, which improves the efficiency and accuracy of the audit work. The electricity consumption data is uploaded in ciphertext form, and is decrypted and verified by the public key, ensuring the privacy and security of user data.

[0078] In one embodiment of the present invention, before the preset object sends the challenge node and other nodes to the server in a certain order as a response, the method further includes:

[0079] The server divides the target ciphertext into multiple data blocks, and randomly selects a group of data block numbers as a challenge to send to the target preset object.

[0080] Specifically, the server divides the target ciphertext into multiple data blocks, and randomly selects a group of data block numbers as a challenge to send to the target preset object, including:

[0081] Step 1: extract the data size corresponding to the target ciphertext, wherein the data size of the target ciphertext specifically refers to the number of bytes contained in the target ciphertext;

[0082] Step 2: extracting historical data transmission records of data transmission from the server to the target preset object, and extracting data transmission parameters from the historical transmission records; wherein the data transmission parameters include data transmission bandwidth utilization and transmission delay;

[0083] Step 3: Obtain a data block adjustment parameter using the input bandwidth utilization and the transmission delay, wherein the data block adjustment parameter is obtained by the following formula:

[0084]

[0085] Wherein, f represents the data block adjustment parameter; n represents the number of data transmissions included in the data transmission process in the historical transmission record; P i represents the bandwidth ratio of data transmission corresponding to the i-th data transmission; T i represents the data transmission duration corresponding to the i-th data transmission; T xi represents the theoretical data transmission duration corresponding to the i-th data transmission; ξ represents the compensation coefficient, and the compensation coefficient is obtained by the following formula:

[0086]

[0087] Wherein, n represents the number of data transmissions contained in the data transmission process in the historical transmission record; P i represents the bandwidth ratio of data transmission corresponding to the i-th data transmission; T i represents the data transmission duration corresponding to the i-th data transmission; P i-1 represents the bandwidth ratio of data transmission corresponding to the i-1th data transmission; T i-1 Indicates the data transmission duration corresponding to the i-1th data transmission;

[0088] Step 4: extract the minimum number of bytes from the security transmission requirements, and use the minimum number of bytes combined with the data block adjustment parameter to obtain the upper and lower limits of the number of bytes corresponding to each data block; wherein the upper and lower limits of the number of bytes are obtained by the following formula:

[0089]

[0090] Among them, C up and C down Respectively represent the upper and lower limits of the number of bytes corresponding to each data block; P max and P min They represent the maximum and minimum bandwidth utilization during data transmission respectively; P tx and P tyThey represent the bandwidth utilization corresponding to the maximum and minimum data transmission delays respectively;

[0091] Step 5: Divide the target ciphertext into multiple data blocks according to the upper byte limit and the lower byte limit;

[0092] Step 6: Randomly select a group of data block numbers as a challenge and send them to the target preset object.

[0093] The technical principle of the above technical solution is as follows: the server first extracts the data size of the target ciphertext, which usually refers to the number of bytes contained in the ciphertext. This step is to understand the total amount of data that needs to be transmitted and provide a basis for subsequent data block segmentation. The server extracts the historical data transmission records between the target preset object and extracts data transmission parameters from it, such as data transmission bandwidth utilization and transmission delay. These parameters reflect the actual situation of data transmission in the past and provide a reference for adjusting the data block size.

[0094] Using the extracted data transmission parameters (bandwidth utilization and transmission delay), the server will calculate the data block adjustment parameter. This parameter is a value that integrates the historical transmission situation and is used to guide the adjustment of the data block size. In addition to considering the historical transmission records, the server will also extract the minimum number of bytes from the security transmission requirements. These requirements ensure that the data block size is not too small to meet the security and integrity of data transmission.

[0095] Combining the data block adjustment parameters and the security transmission requirements, the server will calculate the upper and lower byte limits for each data block. These upper and lower limits ensure that the data block size is neither too large to cause low transmission efficiency nor too small to affect data security. Based on the set upper and lower byte limits, the server divides the target ciphertext into multiple data blocks. This step is the key to ensuring data transmission efficiency and security.

[0096] The server randomly selects a set of data block numbers as challenges and sends these challenges to the target preset object. This randomness makes it difficult for attackers to predict and intercept the complete data ciphertext, enhancing the security of data transmission. After receiving the challenge, the target preset object needs to provide a corresponding response or proof according to the requirements in the challenge. The server verifies the correctness of these responses to confirm the identity and authority of the target preset object.

[0097] Overall, the working principle of this technical solution is to analyze historical data transmission records and security transmission requirements, dynamically adjust the data block size, and use random challenges to verify the identity and permissions of the target preset objects, thereby ensuring the efficiency and security of data transmission.

[0098] The technical effect of the above technical solution is: by extracting the bandwidth utilization and transmission delay in the historical data transmission records, and calculating the data block adjustment parameters accordingly, the size of the data block can be dynamically adjusted. When the transmission bandwidth utilization is high and the delay is low, the data block size can be appropriately increased to improve the transmission efficiency; otherwise, the data block size can be reduced to cope with possible network fluctuations. This dynamic adjustment strategy helps to improve the overall data transmission efficiency. By using the bandwidth utilization data in the historical transmission records, the bandwidth status of the current network can be more accurately predicted. By reasonably setting the size of the data block, the bandwidth waste caused by the data block being too large or the increase in transmission overhead caused by the data block being too small can be avoided, thereby achieving optimal utilization of the network bandwidth. By setting the upper and lower limits of the data block size, it can be ensured that during the transmission process, the transmission failure or delay will not be caused by the data block being too large, and the transmission overhead and transmission time will not be increased due to the data block being too small. This strategy helps to maintain the stability of transmission and improve user experience.

[0099] On the other hand, by dividing the target ciphertext into multiple data blocks and randomly selecting a set of data block numbers as a challenge to send to the target preset object, it can be ensured that only part of the data blocks are exposed to the target preset object during the transmission process. Even if a data block is intercepted during the transmission process, the attacker cannot obtain the complete ciphertext information, thereby enhancing the security of the data. Since the data block numbers are randomly selected, the attacker cannot predict or control which data blocks will be transmitted. Therefore, even if the attacker can intercept some data blocks and tamper with them, it cannot have a substantial impact on the entire ciphertext. This random selection strategy helps to improve the data's anti-tampering ability. By requiring the target preset object to provide a corresponding response or proof based on the data block number in the challenge, the identity and authority of the target preset object can be verified. This authentication mechanism helps prevent unauthorized access and data leakage, further enhancing the security of the data.

[0100] An embodiment of the present invention uses a Laplace mechanism to implement privacy protection of individual data of users using a magnetic power strip based on the method of adding noise or disturbance, including:

[0101] According to the risk value of privacy leakage of user roles, different differential privacy encryption factors are set for the individual user data of the magnetic power strip. The differential privacy encryption factors are used as encryption parameters of the Laplace mechanism, and the Laplace mechanism is adopted to encrypt the individual user data of the magnetic power strip.

[0102] The technical principle of the above technical solution is: first, according to the user role and its corresponding privacy leakage risk value, different differential privacy encryption factors are set for the individual data of users using the magnetic suction plug strip. The user roles here may include administrators, ordinary users, etc., and different roles correspond to different privacy leakage risks. : The differential privacy encryption factor is used as the encryption parameter of the Laplace mechanism (usually called ε or the product of the inverse of the sensitivity Δf and ε). This parameter determines the size of the noise added to the data, thereby affecting the degree of privacy protection of the data. The Laplace mechanism is used to encrypt the individual data of users using the magnetic suction plug strip. Specifically, it is achieved by adding random noise that obeys the Laplace distribution to the original data. The probability density function of the Laplace distribution is: p(x) = exp(-|x| / b) / 2b, where b is the scale parameter, which is related to the encryption parameter. The final output is the data perturbed by the Laplace mechanism. While maintaining certain data distribution characteristics, these data reduce the direct leakage of individual privacy.

[0103] The technical effect of the above technical solution is: the Laplace mechanism achieves fuzzy processing of the original data by adding noise to the data, effectively reducing the possibility of attackers directly obtaining sensitive information from the data, thereby enhancing the privacy protection of individual user data. The technical solution can set different differential privacy encryption factors for different users according to their roles, and realize flexible adjustment of the degree of privacy protection. This can not only minimize the impact on data analysis while ensuring data security, but also provide different levels of privacy protection for different users or data according to actual needs. As a privacy protection method based on mathematical statistics, the Laplace mechanism is simple and easy to understand, and has good interpretability. This helps users or developers understand the working principle of the technology, so as to better apply and maintain the technology. Since the Laplace mechanism is suitable for the privacy protection of numerical data, the technical solution can be widely used in various scenarios that require the processing of numerical data, such as the transmission and storage of electricity consumption data.

[0104] In one embodiment of the present invention, before using the Laplace mechanism to encrypt the individual data of the user using the magnetic power strip, the method further includes:

[0105] The individual data of users using magnetic sockets are subjected to Laplace noise mechanism, and a noise value b is added to the original data model, where: GS is the global sensitivity and s is the privacy budget.

[0106] Furthermore, after the Laplace mechanism is used to implement privacy protection of individual data of users using the magnetic socket, the method further includes:

[0107] Security vulnerability discovery and repair work is carried out in preset cycles, including: introducing vulnerability scanning tools to scan the software and hardware systems of the magnetic power strip for security vulnerabilities; and using security patch updates to repair and upgrade discovered security vulnerabilities.

[0108] The technical principle of the above technical solution is: first, the global sensitivity (GS) is calculated according to the characteristics of the individual data of users using the magnetic power strip. Global sensitivity measures the maximum impact of changing a record (or a group of records) on the query results in a data set. Among them, the privacy budget (s) is a user-defined parameter that determines the degree of privacy protection. A smaller value of s means stronger privacy protection, but may result in reduced data availability. At the same time, based on the global sensitivity (GS) and the privacy budget (s), the noise value b is calculated. Then, this noise value b is added to the original data model according to the Laplace noise mechanism. The Laplace noise mechanism achieves privacy protection by adding random noise that obeys the Laplace distribution to the data.

[0109] After using the Laplace mechanism to protect the privacy of individual data of users using magnetic power strips, vulnerability scanning tools are introduced at preset periods (such as quarterly, annually, etc.) to conduct comprehensive security vulnerability scans on the software and hardware systems of magnetic power strips. For security vulnerabilities discovered during the scanning process, security patch updates are used to repair and upgrade them. These patches include code changes to fix known vulnerabilities, configuration changes to enhance system security, etc.

[0110] The technical effect of the above technical solution is: by adding Laplace noise to the original data, the original data can be effectively blurred, reducing the possibility of attackers directly obtaining sensitive information from the data, thereby enhancing the privacy protection of user individual data. By adjusting the value of the privacy budget (s), the balance between the degree of privacy protection and data availability can be flexibly adjusted according to actual needs. The Laplace noise mechanism is based on mathematical statistical principles, and its working principle is simple and easy to understand, with good interpretability.

[0111] Regular security vulnerability scanning and repair work can timely discover and repair security vulnerabilities in the system, thereby improving the overall security of the system. By promptly repairing known security vulnerabilities, the security risks caused by system vulnerabilities being exploited by attackers can be reduced. On the basis of using the Laplace mechanism to protect data privacy, further strengthening the system's security vulnerability management can provide more comprehensive security protection for user individual data.

[0112] In one embodiment of the present invention, after the blockchain receives the audit request submitted by the preset object, the method further includes:

[0113] The server receives the audit request sent by the preset object, generates partial aggregation evidence and integrity evidence corresponding to the audit request, generates a report on the audit results, and sends it to the preset object.

[0114] The technical principle of the above technical solution is: when a preset object (such as a power user, a regulatory agency, etc.) wishes to audit power consumption data, it will send an audit request to the server. This request may contain specific audit scope, time period, data field and other information.

[0115] After receiving the audit request, the server will retrieve the relevant electricity consumption data from the blockchain according to the content of the request. Then, the server will process the data and generate partial aggregate evidence. Partial aggregate evidence is usually an encrypted hash value of the aggregate calculation of the data (such as sum, average, etc.), which can prove the integrity and non-tampering of the data, while hiding the specific original data value and protecting the privacy of the data. In addition to partial aggregate evidence, the server will also generate integrity evidence. Integrity evidence usually includes some additional information, such as the source of the data, timestamp, signature, etc., to prove that the source of the data is reliable, the timestamp is correct, and the data has not been tampered with during transmission. The server integrates the generated partial aggregate evidence and integrity evidence into a report on the audit results. This report may also contain other information, such as the scope, time, and personnel of the audit. The server will then send this report to the preset object for review and verification.

[0116] The technical effect of the above technical solution is that by generating partial aggregation evidence and integrity evidence, the server can provide sufficient information for the preset object to audit without exposing the original data. This avoids the need to directly transmit a large amount of original data and improves the efficiency of the audit.

[0117] Partial aggregation evidence and integrity evidence are generated based on encrypted hash values, which hide the specific original data values, thereby protecting the privacy of the data. The preset object can only verify the integrity and non-tampering of the data, but cannot obtain the specific original data.

[0118] Since both partial aggregation evidence and integrity evidence are generated based on blockchain technology, they are tamper-proof and traceable. This enhances the credibility and fairness of the audit results, allowing the preset objects to trust the audit results more.

[0119] By providing audit result reports to the preset objects, the server can increase the transparency and verifiability of the system. The preset objects can verify the integrity and non-tampering of the data based on the information in the reports, thus ensuring the accuracy of the audit results.

[0120] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A data security detection method for a magnetic power strip capable of displaying power consumption, characterized in that: include: The advanced encryption standard algorithm is used to encrypt the power consumption data stored inside the magnetic suction socket; wherein, a power consumption meter for monitoring the power consumption data is provided in the socket body of the magnetic suction socket, the power consumption meter is electrically connected to each socket seat in the magnetic suction socket, the power consumption meter is electrically connected to a display screen for displaying the power consumption data, and the display screen is mounted on the surface of the socket body of the magnetic suction socket; Introduce strong identity authentication mechanisms and access control strategies, including: adopt multi-factor identity authentication technology, combine passwords and user biometrics to authenticate users; establish access control strategies to finely manage access to the electricity consumption data based on user roles and permissions to prevent unauthorized data access; The establishing of access control policies to perform refined management of access to the power consumption data according to user roles and permissions includes: Generate a set of attributes required for attribute encryption and a conditional expression for accessing the electricity consumption data according to the access permission requirements of the electricity consumption data; The attribute set is formed into a parameter sequence in descending order according to the information exchange standard code value; a function of generating a conditional expression for accessing the power consumption data based on the parameter sequence; The function of the conditional expression for accessing the power consumption data satisfies the following formula: H(Arran)∈F; wherein H is a hash function, Arran is a conditional expression for accessing the power consumption data, and F is a multiplication cyclic group whose order is a prime number; Generate a corresponding user private key set according to the user's role, the user's biometrics and the attribute set; generate a random string based on the user private key set, wherein the random string is used for data auditing; Generate a target ciphertext according to the security parameters, the access structure and the conditional expression for accessing the power consumption data; optimize the access control strategy through the security parameters, the user private key and the target ciphertext; Introduce a data audit system based on blockchain technology, and build a decentralized power consumption data audit network to achieve real-time monitoring and auditing of the power consumption data; Based on the method of adding noise or disturbance, the Laplace mechanism is adopted to realize the privacy protection of the individual data of the user who uses the magnetic suction power strip.

2. The method for detecting data security of a magnetic power strip capable of displaying power consumption according to claim 1, characterized in that: The generating a corresponding user private key set according to the user's role, the user's biometric features and the attribute set includes: Extracting feature data through the user's biometric features; randomly determining a first private key in a private key box corresponding to the user based on the feature data, the user's role and the attribute set; Calculating a random number that differs from the characteristic data by a preset error; determining a random private key according to the random number, and calculating a hash value of the random private key; when it is determined that the hash value of the random private key is the same as a preset hash value, using the random private key as a second private key; Determine the user private key set SecretKey based on the first private key, the second private key and the attribute set; <h2 style=";text-align:left;direction:ltr">SecretKey = {a1,a2,{b1<h2 style=";text-align:left;direction:ltr"> i,j <h2 style=";text-align:left;direction:ltr"> b2<h2 style=";text-align:left;direction:ltr"> i,j <h2 style=";text-align:left;direction:ltr"> ,b3<h2 style=";text-align:left;direction:ltr"> i,j <h2 style=";text-align:left;direction:ltr">}<h2 style=";text-align:left;direction:ltr"> (i,j)∈E <h2 style=";text-align:left;direction:ltr">} Where a1 is the first private key; a2 is the second private key; b1 i,j ,b2 i,j ,b3 i,j are three private attribute keys randomly selected from the attribute set, and E is the attribute set.

3. The method for detecting data security of a magnetic power strip capable of displaying power consumption according to claim 2, characterized in that: The data audit system based on blockchain technology is introduced to realize real-time monitoring and auditing of the electricity consumption data by building a decentralized electricity consumption data audit network, including: The preset object requests to upload the power consumption data, constructs an authentication tag matching the power consumption data based on a hash function, and stores the authentication tag in the blockchain; The preset object uploads the target ciphertext to a server, and the server performs consistency detection on the target ciphertext and the authentication tag; The preset object sends the challenge node and other nodes to the server in a certain order as a response. After the server receives the response set of the preset object, if the proof is passed, the preset object is allowed to upload the public key; The blockchain receives the audit request submitted by the preset object, generates challenge information, and sends the challenge information to a random node selected by the blockchain; the random node performs verification and creates an audit log.

4. The method for detecting data security of a magnetic power strip capable of displaying power consumption according to claim 3, characterized in that: Before the preset object sends the challenge node and other nodes to the server in a certain order as a response, the method further includes: The server divides the target ciphertext into a plurality of data blocks, and randomly selects a group of data block numbers as a challenge and sends them to the target preset object.

5. The method for detecting data security of a magnetic power strip capable of displaying power consumption according to claim 4, characterized in that: The method based on adding noise or disturbance and using Laplace mechanism to realize privacy protection of individual data of users using the magnetic power strip includes: According to the risk value of privacy leakage of the user role, different differential privacy encryption factors are set for the user individual data of the magnetic socket strip, and the differential privacy encryption factors are used as encryption parameters of the Laplace mechanism. The Laplace mechanism is adopted to encrypt the user individual data using the magnetic socket strip.

6. The method for detecting data security of a magnetic power strip capable of displaying power consumption according to claim 5, characterized in that: Before using the Laplace mechanism to encrypt the individual data of the user who uses the magnetic socket strip, the method further includes: The individual data of users using the magnetic socket strip is subjected to the Laplace noise mechanism, and a noise value b is added to the original data model, where: GS is the global sensitivity and s is the privacy budget.

7. The method for detecting data security of a magnetic power strip capable of displaying power consumption according to claim 1, characterized in that: The user's biological characteristics include one or more of facial characteristics, fingerprint characteristics and iris characteristics.

8. The method for detecting data security of a magnetic power strip capable of displaying power consumption according to claim 1, characterized in that: During the transmission of the power consumption data, the SSL / TLS protocol is used for encrypted transmission.

9. The method for detecting data security of a magnetic power strip capable of displaying power consumption according to claim 1, characterized in that: After the Laplace mechanism is used to implement privacy protection of individual data of users using the magnetic power strip, the method further includes: Security vulnerability discovery and repair work is carried out at a preset cycle, including: introducing vulnerability scanning tools to scan the software system and hardware system of the magnetic socket for security vulnerabilities; and repairing and upgrading the discovered security vulnerabilities by updating security patches.

10. The method for detecting data security of a magnetic power strip capable of displaying power consumption according to claim 3, characterized in that: After the blockchain receives the audit request submitted by the preset object, the method further includes: The server receives the audit request sent by the preset object, generates partial aggregation evidence and integrity evidence corresponding to the audit request, generates a report on the audit results, and sends it to the preset object.