A method, device, equipment and storage medium for shielding sensitive word data
By setting sensitive word character identification codes in the blockchain network and matching target data, sensitive word data can be shielded, solving the problem of low visibility of sensitive word information in the blockchain and achieving more efficient sensitive word information management.
Patent Information
- Application Number
- CN202210928429.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-03
- Publication Date
- 2025-09-09
- Estimated Expiration
- 2042-08-03
AI Technical Summary
Information containing sensitive words in existing blockchains has low visibility to users and cannot be effectively blocked.
Sensitive word data is set on the main chain to generate sensitive word character identification codes, which are distributed in the main-subchain network. The sensitive word character identification codes are obtained through the subchain using the protocol of the regulatory organization, and the sensitive word character identification codes in the target data are matched. The sensitive word data is shielded and the second target data is generated and presented.
It improves the visibility of sensitive word information in the blockchain network and solves the problem of low visibility of sensitive words to users.
Smart Images

Figure CN115495621B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of blockchain technology, and in particular to a method, device, equipment, and computer-readable storage medium for shielding sensitive word data. Background Art
[0002] Blockchain is essentially a globally shared database and is currently being widely applied in various fields, such as finance, securities, healthcare, and supply chain. A blockchain is a chain of data blocks linked together using cryptographic methods. Each block contains specific information used to verify its validity and generate the next block. Blockchains feature global data sharing. While private information is encrypted, blockchain data is publicly available and can be queried by anyone through public interfaces. Within each master and slave blockchain network, information containing sensitive terms may appear. This information is publicly available and cannot be deleted due to the immutable nature of blockchains. Therefore, how to control the low user visibility of information containing sensitive terms in existing blockchains has become a pressing technical challenge. Summary of the Invention
[0003] The main purpose of the present invention is to provide a method, device, equipment and computer-readable storage medium for shielding sensitive word data, aiming to solve the technical problem of low visibility of information containing sensitive words to users in existing blockchains.
[0004] To achieve the above-mentioned objectives, the present invention provides a method for shielding sensitive word data, the shielding method comprising: setting sensitive word data through a main chain, generating a sensitive word character identification code corresponding to the sensitive word data, and distributing the sensitive word character identification code to a network consisting of the main chain and the sub-chain through a regulatory organization, and obtaining the sensitive word character identification code through the sub-chain based on the agreement of the regulatory organization; converting first target data into a first target character identification code, and matching the sensitive word character identification code with the first target character identification code through the network; shielding the sensitive word data in the first target data based on the matching result of the sensitive word character identification code and the first target character identification code, generating second target data, receiving the second target data through the main chain and the sub-chain respectively, and presenting the second target data to the user end.
[0005] Furthermore, before setting the sensitive word data through the main link and generating the sensitive word character identification code corresponding to the sensitive word data, the method further includes:
[0006] The sensitive word data in the sensitive word database is obtained through the main link, and based on the sensitive word data, the sensitive word database is generated and updated, wherein the sensitive word database is derived from the network.
[0007] Furthermore, the sensitive word data in the sensitive word database is obtained through the main link, and based on the sensitive word data, the sensitive word database is generated and updated, wherein, after the sensitive word database is derived from the network, the method further includes:
[0008] According to the source of the sensitive word data, a shielding priority of the sensitive word data is set.
[0009] Furthermore, the priority of shielding is: the priority of shielding the sensitive word data set through the main link is greater than the priority of shielding the sensitive word data obtained from the sensitive word database through the main link.
[0010] Furthermore, based on the matching result of the sensitive word character recognition code and the first target character recognition code, the sensitive word data in the first target data is shielded, second target data is generated, the second target data is received through the main chain and the sub-chain respectively, and the second target data is presented to the user end, including:
[0011] Parsing the first target data through the sub-chain to obtain a first target character recognition code corresponding to the first target data;
[0012] Matching the first target character recognition code with the sensitive word character recognition code to obtain an overlapping portion of the first target character recognition code and the sensitive word character recognition code;
[0013] If the number of the overlapping character recognition codes exceeds a preset shielding threshold, the data corresponding to the overlapping character recognition codes are used as sensitive word data to be shielded, and the sensitive word data to be shielded is shielded;
[0014] The shielded second target data is received through the sub-link, and after obtaining a calling instruction from the user, the second target data is presented to the user terminal.
[0015] Furthermore, after comparing the character identification code with all the character identification codes in the sensitive word library, the method further includes:
[0016] If the number of the overlapping character recognition codes does not exceed the preset shielding threshold, the first target data does not contain the sensitive word data.
[0017] In addition, to achieve the above-mentioned purpose, the present invention also provides a device for shielding sensitive word data, which includes a sensitive word setting module, which is used to set sensitive word data through the main chain, generate a sensitive word character recognition code corresponding to the sensitive word data, and distribute the sensitive word character recognition code to the network composed of the main chain and the sub-chain through the regulatory organization, and obtain the sensitive word character recognition code through the sub-chain based on the agreement of the regulatory organization; a data sending module, which is used to convert the first target data into a first target character recognition code, and match the sensitive word character recognition code with the first target character recognition code through the network; a sensitive word shielding module, which is used to shield the sensitive word data in the first target data based on the matching result of the sensitive word character recognition code and the first target character recognition code, generate second target data, receive the second target data through the main chain and the sub-chain respectively, and present the second target data to the user end.
[0018] In addition, to achieve the above-mentioned purpose, the present invention also provides a sensitive word data shielding device, which includes a processor, a memory, and a sensitive word data shielding program stored on the memory and executable by the processor, wherein when the sensitive word data shielding program is executed by the processor, the steps of the sensitive word data shielding method as described above are implemented.
[0019] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, on which a sensitive word data shielding program is stored, wherein when the sensitive word data shielding program is executed by a processor, the steps of the sensitive word data shielding method as described above are implemented.
[0020] The present invention provides a method for shielding sensitive word data, the method sets sensitive word data through a main chain, generates a sensitive word character recognition code corresponding to the sensitive word data, and distributes the sensitive word character recognition code to the network composed of the main chain and the sub-chain through a regulatory organization, obtains the sensitive word character recognition code through the sub-chain based on the agreement of the regulatory organization; converts the first target data into a first target character recognition code, and matches the sensitive word character recognition code with the first target character recognition code through the network; based on the matching result of the sensitive word character recognition code and the first target character recognition code, shields the sensitive word data in the first target data, generates second target data, receives the second target data respectively through the main chain and the sub-chain, and presents the second target data to the user end. Through the above method, the present application converts the data into a character recognition code, and then compares the character recognition code with the sensitive word library. When the overlap between the character recognition code and the sensitive word library is higher than the preset shielding threshold, the overlapping part is shielded to improve the visibility of the information containing sensitive words in the main and sub-chain networks, thereby solving the technical problem that the information containing sensitive words in the current blockchain is low in visibility to users. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 This is a schematic diagram of the hardware structure of a device for shielding sensitive word data involved in an embodiment of the present invention;
[0022] Figure 2 This is a flow chart of a first embodiment of a method for shielding sensitive word data according to the present invention;
[0023] Figure 3 Schematic diagram of the functional modules of the first embodiment of the sensitive word data shielding device of the present invention.
[0024] The purpose, features and advantages of the present invention will be further described with reference to the accompanying drawings and in conjunction with the embodiments. DETAILED DESCRIPTION
[0025] It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0026] The sensitive word data shielding method involved in the embodiment of the present invention is mainly applied to a sensitive word data shielding device, which can be a PC, portable computer, mobile terminal or other device with display and processing functions.
[0027] Reference Figure 1 , Figure 1The figure is a schematic diagram of the hardware structure of the sensitive word data shielding device involved in the embodiment of the present invention. In the embodiment of the present invention, the sensitive word data shielding device may include a processor 1001 (such as a CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components; the user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard); the network interface 1004 may optionally include a standard wired interface, a wireless interface (such as a WI-FI interface); the memory 1005 may be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0028] Those skilled in the art will understand that Figure 1 The hardware structure shown in the figure does not constitute a limitation on the sensitive word data shielding device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0029] Continue to refer to Figure 1 , Figure 1 The memory 1005 as a computer-readable storage medium may include an operating system, a network communication module, and a shielding program for sensitive word data.
[0030] exist Figure 1 In the embodiment, the network communication module is mainly used to connect to the server and perform data communication with the server; and the processor 1001 can call the shielding program of the sensitive word data stored in the memory 1005 and execute the shielding method of the sensitive word data provided by the embodiment of the present invention.
[0031] An embodiment of the present invention provides a method for shielding sensitive word data.
[0032] Reference Figure 2 , Figure 2 FIG. 1 is a flow chart of a first embodiment of a method for shielding sensitive word data according to the present invention.
[0033] In this embodiment, the shielding method includes the following steps:
[0034] Step S10: Setting sensitive word data through the main chain, generating a sensitive word character identification code corresponding to the sensitive word data, and distributing the sensitive word character identification code to the network consisting of the main chain and sub-chains through the regulatory organization. Based on the agreement of the regulatory organization, the sensitive word character identification code is obtained through the sub-chain;
[0035] In this embodiment, sensitive word data is set through the main link, and the sensitive words are converted into CIDs (Character Identifiers) to avoid directly displaying the sensitive words in front of the user.
[0036] CID (Character identifier) is composed of two parts: CIDFont and CMap. The CIDFont file is the total character set, which includes all the commonly used characters in a specific language. These characters are sorted, and their order in the total character set is the index (CID identification code) of each character; the CMap (CharacterMap, character mapping file) table maps the code (encoding) of the character to the index of the character. The CID font library is designed entirely for the large character set market. The basic process is: first find the index in the CMap table according to the code, and then find the corresponding glyph data in the CIDFont file.
[0037] One of the main differences between centralized and decentralized webs is identifying and retrieving their respective data / information. On the centralized web, location addressing via URLs (uniform resource locators) or URIs (Uniform Resource Identifiers) is used to identify and “locate” data.
[0038] Decentralized networks, on the other hand, use content addressing to retrieve data from various sources (peers / nodes) via a unique content identifier — CID.
[0039] A Character Identifier (CID) is a specialized form of content addressing developed for the InterPlanetary File System. It's a single identifier that contains a cryptographic hash and a codec, storing information about how to read the data. With cryptographic hashing, anyone applying the same algorithm to the same data will get the same hash. Most content in the InterPlanetary File System is hashed using the SHA2-256 algorithm.
[0040] A character identifier does not indicate where the data is stored; it generates an address based on the underlying content of the data.
[0041] IPFS (InterPlanetary File System) is a file storage and content distribution network protocol that combines existing successful systems: Distributed Hash Tables (DHTs), BitTorrent, Git, and Self-Certified Filesystems (SFS) with blockchain. The combined advantages of these systems give it the following significant features:
[0042] 1. Permanent, decentralized storage and sharing of files (storage DHTs in blockchain mode);
[0043] 2. Peer-to-peer hypermedia: P2P (peer to peer lending) stores various types of bit streams;
[0044] 3. Versioning: Traceable file modification history (Git-Merkle DAG Merkel directed acyclic graph);
[0045] 4. Content addressable: Files are identified by generating independent hash values based on their content, rather than by their location. Files with the same content only exist once in the system, saving storage space.
[0046] IPFS is a peer-to-peer distributed file system that attempts to connect all computing devices to a single file system. In some ways, IPFS is similar to the World Wide Web, but it can also be thought of as a separate BitTorrent swarm exchanging objects within the same Git repository. In other words, IPFS provides a high-throughput, content-addressed block storage model with hyperlinks associated with that content. This forms a generalized Merkle directed acyclic graph (DAG). IPFS combines a distributed hash table, incentivized block exchange, and a self-certifying namespace. IPFS has no single point of failure, and nodes do not need to trust each other. Distributed content delivery saves bandwidth and prevents DDoS (Distributed Denial of Service) attacks that HTTP solutions can face.
[0047] The InterPlanetary File System can be accessed in a variety of ways, including FUSE (Filesystem in Userspace) and HTTP (Hyper Text Transfer Protocol). Adding local files to the IPFS file system makes them available to the world. File representation is based on its hash, which facilitates caching. Files are distributed using a BitTorrent-based protocol. Other users who view the content also help make the content available to others on the network. IPFS has a name service called IPNS, which is a PKI-based global namespace used to build a chain of trust. This is compatible with other NS (Name Server) records and can map DNS (Domain Name System), .onion (a top-level domain suffix used to address special purposes on the Tor network), etc. to IPNS.
[0048] Blockchain technology has many characteristics and advantages, including decentralization, openness, programmability, and immutability. Decentralization in blockchain means that data storage, verification, and transmission are all performed by distributed network nodes. Nodes in the system have equal rights and obligations, independent of a central management node. Whether new nodes are added to the system or existing nodes suddenly cease operation, the overall operation of the system remains unaffected, enabling distributed recording, storage, and updating of data.
[0049] In a master-subchain network, the master chain manages the subchains, responsible for the lifecycle management of the subchains and their subnodes. This not only solves the blockchain's scalability issues, but also ensures blockchain security and strengthens the control of the subchains. For a master-subchain network, subchains rely on the master chain; while subchains can exist without subchains, they absolutely cannot exist without the master chain.
[0050] Step S20, converting the first target data into a first target character recognition code, and matching the sensitive word character recognition code with the first target character recognition code through the network;
[0051] In this embodiment, in the main-subchain network, after the target data is converted into a character recognition code, the converted character recognition code is matched with the sensitive word character recognition code to obtain the matching partial character recognition code, and then the character recognition codes are compared in step S30.
[0052] A Character Identifier (CID) is a specialized form of content addressing developed for the InterPlanetary File System (IPFS). It's a single identifier that contains a cryptographic hash value and a codec, storing information about how to access the data. Using cryptographic hashing, anyone applying the same algorithm to the same data will receive the same hash. Most content in the IPFS is hashed using the SHA2-256 algorithm. The target data is passed through the SHA2-256 algorithm to generate a character identifier (CID) based on the target data, which is then sent to the blockchain's main and child chains.
[0053] Step S30: Based on the matching result of the sensitive word character recognition code and the first target character recognition code, the sensitive word data in the first target data is masked, second target data is generated, the second target data is received through the main chain and the sub-chain respectively, and the second target data is presented to the user terminal;
[0054] In this embodiment, the character recognition code corresponding to the target data is compared with the sensitive word character recognition code in the sensitive word library. When the repeated character recognition code reaches a certain value, it is determined that sensitive word data exists in the target data, and the sensitive word data is shielded, and the shielded target data is received through the sublink.
[0055] CID is a standard file addressing format in distributed file systems. It combines content addressing, cryptographic hashing, and a self-describing format. It is an important internal identifier for IPFS and IPLD.
[0056] CIDS was designed with the various trade-offs encountered when building IPFS in mind, which is relevant to many projects supporting multiple formats.
[0057] Compressibility: The binary nature of CID makes it highly compressible, which also allows CID to be used as part of a URL.
[0058] Transfer-friendliness: This refers to "easy copying." CIDs are encoded using multibase for easier transmission. For example, a CID encoded using base58btc is shorter and easier to copy and paste hash values.
[0059] Variability: CID can represent any format and the result of any hash function;
[0060] Avoid content lock: CID should avoid being restricted by historical content;
[0061] Upgradability: The encoding version of the CID must be upgradeable.
[0062] Through the above method, this application sends data containing sensitive words to the Interstellar File System, converts the data into character identification codes in the Interstellar File System, compares the character identification codes with the sensitive word library, masks the character identification codes corresponding to the sensitive word data, and then sends the data to the sub-chain to improve the visibility of information containing sensitive words in the main-sub-chain network, thereby solving the current technical problem of low visibility of information containing sensitive words in the blockchain to users.
[0063] Based on the above Figure 2 In the embodiment shown, in this embodiment, before step S10, the following steps are further included:
[0064] Acquire the sensitive word data in the sensitive word database through the main link, and generate and update the sensitive word database based on the sensitive word data, wherein the sensitive word database is derived from the network;
[0065] According to the source of the sensitive word data, a shielding priority of the sensitive word data is set.
[0066] In this embodiment, the priority of shielding is: the priority of shielding the sensitive word data set through the main link is higher than the priority of shielding the sensitive word data obtained from the sensitive word database through the main link.
[0067] By obtaining sensitive word data that already exists in other servers of the main and sub-chains in the blockchain field through the main chain, it is possible to avoid manually setting sensitive words, which may cause the sensitive word library to omit some sensitive words, resulting in information that is not desired to be visible to users becoming visible to users, thereby improving the visibility of information containing sensitive words to users.
[0068] Based on the above Figure 2 In the embodiment shown, in this embodiment, step S30 specifically includes:
[0069] Parsing the first target data through the sub-chain to obtain a first target character recognition code corresponding to the first target data;
[0070] Matching the first target character recognition code with the sensitive word character recognition code to obtain an overlapping portion of the first target character recognition code and the sensitive word character recognition code;
[0071] If the number of the overlapping character recognition codes exceeds a preset shielding threshold, the data corresponding to the overlapping character recognition codes are used as sensitive word data to be shielded, and the sensitive word data to be shielded is shielded;
[0072] receiving the shielded second target data through the sub-link, and presenting the second target data to the user terminal after obtaining a calling instruction from the user;
[0073] If the number of the overlapping character recognition codes does not exceed the preset shielding threshold, the first target data does not contain the sensitive word data.
[0074] In this embodiment, after the target data is converted into a character recognition code, the character recognition code is compared with all the character recognition codes in the sensitive word library to determine the number of overlapping character recognition codes between the two, and then compared with the preset shielding threshold. When the number of overlapping character recognition codes is greater than the preset shielding threshold, the overlapping character recognition codes are identified as sensitive words and shielded, and then the shielded target data is received through the sublink.
[0075] Furthermore, the process of shielding sensitive word data described in this application is as follows:
[0076] Set sensitive word data through the main chain, or obtain sensitive word data from other servers in the main-subchain network through the main chain, convert the sensitive word data into sensitive word character recognition codes, and generate a sensitive word library;
[0077] The data that needs to be presented to the user is uploaded to the main-child chain network. The data is converted into a character recognition code through the Starry Sky file system. The converted character recognition code of the data is matched with the character recognition code of the sensitive word in the sensitive word library to obtain the matching overlap between the two.
[0078] The overlapping part is compared with the preset shielding threshold through the sub-chain. If the overlapping part exceeds the preset shielding threshold, the overlapping part is treated as data to be shielded, and after being shielded, it is received through the sub-chain and presented to the user end.
[0079] In addition, an embodiment of the present invention also provides a device for shielding sensitive word data.
[0080] Reference Figure 3 , Figure 3 Schematic diagram of the functional modules of the first embodiment of the sensitive word data shielding device of the present invention.
[0081] In this embodiment, the sensitive word data shielding device includes:
[0082] Sensitive word setting module 10, used to set sensitive word data through the main chain, generate sensitive word character identification codes corresponding to the sensitive word data, distribute the sensitive word character identification codes to the network composed of the main chain and sub-chains through the regulatory organization, and obtain the sensitive word character identification codes through the sub-chains based on the agreement of the regulatory organization;
[0083] The data sending module 20 is used to convert the first target data into a first target character recognition code, and match the sensitive word character recognition code with the first target character recognition code through the network;
[0084] The sensitive word shielding module 30 is used to shield the sensitive word data in the first target data based on the matching result of the sensitive word character recognition code and the first target character recognition code, generate second target data, receive the second target data through the main chain and the sub-chain respectively, and present the second target data to the user end.
[0085] Furthermore, the sensitive word data shielding device further includes an external sensitive word acquisition module, and the external sensitive word acquisition module includes:
[0086] An external sensitive word acquisition unit is used to acquire the sensitive word data in the sensitive word database through the main link, and generate and update the sensitive word database based on the sensitive word data, wherein the sensitive word database is derived from the network.
[0087] Furthermore, the sensitive word data shielding device further includes a priority setting module, and the priority setting module includes:
[0088] The sensitive word data source determination unit is used to determine whether the sensitive word data is derived from the sensitive word data set through the main chain or from the sensitive word data in the sensitive word database of the main-sub-chain network server obtained through the main chain.
[0089] Furthermore, the sensitive word setting module 10 includes:
[0090] A sensitive word setting unit, configured to set sensitive word data through the main chain, generate a sensitive word character identification code corresponding to the sensitive word data, distribute the sensitive word character identification code to the network consisting of the main chain and sub-chains through a regulatory organization, and obtain the sensitive word character identification code through the sub-chain based on the agreement of the regulatory organization;
[0091] Furthermore, the data sending module 20 includes:
[0092] The data sending unit is used to convert the first target data into a first target character recognition code, and match the sensitive word character recognition code with the first target character recognition code through the network.
[0093] Furthermore, the sensitive word shielding module 30 includes:
[0094] A sensitive word shielding unit is used to shield the sensitive word data in the first target data based on the matching result of the sensitive word character recognition code and the first target character recognition code, generate second target data, receive the second target data through the main chain and the sub-chain respectively, and present the second target data to the user end.
[0095] Among them, each module in the above-mentioned sensitive word data shielding device corresponds to each step in the above-mentioned sensitive word data shielding method embodiment, and their functions and implementation processes will not be repeated here one by one.
[0096] In addition, an embodiment of the present invention also provides a computer-readable storage medium.
[0097] The computer-readable storage medium of the present invention stores a sensitive word data shielding program, wherein when the sensitive word data shielding program is executed by a processor, the steps of the sensitive word data shielding method as described above are implemented.
[0098] Among them, the method implemented when the sensitive word data shielding program is executed can refer to the various embodiments of the sensitive word data shielding method of the present invention, and will not be repeated here.
[0099] It should be noted that, in this document, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or system comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or system. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or system comprising the element.
[0100] The serial numbers of the above embodiments of the present invention are for description only and do not represent the advantages or disadvantages of the embodiments.
[0101] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, and the like. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, and the like that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments in which tasks are performed by remote processing devices connected via a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media, including storage devices.
[0102] Through the description of the above embodiments, those skilled in the art can clearly understand that the above embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better embodiment. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for enabling a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present invention.
[0103] 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 description 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 method for shielding sensitive word data, characterized in that: The shielding method comprises the following steps: Setting sensitive word data through the main chain, generating sensitive word character identification codes corresponding to the sensitive word data, and generating a sensitive word library. The sensitive word character identification codes are distributed to the network consisting of the main chain and sub-chains through a regulatory organization. Based on the agreement of the regulatory organization, the sensitive word character identification codes are obtained through the sub-chains. Converting the first target data into a first target character recognition code, and matching the sensitive word character recognition code with the first target character recognition code through the network; Based on the matching result of the sensitive word character recognition code and the first target character recognition code, the sensitive word data in the first target data is shielded, and second target data is generated. The second target data is received through the main chain and the sub-chain respectively, and the second target data is presented to the user end.
2. The shielding method according to claim 1, wherein: Before setting the sensitive word data through the main link and generating the sensitive word character identification code corresponding to the sensitive word data, the method further includes: The sensitive word data in the sensitive word database is obtained through the main link, and based on the sensitive word data, the sensitive word database is generated and updated, wherein the sensitive word database is derived from the network.
3. The shielding method according to claim 2, wherein: The method further comprises: obtaining the sensitive word data in the sensitive word database through the main link, and generating and updating the sensitive word database based on the sensitive word data, wherein after the sensitive word database is derived from the network, the method further comprises: According to the source of the sensitive word data, a shielding priority of the sensitive word data is set.
4. The shielding method according to claim 3, wherein: The shielding priority is: the priority of shielding the sensitive word data set through the main link is greater than the priority of shielding the sensitive word data obtained from the sensitive word database through the main link.
5. The shielding method according to claim 1, wherein: Based on the matching result of the sensitive word character recognition code and the first target character recognition code, shielding the sensitive word data in the first target data, generating second target data, receiving the second target data through the main chain and the sub-chain respectively, and presenting the second target data to the user terminal, including: Parsing the first target data through the sub-chain to obtain a first target character recognition code corresponding to the first target data; Comparing the first target character recognition code with all sensitive word character recognition codes in the sensitive word library, obtaining overlapping portions of the first target character recognition code and the sensitive word character recognition codes, and determining the number of overlapping character recognition codes; If the number of the overlapping character recognition codes exceeds a preset shielding threshold, the data corresponding to the overlapping character recognition codes are used as sensitive word data to be shielded, and the sensitive word data to be shielded is shielded; The shielded second target data is received through the sub-link, and after obtaining a calling instruction from the user, the second target data is presented to the user terminal.
6. The shielding method according to claim 5, wherein: After comparing the first target character recognition code with all sensitive word character recognition codes in the sensitive word library, the method further includes: If the number of the overlapping character recognition codes does not exceed the preset shielding threshold, the first target data does not contain the sensitive word data.
7. A device for shielding sensitive word data, characterized in that: The shielding device comprises: A sensitive word setting module, configured to set sensitive word data through the main chain, generate sensitive word character identification codes corresponding to the sensitive word data, and generate a sensitive word library; distribute the sensitive word character identification codes to the network consisting of the main chain and sub-chains through a regulatory organization; and obtain the sensitive word character identification codes through the sub-chains based on the agreement of the regulatory organization; a data sending module, configured to convert the first target data into a first target character recognition code, and match the sensitive word character recognition code with the first target character recognition code via the network; A sensitive word shielding module is used to shield the sensitive word data in the first target data based on the matching result of the sensitive word character recognition code and the first target character recognition code, generate second target data, receive the second target data through the main chain and the sub-chain respectively, and present the second target data to the user end.
8. The shielding device according to claim 7, wherein: The shielding device further comprises: The external sensitive word acquisition module is used to obtain the sensitive word data in the sensitive word database through the main link, and generate and update the sensitive word database based on the sensitive word data, wherein the sensitive word database comes from the network.
9. A device for shielding sensitive word data, characterized in that: The shielding device includes a processor, a memory, and a shielding program for sensitive word data stored in the memory and executable by the processor, wherein when the shielding program for sensitive word data is executed by the processor, the steps of the sensitive word data shielding method as described in any one of claims 1 to 6 are implemented.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a sensitive word data shielding program, wherein when the sensitive word data shielding program is executed by a processor, the steps of the sensitive word data shielding method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Authorization method, device and system for sensitive data
CN104468531A
Information processing method, terminal device and storage medium
CN111988784A