CN108984625A - Information filtering method, device, computer equipment and storage medium - Google Patents
Information filtering method, device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN108984625A CN108984625A CN201810628127.6A CN201810628127A CN108984625A CN 108984625 A CN108984625 A CN 108984625A CN 201810628127 A CN201810628127 A CN 201810628127A CN 108984625 A CN108984625 A CN 108984625A
- Authority
- CN
- China
- Prior art keywords
- data
- field
- sensitive information
- condition
- sensitive
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/62—Protecting access to data via a platform, e.g. using keys or access control rules
Abstract
The invention discloses a kind of information filtering method, device, computer equipment and storage mediums, which comprises establishes non-sensitive information database;The data that back-end server is returned by Applied layer interface are received, and data are parsed to obtain the parameter name for including in the data and parameter value;According to parameter name, inquiry and the matched target susceptibility field of the parameter name in non-sensitive information database obtain aiming field filter condition corresponding with target susceptibility field according to mapping relations;Processing is filtered to parameter value according to aiming field filter condition, obtains filtered target data;Target data is returned into front end user.Technical solution of the present invention, which is realized, carries out unified shielding to sensitive information, both the development amount for having alleviated Applied layer interface reduces the risk of code error, but also independence is higher between code module, it is convenient for unit testing and maintenance, reduces maintenance and management cost.
Description
Technical field
The present invention relates to field of information processing more particularly to a kind of information filtering method, device, computer equipment and storages
Medium.
Background technique
On the Internet application platform based on Web, according to business needs, the filtering for sensitive information be one very
Has the function of practical value.Current general way be realize filtering function in each interface of application layer, though this method
So flexibly, but increasing with business, the size of code of filtering function also increase, and have both brought the increase of programmer's workload, code
The high problem of error rate also increases the difficulty of whole system code managed and maintained.
Summary of the invention
The embodiment of the present invention provides a kind of information filtering method, device, computer equipment and storage medium, to solve to apply
Each interface code redundancy of layer, error rate is high, manages and maintains problem at high cost.
A kind of information filtering method, comprising:
Establish non-sensitive information database, wherein the non-sensitive information database includes sensitive field, Field Sanitization condition,
And the mapping relations between the sensitive field and the Field Sanitization condition;
The data that back-end server is returned by Applied layer interface are received, and the data are parsed to obtain the data
In include parameter name and parameter value;
According to the parameter name, inquiry and the matched target susceptibility word of the parameter name in non-sensitive information database
Section, and aiming field filter condition corresponding with the target susceptibility field is obtained according to the mapping relations;
Processing is filtered to the parameter value according to the goal filtering condition, obtains filtered target data;
The target data is returned into front end user.
A kind of information filtrating device, comprising:
Library module is built, for establishing non-sensitive information database, wherein the non-sensitive information database include sensitive field,
Mapping relations between Field Sanitization condition and the sensitive field and the Field Sanitization condition;
Parsing module, the data returned for receiving back-end server by Applied layer interface, and the data are carried out
Parsing obtains parameter name and the parameter value for including in the data;
First inquiry identification module, for being inquired and the parameter in non-sensitive information database according to the parameter name
The target susceptibility field of name-matches, and aiming field corresponding with the target susceptibility field is obtained according to the mapping relations
Filter condition;
First filtering module is obtained for being filtered processing to the parameter value according to the goal filtering condition
Target data after filter;
Return module, for the target data to be returned to front end user.
A kind of computer equipment, including memory, processor and storage are in the memory and can be in the processing
The computer program run on device, the processor realize the step of above- mentioned information filter method when executing the computer program
Suddenly.
A kind of computer readable storage medium, the computer-readable recording medium storage have computer program, the meter
The step of above- mentioned information filter method is realized when calculation machine program is executed by processor.
Above- mentioned information filter method, device, computer equipment and storage medium, establish non-sensitive information database, will be sensitive
Mapping relations between field, Field Sanitization condition, and sensitive field and Field Sanitization condition are saved in the sensitive database
In, so that sensitive information is managed concentratedly, accomplish once to configure, each interface is applicable in, and facilitates system maintenance and upgrading;It is used in front end
It increases a filter layer between family and the Applied layer interface of back-end server newly, script is needed to complete in different application layer interface
Sensitive information filtering function, collect and completed in the filter layer, realize and unified shielding is carried out to sensitive information, both alleviated
The development amount of Applied layer interface reduces the risk of code error, but also independence is higher between code module, convenient for into
Row unit testing and maintenance reduce maintenance and management cost.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by institute in the description to the embodiment of the present invention
Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the invention
Example, for those of ordinary skill in the art, without any creative labor, can also be according to these attached drawings
Obtain other attached drawings.
Fig. 1 is an application environment schematic diagram of information filtering method in one embodiment of the invention;
Fig. 2 is the flow chart of information filtering method in one embodiment of the invention;
Fig. 3 is the flow chart of the information filtering method of combined data filter condition in one embodiment of the invention;
Fig. 4 is the flow chart that JSON file data is parsed in one embodiment of the invention;
Fig. 5 is the flow chart periodically synchronized to non-sensitive information database in one embodiment of the invention;
Fig. 6 is the schematic diagram of information filtrating device in one embodiment of the invention;
Fig. 7 is the schematic diagram of computer equipment in one embodiment of the invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts
Example, shall fall within the protection scope of the present invention.
Information filtering method provided by the present application can be applicable in the application environment such as Fig. 1, wherein front end can be with
Browser, the various clients that cell phone application is representative;Front end is communicated by network with server-side, which can be
Gauze network or wireless network;Inside server-side, including filter layer, application layer and database, wherein if application layer includes again
Dry Applied layer interface;Filter layer is that the information filtering method that provides through the embodiment of the present invention is newly-built, meanwhile, with the filter layer
For boundary, application layer and database are referred to as back-end server in server-side, with corresponding with front end.Front end user passes through client
Various request of data are initiated, after the filter layer of server-side filters sensitive information, return to client, the embodiment of the present invention provides
Information filtering method be applied to server-side filter layer.
In one embodiment, as shown in Fig. 2, providing a kind of information filtering method, implementation process includes the following steps:
S1: non-sensitive information database is established, wherein non-sensitive information database includes sensitive field, Field Sanitization condition, with
And the mapping relations between sensitive field and Field Sanitization condition.
Specifically, an embedded database is created in filter layer, such as can be SQLite database, it is quick for storing
Feel the mapping relations between field, Field Sanitization condition, and sensitive field and Field Sanitization condition.
Wherein, it is very low to occupy resource for embedding data library, such as is applied to as in mobile phone, tablet computer embedded product
Account for the memory of several hundred K;Embedded database saves newly-built database so that it is convenient to and application program in the form of single file
Carry out connection either statically or dynamically;SQLite is a typical embedded database, it and common non-embedded database phase
Than the space occupied is very small, and different from common client-server paradigm, SQLite is the library in a process, realizes
Self-centered, serverless backup, zero configuration, businesslike SQL database engine.SQLite engine is not one independent
Process can either statically or dynamically be connected by application requirement.
In practical applications, reflecting between sensitive field, Field Sanitization condition, and sensitive field and Field Sanitization condition
The relationship of penetrating can be configured in advance by user.For example, sensitive field include but is not limited to customer name, cell-phone number,
Identification card number, home address etc..Field Sanitization condition includes but is not limited to: only retaining surname to name, shields name;To mobile phone
Numbers shielding intermediate four;Four are shielded among identification card number;Directly hide home address;All information of mask field etc..
Mapping relations between sensitive field and Field Sanitization condition can be correspondingly, such as:
Customer name in sensitive field, the only reservation surname in corresponding field filter condition shield name;
Cell-phone number in sensitive field, four among the shielding cell-phone number in corresponding field filter condition;
Identification card number in sensitive field, four among the shielding identification card number in corresponding field filter condition;
Or many-one, such as:
Customer name in sensitive field, the identification card number in cell-phone number and sensitive field in sensitive field all correspond to word
All information of mask field in section filter condition.
Mapping relations between sensitive field and Field Sanitization condition can be adjusted dynamically according to the needs of practical application.
Newly-built SQLite database is deployed in the filter or blocker in Spring frame, is equivalent in Spring
Increase a filter layer in filter or blocker in frame newly, the filter layer include newly-built SQLite database and other with
Relevant module is filtered, for realizing the information filtering function of the present embodiment, thus instead of original reality in each Applied layer interface
Existing filtering function.Wherein, Spring is the design level frame an of open source code, is the Java exploitation an of lightweight
Frame, what he solved is the loose coupling problem of Business Logic He other each layers.For large-scale Web application system, usually first
Spring is deployed on server, then further according to the needs of practical application, secondary development is done on Spring.It does so and fills
Divide the existing interface that Spring frame is utilized, avoid the development of simple repeatability, and can quickly develop and be suitble to itself
The application that business needs.By taking Fig. 1 as an example, position of the position of Spring frame between front end and Applied layer interface, with filter layer
It sets identical.
S2: the data that back-end server is returned by Applied layer interface are received, and data are parsed to obtain the data
In include parameter name and parameter value.
Specifically, after the item data request that client is initiated reaches the database of back-end server, each application layer is connect
The data of the Database Feedback of back-end server are returned to client by mouth, which is usually returned with fixed data format,
Be conducive to parse the data of needs.
Wherein, the data format of the fixation has JSON (JavaScript Object Notation, JS object numbered musical notation)
The data file of format, Map object, wherein JSON is a kind of data interchange format of lightweight;Map object is in Java
Collection class, it provides a kind of element storage method.
Between Applied layer interface and front end, the data that Applied layer interface returns are intercepted, are parsed, obtains and filters
Relevant information, i.e. parameter name and parameter value.
By taking certain Applied layer interface returns to " user insure master data " as an example, parameter name includes address name, age, hand
Machine number, insurance kind of insuring, total amount of insuring;Then corresponding parameter value is " Zhang San ", and " 30 ", " 13912345678 " are " omnipotent
Danger ", " 200,000 ".
Applied layer interface is customized as business needs, and different business needs, then the data that each Applied layer interface returns
It is different.For example, some business need the master data of user, then the Applied layer interface only returns to address name, age, identity card
Number, home address;Some business need to insure relevant data, then the Applied layer interface only returns to user id, insurance kind of insuring, and throw
Protect total amount.
S3: according to parameter name, inquiry and the matched target susceptibility field of the parameter name in non-sensitive information database,
And aiming field filter condition corresponding with target susceptibility field is obtained according to mapping relations.
Specifically, still by taking " user insure master data " in step S2 as an example, the parameter that parses in step s 2
Title includes address name, age, cell-phone number, insurance kind of insuring, total amount of insuring.By these parameter names one by one with local
Sensitive field in SQLite database is compared, if parameter name belongs to sensitive field, has mapping to close with sensitive field
The filter condition of system is the aiming field filter condition for the parameter name.For example, cell-phone number belongs to sensitive field, then with it is quick
Sense field " cell-phone number " has the filter condition " shielding is four intermediate " of mapping relations, is the target of shielding parameter title " cell-phone number "
Field Sanitization condition.
S4: processing is filtered to parameter value according to aiming field filter condition, obtains filtered target data.
Specifically, the aiming field filter condition got according to step S3, is filtered the parameter value of parameter name
Processing.For example, the aiming field filter condition obtained according to step S3 " shields if shielding to parameter name " cell-phone number "
Cover four intermediate ", it is the data of " 13912345678 " for cell-phone number, the centre four of cell-phone number, modification is replaced with " * " number
For " 139****5678 ".
S5: target data is returned into front end user.
Specifically, by the target data Jing Guo filtration treatment, intermediate four cell-phone numbers " 139****5678 " are such as shielded
It is returned to front end user.
In the present embodiment, in the filter or blocker of Spring frame, by Applied layer interface and front end it
Between establish a filter layer, it is unified to shield sensitive information, alleviate the development amount of each Applied layer interface, reduce code
The risk of error is convenient for unit testing and maintenance but also independence is higher between code module, reduce maintenance and management at
This;By creating a local SQLite database, sensitive information centralized management is accomplished once to configure, and each Applied layer interface is suitable
With facilitating system maintenance and upgrading.
Further, in one embodiment, non-sensitive information database further includes data mode and data filtering condition, and
Mapping relations between data mode and data filtering condition.Data mode refers to Service Period locating for an item data.Due to
The difference of locating Service Period, the data are suitable for different data filtering conditions.Data filtering condition refers to for different
For field, i.e., under a kind of data mode, there may be several fields to belong to and need to do shielding processing.
For example, the loan data of client has " application ", " in audit ", " refusal ", " in lending ", " having paid off " etc. several
Kind state.When customers' place is in " application " and " in audit " two states, lending business personnel is it can be seen that all customer datas
, i.e., the value of all fields;It but is that can't see cell-phone number, the amount of the loan when to " refusal ", " in lending ", " having paid off " state
, that is, it can't see the value under " cell-phone number ", " amount of the loan " two fields.Therefore, in " refusal ", " in lending ", " having paid off "
Under state, corresponding data filtering condition is to hide cell-phone number, hide the amount of the loan.
As shown in figure 3, being filtered processing to the parameter value according to the goal filtering condition in step S4, it is obtained
After target data after filter, and before target data is returned to front end user by step S5, information filtering method is also wrapped
Include following steps:
S21: the current state of data is obtained.
Specifically, when client initiates inquiry request, Applied layer interface is according to the type of service of request, in back-end services
The data mode of current business is inquired in device.When receiving the data that back-end server is returned by Applied layer interface
The current state of data therefrom.
S31: target data filter condition corresponding with current state is inquired in non-sensitive information database.
Specifically, the data mode obtained according to step S21, inquiry and current data state in non-sensitive information database
Matched target data filter condition.
S41: processing is filtered to parameter value according to target data filter condition, obtains filtered target data.
Specifically, the target data filter condition obtained according to step S31, that is, may know that the target data filter condition is
Which it is filtered for field.These fields are matched with the parameter name that parsing obtains, obtain needing to be filtered
Parameter value, and these parameter values are filtered according to target data filter condition, obtain target data.
In the present embodiment, further include data mode and data filtering condition and data mode in sensitive information library with
Mapping relations between data filtering condition.By combining sensitive field, Field Sanitization condition, data mode and data filtering rod
Part four elements are filtered back-end server by the data that Applied layer interface returns, can more flexible filtering sensitivity
Information.
Further, in one embodiment, back-end server is JSON format by the data that Applied layer interface returns
Data file is parsed to obtain in the data and be wrapped to back-end server by the data that Applied layer interface returns in step s 2
The parameter name and parameter value contained, specific steps include:
S6: according to the file structure of JSON format, to back-end server by the data that Applied layer interface returns carry out by
Layer recursion resolution, obtains the key-value pair for including in the data, wherein each key-value pair includes that parameter name is corresponding with the parameter
Parameter value.
Specifically, key-value pair (key-value) is common a kind of data type in software development, when being data storage most
Simple organizational form.Wherein, key (key) is the number of the data of storage;Value (value) is the data to be stored.
By taking JSON format as an example, the JSON data about loan documentation are expressed as follows:
Wherein, " customer name ", " cell-phone number ", " identification card number " and " record list " and their corresponding values are first
The key-value pair of layer;" amount of the loan ", " loan interest rate " and their corresponding values are the key-value pair of the second layer.It is to be appreciated that
For more complicated data structure, it may include many layer datas in a JSON file.Meanwhile the sensitive field for needing to filter
The different layers being possibly also present in JSON.
For the JSON data file of multilayer, key-value pair is parsed using the method that recurrence successively parses.Specifically, as schemed
Shown in 4, analyzing step are as follows:
S61: traversing entire JSON file, finds out the symbol of all right braces.
It in the present embodiment, include opening brace symbol and right braces symbol, and opening brace symbol in JSON file
It is symmetrical with right braces symbol, that is, there is an opening brace symbol just to there is a corresponding right side to include greatly in JSON file
Number symbol, for example, opening brace meet for " ", right braces meet for " ".
In the present embodiment, for the braces symbol for defining object, the object includes several key-value pairs, can be with
Including subobject;
It further include colon ": " in the JSON file, the colon symbol is used to distinguish the key and value in key-value pair, that is, emits
Before number symbol is key, and subsequent colon symbol is value;
It further include comma in the JSON file, ", wherein the comma symbol is used to indicate the knot of a key-value pair
Beam.
Specifically, according to JSON file format standard, how many is to braces symbol, with regard to how many layer data;From JSON
File the first row starts to count down line by line, and the corresponding layer of first right braces symbol is the data of innermost layer, and so on,
The corresponding layer of the last one right braces symbol is outermost data.
S62: in a layer data, the key-value pair for including is found out according to colon symbol and comma symbol symbol.
Specifically, when traversing entire JSON file, in each layer data found, a pair of keys value is distinguished with colon symbol
In key and value, i.e., be key before colon symbol, it is subsequent for value;It take comma symbol as the end mark of a pair of of key assignments.
In the present embodiment, back-end server is literary by the data that the Data Representation that Applied layer interface returns is JSON format
Part, parameter name and parameter value show as the form of key-value pair.Using recursive algorithm, successively to the data of JSON format transmission into
Row parsing, can easily obtain the sensitive information for needing to filter.
Further, in one embodiment, the data that back-end server is returned by Applied layer interface can be Map pairs
As being parsed to obtain the ginseng for including in the data in step s 2 by the data that Applied layer interface returns to back-end server
Several titles and parameter value, specific steps include:
Using recursive algorithm, the parameter name for including in Map object and parameter value are parsed.
Map object is the collection class in Java.When due to saving data with Map object, disk might not be saved to
Continuation address on, but one key and a value connected according to an index, in this way, with Map object storing data
The scattered value of the storage that can be convenient, is conducive to the fragment space using disk.Therefore, each item in a Map object set
Data are likely to be the different location that dispersion is stored in disk.
Specifically, it for the data returned with this data format of Map object, is carried out with get () method that Map class carries
Recursion resolution obtains the parameter name for including in Map object and parameter value.
Further, in one embodiment, after step S1 establishes non-sensitive information database, information filtering method is also wrapped
Include following steps:
Periodically non-sensitive information database is synchronized.
Specifically, foundation, update, the deletion of local SQLite database are bound together with program code, if quick
Sense information or filter condition change, then are also required to modification code, will lead to workload increase, and efficiency reduces.Allow local
SQLite database is periodically synchronized with other non-sensitive information databases, then can flexibly update newest sensitive information and
Filter condition.
Further, in one embodiment, as shown in figure 5, periodically synchronizing non-sensitive information database including as follows
Step:
S81: sensitive information and filter condition periodically are obtained from network data base.
Specifically, in addition to local SQLite database, there are one network data bases except local server.Network number
According to being stored with sensitive information and filter condition, sensitive field, the field mistake stored on including but not limited to local SQLite on library
Mapping relations, data mode and data filtering condition and the number between filter condition, sensitive field and Field Sanitization condition
According to the mapping relations between state and the data filtering condition.
The sensitive information and filter condition of storage on network data base can be according to business needs, by special database
Administrator safeguards.
Local SQLite database operates in local, can carry out linking either statically or dynamically with server-side application program,
Without connecting network, execution efficiency is high.
In practical applications, sensitive information and filter condition one are set, and are typically not required frequent change.Therefore, may be used
With at a certain time interval, such as every month, quarterly, newest sensitive information and filter condition are obtained from network data base.
S82: non-sensitive information database is updated according to sensitive information and filter condition.
Specifically, sensitive information will be obtained from network data base and filter condition is updated to local non-sensitive information database
In, to reach synchronous with network data base.
In the present embodiment, SQLite database operates in local, have speed it is fast, it is high-efficient, section space-efficient advantage, and
Network data base is deployed in outside, has special database administrator to be safeguarded, SQLite database only needs periodically and net
Sensitive information required for network database synchronization filters and filter condition.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process
Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present invention constitutes any limit
It is fixed.
In one embodiment, a kind of information filtrating device is provided, information mistake in the information filtrating device and above-described embodiment
Filtering method corresponds.As shown in fig. 6, the information filtrating device includes building library module 61, the inquiry identification of parsing module 62, first
Module 63, the first filtering module 64 and return module 65.Detailed description are as follows for each functional module:
Build library module 61: for establishing non-sensitive information database, wherein non-sensitive information database includes sensitive field, word
Mapping relations between section filter condition, and sensitive field and Field Sanitization condition;
Parsing module 62: the data returned for receiving back-end server by Applied layer interface, and data are solved
Analysis obtains parameter name and the parameter value for including in the data;
First inquiry identification module 63: for being inquired and the parameter name in non-sensitive information database according to parameter name
Claim matched target susceptibility field, and obtains aiming field filter condition corresponding with target susceptibility field according to mapping relations;
First filtering module 64: it for being filtered processing to parameter value according to goal filtering condition, obtains filtered
Target data;
Return module 65: for target data to be returned to front end user.
Further, non-sensitive information database further includes data mode and data filtering condition and data mode and number
According to the mapping relations between filter condition, the information filtrating device further include:
Obtain block of state 66: for obtaining the current state of data;
Second inquiry identification module 67: for inquiring number of targets corresponding with current state in non-sensitive information database
According to filter condition;
Second filtering module 68: it for being filtered processing to parameter value according to target data filter condition, is filtered
Target data afterwards.
Further, back-end server is the data file of JSON format by the data that Applied layer interface returns, and is parsed
Module 62 includes:
JSON analyzing sub-module 621: for the file structure according to JSON format, carrying out step-by-step recursion parsing to data,
Obtain the key-value pair for including in the data, wherein each key-value pair includes parameter name parameter value corresponding with the parameter name.
Further, the information filtrating device further include:
Synchronization module 69: for periodically being synchronized to non-sensitive information database.
Further, synchronization module 69 includes:
Network Synchronization submodule 691: for periodically obtaining sensitive information and filter condition from network data base;
Update submodule 692: for being updated according to sensitive information and filter condition to non-sensitive information database.
Specific about information filtrating device limits the restriction that may refer to above for information filtering method, herein not
It repeats again.Modules in above- mentioned information filter device can be realized fully or partially through software, hardware and combinations thereof.On
Stating each module can be embedded in the form of hardware or independently of in the processor in computer equipment, can also store in a software form
In memory in computer equipment, the corresponding operation of the above modules is executed in order to which processor calls.
In one embodiment, a kind of computer equipment is provided, which can be server, internal junction
Composition can be as shown in Figure 7.The computer equipment include by system bus connect processor, memory, network interface and
Database.Wherein, the processor of the computer equipment is for providing calculating and control ability.The memory packet of the computer equipment
Include non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operating system, computer program and data
Library.The built-in storage provides environment for the operation of operating system and computer program in non-volatile memory medium.The calculating
The network interface of machine equipment is used to communicate with external terminal by network connection.When the computer program is executed by processor with
Realize a kind of information filtering method.
In one embodiment, a kind of computer equipment is provided, including memory, processor and storage are on a memory
And the computer program that can be run on a processor, processor realize information filtering in above-described embodiment when executing computer program
The step of method, such as step S1 shown in Fig. 2 to step S5.Alternatively, processor realizes above-mentioned reality when executing computer program
Apply the function of each module/unit of information filtrating device in example, such as module 61 shown in Fig. 6 is to the function of module 65.To avoid
It repeats, which is not described herein again.
In one embodiment, a computer readable storage medium is provided, computer program, computer program are stored thereon with
Information filtering method in above method embodiment is realized when being executed by processor, alternatively, the computer program is executed by processor
In Shi Shixian above-mentioned apparatus embodiment in information filtrating device each module/unit function.It is no longer superfluous here to avoid repeating
It states.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer
In read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein,
To any reference of memory, storage, database or other media used in each embodiment provided herein,
Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM
(PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include
Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms,
Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhancing
Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM
(RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function
Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different
Functional unit, module are completed, i.e., the internal structure of described device is divided into different functional unit or module, more than completing
The all or part of function of description.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned reality
Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each
Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified
Or replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution should all
It is included within protection scope of the present invention.
Claims (10)
1. a kind of information filtering method, which is characterized in that the information filtering method includes:
Establish non-sensitive information database, wherein the non-sensitive information database includes sensitive field, Field Sanitization condition, and
Mapping relations between the sensitivity field and the Field Sanitization condition;
The data that back-end server is returned by Applied layer interface are received, and the data are parsed to obtain in the data and are wrapped
The parameter name and parameter value contained;
According to the parameter name, inquiry and the matched target susceptibility field of the parameter name in non-sensitive information database, and
Aiming field filter condition corresponding with the target susceptibility field is obtained according to the mapping relations;
Processing is filtered to the parameter value according to the aiming field filter condition, obtains filtered target data;
The target data is returned into front end user.
2. information filtering method as described in claim 1, which is characterized in that described according to the aiming field filter condition pair
The parameter value is filtered processing, after obtaining filtered target data, and returns to the target data described
Before front end user, the information filtering method further include:
Obtain the current state of the data;
Target data filter condition corresponding with the current state is inquired in the non-sensitive information database;
Processing is filtered to the parameter value according to the target data filter condition, obtains filtered target data.
3. information filtering method as described in claim 1, which is characterized in that the data are the data file of JSON format,
It is described the data to be parsed to obtain the parameter name for including in the data and parameter value includes:
According to the file structure of the JSON format, step-by-step recursion parsing is carried out to the data, obtain include in the data
Key-value pair, wherein each key-value pair includes the parameter name parameter value corresponding with the parameter name.
4. information filtering method as claimed in claim 2, which is characterized in that described to establish after non-sensitive information database, institute
State information filtering method further include:
Periodically the non-sensitive information database is synchronized.
5. information filtering method as claimed in claim 4, which is characterized in that it is described periodically to the non-sensitive information database into
Row, which synchronizes, includes:
Periodically sensitive information and filter condition are obtained from network data base;
The non-sensitive information database is updated according to the sensitive information and the filter condition.
6. a kind of information filtrating device, which is characterized in that the information filtrating device includes:
Library module is built, for establishing non-sensitive information database, wherein the non-sensitive information database includes sensitive field, field
Mapping relations between filter condition and the sensitive field and the Field Sanitization condition;
Parsing module, the data returned for receiving back-end server by Applied layer interface, and the data are parsed
Obtain the parameter name for including in the data and parameter value;
First inquiry identification module, for being inquired and the parameter name in non-sensitive information database according to the parameter name
Matched target susceptibility field, and obtain aiming field corresponding with the target susceptibility field according to the mapping relations and filter
Condition;
First filtering module, for being filtered processing to the parameter value according to the goal filtering condition, after obtaining filtering
Target data;
Return module, for the target data to be returned to front end user.
7. information filtrating device as claimed in claim 6, which is characterized in that the non-sensitive information database further includes data shape
Mapping relations between state and data filtering condition and the data mode and the data filtering condition, the information mistake
Filter device further include:
Block of state is obtained, for obtaining the current state of the data;
Second inquiry identification module, for inquiring target corresponding with the current state in the non-sensitive information database
Data filtering condition;
Second filtering module is obtained for being filtered processing to the parameter value according to the target data filter condition
Target data after filter.
8. information filtrating device as claimed in claim 6, which is characterized in that the information filtrating device further include:
Synchronization module periodically synchronizes the non-sensitive information database.
9. a kind of computer equipment, including memory, processor and storage are in the memory and can be in the processor
The computer program of upper operation, which is characterized in that the processor realized when executing the computer program as claim 1 to
The step of any one of 5 information filtering method.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists
In the step of realization information filtering method as described in any one of claim 1 to 5 when the computer program is executed by processor
Suddenly.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810628127.6A CN108984625A (en) | 2018-06-19 | 2018-06-19 | Information filtering method, device, computer equipment and storage medium |
PCT/CN2018/106429 WO2019242132A1 (en) | 2018-06-19 | 2018-09-19 | Information filtering method and apparatus, computer device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810628127.6A CN108984625A (en) | 2018-06-19 | 2018-06-19 | Information filtering method, device, computer equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108984625A true CN108984625A (en) | 2018-12-11 |
Family
ID=64540583
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810628127.6A Pending CN108984625A (en) | 2018-06-19 | 2018-06-19 | Information filtering method, device, computer equipment and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN108984625A (en) |
WO (1) | WO2019242132A1 (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109784089A (en) * | 2018-12-19 | 2019-05-21 | 平安普惠企业管理有限公司 | Guard method, device, storage medium and the electronic equipment of customer information |
CN110457957A (en) * | 2019-08-22 | 2019-11-15 | 腾讯科技(深圳)有限公司 | Information processing method, device, electronic equipment and the medium of electronic bill |
CN110489657A (en) * | 2019-07-05 | 2019-11-22 | 五八有限公司 | A kind of information filtering method, device, terminal device and storage medium |
CN113268306A (en) * | 2021-06-08 | 2021-08-17 | 金蝶软件(中国)有限公司 | Resume parsing interface calling method and device and computer storage medium |
CN113676547A (en) * | 2021-09-01 | 2021-11-19 | 北京字跳网络技术有限公司 | Data processing method, data processing device, storage medium and electronic equipment |
CN113722757A (en) * | 2021-08-30 | 2021-11-30 | 平安医疗健康管理股份有限公司 | Sensitive data coding method, device, equipment and storage medium |
CN114090118A (en) * | 2021-11-11 | 2022-02-25 | 北京百度网讯科技有限公司 | Method, device and equipment for starting small program and storage medium |
WO2022127259A1 (en) * | 2020-12-16 | 2022-06-23 | 北京锐安科技有限公司 | Data cleaning method, apparatus and device, and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105515963A (en) * | 2015-12-03 | 2016-04-20 | 中国联合网络通信集团有限公司 | Data gateway device and big data system |
CN106295400A (en) * | 2016-08-04 | 2017-01-04 | 北京网智天元科技股份有限公司 | Masking type data desensitization method and relevant device |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9363257B2 (en) * | 2013-10-08 | 2016-06-07 | Roger E Billings | Secure federated identity service |
CN106295390A (en) * | 2015-06-08 | 2017-01-04 | 阿里巴巴集团控股有限公司 | A kind of method and device of information processing |
CN105006230A (en) * | 2015-06-10 | 2015-10-28 | 合肥工业大学 | Voice sensitive information detecting and filtering method based on unspecified people |
CN105138926B (en) * | 2015-07-10 | 2018-04-27 | 福建工程学院 | The effective of sensitive information data hides guard method |
-
2018
- 2018-06-19 CN CN201810628127.6A patent/CN108984625A/en active Pending
- 2018-09-19 WO PCT/CN2018/106429 patent/WO2019242132A1/en active Application Filing
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105515963A (en) * | 2015-12-03 | 2016-04-20 | 中国联合网络通信集团有限公司 | Data gateway device and big data system |
CN106295400A (en) * | 2016-08-04 | 2017-01-04 | 北京网智天元科技股份有限公司 | Masking type data desensitization method and relevant device |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109784089A (en) * | 2018-12-19 | 2019-05-21 | 平安普惠企业管理有限公司 | Guard method, device, storage medium and the electronic equipment of customer information |
CN110489657A (en) * | 2019-07-05 | 2019-11-22 | 五八有限公司 | A kind of information filtering method, device, terminal device and storage medium |
CN110457957A (en) * | 2019-08-22 | 2019-11-15 | 腾讯科技(深圳)有限公司 | Information processing method, device, electronic equipment and the medium of electronic bill |
CN110457957B (en) * | 2019-08-22 | 2024-04-12 | 腾讯科技(深圳)有限公司 | Information processing method and device of electronic bill, electronic equipment and medium |
WO2022127259A1 (en) * | 2020-12-16 | 2022-06-23 | 北京锐安科技有限公司 | Data cleaning method, apparatus and device, and storage medium |
CN113268306A (en) * | 2021-06-08 | 2021-08-17 | 金蝶软件(中国)有限公司 | Resume parsing interface calling method and device and computer storage medium |
CN113268306B (en) * | 2021-06-08 | 2024-03-19 | 金蝶软件(中国)有限公司 | Resume analysis interface calling method and device and computer storage medium |
CN113722757A (en) * | 2021-08-30 | 2021-11-30 | 平安医疗健康管理股份有限公司 | Sensitive data coding method, device, equipment and storage medium |
CN113676547A (en) * | 2021-09-01 | 2021-11-19 | 北京字跳网络技术有限公司 | Data processing method, data processing device, storage medium and electronic equipment |
CN114090118A (en) * | 2021-11-11 | 2022-02-25 | 北京百度网讯科技有限公司 | Method, device and equipment for starting small program and storage medium |
CN114090118B (en) * | 2021-11-11 | 2023-09-15 | 北京百度网讯科技有限公司 | Method, device, equipment and storage medium for starting applet |
Also Published As
Publication number | Publication date |
---|---|
WO2019242132A1 (en) | 2019-12-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108984625A (en) | Information filtering method, device, computer equipment and storage medium | |
JP7138233B2 (en) | A self-executing security token that enforces smart contract-based compliance rules referencing a global registry of smart contract-based investors | |
US9189356B2 (en) | Data audit module for application software | |
US11216802B2 (en) | Self-enforcing security token implementing smart-contract-based compliance rules consulting smart-contract-based global registry of investors | |
CN109086325A (en) | Data processing method and device based on block chain | |
CN105760192B (en) | Registration method and device for service module of system server | |
CN107567696A (en) | The automatic extension of resource instances group in computing cluster | |
JP7266354B2 (en) | Data anonymization | |
WO2021236403A1 (en) | Modular, configuralble smart contracts for blockchain transactions | |
US20140214450A1 (en) | Data reconciliation from trusted sources | |
CN106126551A (en) | A kind of generation method of Hbase database access daily record, Apparatus and system | |
EP2610768A1 (en) | Data archiving and de-archiving in a business environment | |
CN111258832B (en) | Interface parameter verification method, device, equipment and medium | |
US10877984B1 (en) | Systems and methods for filtering and visualizing large scale datasets | |
CN110457307A (en) | Metadata management system, user's cluster creation method, device, equipment and medium | |
US20180060540A1 (en) | Medidata clinical trial system integration with oracle coding system | |
CN206421382U (en) | A kind of data handling system | |
US20220052853A1 (en) | Universal blockchain data model | |
RU2728809C1 (en) | Method and system for validating complex data structures in a complex micro-service architecture with visual display of results | |
US10706073B1 (en) | Partitioned batch processing for a usage analysis system | |
BE1024534B1 (en) | SYSTEM AND DEVICE TO PROVIDE DIFFERENT VERSIONS OF A TYPE OF DATA TRAIN | |
US10235530B2 (en) | Protecting sensitive information when replicating data to remote systems | |
JP2007172018A (en) | Data storage method and data storage system | |
US10938882B2 (en) | Preprocessing and storage of cloud service usage reports | |
US20240015163A1 (en) | Tenant configuration state extraction and variance detection |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |