CN107294956A - The conflict processing method and device of data markers - Google Patents

The conflict processing method and device of data markers Download PDF

Info

Publication number
CN107294956A
CN107294956A CN201710374968.4A CN201710374968A CN107294956A CN 107294956 A CN107294956 A CN 107294956A CN 201710374968 A CN201710374968 A CN 201710374968A CN 107294956 A CN107294956 A CN 107294956A
Authority
CN
China
Prior art keywords
data
marking
initial
marking data
conflict
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
Application number
CN201710374968.4A
Other languages
Chinese (zh)
Inventor
刘敬良
黄凌志
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qianxin Technology Co Ltd
Original Assignee
Beijing Qianxin Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Qianxin Technology Co Ltd filed Critical Beijing Qianxin Technology Co Ltd
Priority to CN201710374968.4A priority Critical patent/CN107294956A/en
Publication of CN107294956A publication Critical patent/CN107294956A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/3331Query processing
    • G06F16/334Query execution
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • G06F21/6245Protecting personal data, e.g. for financial or medical purposes
    • G06F21/6254Protecting personal data, e.g. for financial or medical purposes by anonymising data, e.g. decorrelating personal data from the owner's identification
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/279Recognition of textual entities
    • G06F40/284Lexical analysis, e.g. tokenisation or collocates

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • Databases & Information Systems (AREA)
  • Computer Hardware Design (AREA)
  • Computational Linguistics (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Data Mining & Analysis (AREA)
  • Medical Informatics (AREA)
  • Software Systems (AREA)
  • Computing Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a kind of conflict processing method of data markers and device.This method includes:Initial data is received, and parses the data type for obtaining initial data;Strategy according to being pre-configured with chooses the marking algorithm matched with the data type of initial data;According to the marking algorithm chosen to the processing of being marked of initial data, the marking data of initial data conversion are obtained;Whether judge mark data conflict with other marking data stored in local data base;If conflict, marking data are adjusted according to ad hoc rules, new marking data are generated, and new marking data are different from the marking data conflicted.The embodiment of the present invention can effectively ensure the uniqueness of marking data, it is to avoid the problem of the data not initial data after marking is gone in follow-up caused by the conflict of marking data, and then ensure that the normal process of data.

Description

The conflict processing method and device of data markers
Technical field
The present invention relates to field of computer technology, the conflict processing method and dress of more particularly to a kind of data markers Put.
Background technology
With continuing to develop for computer technology, have been directed to life, work using computer disposal business datum, learn Practise etc. various aspects, such as banking is handled, the login of platform, user profile statistics etc..Thus, to data progress During reason, the security and validity of data are just particularly important.
When being handled using prior art data, often to being marked of business datum to obtain corresponding word Symbol string, still, does not have the significant field information of effectively retained business data in the character string after marking.But, at certain , it is necessary to which the significant field to business datum is verified, if not having retained business in the character string after marking among a little business The significant field of data, just easilys lead to the verification failure of data, submits and handles so that data can not be completed.
In addition, in the prior art, to being still numeral after being marked of numeral, this characteristic is easily caused data Conflict sex chromosome mosaicism, i.e., different numerals are likely to be obtained identical marking numeral after marking, and data collision may Cause the business datum of the data after marking and non-primary, so as to cause the mistake of business datum, bring unnecessary fiber crops It is tired.
The content of the invention
In view of the above problems, it is proposed that the present invention so as to provide one kind overcome above mentioned problem or at least in part solve on State the conflict processing method and device of the data markers of problem.
According to an aspect of of the present present invention there is provided a kind of conflict processing method of data markers, including:
Initial data is received, and parses the data type for obtaining the initial data;
Strategy according to being pre-configured with chooses the marking algorithm matched with the data type of the initial data;
Being marked of initial data is handled according to the marking algorithm chosen, the initial data conversion is obtained Marking data;
Judge whether other marking data of the marking data with having been stored in local data base conflict;
If conflict, the marking data are adjusted according to ad hoc rules, new marking data, and institute is generated It is different from the marking data conflicted to state new marking data.
Alternatively, it is described that being marked of initial data is handled according to the marking algorithm chosen, obtain described The marking data of initial data conversion, including:
The initial data is changed in itself according to the marking algorithm chosen, the numerical character after being changed String;
Check character is added for the digit strings after the conversion, the marking data of the initial data conversion are obtained.
Alternatively, the digit strings addition check character for after the conversion, including:
The signature identification for recognizing business is added for the digit strings after the conversion;And/or
The marking algorithm mark of the selection is added for the digit strings after the conversion.
Alternatively, the digit strings addition check character for after the conversion, obtains the initial data conversion Marking data, including:
The signature identification for recognizing business is added on the head of digit strings after the conversion, after the conversion The afterbodys of digit strings add the marking algorithm mark of the selection, after head, afterbody and the conversion Digit strings obtain the marking data of the initial data conversion.
Alternatively, it is described to be used to recognize that the signature identification length of business is 6 bytes;
The marking algorithm identification length of the selection is 3 bytes.
Alternatively, whether described other marking data for judging to have stored in the marking data and local data base Conflict, including:
Search whether exist and described other marking data of marking data identical from the local data base;
If in the presence of determining whether that the initial data is with the initial data corresponding to other described marking data It is no identical;
If so, then the marking data do not conflict with other described marking data;
If it is not, then the marking data and other described marking data collisions.
Alternatively, other described marking data and corresponding original number have been pre-saved in the local data base Mapping relations between, judge the initial data and the initial data corresponding to other described marking data whether phase Together, including:
Original number corresponding with other described marking data is obtained according to the mapping relations stored in local data base According to;
Judge the initial data with obtain other described marking data corresponding to initial data it is whether identical.
Alternatively, if in the local data base be not present with described other marking data of marking data identical, Then the marking data do not conflict with other marking data.
Alternatively, whether described other marking data for judging to have stored in the marking data and local data base Conflict, including:
The marking data that the conflict position stored in the local data base is 1 are obtained, wherein, the conflict position is 1 Marking data be carried out conflict judge marking data;
From the conflict position of acquisition for 1 marking data in search whether exist with the marking data identical other Marking data;
If in the presence of, determine whether the initial data and it is described conflict position be 1 marking data corresponding to original Whether beginning data are identical;
If so, then the marking data do not conflict with other described marking data, and by the marking data Collision position 1;
If it is not, then the marking data and other described marking data collisions.
Alternatively, it is described that the marking data are adjusted according to ad hoc rules, new marking data are generated, and The new marking data are different from the marking data conflicted, including:
Displacement operation is carried out to the marking data, new marking data are generated;
Judge whether other marking data of the new marking data with having been stored in the local data base rush It is prominent;
If conflict, continue to carry out displacement operation to the new marking data, until the marking after displacement operation Untill data are different from other marking data stored in the local data base.
Alternatively, the data type of the initial data includes following any one:
The numeral of random digit, fixed length rule numeral and specific format, wherein, the length one of the fixed length rule numeral It is fixed.
Alternatively, the strategy that the basis is pre-configured with chooses the marking matched with the data type of the initial data Algorithm, including:
Recognize whether the initial data is sensitive data according to the data type, wherein, the sensitive data includes The data related to security privacy;
Calculated if so, then choosing the marking matched with the data type of the initial data according to the strategy being pre-configured with Method.
Alternatively, the sensitive data include it is following any one:Identity data, code data, account data, account Number balance data.
Alternatively, the strategy that the basis is pre-configured with chooses the marking matched with the data type of the initial data Algorithm, including:
According to the corresponding relation between pre-defined different types of data and at least one marking algorithm, choose and institute State the corresponding marking algorithm of data type of initial data.
Alternatively, it is described that the marking data are adjusted according to ad hoc rules, new marking data are generated, and After the new marking data are different from the marking data conflicted, in addition to:
The mapping relations set up between the new marking data and the initial data, and it is stored in the local number According in storehouse.
Alternatively, methods described also includes:Marking data are carried out to go marking to handle.
Alternatively, it is described that marking data are carried out to go marking to handle, including:
According to the mapping relations preserved in the local data base, initial data corresponding with the marking data is searched And obtain.
According to another aspect of the present invention, a kind of clash handle device of data markers is additionally provided, including:
Parsing module, suitable for receiving initial data, and parses the data type for obtaining the initial data;
Module is chosen, suitable for choosing the mark matched with the data type of the initial data according to the strategy being pre-configured with Change algorithm;
Mark module, suitable for being handled according to the marking algorithm chosen being marked of initial data, obtains institute State the marking data of initial data conversion;
Judge module, suitable for judging that other marking data of the marking data with having been stored in local data base are No conflict;
Generation module, if suitable for conflict, being adjusted according to ad hoc rules to the marking data, generates new mark Noteization data, and the new marking data are different from the marking data conflicted.
Alternatively, the mark module is further adapted for:
The initial data is changed in itself according to the marking algorithm chosen, the numerical character after being changed String;
Check character is added for the digit strings after the conversion, the marking data of the initial data conversion are obtained.
Alternatively, the mark module is further adapted for:
The signature identification for recognizing business is added for the digit strings after the conversion;And/or
The marking algorithm mark of the selection is added for the digit strings after the conversion.
Alternatively, the mark module is further adapted for:
The signature identification for recognizing business is added on the head of digit strings after the conversion, after the conversion The afterbodys of digit strings add the marking algorithm mark of the selection, after head, afterbody and the conversion Digit strings obtain the marking data of the initial data conversion.
Alternatively, it is described to be used to recognize that the signature identification length of business is 6 bytes;
The marking algorithm identification length of the selection is 3 bytes.
Alternatively, the judge module is further adapted for:
Search whether exist and described other marking data of marking data identical from the local data base;
If in the presence of determining whether that the initial data is with the initial data corresponding to other described marking data It is no identical;
If so, then the marking data do not conflict with other described marking data;
If it is not, then the marking data and other described marking data collisions.
Alternatively, other described marking data have been pre-saved in the local data base and corresponding original Mapping relations between data, the judge module is further adapted for:
Original number corresponding with other described marking data is obtained according to the mapping relations stored in local data base According to;
Judge the initial data with obtain other described marking data corresponding to initial data it is whether identical.
Alternatively, the judge module is further adapted for:If being not present and the marking data phase in the local data base With other marking data, then the marking data do not conflict with other marking data.
Alternatively, the judge module is further adapted for:
The marking data that the conflict position stored in the local data base is 1 are obtained, wherein, the conflict position is 1 Marking data be carried out conflict judge marking data;
From the conflict position of acquisition for 1 marking data in search whether exist with the marking data identical other Marking data;
If in the presence of, determine whether the initial data and it is described conflict position be 1 marking data corresponding to original Whether beginning data are identical;
If so, then the marking data do not conflict with other described marking data, and by the marking data Collision position 1;
If it is not, then the marking data and other described marking data collisions.
Alternatively, the generation module is further adapted for:Displacement operation is carried out to the marking data, new marking is generated Data;
Judge whether other marking data of the new marking data with having been stored in the local data base rush It is prominent;
If conflict, continue to carry out displacement operation to the new marking data, until the marking after displacement operation Untill data are different from other marking data stored in the local data base.
Alternatively, the data type of the initial data includes following any one:
The numeral of random digit, fixed length rule numeral and specific format, wherein, the length one of the fixed length rule numeral It is fixed.
Alternatively, the selection module is further adapted for:Recognize whether the initial data is sensitive according to the data type Data, wherein, the sensitive data includes the data related to security privacy;
Calculated if so, then choosing the marking matched with the data type of the initial data according to the strategy being pre-configured with Method.
Alternatively, the sensitive data include it is following any one:Identity data, code data, account data, account Number balance data.
Alternatively, the selection module is further adapted for:According to pre-defined different types of data and at least one marking Corresponding relation between algorithm, chooses marking algorithm corresponding with the data type of the initial data.
Alternatively, described device also includes:Set up module, suitable for the generation module according to ad hoc rules to the mark Noteization data are adjusted, and generate new marking data, and the new marking data and the marking data of conflict are not With after,
The mapping relations set up between the new marking data and the initial data, and it is stored in the local number According in storehouse.
Alternatively, described device also includes:Mark module is removed, suitable for carrying out going marking to handle to marking data.
Alternatively, it is described to go mark module to be further adapted for:According to the mapping relations preserved in the local data base, search with The corresponding initial data of the marking data is simultaneously obtained.
According to another aspect of the present invention, a kind of computer program, including computer-readable code are additionally provided, when described When computer-readable code is run on the computing device, at the conflict for causing the data markers of the computing device above Reason method.
According to another aspect of the invention, a kind of computer-readable medium is additionally provided, wherein storing calculating above Machine program.
In embodiments of the present invention, first, initial data is received, and parses the data type for obtaining initial data.Secondly, Strategy according to being pre-configured with chooses the marking algorithm matched with the data type of initial data.Then, according to the mark chosen Noteization algorithm obtains the marking data of initial data conversion to the processing of being marked of initial data.And determine whether mark Whether noteization data conflict with other marking data stored in local data base.If conflict, according to ad hoc rules pair Marking data are adjusted, and generate new marking data, and new marking data are different from the marking data conflicted. , it is necessary to which the demand for retaining primary data information (pdi) is different after being handled due to different types of being marked of data.Therefore, it is of the invention Embodiment by analyzing the data type of initial data, and for the matching of different types of initial data it is suitable, with for Property marking algorithm so that the data after labeledization algorithm process can retain its initial data significant field letter Breath, and then can clearly embody the service attribute of marking data.In addition, the embodiment of the present invention passes through to marking data Conflict judgement is carried out, and the marking data that there is conflict are adjusted correspondingly, so as to effectively ensure marking The uniqueness of data, it is to avoid follow-up data gone after marking caused by the conflict of marking data not original number According to the problem of, and then ensure that the normal process of data.
Further, the embodiment of the present invention can also be effectively prevented from, due to using same marking algorithm, making mark Change in data and do not retain the significant field of initial data, so as to cause the verification of data to fail, it is impossible to complete data and submit and locate The problem of reason.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention, And can be practiced according to the content of specification, and in order to allow above and other objects of the present invention, feature and advantage can Become apparent, below especially exemplified by the embodiment of the present invention.
According to the accompanying drawings to the detailed description of the specific embodiment of the invention, those skilled in the art will be brighter Above-mentioned and other purposes, the advantages and features of the present invention.
Brief description of the drawings
By reading the detailed description of hereafter preferred embodiment, various other advantages and benefit is common for this area Technical staff will be clear understanding.Accompanying drawing is only used for showing the purpose of preferred embodiment, and is not considered as to the present invention Limitation.And in whole accompanying drawing, identical part is denoted by the same reference numerals.In the accompanying drawings:
Fig. 1 shows the conflict processing method schematic flow sheet of data markers according to an embodiment of the invention;
Fig. 2 shows the conflict processing method schematic flow sheet of data markers in accordance with another embodiment of the present invention;
Fig. 3 shows initial data and marking data in data markers method according to an embodiment of the invention Corresponding relation schematic diagram;
Fig. 4 shows initial data and marking number in data markers method in accordance with another embodiment of the present invention According to corresponding relation schematic diagram;
Fig. 5 shows initial data and marking data in the data markers method of another embodiment of the invention Corresponding relation schematic diagram;
Fig. 6 shows initial data and marking data in the data markers method of further embodiment of the present invention Corresponding relation schematic diagram;
Fig. 7 shows the user interface schematic diagram that data markers makeup according to an embodiment of the invention is put;
Fig. 8 shows the user interface schematic diagram that data markers makeup in accordance with another embodiment of the present invention is put;
Fig. 9 shows the structural representation that data markers makeup according to an embodiment of the invention is put;
Figure 10 shows the structural representation that data markers makeup in accordance with another embodiment of the present invention is put;
Figure 11 shows the block diagram of the computing device for performing the data markers method according to the present invention;And
Figure 12 shows the program code for keeping or carrying the data markers method according to the present invention of realizing Memory cell.
Embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although showing the disclosure in accompanying drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here Limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure Complete conveys to those skilled in the art.
In order to solve the above technical problems, the embodiments of the invention provide a kind of conflict processing method of data markers.Fig. 1 Show the schematic flow sheet of the conflict processing method of data markers according to an embodiment of the invention.Referring to Fig. 1, the party Method can at least include step S102 to step S112.
Step S102, receives initial data, and parse the data type for obtaining initial data.
In this step, the data type of initial data can be random digit, fixed length rule numeral and specific format Numeral etc..
Wherein, random digit can carry out the pure digi-tal of arithmetical operation, such as 123456,542789345, at random The length of numeral is not fixed.Fixed length rule numeral can be that length is certain and numeral with certain sense, such as identity card Number, credit number, bank's card number etc..The numeral of specific format can be the numeral with set form, such as date (such as 2017-04-18), comprising area code telephone number (such as 010-123XXX22).In this embodiment, cited inhomogeneity The data of type are only schematical, and data type mentioned in this article can also be other data types, and the present invention is implemented Example is not specifically limited to this.
Step S104, the marking algorithm matched with the data type of initial data is chosen according to the strategy being pre-configured with.
In this step, pre-defined corresponding between multiple different data types and at least one marking algorithm Relation, can choose marking algorithm corresponding with the data type of initial data according to pre-defined strategy.Wherein, mark Hash replacement algorithm or some other customized irreversible replacement algorithm etc., the embodiment of the present invention can be used by changing algorithm This is not specifically limited.
Step S106, according to the marking algorithm chosen to the processing of being marked of initial data, obtains initial data and turns The marking data changed.
Whether step S108, judge mark data conflict with other marking data stored in local data base. If so, then performing step S110, if it is not, then performing step S112, terminate flow.
In this step, multiple initial data and the corresponding marking data of each initial data are stored in local data base Between mapping relations.For example, in local data base initial data and corresponding mark can be stored by the form of form Mapping relations between noteization data.
Marking data are adjusted by step S110 according to ad hoc rules, generate new marking data, and new mark Noteization data are different from the marking data conflicted.
In this step, when judging other markings in marking data and local data base by above step S108 Data collision, then can be adjusted to marking data, and generate new marking data, so as to solve marking data Collision problem.
, it is necessary to which the demand for retaining primary data information (pdi) is different after being handled due to different types of being marked of data.Cause This, the embodiment of the present invention by analyzing the data type of initial data, and for the matching of different types of initial data it is suitable, With targetedly marking algorithm, so that the data after labeledization algorithm process can retain the important of its initial data Field information, and then can clearly embody the service attribute of marking data.In addition, the embodiment of the present invention passes through to mark Change data and carry out conflict judgement, and the marking data that there is conflict are adjusted correspondingly, so as to effectively ensure The uniqueness of marking data, it is to avoid the follow-up data gone after marking caused by the conflict of marking data are not The problem of initial data, and then ensure that the normal process of data.
Further, the embodiment of the present invention can also be effectively prevented from, due to using same marking algorithm, making mark Change in data and do not retain the significant field of initial data, so as to cause the verification of data to fail, it is impossible to complete data and submit and locate The problem of reason.
Step S104 is seen above, in an embodiment of the present invention, is chosen and original number according to the strategy being pre-configured with According to data type matching marking algorithm when, can also first foundation initial data data type identify the initial data Whether it is sensitive data.If so, then further choosing what is matched with the data type of initial data according to the strategy being pre-configured with Marking algorithm.In the embodiment, sensitive data can be the data related to security privacy.For example, identity data, close Code data, account data, account balance data etc., the embodiment of the present invention is not specifically limited to the content of sensitive data.
Step S106 is seen above, in an embodiment of the present invention, rower can be entered to initial data in the following way Noteization processing, and obtain the marking data after initial data conversion.
First, initial data is changed in itself according to the marking algorithm chosen, the numerical character after being changed String.Digit strings after changing can be one group of random digit, and the length of the random digit is divided into two kinds of fixed length and random length, Specific length is needed depending on the data type of initial data.For example, after the numeral conversion of fixed length rule numeral and specific format Digit strings be CHAR, random digit change after digit strings into random length character string.
Then, check character is added for the digit strings after conversion, obtains the marking data of initial data conversion.Its In, when being digit strings addition check character, the signature identification for recognizing business can be added, can also be added for identifying The algorithm mark of selected marking algorithm.It is, of course, also possible to which addition signature identification and algorithm identify both verifications simultaneously Symbol, the embodiment of the present invention is not specifically limited to this.
Step S108 is seen above, in an embodiment of the present invention, in judge mark data and local data base Whether other marking data of storage when conflicting, and can search whether to exist from local data base identical with marking data Other marking data.
If being not present, marking data do not conflict with other marking data.
If in the presence of determining whether whether initial data is identical with initial data corresponding to other marking data. If identical, marking data do not conflict with other marking data, if differing, marking data and other marking numbers According to conflict.
In this embodiment, other marking data and corresponding initial data have been pre-saved in local data base Between mapping relations.If existing and other marking data of marking data identical in local data base, then need elder generation Other corresponding initial data of marking data are obtained, and then initial data is judged.
Specifically, being obtained in the marking data and the mapping relations of initial data that can have been stored from local data base Initial data corresponding with other marking data, then compares other corresponding initial data of marking data and sheet of acquisition Whether the secondary initial data received is consistent.Because any one initial data all has unique marking data corresponding thereto Should, therefore, if this obtained marking data is identical with other marking data in local data base, and by judging Learn that its respective initial data is differed, then this obtained marking data and other marking data collisions, now, Need to solve the conflict by subsequent step.
For example, the marking data obtained after the processing of initial data " 12345 " being marked are " 987654321 ", lead to Cross lookup and find that there are other marking data in local data base is also " 987654321 ".Further marked according to other The mapping relationship searching changed between data and corresponding initial data is corresponding to other marking data " 987654321 " Initial data be " 45678 ", the initial data " 45678 " is different from the initial data " 12345 " received, it is possible thereby to really It is fixed, other marking data in the marking data " 987654321 " and local data base after this marking processing " 987654321 " conflict, at this time, it may be necessary to solve the data collision by subsequent step.
With continued reference to above step S108, in an embodiment of the present invention, because marking data with having carried out before Other marking data for crossing conflict judgement there is a possibility that conflict is bigger, therefore, in judge mark data and local number , alternatively, can also be by judge mark data and local data base according to when whether other marking data conflict in storehouse Whether the marking data for having carried out conflict judgement conflict, so as to efficiently judge whether marking data conflict.Example Such as, the marking data that conflict position is 1 in local data base are obtained, wherein, conflict position has as been entered for 1 marking data The marking data that conflict of going judges.
Specifically, first, obtaining the marking data that conflict position is 1 in local data base.
Then, from conflict position for 1 marking data in search whether exist and marking data identical other mark Change data.
If in the presence of with other marking data of marking data identical, determine whether initial data with conflict position be Whether the initial data corresponding to 1 marking data is identical.If identical, marking data are not rushed with other marking data It is prominent, and by the collision position 1 of marking data.If it is different, then marking data and other marking data collisions, further, It is adjusted in the marking data subsequently to conflict, generates new marking data, so that new marking data and conflict Marking data it is different.
In an embodiment of the present invention, other multiple marking data are saved in local data base, it is corresponding respectively with it Initial data and each marking data conflict position.Wherein, other marking data of preservation can include by original number Replacement data, the corresponding signature identification of initial data, algorithm mark of the marking algorithm used for being changed according to itself etc..Example Such as, referring to table 1, the above can be preserved in table form in the local database.
Initial data Replacement data Signature identification Algorithm is identified Conflict position
234345123432 764330485490 01230 01 0
123123 2356895243211 01231 12 1
123 563434 01230 96 0
123123 235689524 01236 11 0
32345677434 3435353425323 01231 12 1
Table 1
See above step S110, in an embodiment of the present invention, if by above step judge marking data with , can be with when being adjusted according to ad hoc rules to marking data during other marking data collisions in local data base Corresponding displacement operation is carried out to marking data, new marking data are generated.It is, of course, also possible to be carried out to marking data Others operation is to generate new marking data, and the embodiment of the present invention is not specifically limited to this.
The embodiment of the present invention additionally provides the conflict processing method of another data markers.Fig. 2 is shown according to this hair The schematic flow sheet of the conflict processing method of the data markers of another bright embodiment.Referring to Fig. 2, this method can at least be wrapped Step S202 is included to step S214.
Step S202, receives initial data, and parse the data type for obtaining initial data.
Step S204, the marking algorithm matched with the data type of initial data is chosen according to the strategy being pre-configured with.
Step S206, according to the marking algorithm chosen to the processing of being marked of initial data, obtains initial data and turns The marking data changed.
Step S208, searches whether exist and other marking data of marking data identical from local data base. If so, performing step S210.If it is not, step S212 is performed, the mapping relations set up between marking data and initial data, and Preserve in the local database.
In this step, it is not present and other marking numbers of marking data identical if being searched from local data base According to then the marking data do not conflict with other marking data.At this point it is possible to by between marking data and initial data Mapping relations are preserved in the local database, and subsequently data are searched with facilitating.
Step S210, judges whether initial data is identical with initial data corresponding to other marking data.If it is not, holding Row step S214.If so, performing step S212, the mapping relations set up between marking data and initial data, and it is stored in In local data base.
Marking data are carried out displacement operation by step S214, generate new marking data, and continue executing with above-mentioned step Rapid S208.
In this step, because any one initial data all has unique marking data corresponding thereto, therefore, If initial data is identical with the initial data corresponding to other marking data, then this obtained marking number can be determined According to other marking data collisions in local data base.At this point it is possible to by being carried out to the marking data that this is obtained Displacement operation, new marking data are generated to adjust marking data, then proceed to judge new marking data whether with Other marking data collisions, if conflict, continue to carry out displacement operation to new marking data, until new marking number According to untill not conflicting with other marking data in local data base, i.e. circulation performs step S208 to step S214.
Step S206 is seen above, in an embodiment of the present invention, initial data is entered according to the marking algorithm chosen Line flagization processing, obtains the process of the marking data of initial data conversion, first initial data can be converted into one in itself Group random digit character string, is then adding check character for the digit strings.In this embodiment, marking data can be wrapped During containing three parts, as digit strings addition check character, the head of digit strings after conversion is added for recognizing industry The signature identification of business, and the afterbody addition algorithm mark of digit strings after conversion.Then in conjunction with head, afterbody and turn Digit strings after changing obtain marking data.
For example, with reference to the corresponding relation of the initial data shown in Fig. 3 and marking data, in this embodiment, original number According to format data is used, format data can be fixed length mentioned above rule numeral or the numeral of specific format.Will Format data is changed in itself, and the digit strings after obtained conversion are the replacement data shown in Fig. 3, the displacement Data can be fixed-length data.Then, the signature identification of fixed length is added on the head of replacement data, afterbody adds the algorithm of fixed length Mark, so as to form the marking data after conversion.
In a specific embodiment, referring to Fig. 4, format data (initial data) is " 458109199706033312 ", " 458109199706033312 " are changed according to the marking algorithm of selection, obtained Digit strings after conversion, in order to ensure the security of the character string after conversion, with " * * * * * * * * " represent the number after conversion Word character string.In this specific embodiment, the signature identification of digit strings head addition after conversion is " 01230 ", tail The algorithm of portion's addition is designated " 012 ".Wherein, signature identification length is 6 bytes, generally using only 5 therein, another one For reserved place.The length of algorithm mark is 3 bytes, and algorithm maximum can support 128 kinds.
In another example, initial data shown in Figure 5 and the corresponding relation of marking data are in this embodiment, original Data use nonformatted data (i.e. random data), and nonformatted data can be random digit mentioned above.By form Change data to be changed in itself, the digit strings after obtained conversion are the replacement data shown in Fig. 5, the replacement data Can be random length data.Then, the signature identification of fixed length is added on the head of replacement data, afterbody adds the algorithm mark of fixed length Know, so as to form the marking data after conversion.
In a specific embodiment, referring to Fig. 6, nonformatted data (initial data) is " 123456789 ", will " 123456789 " are changed according to the marking algorithm of selection, the digit strings after being changed, in order to ensure after conversion Character string security, with " * * * * * * * * * * * * * " represent conversion after digit strings.In the specific embodiment, turning The signature identification of digit strings head addition after changing is " 01230 ", and the algorithm of afterbody addition is designated " 013 ".Wherein, it is special It is 6 bytes to levy identification length, and generally using only 5 therein, another one is reserved place.The length of algorithm mark is 3 words Section, algorithm maximum can support 128 kinds.It can be seen that, the format data difference shown in the nonformatted data and Fig. 4 shown in Fig. 6 Marking data after conversion have identical signature identification " 01230 ", i.e., both are probably to belong to identical type of service, but It is that the marking data algorithm mark after both change is different, i.e., both have been respectively adopted different marking algorithms and turned Change.
In an embodiment of the present invention, the tokenized clash handle process of data can be performed in gateway server side.
Specifically, first, gateway server is first to the processing of being marked of initial data.
Gateway server receives the initial data from client, and parses the data type of initial data.Wherein, come from Initial data in client can be the data inputted by user into client.Then, it is advance according to gateway server side The strategy of configuration chooses the marking algorithm matched with the data type of initial data, and according to the marking algorithm to original number Handled according to being marked, obtain corresponding marking data.
Secondly, the marking data after gateway server is handled marking carry out the judgement of data collision, and to existing The marking data of data collision carry out Conflict solving.Gateway server searches whether to exist with giving birth to above from local data base Into marking data identical other marking data.
If being not present, gateway server is sent to external network server using marking data instead of initial data.Meanwhile, The mapping relations that gateway server can also be set up between marking data and initial data, and preserve in the local database, With subsequently by mapping relationship searching with marking data corresponding initial data of the gateway server according to preservation.
If in the presence of determining whether initial data from client and the original number corresponding to other marking data Whether according to identical, if identical, gateway server is sent to external network server using marking data instead of initial data.If not phase Together, then it represents that the marking data generated above and other marking data collisions, conflict solution now is carried out to marking data Certainly, new marking data are generated, specific Conflict solving process refers to foregoing embodiments, here is omitted.When data punching After the completion of prominent solution, gateway server is sent to external network server using the new marking data of generation instead of initial data In, to carry out business processing according to marking data by external network server.
In this embodiment, the solution that gateway server can be to being marked of data and data collision, it is used for The UI (User Interface, user interface) of configuration interface specifically may refer to Fig. 7, in " application management " of " management " option In illustrate multinomial configuration interface, such as client, contact person, order, business opportunity.User can click on wherein any one configuration choosing Item carries out the configuration of relevant information.For example, clicking on " customer account " option therein, it shows interface as shown in figure 8, showing On the multinomial configuration information of " customer account ", such as name on account, account, phone, wherein, " data protection strategy " this Option shows these information and has been carried out marking processing.User can be to phase by " editor " clicked in " operation " option The data message answered is configured.It is only schematical to be related to each item data in Fig. 7 and Fig. 8, and the embodiment of the present invention is to this It is not specifically limited.
In an alternative embodiment of the invention, data are can also carry out in gateway server side goes marking process.When outer Network server has been performed to marking data after business processing, and marking data are back into gateway server, gateway service Device is received after marking data, according to the mapping relationship searching between the marking data and initial data of preservation to corresponding Initial data, and the initial data is back to client, to show user.
It is now tokenized to data with the embodiment in a concrete scene in order to clearly embody the embodiment of the present invention Clash handle process describes in detail.
In this embodiment, gateway server is 360 gateway servers, and client is that the tax handles client, outer net clothes Business device is the far-end server of the tax bureau.
First, the tax handles the initial data that client receives user's input, such as company's account " 123XXXX456 ", and incites somebody to action The account " 123XXXX456 " is sent to 360 gateway servers, and 360 gateway servers receive the account " 123XXXX456 " Afterwards, the account is parsed, and it is fixed length rule numeral to obtain its data type.
Secondly, 360 gateway servers choose the mark matched with the regular numeric type of fixed length according to the strategy being pre-configured with Change algorithm, and account " 123XXXX456 " itself is changed, the digit strings after being changed are " 55XXXX66 ".Enter And, 360 gateway servers add signature identification to the digit strings " 55XXXX66 " after conversion.Because initial data is company Account, therefore, the signature identification for identifying company's account, such as feature mark is added on the head of digit strings " 55XXXX66 " Know for " 12345 ".Marking algorithm according to matching determines the algorithm mark that the afterbody in digit strings " 55XXXX66 " adds “012”.Finally, the marking data after being changed are " 1234555XXXX66012 ".
Then, 360 gateway servers search whether exist and marking data from local data base Other marking data of " 1234555XXXX66012 " identical.
If being not present, 360 gateway servers send the marking data " 1234555XXXX66012 " of conversion to tax The far-end server of business office, far-end server carries out the processing of data service according to the marking data received.Simultaneously.360 Gateway server also sets up the mapping between marking data " 1234555XXXX66012 " and original account " 123XXXX456 " Relation, and preserve in the local database.
If in the presence of determining whether the original number corresponding to original account " 123XXXX456 " and other marking data According to whether identical, if the initial data corresponding to other marking data is " 234XXX789 ", the account with reception " 123XXXX456 " is different, then marking data " 1234555XXXX66012 " and other marking data collisions.
Further, 360 gateway server resolving data conflicts, i.e., carried out to marking data " 1234555XXXX66012 " Displacement operation, for example, first by marking data " 1234555XXXX66012 " displacement one, obtaining new marking data is " 234555XXXX660121 ", and judge whether the new marking data rush with other marking data in local data base It is prominent, if conflict, continue to carry out displacement operation to the new marking data, until new marking data and local data base Untill middle other marking data do not conflict.After data collision Resolving probiems, 360 gateway servers utilize new mark Change data to send to the far-end server of the tax bureau instead of initial data.
In this embodiment, if after being taken turns to marking data " 1234555XXXX66012 " displacement operation one, obtaining New marking data still have data collision problem.Now, can also be in the marking data In " 1234555XXXX66012 ", or in the marking data after displacement operation add other characters to solve data punching Prominent problem.
Finally, when the far-end server of the tax bureau is to marking data " 1234555XXXX66012 " or new marking Data have been performed after business processing, and the marking data are back into 360 gateway servers.360 gateway servers are being received To after marking data, according to the mapping relationship searching preserved before to corresponding original account " 123XXXX456 ", and will The account " 123XXXX456 " is back to the tax and handles client, shows the user for handling the tax.
Based on same inventive concept, the embodiment of the present invention additionally provides a kind of clash handle device of data markers, Fig. 9 Show the structural representation of the clash handle device of data markers according to an embodiment of the invention.Referring to Fig. 9, data Tokenized clash handle device 900 can at least include parsing module 910, choose module 920, mark module 930, judge mould Block 940 and generation module 950.
Now introduce each composition of the clash handle device 900 of the data markers of the embodiment of the present invention or the function of device with And the annexation between each several part:
Parsing module 910, suitable for receiving initial data, and parses the data type for obtaining initial data;
Module 920 is chosen, is coupled with parsing module 910, suitable for being chosen according to the strategy being pre-configured with and initial data The marking algorithm of data type matching;
Mark module 930, is coupled with choosing module 920, suitable for being carried out according to the marking algorithm chosen to initial data Marking is handled, and obtains the marking data of initial data conversion;
Judge module 940, is coupled with mark module 930, suitable for judge mark data with having been stored in local data base Other marking data whether conflict;
Generation module 950, is coupled with judge module 940, if suitable for conflict, entering according to ad hoc rules to marking data Row adjustment, generates new marking data, and new marking data are different from the marking data conflicted.
In an embodiment of the present invention, mark module 930 is further adapted for, according to the marking algorithm chosen to initial data sheet Body is changed, the digit strings after being changed, and is the digit strings addition check character after conversion, obtains original number According to the marking data of conversion.
In an embodiment of the present invention, mark module 930 is further adapted for, and is added for the digit strings after conversion for recognizing The signature identification of business, and/or the marking algorithm mark chosen for the digit strings addition after conversion.
In an embodiment of the present invention, mark module 930 is further adapted for, and the head addition of digit strings after conversion is used In the signature identification of identification business, the marking algorithm that the afterbody addition of digit strings after conversion is chosen is identified, with reference to Digit strings after head, afterbody and conversion obtain the marking data of initial data conversion.
In an embodiment of the present invention, for recognizing that the signature identification length of business is 6 bytes, the marking of selection is calculated Method identification length is 3 bytes.
In an embodiment of the present invention, judge module 940 is further adapted for, and searches whether exist and mark from local data base Other marking data of change data identical.If in the presence of determining whether corresponding to initial data and other marking data Initial data it is whether identical.If so, then marking data do not conflict with other marking data, if it is not, then marking data With other marking data collisions.
In an embodiment of the present invention, other marking data have been pre-saved in the local database and corresponding Mapping relations between initial data, judge module 940 is further adapted for, and is obtained according to the mapping relations stored in local data base Initial data corresponding with other marking data, and judge initial data and the original corresponding to other marking data obtained Whether beginning data are identical.
In an embodiment of the present invention, judge module 940 is further adapted for, if being not present and marking data in local data base Other marking data of identical, then marking data do not conflict with other marking data.
In an embodiment of the present invention, judge module 940 is further adapted for, and obtains the conflict position stored in local data base and is 1 marking data, wherein, the marking data that conflict position is 1 are to have carried out the marking data that conflict judges, and from The conflict position of acquisition for 1 marking data in search whether exist and other marking data of marking data identical.If In the presence of, then determine whether initial data with conflict position for 1 marking data corresponding to initial data it is whether identical.If It is that then marking data do not conflict with other marking data, and by the collision position 1 of marking data, if it is not, then marking Data and other marking data collisions.
In an embodiment of the present invention, generation module 950 is further adapted for, and marking data are carried out with displacement operation, and generation is new Marking data, and judge whether other marking data of new marking data with having been stored in local data base rush It is prominent.If conflict, continue to carry out displacement operation to new marking data, until the marking data after displacement operation and locally Untill other marking data difference stored in database.
In an embodiment of the present invention, the data type of initial data includes following any one, random digit, fixed length rule Then numeral and specific format numeral, wherein, fixed length rule numeral length it is certain.
In an embodiment of the present invention, choose module 920 to be further adapted for, whether be quick according to data type identification initial data Feel data, wherein, sensitive data includes the data related to security privacy.If so, then according to be pre-configured with strategy choose with The marking algorithm of the data type matching of initial data.
In an embodiment of the present invention, sensitive data include it is following any one, identity data, code data, account Number, account balance data.
In an embodiment of the present invention, choose module 920 to be further adapted for, according to pre-defined different types of data and at least Corresponding relation between one marking algorithm, chooses marking algorithm corresponding with the data type of initial data.
Inventive embodiments additionally provide the clash handle device of another data markers, and Figure 10 is shown according to the present invention The structural representation of the clash handle device of the data markers of one embodiment.Referring to Figure 10, the conflict of the data markers Processing fills 900 in addition to comprising above-mentioned modules, can also include setting up module 960 and remove mark module 970.
Set up module 960, coupled with generation module 950, suitable in generation module 950 according to ad hoc rules to marking number According to being adjusted, new marking data are generated, and after new marking data are different with the marking data of conflict, foundation Mapping relations between new marking data and initial data, and preserve in the local database.
Mark module 970 is removed, is coupled with setting up module 960, suitable for carrying out going marking to handle to marking data.
In an embodiment of the present invention, go mark module 970 to be further adapted for, closed according to the mapping preserved in local data base System, searches initial data corresponding with marking data and obtains.
Inventive embodiments additionally provide a kind of computer program, including computer-readable code, work as computer-readable code When running on the computing device, cause the conflict processing method of computing device data markers of any embodiment above.
Inventive embodiments additionally provide a kind of computer-readable medium, wherein storing such as computer program above.
According to the combination of any one above-mentioned preferred embodiment or multiple preferred embodiments, the embodiment of the present invention can reach Following beneficial effect:
In embodiments of the present invention, first, initial data is received, and parses the data type for obtaining initial data.Secondly, Strategy according to being pre-configured with chooses the marking algorithm matched with the data type of initial data.Then, according to the mark chosen Noteization algorithm obtains the marking data of initial data conversion to the processing of being marked of initial data.And determine whether mark Whether noteization data conflict with other marking data stored in local data base.If conflict, according to ad hoc rules pair Marking data are adjusted, and generate new marking data, and new marking data are different from the marking data conflicted. , it is necessary to which the demand for retaining primary data information (pdi) is different after being handled due to different types of being marked of data.Therefore, it is of the invention Embodiment by analyzing the data type of initial data, and for the matching of different types of initial data it is suitable, with for Property marking algorithm so that the data after labeledization algorithm process can retain its initial data significant field letter Breath, and then can clearly embody the service attribute of marking data.In addition, the embodiment of the present invention passes through to marking data Conflict judgement is carried out, and the marking data that there is conflict are adjusted correspondingly, so as to effectively ensure marking The uniqueness of data, it is to avoid follow-up data gone after marking caused by the conflict of marking data not original number According to the problem of, and then ensure that the normal process of data.
Further, the embodiment of the present invention can also be effectively prevented from, due to using same marking algorithm, making mark Change in data and do not retain the significant field of initial data, so as to cause the verification of data to fail, it is impossible to complete data and submit and locate The problem of reason.
In the specification that this place is provided, numerous specific details are set forth.It is to be appreciated, however, that the implementation of the present invention Example can be put into practice in the case of these no details.In some instances, known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure and help to understand one or more of each inventive aspect, exist Above in the description of the exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:It is i.e. required to protect The application claims of shield features more more than the feature being expressly recited in each claim.More precisely, such as following Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore, Thus the claims for following embodiment are expressly incorporated in the embodiment, wherein each claim is in itself All as the separate embodiments of the present invention.
Those skilled in the art, which are appreciated that, to be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more equipment different from the embodiment.Can be the module or list in embodiment Member or component be combined into a module or unit or component, and can be divided into addition multiple submodule or subelement or Sub-component.In addition at least some in such feature and/or process or unit exclude each other, it can use any Combination is disclosed to all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so to appoint Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification (including adjoint power Profit is required, summary and accompanying drawing) disclosed in each feature can or similar purpose identical, equivalent by offer alternative features come generation Replace.
Although in addition, it will be appreciated by those of skill in the art that some embodiments described herein include other embodiments In included some features rather than further feature, but the combination of the feature of be the same as Example does not mean in of the invention Within the scope of and form different embodiments.For example, in detail in the claims, embodiment claimed it is one of any Mode it can use in any combination.
The present invention all parts embodiment can be realized with hardware, or with one or more processor run Software module realize, or realized with combinations thereof.It will be understood by those of skill in the art that can use in practice Microprocessor or digital signal processor (DSP) realize that the clash handle of data markers according to embodiments of the present invention is filled The some or all functions of some or all parts in putting.The present invention is also implemented as described here for performing Method some or all equipment or program of device (for example, computer program and computer program product).This The program of the realization present invention of sample can be stored on a computer-readable medium, or can have one or more signal Form.Such signal can be downloaded from internet website and obtained, and either be provided or with any other on carrier signal Form is provided.
For example, Figure 11 shows the computing device for the conflict processing method that can realize data markers.The computing device Conventionally comprise the computer program product or computer-readable medium of processor 1111 and the form of memory 1120.Memory 1120 can be the electricity of such as flash memory, EEPROM (Electrically Erasable Read Only Memory), EPROM, hard disk or ROM etc Quantum memory.Memory 1120 has depositing for program code 1131 of the storage for performing any method and step in the above method Store up space 1130.For example, the memory space 1130 of store program codes can include being respectively used to realize in above method Each program code 1131 of various steps.These program codes can be read from one or more computer program product Or be written in this one or more computer program product.These computer program products include such as hard disk, compact The program code carrier of disk (CD), storage card or floppy disk etc.Such computer program product is usually such as Figure 12 institutes The portable or static memory cell shown.The memory cell can have and the class of memory 1120 in Figure 11 computing device Memory paragraph, memory space like arrangement etc..Program code for example can be compressed in a suitable form.Generally, memory cell bag Include the computer-readable code 1131 ' of the method and step for performing the present invention, you can with by such as 1111 etc processor The code of reading, when these codes are run by computing device, causes in the computing device method described above Each step.
It should be noted that the present invention will be described rather than limits the invention for above-described embodiment, and ability Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol between bracket should not be configured to limitations on claims.Word "comprising" is not excluded the presence of not Element or step listed in the claims.Word "a" or "an" before element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of some different elements and coming real by means of properly programmed computer It is existing.In if the unit claim of equipment for drying is listed, several in these devices can be by same hardware branch To embody.The use of word first, second, and third does not indicate that any order.These words can be explained and run after fame Claim.
So far, although those skilled in the art will appreciate that detailed herein have shown and described multiple showing for the present invention Example property embodiment, still, still can be direct according to present disclosure without departing from the spirit and scope of the present invention It is determined that or deriving many other variations or modifications for meeting the principle of the invention.Therefore, the scope of the present invention is understood that and recognized It is set to and covers other all these variations or modifications.
The embodiment of the present invention additionally provides A1, a kind of conflict processing method of data markers, including:
Initial data is received, and parses the data type for obtaining the initial data;
Strategy according to being pre-configured with chooses the marking algorithm matched with the data type of the initial data;
Being marked of initial data is handled according to the marking algorithm chosen, the initial data conversion is obtained Marking data;
Judge whether other marking data of the marking data with having been stored in local data base conflict;
If conflict, the marking data are adjusted according to ad hoc rules, new marking data, and institute is generated It is different from the marking data conflicted to state new marking data.
A2, the method according to A1, wherein, it is described that rower is entered to the initial data according to the marking algorithm chosen Noteization processing, obtains the marking data of the initial data conversion, including:
The initial data is changed in itself according to the marking algorithm chosen, the numerical character after being changed String;
Check character is added for the digit strings after the conversion, the marking data of the initial data conversion are obtained.
A3, the method according to A2, wherein, described is the digit strings addition check character after the conversion, including:
The signature identification for recognizing business is added for the digit strings after the conversion;And/or
The marking algorithm mark of the selection is added for the digit strings after the conversion.
A4, the method according to A3, wherein, described is the digit strings addition check character after the conversion, is obtained The marking data of the initial data conversion, including:
The signature identification for recognizing business is added on the head of digit strings after the conversion, after the conversion The afterbodys of digit strings add the marking algorithm mark of the selection, after head, afterbody and the conversion Digit strings obtain the marking data of the initial data conversion.
A5, the method according to A3 or A4, wherein,
It is described to be used to recognize that the signature identification length of business is 6 bytes;
The marking algorithm identification length of the selection is 3 bytes.
A6, the method according to A1 to A4 any one, wherein, it is described to judge the marking data and local data Whether other marking data stored in storehouse conflict, including:
Search whether exist and described other marking data of marking data identical from the local data base;
If in the presence of determining whether that the initial data is with the initial data corresponding to other described marking data It is no identical;
If so, then the marking data do not conflict with other described marking data;
If it is not, then the marking data and other described marking data collisions.
A7, the method according to A6, wherein, other described marking data have been pre-saved in the local data base Mapping relations between corresponding initial data, judge corresponding to the initial data and other described marking data Initial data it is whether identical, including:
Original number corresponding with other described marking data is obtained according to the mapping relations stored in local data base According to;
Judge the initial data with obtain other described marking data corresponding to initial data it is whether identical.
A8, the method according to A6, wherein, if being not present in the local data base identical with the marking data Other marking data, then the marking data do not conflict with other marking data.
A9, the method according to A1 to A4 any one, wherein, it is described to judge the marking data and local data Whether other marking data stored in storehouse conflict, including:
The marking data that the conflict position stored in the local data base is 1 are obtained, wherein, the conflict position is 1 Marking data be carried out conflict judge marking data;
From the conflict position of acquisition for 1 marking data in search whether exist with the marking data identical other Marking data;
If in the presence of, determine whether the initial data and it is described conflict position be 1 marking data corresponding to original Whether beginning data are identical;
If so, then the marking data do not conflict with other described marking data, and by the marking data Collision position 1;
If it is not, then the marking data and other described marking data collisions.
A10, the method according to A1 to A4 any one, wherein, the foundation ad hoc rules is to the marking number According to being adjusted, new marking data are generated, and the new marking data are different from the marking data conflicted, bag Include:
Displacement operation is carried out to the marking data, new marking data are generated;
Judge whether other marking data of the new marking data with having been stored in the local data base rush It is prominent;
If conflict, continue to carry out displacement operation to the new marking data, until the marking after displacement operation Untill data are different from other marking data stored in the local data base.
A11, the method according to A1 to A4 any one, wherein, the data type of the initial data is including following Any one:
The numeral of random digit, fixed length rule numeral and specific format, wherein, the length one of the fixed length rule numeral It is fixed.
A12, the method according to A1 to A4 any one, wherein, the strategy that the basis is pre-configured with is chosen and institute The marking algorithm of the data type matching of initial data is stated, including:
Recognize whether the initial data is sensitive data according to the data type, wherein, the sensitive data includes The data related to security privacy;
Calculated if so, then choosing the marking matched with the data type of the initial data according to the strategy being pre-configured with Method.
A13, the method according to A12, wherein, the sensitive data include it is following any one:
Identity data, code data, account data, account balance data.
A14, the method according to A1 to A4 any one, wherein, the strategy that the basis is pre-configured with is chosen and institute The marking algorithm of the data type matching of initial data is stated, including:
According to the corresponding relation between pre-defined different types of data and at least one marking algorithm, choose and institute State the corresponding marking algorithm of data type of initial data.
A15, the method according to A1 to any one of A4, wherein, the foundation ad hoc rules is to the marking data It is adjusted, generates new marking data, and after the new marking data are different with the marking data of conflict, and also Including:
The mapping relations set up between the new marking data and the initial data, and it is stored in the local number According in storehouse.
A16, the method according to A15, wherein, methods described also includes:Marking data are carried out to go at marking Reason.
A17, the method according to A16, wherein, it is described that marking data are carried out to go marking to handle, including:
According to the mapping relations preserved in the local data base, initial data corresponding with the marking data is searched And obtain.
B18, a kind of data markers clash handle device, including:
Parsing module, suitable for receiving initial data, and parses the data type for obtaining the initial data;
Module is chosen, suitable for choosing the mark matched with the data type of the initial data according to the strategy being pre-configured with Change algorithm;
Mark module, suitable for being handled according to the marking algorithm chosen being marked of initial data, obtains institute State the marking data of initial data conversion;
Judge module, suitable for judging that other marking data of the marking data with having been stored in local data base are No conflict;
Generation module, if suitable for conflict, being adjusted according to ad hoc rules to the marking data, generates new mark Noteization data, and the new marking data are different from the marking data conflicted.
B19, the device according to B18, wherein, the mark module is further adapted for:
The initial data is changed in itself according to the marking algorithm chosen, the numerical character after being changed String;
Check character is added for the digit strings after the conversion, the marking data of the initial data conversion are obtained.
B20, the device according to B19, wherein, the mark module is further adapted for:
The signature identification for recognizing business is added for the digit strings after the conversion;And/or
The marking algorithm mark of the selection is added for the digit strings after the conversion.
B21, the device according to B20, wherein, the mark module is further adapted for:
The signature identification for recognizing business is added on the head of digit strings after the conversion, after the conversion The afterbodys of digit strings add the marking algorithm mark of the selection, after head, afterbody and the conversion Digit strings obtain the marking data of the initial data conversion.
B22, the device according to B20 or B21, wherein,
It is described to be used to recognize that the signature identification length of business is 6 bytes;
The marking algorithm identification length of the selection is 3 bytes.
B23, the device according to B18 to B21 any one, wherein, the judge module is further adapted for:
Search whether exist and described other marking data of marking data identical from the local data base;
If in the presence of determining whether that the initial data is with the initial data corresponding to other described marking data It is no identical;
If so, then the marking data do not conflict with other described marking data;
If it is not, then the marking data and other described marking data collisions.
B24, the device according to B23, wherein, other described markings have been pre-saved in the local data base Mapping relations between data and corresponding initial data, the judge module is further adapted for:
Original number corresponding with other described marking data is obtained according to the mapping relations stored in local data base According to;
Judge the initial data with obtain other described marking data corresponding to initial data it is whether identical.
B25, the device according to B23, wherein, the judge module is further adapted for:
If being not present and described other marking data of marking data identical, the mark in the local data base Noteization data do not conflict with other marking data.
B26, the device according to B18 to B21 any one, wherein, the judge module is further adapted for:
The marking data that the conflict position stored in the local data base is 1 are obtained, wherein, the conflict position is 1 Marking data be carried out conflict judge marking data;
From the conflict position of acquisition for 1 marking data in search whether exist with the marking data identical other Marking data;
If in the presence of, determine whether the initial data and it is described conflict position be 1 marking data corresponding to original Whether beginning data are identical;
If so, then the marking data do not conflict with other described marking data, and by the marking data Collision position 1;
If it is not, then the marking data and other described marking data collisions.
B27, the device according to B18 to B21 any one, wherein, the generation module is further adapted for:
Displacement operation is carried out to the marking data, new marking data are generated;
Judge whether other marking data of the new marking data with having been stored in the local data base rush It is prominent;
If conflict, continue to carry out displacement operation to the new marking data, until the marking after displacement operation Untill data are different from other marking data stored in the local data base.
B28, the device according to B18 to B21 any one, wherein, the data type of the initial data include with Lower any one:
The numeral of random digit, fixed length rule numeral and specific format, wherein, the length one of the fixed length rule numeral It is fixed.
B29, the device according to B18 to B21 any one, wherein, the selection module is further adapted for:
Recognize whether the initial data is sensitive data according to the data type, wherein, the sensitive data includes The data related to security privacy;
Calculated if so, then choosing the marking matched with the data type of the initial data according to the strategy being pre-configured with Method.
B30, the device according to B29, wherein, the sensitive data include it is following any one:
Identity data, code data, account data, account balance data.
B31, the device according to B18 to B21 any one, wherein, the selection module is further adapted for:
According to the corresponding relation between pre-defined different types of data and at least one marking algorithm, choose and institute State the corresponding marking algorithm of data type of initial data.
B32, the device according to B18 to 21 any one, wherein, described device also includes:
Module is set up, suitable for being adjusted in the generation module according to ad hoc rules to the marking data, is generated New marking data, and the new marking data from conflict marking data it is different after,
The mapping relations set up between the new marking data and the initial data, and it is stored in the local number According in storehouse.
B33, the device according to B32, wherein, described device also includes:
Mark module is removed, suitable for carrying out going marking to handle to marking data.
B34, the device according to B33, wherein, it is described to go mark module to be further adapted for:
According to the mapping relations preserved in the local data base, initial data corresponding with the marking data is searched And obtain.
C35, a kind of computer program, including computer-readable code, when the computer-readable code is in computing device During upper operation, cause the conflict processing method of data markers of the computing device according to B1 to B17 described in any one.
C36, a kind of computer-readable medium, wherein storing the computer program as described in C35.

Claims (10)

1. a kind of conflict processing method of data markers, including:
Initial data is received, and parses the data type for obtaining the initial data;
Strategy according to being pre-configured with chooses the marking algorithm matched with the data type of the initial data;
Being marked of initial data is handled according to the marking algorithm chosen, the mark of the initial data conversion is obtained Noteization data;
Judge whether other marking data of the marking data with having been stored in local data base conflict;
If conflict, the marking data are adjusted according to ad hoc rules, new marking data are generated, and it is described new Marking data from conflict marking data it is different.
2. according to the method described in claim 1, wherein, it is described according to choose marking algorithm to the initial data carry out Marking is handled, and obtains the marking data of the initial data conversion, including:
The initial data is changed in itself according to the marking algorithm chosen, the digit strings after being changed;
Check character is added for the digit strings after the conversion, the marking data of the initial data conversion are obtained.
3. method according to claim 2, wherein, described is the digit strings addition check character after the conversion, bag Include:
The signature identification for recognizing business is added for the digit strings after the conversion;And/or
The marking algorithm mark of the selection is added for the digit strings after the conversion.
4. method according to claim 3, wherein, described is the digit strings addition check character after the conversion, is obtained The marking data changed to the initial data, including:
The signature identification for recognizing business is added on the head of digit strings after the conversion, the number after the conversion The afterbody of word character string adds the marking algorithm mark of the selection, with reference to the numeral after head, afterbody and the conversion Character string obtains the marking data of the initial data conversion.
5. the method according to claim 3 or 4, wherein,
It is described to be used to recognize that the signature identification length of business is 6 bytes;
The marking algorithm identification length of the selection is 3 bytes.
6. the method according to Claims 1-4 any one, wherein, it is described to judge the marking data and local number Whether conflict according to other marking data stored in storehouse, including:
Search whether exist and described other marking data of marking data identical from the local data base;
If in the presence of, determine whether the initial data and the initial data corresponding to other described marking data whether phase Together;
If so, then the marking data do not conflict with other described marking data;
If it is not, then the marking data and other described marking data collisions.
7. method according to claim 6, wherein, other described marking numbers have been pre-saved in the local data base According to the mapping relations between corresponding initial data, judge that the initial data and other described marking data institutes are right Whether the initial data answered is identical, including:
Initial data corresponding with other described marking data is obtained according to the mapping relations stored in local data base;
Judge the initial data with obtain other described marking data corresponding to initial data it is whether identical.
8. a kind of clash handle device of data markers, including:
Parsing module, suitable for receiving initial data, and parses the data type for obtaining the initial data;
Module is chosen, is calculated suitable for choosing the marking matched with the data type of the initial data according to the strategy being pre-configured with Method;
Mark module, suitable for being handled according to the marking algorithm chosen being marked of initial data, obtains the original The marking data of beginning data conversion;
Judge module, suitable for judging whether other marking data of the marking data with having been stored in local data base rush It is prominent;
Generation module, if suitable for conflict, being adjusted according to ad hoc rules to the marking data, generates new marking Data, and the new marking data are different from the marking data conflicted.
9. a kind of computer program, including computer-readable code, when the computer-readable code is run on the computing device When, cause the conflict processing method of data markers of the computing device according to claim 1 to 7 described in any one.
10. a kind of computer-readable medium, wherein storing computer program as claimed in claim 9.
CN201710374968.4A 2017-05-24 2017-05-24 The conflict processing method and device of data markers Pending CN107294956A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710374968.4A CN107294956A (en) 2017-05-24 2017-05-24 The conflict processing method and device of data markers

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710374968.4A CN107294956A (en) 2017-05-24 2017-05-24 The conflict processing method and device of data markers

Publications (1)

Publication Number Publication Date
CN107294956A true CN107294956A (en) 2017-10-24

Family

ID=60093991

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710374968.4A Pending CN107294956A (en) 2017-05-24 2017-05-24 The conflict processing method and device of data markers

Country Status (1)

Country Link
CN (1) CN107294956A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109472138A (en) * 2017-12-01 2019-03-15 北京安天网络安全技术有限公司 A kind of method, apparatus and storage medium detecting snort rule conflict
CN110134712A (en) * 2019-04-09 2019-08-16 口碑(上海)信息技术有限公司 The processing method and processing device of entity information label, storage medium, terminal

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103631915A (en) * 2013-11-29 2014-03-12 华为技术有限公司 Hybrid system file data processing method and system
CN103853985A (en) * 2012-12-05 2014-06-11 ***通信集团黑龙江有限公司 Data encryption method, decryption method and decryption device
CN106203145A (en) * 2016-08-04 2016-12-07 北京网智天元科技股份有限公司 Data desensitization method and relevant device
CN106295367A (en) * 2016-08-15 2017-01-04 北京奇虎科技有限公司 Data ciphering method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103853985A (en) * 2012-12-05 2014-06-11 ***通信集团黑龙江有限公司 Data encryption method, decryption method and decryption device
CN103631915A (en) * 2013-11-29 2014-03-12 华为技术有限公司 Hybrid system file data processing method and system
CN106203145A (en) * 2016-08-04 2016-12-07 北京网智天元科技股份有限公司 Data desensitization method and relevant device
CN106295367A (en) * 2016-08-15 2017-01-04 北京奇虎科技有限公司 Data ciphering method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
朱战立: "《数据结构》", 31 May 2003 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109472138A (en) * 2017-12-01 2019-03-15 北京安天网络安全技术有限公司 A kind of method, apparatus and storage medium detecting snort rule conflict
CN110134712A (en) * 2019-04-09 2019-08-16 口碑(上海)信息技术有限公司 The processing method and processing device of entity information label, storage medium, terminal
CN110134712B (en) * 2019-04-09 2021-07-06 口碑(上海)信息技术有限公司 Entity information mark processing method and device, storage medium and terminal

Similar Documents

Publication Publication Date Title
US20220239574A1 (en) Systems and methods for social graph data analytics to determine connectivity within a community
CN106681973B (en) Method and device for automatically filling browser forms in test
US20140122294A1 (en) Determining a characteristic group
CN107437223A (en) Credit information checking method, device and equipment
CN105224600B (en) A kind of detection method and device of Sample Similarity
WO2016101811A1 (en) Information arrangement method and apparatus
CN110309182A (en) A kind of information input method and device
CN107341399A (en) Assess the method and device of code file security
CN104158828B (en) The method and system of suspicious fishing webpage are identified based on cloud content rule base
CN106815226A (en) Text matching technique and device
CN110674391B (en) Product data pushing method and system based on big data and computer equipment
CN110138794A (en) A kind of counterfeit website identification method, device, equipment and readable storage medium storing program for executing
CN111259207A (en) Short message identification method, device and equipment
CN108664501B (en) Advertisement auditing method and device and server
CN107294956A (en) The conflict processing method and device of data markers
CN106572074A (en) Method and device for verifying identifying code
CN110929173A (en) Method, device, equipment and medium for identifying same person
CN107292191A (en) Data markers method and device
CN109284268A (en) A kind of method, system and the electronic equipment of fast resolving log
CN106611027A (en) Website ranking data processing method and device
CN111371761A (en) Information processing method and device based on risk identification
CN114297046A (en) Event obtaining method, device, equipment and medium based on log
CN107436728A (en) Rule analysis result storage method, regular retrogressive method and device
CN113674083A (en) Internet financial platform credit risk monitoring method, device and computer system
CN114338058A (en) Information processing method, device and storage medium

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 100015 15, 17 floor 1701-26, 3 building, 10 Jiuxianqiao Road, Chaoyang District, Beijing.

Applicant after: QAX Technology Group Inc.

Address before: 100015 15, 17 floor 1701-26, 3 building, 10 Jiuxianqiao Road, Chaoyang District, Beijing.

Applicant before: BEIJING QIANXIN TECHNOLOGY Co.,Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20171024