Authorization application method, device and equipment for unlocking key of transformer substation and storage medium

By using Bloom filter and hash function processing in substation unlocking key authorization, the authorization QR code is generated and parsed, which solves the shortcomings of QR code in storage and security, improves the security and efficiency of the authorization process, and provides An efficient and safe unlocking key management solution.

CN118797618APending Publication Date: 2024-10-18CYG CONTRON
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410999023.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-24
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

The existing QR code has problems of limited capacity and security risks in substation unlocking key authorization, resulting in complex management and low efficiency.

Method used

Bloom filters are used to save unlocking key information, and authorization QR codes are generated through hash operations. The unlocking keys are obtained using QR code storage and analysis to ensure data tamper resistance and information privacy protection.

Benefits of technology

It improves the security and efficiency of the unlocking key authorization process, simplifies the operation process, can store a large amount of authorization information in a limited storage space, reduces the number of QR codes, and improves work efficiency and system performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118797618A_ABST
    Figure CN118797618A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of transformer substation overhaul and maintenance, and discloses an authorization application method, device and equipment for transformer substation unlocking keys and a storage medium. Based on selected first unlocking keys needing authorization application, a first bloom filter is adopted to store all the first unlocking keys, and a second bloom filter is adopted to store all the first unlocking keys; generating an authorized two-dimensional code according to the first Bloom filter; in response to scanning the authorized two-dimensional code, analyzing the authorized two-dimensional code to obtain a second Bloom filter; obtaining a plurality of second unlocking keys according to the second Bloom filter; generating an unlocking key authorization application form according to all the second unlocking keys; and when the authorization approval of the unlocking key authorization application form is passed, generating an authorization code, and obtaining the authorization of the second unlocking key according to the authorization code. The high-efficiency storage capability of the Bloom filter is utilized to improve the storage capacity limitation of the authorization information, and the tamper-proofing and information privacy protection of the two-dimensional code data are ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of substation maintenance and repair, and in particular relates to a method, device, equipment and storage medium for applying for authorization of a substation unlocking key. Background Art

[0002] The management and distribution of unlocking keys is an important part of the safety management of substations. The traditional distribution method of unlocking keys has problems such as complex management, poor security, and low efficiency. With the development of digital and intelligent technology, the use of QR code technology for unlocking key authorization has gradually become a trend.

[0003] However, the existing QR code generation method has the following problems in data storage and verification: 1. The physical capacity of the QR code is limited. When a large amount of authorization information needs to be stored, one QR code will not be able to accommodate all the data. In this case, multiple QR codes need to be generated in batches, which increases the complexity of management and use. 2. During the generation and transmission of the QR code, the data may be tampered with or forged, posing a security risk. Summary of the invention

[0004] The purpose of the present invention is to provide a method, device, equipment and storage medium for applying for authorization of a substation unlocking key, so as to solve the problem of limited capacity and potential safety hazards when using a QR code to authorize the unlocking key.

[0005] The first aspect of the present invention discloses a method for applying for authorization of a substation unlocking key, comprising:

[0006] Based on the selected first unlocking key for which authorization is required, a first Bloom filter is used to store all the first unlocking keys, and an authorization QR code is generated according to the first Bloom filter;

[0007] In response to scanning the authorization QR code:

[0008] Parsing the authorization QR code to obtain a second Bloom filter;

[0009] Obtaining a plurality of second unlocking keys according to the second Bloom filter;

[0010] generating an unlocking key authorization application form according to all the second unlocking keys;

[0011] When the unlocking key authorization application form is approved, an authorization code is generated, and authorization for the second unlocking key is obtained according to the authorization code.

[0012] In some embodiments, the using a first Bloom filter to save all the first unlocking keys includes:

[0013] All the first unlocking keys are traversed, a hash operation is performed on the current first unlocking key to obtain a hash value, and the hash value is used as an index to set the value of the corresponding bit of the first Bloom filter.

[0014] In some embodiments, generating an authorization QR code according to the first Bloom filter includes:

[0015] Obtain a first byte array according to all bit values ​​of the first Bloom filter;

[0016] Encoding the first byte array into first text data;

[0017] The authorization QR code is generated according to the first text data.

[0018] In some embodiments, parsing the authorization QR code to obtain a second Bloom filter includes:

[0019] Parsing the authorization QR code to obtain second text data;

[0020] Decoding the second text data into a second byte array;

[0021] The bit value of the second Bloom filter is set according to the second byte array to obtain the second Bloom filter.

[0022] In some embodiments, obtaining authorization for the second unlocking key according to the authorization code includes:

[0023] Entering the authorization code into the substation unlocking system;

[0024] When the substation unlocking system verifies that the authorization code is valid, authorization for the second unlocking key is obtained.

[0025] In some embodiments, obtaining a plurality of second unlocking keys according to the second Bloom filter includes:

[0026] Perform hash operations on all unlocking keys to obtain the hash value corresponding to each unlocking key;

[0027] The hash values ​​are traversed, and if the current hash value exists in the second Bloom filter, the unlocking key corresponding to the current hash value is set as the second unlocking key.

[0028] A second aspect of the present invention discloses a device for applying for authorization of a substation unlocking key, comprising:

[0029] A QR code generation module, configured to use a first Bloom filter to save all the first unlocking keys based on the selected first unlocking key that needs to be authorized, and generate an authorization QR code according to the first Bloom filter;

[0030] A decoding module, used for parsing the authorization QR code to obtain a second Bloom filter; obtaining a plurality of second unlocking keys according to the second Bloom filter; and generating an unlocking key authorization application form according to all the second unlocking keys;

[0031] The authorization code module is used to generate an authorization code when the unlocking key authorization application form is approved, and obtain authorization for the second unlocking key according to the authorization code.

[0032] In some embodiments, the QR code generation module also includes an encoding unit, which is used to obtain a first byte array according to all bit values ​​of the first Bloom filter, encode the first byte array into first text data, and generate the authorization QR code according to the first text data.

[0033] The third aspect of the present invention discloses an electronic device, comprising a memory storing executable program code and a processor coupled to the memory; the processor calls the executable program code stored in the memory to execute any one of the above-mentioned substation unlocking key application authorization methods.

[0034] A fourth aspect of the present invention discloses a computer-readable storage medium storing a computer program, wherein the computer program enables a computer to execute any one of the above-mentioned methods for applying for authorization of a substation unlocking key.

[0035] The beneficial effect of the present invention is that the information of the first unlocking key that needs to be authorized is inserted into the first Bloom filter, and an authorization QR code is generated according to the first Bloom filter; then the second unlocking key is obtained by scanning and parsing the authorization QR code, and the second unlocking key is used to generate an unlocking key authorization application form, thereby obtaining authorization. The efficient storage capacity of the Bloom filter is utilized to solve the capacity limitation problem of traditional QR codes in storing a large amount of unlocking key authorization information. When the user needs to apply for a large number of unlocking key authorizations, only one QR code needs to be scanned, which simplifies the operation process and improves work efficiency. In addition, since the information of the first unlocking key needs to be processed using multiple hash functions when inserted into the Bloom filter, the tamper-proof and information privacy protection of the QR code data are ensured, and the security of the authorization process is increased. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] The accompanying drawings herein show specific examples of the technical solutions described in the present invention, and together with the specific implementation methods, constitute a part of the specification, and are used to explain the technical solutions, principles and effects of the present invention.

[0037] Unless otherwise specified or defined, the same reference numerals in different drawings represent the same or similar technical features, and the same or similar technical features may also be represented by different reference numerals.

[0038] Figure 1 is a flow chart of a method for applying for authorization of a substation unlocking key according to an embodiment of the present invention;

[0039] Figure 2 is a flow chart of generating an authorization QR code according to an embodiment of the present invention;

[0040] Figure 3 This is a flow chart of parsing the authorization QR code to obtain the second Bloom filter according to an embodiment of the present invention;

[0041] Figure 4 is a flow chart of obtaining a second unlocking key according to an embodiment of the present invention;

[0042] Figure 5 It is a structural schematic diagram of a device for applying for authorization of a substation unlocking key according to an embodiment of the present invention;

[0043] Figure 6 It is a structural schematic diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0044] Unless otherwise specified or defined, all technical and scientific terms used herein have the same meaning as those generally understood by those skilled in the art. In the case of combining the technical solution of the present invention with realistic scenarios, all technical and scientific terms used herein may also have meanings corresponding to the purpose of implementing the technical solution of the present invention. The "first, second..." used herein is only used to distinguish the names and does not represent a specific quantity or order. The term "and / or" used herein includes any and all combinations of one or more related listed items.

[0045] It should be noted that when a component is considered to be "fixed to" another component, it can be directly fixed to the other component or there can be a central component; when an component is considered to be "connected to" another component, it can be directly connected to the other component or there can be a central component at the same time; when an component is considered to be "installed on" another component, it can be directly installed on the other component or there can be a central component at the same time. When an component is considered to be "set on" another component, it can be directly set on the other component or there can be a central component at the same time.

[0046] Unless otherwise specified or defined, the "said" and "the" used in this document refer to the technical features or technical contents mentioned or described before the corresponding position, and the technical features or technical contents may be the same as or similar to the technical features or technical contents mentioned therein. In addition, the terms "including" and "having" and any variations thereof used in this document are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units inherent to these processes, methods, products or devices.

[0047] In view of the problems of complex management, poor security, low efficiency, insufficient capacity, etc. in the application of substation unlocking key by existing two-dimensional code technology, the present invention proposes a substation unlocking key application authorization method, which combines a Bloom filter with the unlocking key for which authorization is applied, inserts the unlocking key information for which authorization is applied into the Bloom filter, and generates a two-dimensional code according to the bit state of the Bloom filter. By utilizing the efficient storage capacity of the Bloom filter, the capacity limitation problem of traditional two-dimensional codes in storing a large amount of unlocking key authorization information is solved. When a user needs to apply for a large amount of unlocking key authorization, he only needs to scan a two-dimensional code, which simplifies the operation process and improves work efficiency. In addition, since multiple hash functions are used for processing when the unlocking key information is inserted into the Bloom filter, the anti-tampering and information privacy protection of the two-dimensional code data are ensured, and the security of the authorization process is increased. It provides an efficient, safe and convenient solution for the management of substation unlocking keys.

[0048] The embodiment of the present invention deploys an authorization system, and a method for applying for authorization of a substation unlocking key is run on the authorization system, which is used to implement the application authorization of multiple unlocking keys at one time. The method can be implemented by computer programming. The execution subject of the method can be an electronic device such as a computer, a laptop, a tablet computer, a mobile terminal, or an application authorization device for a substation unlocking key embedded in an electronic device, and the present invention does not limit this. In order to facilitate the understanding of the present invention, the specific embodiments of the present invention will be described in more detail below with reference to the drawings of the specification.

[0049] like Figure 1 As shown, the method comprises the following steps:

[0050] Step S100: Based on the selected first unlocking key that needs to be authorized, a first Bloom filter is used to save all first unlocking keys, and an authorization QR code is generated according to the first Bloom filter;

[0051] The selected first unlocking key that needs to be authorized refers to the unlocking key that needs to be authorized that the user selects through the computer interface or the mobile phone APP interface. For example: the user selects the unlocking key that needs to be authorized in the key management system, and then the key management system sends all the first unlocking keys selected by the user to the authorization system. Obviously, the function of selecting the unlocking key that needs to be authorized can also be directly provided in the authorization system. Among them, the number of first unlocking keys is not limited. In this embodiment, multiple unlocking keys are selected to complete the authorization of multiple unlocking keys at one time.

[0052] After obtaining the selected first unlocking key that needs to be authorized, first set the size of the first Bloom filter and the number of hash functions, and set all bits of the first Bloom filter to 0. Then traverse all the first unlocking keys, use the key number and / or key description as the unique identifier of the first unlocking key, perform a hash operation on the current first unlocking key, obtain the hash value, use the hash value as the index, and set the value of the corresponding bit of the first Bloom filter to 1. After the traversal is completed, all the first unlocking keys are saved in the first Bloom filter.

[0053] During the hash operation, multiple hash functions are used to process the information of the first unlocking key, ensuring the accuracy and reliability of data insertion and query, reducing the probability of conflict, improving the performance and security of the authorization system, and at the same time ensuring the tamper-proofing and information privacy protection of the QR code data, increasing the security of the authorization process, providing higher security for unlocking key management, and enhancing the security and reliability of the unlocking key authorization process.

[0054] All bit values ​​of the first Bloom filter form the bit state of the first Bloom filter, and then the authorization QR code is generated according to the bit state of the first Bloom filter.

[0055] like Figure 2 As shown, the specific steps of generating the authorization QR code in this embodiment include:

[0056] Step S110: Obtain a first byte array according to all bit values ​​of the first Bloom filter;

[0057] Step S120: Encode the first byte array into first text data;

[0058] Step S130: Generate an authorization QR code according to the first text data.

[0059] The bit state of the first Bloom filter (i.e., the bit value corresponding to each bit) is read, all the bit values ​​of the first Bloom filter are converted into a first byte array, and the first byte array is encoded into first text data through Base64 encoding, and then an authorization QR code is generated according to the first text data. Among them, Base64 encoding and generating a QR code according to text data are conventional technologies in the art and will not be described in detail here.

[0060] By combining the Bloom filter with the unlocking key for which authorization is requested, the unlocking key information for which authorization is requested is inserted into the Bloom filter, and the authorization QR code is generated based on the Bloom filter. The efficient storage capacity of the Bloom filter is utilized to solve the capacity limitation problem of traditional QR codes in storing a large amount of unlocking key authorization information. This effectively solves the problem of insufficient QR code storage space when a large number of unlocking keys are requested for authorization.

[0061] After the authorization QR code is generated, the user scans the authorization QR code through a mobile phone app or other device, and sends the scanned image information of the QR code to the authorization system, and the authorization system then executes steps S200 to S500.

[0062] Step S200: Parse the authorization QR code to obtain a second Bloom filter;

[0063] The size of the second Bloom filter and the number of hash functions are set, all bits of the second Bloom filter are set to 0, the image information of the received authorization QR code is parsed and decoded, the bit state of the second Bloom filter is set, and the second Bloom filter is obtained.

[0064] like Figure 3 As shown, in this embodiment, the specific steps include:

[0065] Step S210: parsing the authorization QR code to obtain second text data;

[0066] Step S220: Decode the second text data into a second byte array;

[0067] Step S230: setting the bit value of the second Bloom filter according to the second byte array to obtain the second Bloom filter.

[0068] First, use a QR code decoding library, such as qrcode or zxing, to parse the image information of the authorization QR code and extract the second text data; if Base64 encoding is used when generating the authorization QR code, the second text data is Base64 encoded and needs to be decoded into a second byte array. Then create a second Bloom filter, set all bits of the second Bloom filter to 0, and set the bit value of the second Bloom filter according to the second byte array.

[0069] Step S300: obtaining a plurality of second unlocking keys according to the second Bloom filter;

[0070] According to the bit state of the second Bloom filter, all unlocking keys are searched. When an unlocking key is found in the second Bloom filter, it indicates that the unlocking key is the second unlocking key that needs to be authorized. After the search is completed, the set formed by all second unlocking keys is the same as the set formed by all first unlocking keys, the number of the two sets is the same, and any second unlocking key has a corresponding first unlocking key.

[0071] like Figure 4 As shown, the specific steps of obtaining the second unlocking key in this embodiment include:

[0072] Step S310: performing a hash operation on all unlocking keys to obtain a hash value corresponding to each unlocking key;

[0073] Step S320: traverse the hash values, and if the current hash value exists in the second Bloom filter, set the unlocking key corresponding to the current hash value as the second unlocking key.

[0074] Perform hash processing on the unique identifiers of all unlocking keys in the authorization system or key management system (such as key numbers and / or key descriptions) to generate corresponding hash values. Check whether the generated hash value is in the second Bloom filter, that is, if the corresponding bit of the second Bloom filter exists and has a value of 1 according to the hash value index generated by the unlocking key, then the unlocking key is the second unlocking key that the user needs to apply for authorization to use.

[0075] By utilizing the Bit structure property of the Bloom filter, a large amount of unlocking authorization information can be stored in a limited storage space. When a user needs to apply for a large number of unlocking key authorizations, he only needs to scan a QR code, which simplifies the operation process and improves work efficiency. At the same time, the fast processing capability of the Bloom filter enables the system to respond to the user's authorization application and verification request in real time, improving system performance and user experience, and improving the work efficiency of unlocking key authorization.

[0076] Moreover, the size of the Bloom filter and the number of hash functions can be adjusted according to actual needs, and can flexibly cope with the authorization information storage requirements of different scales. It has high adaptability and scalability, and can adapt to the requirements of different substation unlocking key authorization scales.

[0077] Step S400: generating an unlocking key authorization application form according to all second unlocking keys;

[0078] Step S500: When the unlocking key authorization application form is approved, an authorization code is generated, and authorization for the second unlocking key is obtained according to the authorization code.

[0079] After parsing the second unlocking key that needs to be authorized, an unlocking key authorization application form is generated; the user submits the unlocking key authorization application form and enters the authorization application process. After the authorization is approved, an authorization code is automatically generated. After the user fills in the correct authorization code on the system, the unlocking key authorization operation is completed. Specifically, after the unlocking key authorization application form is approved, a unique authorization code is generated and returned to the user; the user enters the correct authorization code in the substation unlocking system; the substation unlocking system verifies the validity of the authorization code. If the verification is successful, the authorization of the first unlocking key is completed.

[0080] In summary, the present invention applies Bloom filter, hash function and QR code technology, uses Bloom filter to store and verify unlocking key authorization information, and creatively solves the shortcomings of traditional QR code application in unlocking key authorization in terms of capacity and security through QR code generation and parsing. By optimizing the application and authorization process of unlocking keys, the capacity limitation and security problems in the prior art are solved, the system performance and user experience are improved, and it has broad application prospects and significant practical value.

[0081] like Figure 5 As shown, based on the above-mentioned substation unlocking key application authorization method, the embodiment of the present invention also discloses a substation unlocking key application authorization device, including:

[0082] A QR code generating module 610 is used to use a first Bloom filter to save all the first unlocking keys based on the selected first unlocking keys that need to be authorized, and to generate an authorization QR code according to the first Bloom filter;

[0083] The decoding module 620 is used to parse the authorization QR code to obtain a second Bloom filter; obtain a plurality of second unlocking keys according to the second Bloom filter; and generate an unlocking key authorization application form according to all the second unlocking keys;

[0084] The authorization code module 630 is used to generate an authorization code when the unlocking key authorization application form is approved, and obtain authorization for the first unlocking key according to the authorization code.

[0085] In some embodiments, the QR code generation module also includes an encoding unit, which is used to obtain a first byte array according to all bit values ​​of the first Bloom filter, encode the first byte array into first text data, and generate the authorization QR code according to the first text data.

[0086] like Figure 6As shown, an embodiment of the present invention also discloses an electronic device, including a memory 401 storing executable program code and a processor 402 coupled to the memory 401; wherein the processor 402 calls the executable program code stored in the memory 401 to execute the application authorization method for the substation unlocking key described in the above embodiments.

[0087] An embodiment of the present invention further discloses a computer-readable storage medium storing a computer program, wherein the computer program enables a computer to execute the method for applying for authorization of a substation unlocking key described in the above embodiments.

[0088] The purpose of the above embodiments is to exemplarily reproduce and deduce the technical solution of the present invention, and to fully describe the technical solution, purpose and effect of the present invention. Its purpose is to make the public understand the disclosed content of the present invention more thoroughly and comprehensively, and it does not limit the scope of protection of the present invention.

[0089] The above embodiments are not exhaustive enumerations of the present invention, and there may be multiple other implementations not listed. Any replacement and improvement made without violating the concept of the present invention shall fall within the protection scope of the present invention.

Claims

1. A method for applying for authorization of a substation unlocking key, characterized in that: include: Based on the selected first unlocking key for which authorization is required, a first Bloom filter is used to store all the first unlocking keys, and an authorization QR code is generated according to the first Bloom filter; In response to scanning the authorization QR code: Parsing the authorization QR code to obtain a second Bloom filter; Obtaining a plurality of second unlocking keys according to the second Bloom filter; generating an unlocking key authorization application form according to all the second unlocking keys; When the unlocking key authorization application form is approved, an authorization code is generated, and authorization for the second unlocking key is obtained according to the authorization code.

2. The method for applying for and authorizing a substation unlocking key according to claim 1, characterized in that: The using the first Bloom filter to save all the first unlocking keys includes: All the first unlocking keys are traversed, a hash operation is performed on the current first unlocking key to obtain a hash value, and the hash value is used as an index to set the value of the corresponding bit of the first Bloom filter.

3. The method for applying for and authorizing a substation unlocking key according to claim 1, characterized in that: The generating an authorization QR code according to the first Bloom filter includes: Obtain a first byte array according to all bit values ​​of the first Bloom filter; Encoding the first byte array into first text data; The authorization QR code is generated according to the first text data.

4. The method for applying for authorization of a substation unlocking key according to claim 3, characterized in that: The step of parsing the authorization QR code to obtain a second Bloom filter includes: Parsing the authorization QR code to obtain second text data; Decoding the second text data into a second byte array; The bit value of the second Bloom filter is set according to the second byte array to obtain the second Bloom filter.

5. The method for applying for and authorizing a substation unlocking key according to claim 1, characterized in that: The obtaining authorization of the second unlocking key according to the authorization code includes: Entering the authorization code into the substation unlocking system; When the substation unlocking system verifies that the authorization code is valid, authorization for the second unlocking key is obtained.

6. The method for applying for and authorizing a substation unlocking key according to claim 1, characterized in that: The obtaining a plurality of second unlocking keys according to the second Bloom filter includes: Perform hash operations on all unlocking keys to obtain the hash value corresponding to each unlocking key; The hash values ​​are traversed, and if the current hash value exists in the second Bloom filter, the unlocking key corresponding to the current hash value is set as the second unlocking key.

7. A device for applying for authorization of a substation unlocking key, characterized in that: include: A QR code generation module, configured to use a first Bloom filter to save all the first unlocking keys based on the selected first unlocking key that needs to be authorized, and generate an authorization QR code according to the first Bloom filter; A decoding module, used for parsing the authorization QR code to obtain a second Bloom filter; Obtaining a plurality of second unlocking keys according to the second Bloom filter; generating an unlocking key authorization application form according to all the second unlocking keys; The authorization code module is used to generate an authorization code when the unlocking key authorization application form is approved, and obtain authorization for the second unlocking key according to the authorization code.

8. The device for applying for authorization of a substation unlocking key according to claim 7, characterized in that: The two-dimensional code generation module also includes an encoding unit, which is used to obtain a first byte array according to all bit values ​​of the first Bloom filter, encode the first byte array into first text data, and generate the authorization two-dimensional code according to the first text data.

9. An electronic device, characterized in that: It comprises a memory storing executable program code and a processor coupled to the memory; the processor calls the executable program code stored in the memory to execute the application authorization method for the substation unlocking key as described in any one of claims 1 to 6.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program enables a computer to execute the method for applying for authorization of a substation unlocking key according to any one of claims 1 to 6.