CN104766019A - Webpage text information protection method, device and system - Google Patents

Webpage text information protection method, device and system Download PDF

Info

Publication number
CN104766019A
CN104766019A CN201410008852.5A CN201410008852A CN104766019A CN 104766019 A CN104766019 A CN 104766019A CN 201410008852 A CN201410008852 A CN 201410008852A CN 104766019 A CN104766019 A CN 104766019A
Authority
CN
China
Prior art keywords
mixing
text
webpage
client
algorithm
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
CN201410008852.5A
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201410008852.5A priority Critical patent/CN104766019A/en
Priority to PCT/CN2014/079542 priority patent/WO2015103849A1/en
Publication of CN104766019A publication Critical patent/CN104766019A/en
Pending legal-status Critical Current

Links

Classifications

    • 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/6227Protecting 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 where protection concerns the structure of data, e.g. records, types, queries
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]

Abstract

The invention provides a webpage text information protection method, device and system, relating to the technical field of communication and aiming at solving the problem that texts in a webpage are copied. The method comprises the steps: a server receives webpage request information from a client; the server mixes the texts in the webpage according to the request of the client and obtains mixed texts, and the character order in the mixed texts is disordered compared with the original texts; and the server sends webpage data, required by the client, to the client and the webpage data contains the mixed texts in the webpage. The technical scheme provided by the invention is applicable to protecting webpage contents, and the protection of the original texts is realized by mixed arrangement.

Description

Webpage Chinese version information protecting method, device and system
Technical field
The present invention relates to communication technical field, particularly relate to a kind of webpage Chinese version information protecting method, device and system.
Background technology
Along with the popularization and application of internet, the people of online gets more and more, but the information on webpage is easy to be copied, and the arduous fruit of labour of author is converted by people very easily, is a very large loss to author.Prior art generally adopts when preventing web page text from copying forbids that user carries out copy function on webpage.
Online traditional copy guard method fado prevents user from carrying out replicate run at webpage, but user cannot be stoped to check webpage source file, and user still can by checking that the method for webpage source file is easy to just obtain required text from source file.
Summary of the invention
The invention provides a kind of webpage Chinese version information protecting method, device and system, solve the problem that webpage Chinese version is copied.
A kind of webpage Chinese version information protecting method, comprising:
The web-page requests information of server receives client;
Described server carries out mixing to the text in the webpage of described client-requested, obtains the text after mixing, and in the text after described mixing, the order of word is chaotic compared with original text;
Webpage Chinese version after described server sends web data from this client-requested to described client carries mixing in described web data.
Preferably, described server carries out mixing to the text in the webpage of described client-requested and comprises:
A. described server selects the text block in described webpage in a label;
B. described server uses mixing algorithm to process described text block, obtains the text after mixing;
C. the text block block-by-block in described webpage is carried out to the process of step a to b, to full text all processes in described webpage.
Preferably, described server uses mixing algorithm to process described text block, obtains the text after mixing and comprises:
Described text block is divided into M section, and the length of front M-1 section is described the maximum of mixing algorithm and arranges length, and final stage length is less than or equal to described the maximum of mixing algorithm and arranges length, and the length of each section of text is less than the length of described text block;
Piecemeal mixing mapping is carried out to described text block according to following formula:
F (n)=m, 1≤n, m≤Lm ∈ Zn ∈ Z and F (n 1) ≠ F (n 2), n 1≠ n 2,
Wherein, n is the position at a certain word place in original text block, and m is the position at this word place after mixing, and L is the length of one section of text.
Preferably, the PKI of client is comprised in described web-page requests information.
Preferably, the web data that described server sends this client-requested to described client comprises:
Described server uses described PKI to be encrypted described mixing algorithm;
Mixing algorithm after encryption and described web data combine by described server, and send described web data to described client.
Present invention also offers a kind of webpage Chinese version information protecting method, comprising:
User end to server sends web-page requests information;
Described client receives the web data that described server returns, and carries the webpage Chinese version after mixing in described web data;
Described client stores described web data, the webpage Chinese version after described mixing is recovered normal rear display.
Preferably, include the PKI of described client in described web-page requests information, described user end to server also comprises before sending the step of web-page requests information:
Described client generates PKI, and described PKI and described web-page requests information is combined.
Preferably, also include the mixing algorithm using described public key encryption in described web data, described client stores described web data, the webpage Chinese version after described mixing is recovered normal rear display and comprises:
Described client resolves described web data, is stored in dom tree by the data obtained after being parsed;
Described client uses corresponding private key to be decrypted described mixing algorithm, obtains back mixing row algorithm;
Layout is carried out to webpage, the webpage Chinese version store mixing in browser internal memory after;
During text display in described webpage, according to described back mixing row algorithm, back mixing arrangement office is carried out to described text, described webpage Chinese version is recovered normal after display.
Preferably, during text display in described webpage, according to described back mixing row algorithm, back mixing arrangement office is carried out to described text, described webpage Chinese version is recovered normal after display comprise:
A. described client takes out the text block in described webpage in a label;
B. described client uses back mixing row algorithm to process described text block, the text be restored;
C. the text block block-by-block in described webpage is carried out to the process of step a to b, to full text all processes in described webpage;
D. show and recover the text normally.
Preferably, described back mixing row algorithm is anti-mapping relations, and described client uses described back mixing to arrange algorithm and processes described text, and the text be restored comprises:
Described text block is divided into M section, and the length of front M-1 section is described the maximum of mixing algorithm and arranges length, and final stage length is less than or equal to described the maximum of mixing algorithm and arranges length, and the length of each section of text is less than the length of described text block;
Carry out back mixing row to described text block piecemeal according to following formula to map:
G(m)=F -1(n),1≤m,n≤L m∈Z n∈Z
Wherein, n is the position at a certain word place in original text block, and m is the position at this word place after mixing, and L is the length of one section of text.
Present invention also offers a kind of webpage Chinese version information protection device, comprising:
Request receiving module, for receiving the web-page requests information of client;
Mixing module, carries out mixing for the text in the webpage to described client-requested, obtains the text after mixing, and in the text after described mixing, the order of word is chaotic compared with original text;
Data transmission blocks, the webpage Chinese version after the web data for sending this client-requested to described client carries mixing in described web data.
Preferably, described mixing module comprises:
Text block extraction unit, for selecting the text block in described webpage in a label;
Mixing computing unit, for using mixing algorithm to process described text block, obtains the text after mixing;
Control module, for controlling described text block extraction unit and described mixing computing unit processes, to full text all processes in described webpage the text block block-by-block in described webpage.
Preferably, described mixing computing unit comprises:
Segmentation subelement, for described text block is divided into M section, the length of front M-1 section is described the maximum of mixing algorithm and arranges length, and final stage length is less than or equal to described the maximum of mixing algorithm and arranges length, and the length of each section of text is less than the length of described text block;
Map subelement, for carrying out mixing mapping to described text block piecemeal according to following formula:
F (n)=m, 1≤n, m≤L m ∈ Z n ∈ Z and F (n 1) ≠ F (n 2), n 1≠ n 2,
Wherein, n is the position at a certain word place in original text block, and m is the position at this word place after mixing, and L is the length of one section of text.
Preferably, comprise the PKI of client in described web-page requests information, described data transmission blocks comprises:
Ciphering unit, is encrypted described mixing algorithm for using described PKI;
Transmitting element, for the mixing algorithm after encryption and described web data being combined, and sends described web data to described client.
Present invention also offers a kind of webpage Chinese version information protection device, comprising:
Request sending module, for sending web-page requests information to server;
Data reception module, for receiving the web data that described server returns, carries the webpage Chinese version after mixing in described web data;
Mixing recovers module, for storing described web data, the webpage Chinese version after described mixing is recovered normal rear display.
Preferably, include the PKI of client in described web-page requests information, this device also comprises:
PKI generation module, for generating PKI, and combines described PKI and described web-page requests information.
Preferably, also include the mixing algorithm using described public key encryption in described web data, described mixing recovers module and comprises:
The data obtained after being parsed, for resolving described web data, are stored in dom tree by web analysis submodule;
Deciphering submodule, for using corresponding private key to be decrypted described mixing algorithm, obtains back mixing row algorithm;
Data sub module stored, for carrying out layout to webpage, the webpage Chinese version store mixing in browser internal memory after;
Back mixing row submodule, for carrying out back mixing arrangement office to described text according to described back mixing row algorithm during text display in described webpage, described webpage Chinese version is recovered normal after display.
Preferably, described back mixing row submodule comprises:
Text Feature Extraction unit, for taking out the text block in described webpage in a label;
Text recovery unit, arranges algorithm for using back mixing and processes described text, the text be restored;
Control module, for control described back mixing row algorithm computing unit and described text recovery unit the text block block-by-block in described webpage is processed, in described webpage, full text all processes into;
Display unit, recovers the text normally for showing.
Preferably, described text recovery unit comprises:
Segmentation subelement, for described text block is divided into M section, the length of front M-1 section is described the maximum of mixing algorithm and arranges length, and final stage length is less than or equal to described the maximum of mixing algorithm and arranges length, and the length of each section of text is less than the length of described text block;
Back mixing row maps subelement, maps for carrying out back mixing row to described text block piecemeal according to following formula:
G(m)=F -1(n),1≤m,n≤L m∈Z n∈Z
Wherein, n is the position at a certain word place in original text block, and m is the position at this word place after mixing, and L is the length of one section of text.
Present invention also offers a kind of webpage Chinese version information protection system, comprise client and server,
Described client, for sending web-page requests information to described server, receiving the web data that described server returns, in described web data, carrying the webpage Chinese version after mixing, store up described web data, the webpage Chinese version after described mixing is recovered normal rear display;
Described server, for receiving the web-page requests information of described client, mixing is carried out to the text in the webpage of described client-requested, obtains the text after mixing, the webpage Chinese version after the web data that described client sends this client-requested carries mixing in described web data.
The invention provides a kind of webpage Chinese version information protecting method, device and system, the web-page requests information of server receives client, described server carries out mixing to the text in the webpage of described client-requested, obtain the text after mixing, in text after described mixing, the order of word is chaotic compared with original text, the webpage Chinese version after the web data that then described server sends this client-requested to described client carries mixing in described web data; User end to server sends web-page requests information, receive the web data that described server returns, carry the webpage Chinese version after mixing in described web data, client stores described web data, the webpage Chinese version after described mixing is recovered normal rear display.Achieve by the protection of mixing to original text, solve the problem that webpage Chinese version is copied.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of a kind of webpage Chinese version information protecting method that embodiments of the invention one provide;
Fig. 2 is the schematic diagram of a kind of mixing algorithm flow in step 105;
Fig. 3 is mixing algorithm principle schematic diagram;
Fig. 4 is the schematic diagram of a kind of back mixing row algorithm flow in step 112;
Fig. 5 is back mixing row algorithm principle schematic diagram;
Fig. 6 is the process flow diagram of a kind of webpage Chinese version information protecting method that embodiments of the invention two provide;
Fig. 7 is the structural representation of a kind of webpage Chinese version information protection device that embodiments of the invention three provide;
Fig. 8 is the structural representation of mixing module 702 in Fig. 7;
Fig. 9 is the structural representation of mixing computing unit 802 in Fig. 8;
Figure 10 is the structural representation of data transmission blocks 703 in Fig. 7;
Figure 11 is the structural representation of another webpage Chinese version information protection device that embodiments of the invention three provide;
Figure 12 is the structural representation that in Figure 11, mixing recovers module 1103;
Figure 13 is the structural representation of back mixing row submodule 1204 in Figure 12;
Figure 14 is the structural representation of Figure 13 Chinese version recovery unit 1302.
Embodiment
Online traditional copy guard method fado prevents user from carrying out replicate run at webpage, but user cannot be stoped to check webpage source file, and user still can by checking that the method for webpage source file is easy to just obtain required text from source file.
In order to solve the problem, The embodiment provides a kind of webpage Chinese version information protecting method, device and system.Browser client, after sending web-page requests information to server, at server side the text mixing in webpage, namely upsets the order of character arranging in each section of text, mixing method be encrypted with mixing after webpage be together transferred to browser client.Browser client is resolved and layout after receiving webpage normally, text is also mixing when the storage inside of browser, but the mixing rule of giving by server when showing text display carries out back mixing row to text, and the text that user sees is normal sequence.User is when copying a certain section of text, and the text obtained from browser storage inside is also mixing.
Hereinafter will be described in detail to embodiments of the invention by reference to the accompanying drawings.It should be noted that, when not conflicting, the embodiment in the application and the feature in embodiment can combination in any mutually.
First by reference to the accompanying drawings, embodiments of the invention one are described.
Embodiments provide a kind of webpage Chinese version information protecting method, idiographic flow as shown in Figure 1, comprising:
Step 101, for client combination requirement request information, except original web-page requests information content, in web-page requests information, also comprise encryption related information.Take such as RSA Algorithm as encryption method, client should generate PKI, and is combined in web-page requests information by PKI and sends to server.
Step 102, user end to server send web-page requests information;
Step 103, server receive web-page requests information, comprise normal request content and the encryption related information (as PKI) of browser client in this web-page requests.
Step 104, server are according to the Content Organizing web data of web-page requests information.
Step 105, server generate mixing algorithm, and mixing algorithm is a kind of method sequences of text upset.
A kind of mixing algorithm of Fig. 2 for using in step, it should be noted that the algorithm that can reach and text be upset object is all in protection scope of the present invention, the embodiment of the present invention is not construed as limiting this.
Below in conjunction with Fig. 2 explanatory text mixing process:
Step 201, the block text taken out in webpage, institute's text of getting should in a label;
Step 202, select a mixing algorithm, if the maximum length of arranging of mixing algorithm is L, if this block text length is N, and N is greater than L, then text is divided into some sections (being set to M section), front M-1 segment length is all L, and final stage length is less than or equal to L;
Step 203, taking-up first paragraph text;
The text size that step 204, basis are taken out calculates the mixing algorithm under this length, and Fig. 3 enumerates a kind of mixing algorithm by mapping relations, and mixing mapping relations can be expressed as expression formula:
F (n)=m, 1≤n, m≤Lm ∈ Zn ∈ Z and F (n 1) ≠ F (n 2), n 1≠ n 2
Wherein n is the position at a certain word place in original text block, and m is the position at this word place after mixing.
As shown in Figure 3, text size is 13, and maximum mixing length is 8, text need be divided into two sections, and first paragraph length is the 8,2nd segment length is 5.
The word 301 of first paragraph is " I wants one section of text to enter ", and length is 8, just consistent with maximum mixing length, and mapping relations are 303.After mixing, word becomes " my text of section want into one ", as illustrated at 302.
2nd section of text is " the chaotic sequence of row ", and length is 5, is less than 8, first will find out the mixing mapping relations that length is 5.As shown in Fig. 3 shown in 304, remove F (3), F (4), F (7), and sequence number is rearranged obtain the mixing mapping relations that length is 5, as shown in 305.Mapped by mixing and can obtain the text after mixing for " sequence of walking randomly is mixed ".
Step 205, by mixing algorithm, mixing is carried out to text;
Text does not take, and takes off one section of text, and to step 204.Until full text takes.
Step 106, complete text mixing.During text mixing, text is got by label piecemeal, as text below, each p label is a block text, 3 block texts to be divided altogether to carry out mixing: " although some reasonable requests that <p> developing country proposes all are not met; China's team represents, regardless of negotiating progress, green low-carbon road for development all will unswervingly be walked by China.</p>
<p> is according to China's team's introduction, the three large problems that this conference is all paid close attention to each side--Durban platform process, loss compensation for loss and damage mechanism, bankroll problem have finally made decision, achieve everybody and are all unsatisfied with but all receptible achievement.</p>
This meeting of <p> is held on the 11st, closing in original 22 days, but because in the key issues such as reply climate change cardinal rule, loss compensation for loss and damage mechanism, fund, developed and developing countries has huge arguement, conference has to consult continuously, is postponed until closing evening on the 23rd.</p>”。
Step 107, mixing algorithm to be encrypted, such as rsa encryption.
Step 108, middle by the web data after mixing with encryption after mixing algorithm combine.
Mixing algorithm after web data and encryption sends to client by step 109, server.
Step 110, client receive the web data of server transmission and the mixing algorithm after encrypting.
Step 111, client start analyzing web page data, and the data after being parsed exist in dom tree, text wherein or mixing text.
Step 112, client are decrypted mixing algorithm.Back mixing row algorithm is obtained as used the private key of RSA to be decrypted.
Figure 4 shows that the citing of a kind of back mixing row algorithm, mixing word reverted to former sequential algorithm all can be used as back mixing row algorithm as long as it should be noted that to reach, the embodiment of the present invention is not construed as limiting this.
Back mixing discharge method shown in Fig. 4 is specific as follows:
Step 401, the one section of text taken out in webpage, institute's text of getting should in same web page tag;
If step 402 text size is N, and N is greater than L(L, and to be that mixing algorithm is maximum arrange length), then text is divided into some sections (being set to M section), front M-1 segment length is all L, and final stage length is less than or equal to L;
Step 403, taking-up first paragraph text;
Step 404, calculate the mixing mapping relations under this length according to the length of one section of text of taking out;
Step 405 calculates anti-mapping relations;
Step 406, penetrate relational file by reflection and carry out back mixing row, the text after mixing is reverted to original text;
This step is concrete as shown in Figure 5, and back mixing row's mapping relations and mixing mapping relations are inverse function relation, are expressed as follows:
G(m)=F -1(n),1≤m,n≤Lm∈Zn∈Z
Also need text segmentation when back mixing is arranged, as shown in Figure 5 example, character length is 13, need be divided into two sections, and first paragraph length is the 8,2nd segment length is 5.
The word of first paragraph is " my text of section want into one ", and the mixing mapping relations obtained from server for Fig. 5 shown in 503, then can show that anti-mapping relations are as shown in Fig. 5 504.
Can obtain back mixing row text by anti-mapping relations is " I wants one section of text to enter ".
The word of second segment is " sequence of walking randomly is mixed ", text size is 5, mixing mapping relations (Fig. 5 shown in the 505) length obtained from server is 8, then need to take out the mixing mapping relations that length is 5, as shown in Fig. 5 shown in 505, remove F (3), F (4), F (7), and sequence number is rearranged obtain the mixing mapping relations that length is 5, as shown in Fig. 5 506, then to calculate length be 5 back mixing row's mapping relations (in Fig. 5 507 shown in).Back mixing row text can be obtained for " the chaotic sequence of row " by anti-mapping relations.
If text does not take, take off one section of text to step 407, and to step 404.Until total data takes.
Step 113, client carry out layout to webpage, store (Render as webkit sets) Chinese version and also carry out layout with mixing, carry out back mixing arrangement office when final text shows to text by mixing algorithm at browser layout rendering data.Because text is always the arrangement of mixed sequence in browser clients end memory, therefore user is when copying the text on webpage, can only obtain the text of mixing.
Step 114, client by web displaying to user.
Below in conjunction with accompanying drawing, embodiments of the invention two are described.
Embodiments provide a kind of webpage Chinese version information protecting method, the flow process using the method to complete to protect webpage Chinese version as shown in Figure 6, comprising:
Step 601, client generate PKI, and described PKI and web-page requests information are combined.
Step 602, user end to server send web-page requests information.
The web-page requests information of step 603, server receives client.
Step 604, server carry out mixing to the text in the webpage of described client-requested, obtain the text after mixing;
In this step, server carries out mixing to original text, namely upsets the sequence of word in original text, and in the text after described mixing, the order of word is chaotic compared with original text.
Specifically comprise the steps:
A. described server selects the text block in described webpage in a label;
B. described server uses mixing algorithm to process described text block, obtains the text after mixing;
Mixing can be used in this step to map, described text block is divided into M section, the length of front M-1 section is described the maximum of mixing algorithm and arranges length, and final stage length is less than or equal to described the maximum of mixing algorithm and arranges length, and the length of each section of text is less than the length of described text block.Then piecemeal mixing mapping is carried out to described text block according to following formula:
F (n)=m, 1≤n, m≤Lm ∈ Zn ∈ Z and F (n 1) ≠ F (n 2), n 1≠ n 2,
Wherein, n is the position at a certain word place in original text block, and m is the position at this word place after mixing, and L is the length of one section of text.
C. the text block block-by-block in described webpage is carried out to the process of step a to b, to full text all processes in described webpage.
605, the webpage Chinese version after the web data that described server sends this client-requested to described client carries mixing in described web data.
In this step, preferably, described server uses described PKI to be encrypted described mixing algorithm,
Mixing algorithm after encryption and described web data are combined, and sends described web data to described client.
Step 606, client receive the web data that described server returns, and carry the webpage Chinese version after mixing in described web data.
Step 607, client store described web data, the webpage Chinese version after described mixing are recovered normal rear display;
This step specifically comprises the steps:
1, described client resolves described web data, is stored in dom tree by the data obtained after being parsed;
2, described client uses corresponding private key to be decrypted described mixing algorithm, obtains back mixing row algorithm;
3, layout is carried out to webpage, the webpage Chinese version store mixing in browser internal memory after;
During text display 4, in described webpage, according to described back mixing row algorithm, back mixing arrangement office is carried out to described text, described webpage Chinese version is recovered normal after display;
This step specifically comprises:
A. described client takes out the text block in described webpage in a label;
B. described client uses back mixing row algorithm to process described text block, the text be restored;
To use mixing mapping algorithm to complete mixing in step 604, in this step, complete back mixing row according to following methods:
Described text block is divided into M section, the length of front M-1 section is described the maximum of mixing algorithm and arranges length, final stage length is less than or equal to described the maximum of mixing algorithm and arranges length, the length of each section of text is less than the length of described text block, carries out back mixing row piecemeal map according to following formula to described text block:
G(m)=F -1(n),1≤m,n≤Lm∈Zn∈Z
Wherein, n is the position at a certain word place in original text block, and m is the position at this word place after mixing, and L is the length of one section of text.
C. the text block block-by-block in described webpage is carried out to the process of step a to b, to full text all processes in described webpage;
D. show and recover the text normally.
Below in conjunction with accompanying drawing, embodiments of the invention three are described.
Embodiments provide a kind of webpage Chinese version information protection device, the structure of this device as shown in Figure 7, comprising:
Request receiving module 701, for receiving the web-page requests information of client;
Mixing module 702, carries out mixing for the text in the webpage to described client-requested, obtains the text after mixing, and in the text after described mixing, the order of word is chaotic compared with original text;
Data transmission blocks 703, the webpage Chinese version after the web data for sending this client-requested to described client carries mixing in described web data.
Preferably, the structure of described mixing module 702 as shown in Figure 8, comprising:
Text block extraction unit 801, for selecting the text block in described webpage in a label;
Mixing computing unit 802, for using mixing algorithm to process described text block, obtains the text after mixing;
Control module 803, for controlling described text block extraction unit 801 and described mixing computing unit 802 processes, to full text all processes in described webpage the text block block-by-block in described webpage.
Preferably, the structure of described mixing computing unit 802 as shown in Figure 9, comprising:
Segmentation subelement 901, for described text block is divided into M section, the length of front M-1 section is described the maximum of mixing algorithm and arranges length, and final stage length is less than or equal to described the maximum of mixing algorithm and arranges length, and the length of each section of text is less than the length of described text block;
Map subelement 902, for carrying out mixing mapping to described text block piecemeal according to following formula:
F (n)=m, 1≤n, m≤Lm ∈ Zn ∈ Z and F (n 1) ≠ F (n 2), n 1≠ n 2,
Wherein, n is the position at a certain word place in original text block, and m is the position at this word place after mixing, and L is the length of one section of text.
Preferably, comprise the PKI of client in described web-page requests information, the structure of described data transmission blocks 703 as shown in Figure 10, comprising:
Ciphering unit 1001, is encrypted described mixing algorithm for using described PKI;
Transmitting element 1002, for the mixing algorithm after encryption and described web data being combined, and sends described web data to described client.
Above-mentioned webpage Chinese version information protection device accessible site, in server, completes corresponding function by server.
The embodiment of the present invention additionally provides a kind of webpage Chinese version information protection device, and its structure as shown in figure 11, comprising:
Request sending module 1101, for sending web-page requests information to server;
Data reception module 1102, for receiving the web data that described server returns, carries the webpage Chinese version after mixing in described web data;
Mixing recovers module 1103, for storing described web data, the webpage Chinese version after described mixing is recovered normal rear display.
Preferably, include the PKI of client in described web-page requests information, this device also comprises:
PKI generation module 1104, for generating PKI, and combines described PKI and described web-page requests information.
Preferably, also include the mixing algorithm using described public key encryption in described web data, described mixing recovers the structure of module 1103 as shown in figure 12, comprising:
The data obtained after being parsed, for resolving described web data, are stored in dom tree by web analysis submodule 1201;
Deciphering submodule 1202, for using corresponding private key to be decrypted described mixing algorithm, obtains back mixing row algorithm;
Data sub module stored 1203, for carrying out layout to webpage, the webpage Chinese version store mixing in browser internal memory after;
Back mixing row submodule 1204, for carrying out back mixing arrangement office to described text according to described back mixing row algorithm during text display in described webpage, described webpage Chinese version is recovered normal after display.
Preferably, the structure of described back mixing row submodule 1204 as shown in figure 13, comprising:
Text Feature Extraction unit 1301, for taking out the text block in described webpage in a label;
Text recovery unit 1302, arranges algorithm for using back mixing and processes described text, the text be restored;
Control module 1303, for controlling described back mixing row algorithm computing unit 1301 and described text recovery unit 1302 processes, to full text all processes in described webpage the text block block-by-block in described webpage;
Display unit 1304, recovers the text normally for showing.
Preferably, the structure of described text recovery unit 1302 as shown in figure 14, comprising:
Segmentation subelement 1401, for described text block is divided into M section, the length of front M-1 section is described the maximum of mixing algorithm and arranges length, and final stage length is less than or equal to described the maximum of mixing algorithm and arranges length, and the length of each section of text is less than the length of described text block;
Back mixing row maps subelement 1402, maps for carrying out back mixing row to described text block piecemeal according to following formula:
G(m)=F -1(n),1≤m,n≤Lm∈Zn∈Z
Wherein, n is the position at a certain word place in original text block, and m is the position at this word place after mixing, and L is the length of one section of text.
Above-mentioned webpage Chinese version information protection device accessible site, in client, completes corresponding function by client.
The embodiment of the present invention additionally provides a kind of webpage Chinese version information protection system; comprise client and server; described client is integrated with the webpage Chinese version information protection system shown in Figure 11 to 14, and described server is integrated with the webpage Chinese version information protection system shown in Fig. 7 to 10.
Described client, for sending web-page requests information to described server, receiving the web data that described server returns, in described web data, carrying the webpage Chinese version after mixing, store up described web data, the webpage Chinese version after described mixing is recovered normal rear display;
Described server, for receiving the web-page requests information of described client, mixing is carried out to the text in the webpage of described client-requested, obtains the text after mixing, the webpage Chinese version after the web data that described client sends this client-requested carries mixing in described web data.
The embodiment provides a kind of webpage Chinese version information protecting method, device and system, the web-page requests information of server receives client, described server carries out mixing to the text in the webpage of described client-requested, obtain the text after mixing, in text after described mixing, the order of word is chaotic compared with original text, the webpage Chinese version after the web data that then described server sends this client-requested to described client carries mixing in described web data; User end to server sends web-page requests information, receive the web data that described server returns, carry the webpage Chinese version after mixing in described web data, client stores described web data, the webpage Chinese version after described mixing is recovered normal rear display.Achieve by the protection of mixing to original text, solve the problem that webpage Chinese version is copied.No matter user copies on webpage, or on source file, user cannot obtain the text of normal sequence, and what obtain is all out of order text after mixing, thus reaches the object of protection webpage text message.
One of ordinary skill in the art will appreciate that all or part of step of above-described embodiment can use computer program flow process to realize, described computer program can be stored in a computer-readable recording medium, described computer program (as system, unit, device etc.) on corresponding hardware platform performs, when performing, step comprising embodiment of the method one or a combination set of.
Alternatively, all or part of step of above-described embodiment also can use integrated circuit to realize, and these steps can be made into integrated circuit modules one by one respectively, or the multiple module in them or step are made into single integrated circuit module to realize.Like this, the present invention is not restricted to any specific hardware and software combination.
Each device/functional module/functional unit in above-described embodiment can adopt general calculation element to realize, and they can concentrate on single calculation element, also can be distributed on network that multiple calculation element forms.
Each device/functional module/functional unit in above-described embodiment using the form of software function module realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.The above-mentioned computer read/write memory medium mentioned can be ROM (read-only memory), disk or CD etc.
Anyly be familiar with those skilled in the art in the technical scope that the present invention discloses, change can be expected easily or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection domain described in claim.

Claims (20)

1. a webpage Chinese version information protecting method, is characterized in that, comprising:
The web-page requests information of server receives client;
Described server carries out mixing to the text in the webpage of described client-requested, obtains the text after mixing, and in the text after described mixing, the order of word is chaotic compared with original text;
Webpage Chinese version after described server sends web data from this client-requested to described client carries mixing in described web data.
2. webpage Chinese version information protecting method according to claim 1, is characterized in that, described server carries out mixing to the text in the webpage of described client-requested and comprises:
A. described server selects the text block in described webpage in a label;
B. described server uses mixing algorithm to process described text block, obtains the text after mixing;
C. the text block block-by-block in described webpage is carried out to the process of step a to b, to full text all processes in described webpage.
3. webpage Chinese version information protecting method according to claim 2, is characterized in that, described server uses mixing algorithm to process described text block, obtains the text after mixing and comprises:
Described text block is divided into M section, and the length of front M-1 section is described the maximum of mixing algorithm and arranges length, and final stage length is less than or equal to described the maximum of mixing algorithm and arranges length, and the length of each section of text is less than the length of described text block;
Piecemeal mixing mapping is carried out to described text block according to following formula:
F (n)=m, 1≤n, m≤L m ∈ Z n ∈ Z and F (n 1) ≠ F (n 2), n 1≠ n 2,
Wherein, n is the position at a certain word place in original text block, and m is the position at this word place after mixing, and L is the length of one section of text.
4. webpage Chinese version information protecting method according to claim 2, is characterized in that, comprises the PKI of client in described web-page requests information.
5. webpage Chinese version information protecting method according to claim 4, it is characterized in that, the web data that described server sends this client-requested to described client comprises:
Described server uses described PKI to be encrypted described mixing algorithm;
Mixing algorithm after encryption and described web data combine by described server, and send described web data to described client.
6. a webpage Chinese version information protecting method, is characterized in that, comprising:
User end to server sends web-page requests information;
Described client receives the web data that described server returns, and carries the webpage Chinese version after mixing in described web data;
Described client stores described web data, the webpage Chinese version after described mixing is recovered normal rear display.
7. webpage Chinese version information protecting method according to claim 6, is characterized in that, includes the PKI of described client in described web-page requests information, and described user end to server also comprises before sending the step of web-page requests information:
Described client generates PKI, and described PKI and described web-page requests information is combined.
8. webpage Chinese version information protecting method according to claim 7; it is characterized in that; also include the mixing algorithm using described public key encryption in described web data, described client stores described web data, the webpage Chinese version after described mixing is recovered normal rear display and comprises:
Described client resolves described web data, is stored in dom tree by the data obtained after being parsed;
Described client uses corresponding private key to be decrypted described mixing algorithm, obtains back mixing row algorithm;
Layout is carried out to webpage, the webpage Chinese version store mixing in browser internal memory after;
During text display in described webpage, according to described back mixing row algorithm, back mixing arrangement office is carried out to described text, described webpage Chinese version is recovered normal after display.
9. webpage Chinese version information protecting method according to claim 8, is characterized in that, carries out back mixing arrangement office during text display in described webpage to described text according to described back mixing row algorithm, described webpage Chinese version is recovered normal after display comprise:
A. described client takes out the text block in described webpage in a label;
B. described client uses back mixing row algorithm to process described text block, the text be restored;
C. the text block block-by-block in described webpage is carried out to the process of step a to b, to full text all processes in described webpage;
D. show and recover the text normally.
10. webpage Chinese version information protecting method according to claim 9, is characterized in that, described back mixing row algorithm is anti-mapping relations, and described client uses described back mixing to arrange algorithm and processes described text, and the text be restored comprises:
Described text block is divided into M section, and the length of front M-1 section is described the maximum of mixing algorithm and arranges length, and final stage length is less than or equal to described the maximum of mixing algorithm and arranges length, and the length of each section of text is less than the length of described text block;
Carry out back mixing row to described text block piecemeal according to following formula to map:
G(m)=F -1(n),1≤m,n≤L m∈Z n∈Z
Wherein, n is the position at a certain word place in original text block, and m is the position at this word place after mixing, and L is the length of one section of text.
11. 1 kinds of webpage Chinese version information protection devices, is characterized in that, comprising:
Request receiving module, for receiving the web-page requests information of client;
Mixing module, carries out mixing for the text in the webpage to described client-requested, obtains the text after mixing, and in the text after described mixing, the order of word is chaotic compared with original text;
Data transmission blocks, the webpage Chinese version after the web data for sending this client-requested to described client carries mixing in described web data.
12. webpage Chinese version information protection devices according to claim 11, it is characterized in that, described mixing module comprises:
Text block extraction unit, for selecting the text block in described webpage in a label;
Mixing computing unit, for using mixing algorithm to process described text block, obtains the text after mixing;
Control module, for controlling described text block extraction unit and described mixing computing unit processes, to full text all processes in described webpage the text block block-by-block in described webpage.
13. webpage Chinese version information protection devices according to claim 12, it is characterized in that, described mixing computing unit comprises:
Segmentation subelement, for described text block is divided into M section, the length of front M-1 section is described the maximum of mixing algorithm and arranges length, and final stage length is less than or equal to described the maximum of mixing algorithm and arranges length, and the length of each section of text is less than the length of described text block;
Map subelement, for carrying out mixing mapping to described text block piecemeal according to following formula:
F (n)=m, 1≤n, m≤L m ∈ Z n ∈ Z and F (n 1) ≠ F (n 2), n 1≠ n 2,
Wherein, n is the position at a certain word place in original text block, and m is the position at this word place after mixing, and L is the length of one section of text.
14. webpage Chinese version information protection devices according to claim 12, it is characterized in that, comprise the PKI of client in described web-page requests information, described data transmission blocks comprises:
Ciphering unit, is encrypted described mixing algorithm for using described PKI;
Transmitting element, for the mixing algorithm after encryption and described web data being combined, and sends described web data to described client.
15. 1 kinds of webpage Chinese version information protection devices, is characterized in that, comprising:
Request sending module, for sending web-page requests information to server;
Data reception module, for receiving the web data that described server returns, carries the webpage Chinese version after mixing in described web data;
Mixing recovers module, for storing described web data, the webpage Chinese version after described mixing is recovered normal rear display.
16. webpage Chinese version information protection devices according to claim 15, it is characterized in that, include the PKI of client in described web-page requests information, this device also comprises:
PKI generation module, for generating PKI, and combines described PKI and described web-page requests information.
17. webpage Chinese version information protection devices according to claim 16, is characterized in that, also include the mixing algorithm using described public key encryption in described web data, and described mixing recovers module and comprises:
The data obtained after being parsed, for resolving described web data, are stored in dom tree by web analysis submodule;
Deciphering submodule, for using corresponding private key to be decrypted described mixing algorithm, obtains back mixing row algorithm;
Data sub module stored, for carrying out layout to webpage, the webpage Chinese version store mixing in browser internal memory after;
Back mixing row submodule, for carrying out back mixing arrangement office to described text according to described back mixing row algorithm during text display in described webpage, described webpage Chinese version is recovered normal after display.
18. webpage Chinese version information protection devices according to claim 17, is characterized in that, described back mixing row submodule comprises:
Text Feature Extraction unit, for taking out the text block in described webpage in a label;
Text recovery unit, arranges algorithm for using back mixing and processes described text, the text be restored;
Control module, for control described back mixing row algorithm computing unit and described text recovery unit the text block block-by-block in described webpage is processed, in described webpage, full text all processes into;
Display unit, recovers the text normally for showing.
19. webpage Chinese version information protection devices according to claim 18, it is characterized in that, described text recovery unit comprises:
Segmentation subelement, for described text block is divided into M section, the length of front M-1 section is described the maximum of mixing algorithm and arranges length, and final stage length is less than or equal to described the maximum of mixing algorithm and arranges length, and the length of each section of text is less than the length of described text block;
Back mixing row maps subelement, maps for carrying out back mixing row to described text block piecemeal according to following formula:
G(m)=F -1(n),1≤m,n≤L m∈Z n∈Z
Wherein, n is the position at a certain word place in original text block, and m is the position at this word place after mixing, and L is the length of one section of text.
20. 1 kinds of webpage Chinese version information protection systems, is characterized in that, comprise client and server,
Described client, for sending web-page requests information to described server, receiving the web data that described server returns, in described web data, carrying the webpage Chinese version after mixing, store up described web data, the webpage Chinese version after described mixing is recovered normal rear display;
Described server, for receiving the web-page requests information of described client, mixing is carried out to the text in the webpage of described client-requested, obtains the text after mixing, the webpage Chinese version after the web data that described client sends this client-requested carries mixing in described web data.
CN201410008852.5A 2014-01-08 2014-01-08 Webpage text information protection method, device and system Pending CN104766019A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201410008852.5A CN104766019A (en) 2014-01-08 2014-01-08 Webpage text information protection method, device and system
PCT/CN2014/079542 WO2015103849A1 (en) 2014-01-08 2014-06-09 Method, device and system for protecting text information in web page and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410008852.5A CN104766019A (en) 2014-01-08 2014-01-08 Webpage text information protection method, device and system

Publications (1)

Publication Number Publication Date
CN104766019A true CN104766019A (en) 2015-07-08

Family

ID=53523504

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410008852.5A Pending CN104766019A (en) 2014-01-08 2014-01-08 Webpage text information protection method, device and system

Country Status (2)

Country Link
CN (1) CN104766019A (en)
WO (1) WO2015103849A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110362791A (en) * 2019-02-22 2019-10-22 裴信 Processing method, device and the computer readable storage medium of logic relevant issues
CN111046658A (en) * 2019-12-18 2020-04-21 支付宝(杭州)信息技术有限公司 Out-of-order text recognition method, device and equipment
CN116975853A (en) * 2023-06-25 2023-10-31 阅霆信息技术(上海)有限公司 Method for preventing text content from being completely intercepted at Web end

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110175610B (en) * 2019-05-23 2023-09-05 上海交通大学 Bill image text recognition method supporting privacy protection
CN116112243B (en) * 2023-01-17 2023-09-05 广州鲁邦通物联网科技股份有限公司 Industrial control system intelligent computer physical intrusion detection defense system and method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1310391A (en) * 2001-02-04 2001-08-29 王辉 Distribution protecting method for Internet web page text
CN1519717A (en) * 2003-01-31 2004-08-11 英特尔公司 Realizing of protecting transplantable content for protecting secret security
CN101635622A (en) * 2008-07-24 2010-01-27 阿里巴巴集团控股有限公司 Method, system and equipment for encrypting and decrypting web page
CN102110114A (en) * 2009-12-28 2011-06-29 北京安码科技有限公司 Copy-prevention method and device of web page word content
KR20110096815A (en) * 2010-02-23 2011-08-31 김대중 Information providing system for changing contents order in web page and method thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1310391A (en) * 2001-02-04 2001-08-29 王辉 Distribution protecting method for Internet web page text
CN1519717A (en) * 2003-01-31 2004-08-11 英特尔公司 Realizing of protecting transplantable content for protecting secret security
CN101635622A (en) * 2008-07-24 2010-01-27 阿里巴巴集团控股有限公司 Method, system and equipment for encrypting and decrypting web page
CN102110114A (en) * 2009-12-28 2011-06-29 北京安码科技有限公司 Copy-prevention method and device of web page word content
KR20110096815A (en) * 2010-02-23 2011-08-31 김대중 Information providing system for changing contents order in web page and method thereof

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110362791A (en) * 2019-02-22 2019-10-22 裴信 Processing method, device and the computer readable storage medium of logic relevant issues
CN111046658A (en) * 2019-12-18 2020-04-21 支付宝(杭州)信息技术有限公司 Out-of-order text recognition method, device and equipment
CN111046658B (en) * 2019-12-18 2023-05-09 支付宝(杭州)信息技术有限公司 Method, device and equipment for recognizing disorder text
CN116975853A (en) * 2023-06-25 2023-10-31 阅霆信息技术(上海)有限公司 Method for preventing text content from being completely intercepted at Web end
CN116975853B (en) * 2023-06-25 2024-04-05 阅霆信息技术(上海)有限公司 Method for preventing text content from being completely intercepted at Web end

Also Published As

Publication number Publication date
WO2015103849A1 (en) 2015-07-16

Similar Documents

Publication Publication Date Title
AU2018347205C1 (en) Parallel execution of transactions in a blockchain network based on smart contract whitelists
US10097522B2 (en) Encrypted query-based access to data
US10985902B2 (en) Dynamic symmetric searchable encryption
EP3674928A1 (en) Full-text fuzzy retrieval method for similar chinese characters in ciphertext domain
KR20200118353A (en) Blockchain data processing based on smart contract behavior executed in a trusted execution environment
CN103607405B (en) A kind of cipher text searching authentication method of facing cloud storage
US9147079B2 (en) Encrypted database system, client terminal, encrypted database server, natural joining method, and program
CN104766019A (en) Webpage text information protection method, device and system
CN103955537A (en) Method and system for designing searchable encrypted cloud disc with fuzzy semantics
KR20200083939A (en) Smart contract whitelist
CN105808977A (en) Processing methods and apparatuses for file reading and writing operations
CN103607420A (en) Safe electronic medical system for cloud storage
CN112783851A (en) Secure and efficient multi-server inadvertent random access machine in malicious execution environment
US10284535B2 (en) Secure database
CN105279198A (en) Data table storage method, data table modification method, data table query method and data table statistical method
CN104821876A (en) Dynamic searchable symmetrical encryption method supporting physical deletion
US9626410B2 (en) Vertically partitioned databases
Ananthi et al. FSS-SDD: fuzzy-based semantic search for secure data discovery from outsourced cloud data
US20210173957A1 (en) Encrypted tag generation device, search query generation device, and searchable encryption system
CN110945506B (en) Searchable encryption supporting hybrid indexes
CN115913725A (en) Forward security dynamic searchable encryption method and system based on XOR encryption chain
Uma et al. Enhanced convergent encryption key generation for secured data deduplication in cloud storage
KR20220167394A (en) Protect access to information using multiparty computing and probabilistic data structures
TW202119229A (en) Data management method and system capable of safely accessing and deleting data wherein operations are performed by using a management server
TWM591647U (en) Data management system capable of securely accessing and deleting data

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20150708