WO2015103849A1 - Method, device and system for protecting text information in web page and computer storage medium - Google Patents

Method, device and system for protecting text information in web page and computer storage medium Download PDF

Info

Publication number
WO2015103849A1
WO2015103849A1 PCT/CN2014/079542 CN2014079542W WO2015103849A1 WO 2015103849 A1 WO2015103849 A1 WO 2015103849A1 CN 2014079542 W CN2014079542 W CN 2014079542W WO 2015103849 A1 WO2015103849 A1 WO 2015103849A1
Authority
WO
WIPO (PCT)
Prior art keywords
text
web page
client
shuffling
length
Prior art date
Application number
PCT/CN2014/079542
Other languages
French (fr)
Chinese (zh)
Inventor
金学骥
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2015103849A1 publication Critical patent/WO2015103849A1/en

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]

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a text information protection method, apparatus and system for a webpage, and a computer storage medium. Background technique
  • the traditional anti-copy method on the Internet mostly prevents the user from copying on the webpage, but cannot prevent the user from viewing the webpage source file. The user can still obtain the required text from the source file by viewing the webpage source file.
  • the embodiment of the invention provides a text information protection method, device and system in a webpage, and a computer storage medium, which solves the problem that the text in the webpage is copied.
  • a method for protecting text information in a webpage comprising:
  • the server receives the webpage request information of the client
  • the server performs the shuffling of the text in the webpage requested by the client, and after the shuffling, the server sends the webpage data requested by the client to the client, where the webpage data carries the webpage after the shuffling Chinese version.
  • the server performs the shuffling of the text in the webpage requested by the client, including: a. the server selects a text block in a label in the webpage;
  • the server processes the text block by using a shuffling algorithm to obtain a mixed text
  • the server processes the text block by using a shuffling algorithm, and the obtained text after the shuffling comprises:
  • the length of the first M - 1 segment is the maximum row length of the shuffling algorithm, and the length of the last segment is less than or equal to the maximum row length of the shuffle algorithm, each piece of text The length is less than the length of the text block;
  • the text block is hashed hierarchically according to the following expression:
  • F(n) m, l ⁇ n, m ⁇ L me Z ne Z ⁇ . ⁇ F(n l ) ⁇ F(n 2 ), n x ⁇ n 2
  • n is the character of a text in the original text block Position
  • m is the position of the text after the shuffling
  • L is the length of a piece of text
  • the webpage request information includes a public key of the client.
  • the sending, by the server, the webpage data requested by the client to the client includes: the server encrypting the shuffle algorithm by using the public key;
  • the server combines the encrypted shuffling algorithm with the webpage data and sends the webpage data to the client.
  • the embodiment of the invention further provides a text information protection method in a webpage, comprising: the client sending the webpage request information to the server;
  • the webpage request information includes the public key of the client, and before the step of the client sending the webpage request information to the server, the method further includes:
  • the client generates a public key and combines the public key with the webpage request information.
  • the webpage data further includes a shuffling algorithm using the public key encryption, and the client stores the webpage data, and the displaying the text in the shuffled webpage is normal after the display comprises:
  • the client parses the webpage data, and stores the data obtained after parsing is completed in the DOM tree;
  • the client decrypts the shuffling algorithm by using a corresponding private key to obtain an anti-mixing algorithm
  • the display when the text in the webpage is displayed, the text is back-mixed according to the anti-mixing algorithm, and after the text in the webpage is restored to normal, the display includes:
  • the client extracts a text block in a label in the webpage
  • the client processes the text block by using an anti-mixing algorithm to obtain a restored text
  • the anti-mixing algorithm is an inverse mapping relationship
  • the client processes the text by using the anti-mixing algorithm
  • the recovered text includes: Dividing the text block into M segments, the length of the first M - 1 segment is the maximum row length of the shuffling algorithm, and the length of the last segment is less than or equal to the maximum row length of the shuffle algorithm, each piece of text The length is less than the length of the text block;
  • n is the position of a certain text in the original text block
  • m is the position of the text after the shuffling
  • L is the length of a piece of text.
  • the embodiment of the invention further provides a text information protection device in a webpage, comprising: a request receiving module, configured to receive webpage request information of a client;
  • the shuffling module is configured to perform the shuffling of the text in the webpage requested by the client, and obtain a data sending module, configured to send the webpage data requested by the client to the client, where the webpage data carries the shuffle After the text in the web page.
  • the shuffling module comprises:
  • a text block extracting unit configured to select a text block in a tag in the webpage
  • a shuffling computing unit configured to process the text block using a shuffling algorithm to obtain a mixed text
  • control unit configured to control the text block extracting unit and the hashing computing unit to process the block of text in the webpage block by block until all the text in the webpage is processed.
  • the mixing and calculating unit includes:
  • a segmentation subunit configured to divide the text block into M segments, the length of the first M-1 segment being the maximum row length of the shuffle algorithm, and the length of the last segment being less than or equal to the maximum of the shuffle algorithm Row length, the length of each piece of text is less than the length of the text block;
  • n is the position of a certain text in the original text block
  • m is the position of the text after the shuffling
  • L is the length of a piece of text.
  • the webpage request information includes a public key of the client
  • the data sending module includes:
  • An encryption unit configured to encrypt the shuffle algorithm using the public key
  • the sending unit is configured to combine the encrypted shuffling algorithm with the webpage data, and send the webpage data to the client.
  • the embodiment of the invention further provides a text information protection device in a webpage, comprising: a request sending module, configured to send webpage request information to a server;
  • a data receiving module configured to receive webpage data returned by the server, where the webpage data carries text in a webpage after being mixed
  • the shuffle recovery module is configured to store the webpage data, and display the Chinese webpage after the shuffled webpage is restored to normal.
  • the webpage request information includes a public key of the client
  • the apparatus further includes: a public key generating module configured to generate a public key, and combine the public key with the webpage request information.
  • the webpage data further includes a shuffling algorithm that uses the public key encryption, and the shuffle recovery module includes:
  • a webpage parsing sub-module configured to parse the webpage data, and store the data obtained after parsing is completed in a DOM tree
  • Decrypting the submodule configured to decrypt the shuffling algorithm by using a corresponding private key to obtain an anti-mixing algorithm
  • a data storage sub-module configured to layout a webpage and store the text in the shuffled webpage in a browser memory
  • An anti-mixing sub-module configured to follow the text when the text in the web page is displayed
  • the anti-mixing algorithm performs an anti-mixing layout, and displays the text in the webpage after returning to normal.
  • the anti-mixing sub-module comprises:
  • a text extracting unit configured to extract a text block in a label in the webpage
  • a text restoring unit configured to process the text using an anti-mixing algorithm to obtain a restored text
  • control unit configured to control the anti-mixing algorithm calculation unit and the text recovery unit to process the text blocks in the webpage block by block until all the texts in the webpage are processed;
  • the display unit is configured to display the text after it has returned to normal.
  • the text recovery unit comprises:
  • a segmentation subunit configured to divide the text block into M segments, the length of the first M-1 segment being the maximum row length of the shuffle algorithm, and the length of the last segment being less than or equal to the maximum of the shuffle algorithm Row length, the length of each piece of text is less than the length of the text block;
  • the anti-mixing map sub-unit is configured to perform anti-mesh mapping of the text blocks piece by piece according to the following expression:
  • n is the position of a certain text in the original text block
  • m is the position of the text after the shuffling
  • L is the length of a piece of text.
  • the embodiment of the invention further provides a text information protection system in a webpage, including a client and a server.
  • the client is configured to send webpage request information to the server, and receive webpage data returned by the server, where the webpage data carries the text in the webpage after the shuffle, and the webpage data is stored, and the shuffle is performed. After the text in the webpage returns to normal, it is displayed;
  • the server is configured to receive the webpage request information of the client, mix the text in the webpage requested by the client, and obtain the mixed text, where the client sends the guest
  • the webpage data requested by the client carries the text in the shuffled webpage in the webpage data.
  • Embodiments of the present invention also provide a computer storage medium in which computer executable instructions are stored, the computer executable instructions being used to perform the above method.
  • the embodiment of the invention provides a method, a device and a system for protecting text information in a webpage, and a computer storage medium.
  • the server receives the webpage request information of the client, and the server mixes the text in the webpage requested by the client to obtain After the shuffled text, the order of the text in the shuffled text is confusing compared to the original text, and then the server sends the webpage data requested by the client to the client to carry the shuffle in the webpage data.
  • the text in the webpage ; the client sends the webpage request information to the server, and receives the webpage data returned by the server, the webpage data carries the text in the webpage after the shuffling, and the client stores the webpage data, and the webpage is mixed
  • the text in the back page is displayed after normal recovery. The protection of the original text by the shuffling is realized, and the problem that the text in the webpage is copied is solved.
  • FIG. 1 is a flow chart of a method for protecting text information in a webpage according to Embodiment 1 of the present invention
  • FIG. 2 is a schematic diagram of a flow of a shuffling algorithm in step 105;
  • Figure 3 is a schematic diagram of the principle of the shuffling algorithm
  • step 112 is a schematic diagram of a flow of an anti-mixing algorithm in step 112;
  • FIG. 6 is a flow chart of a method for protecting text information in a webpage according to Embodiment 2 of the present invention.
  • FIG. 7 is a schematic structural diagram of a text information protection apparatus for a webpage according to Embodiment 3 of the present invention
  • FIG. 8 is a schematic structural view of the shuffling module 702 of FIG. 7;
  • FIG. 9 is a schematic structural diagram of the shuffling calculation unit 802 of FIG. 8;
  • FIG. 10 is a schematic structural diagram of the data transmitting module 703 of FIG. 7;
  • FIG. 11 is a schematic structural diagram of still another text information protection apparatus in a webpage according to Embodiment 3 of the present invention.
  • FIG 12 is a schematic structural view of the shuffling recovery module 1103 of Figure 11;
  • FIG. 13 is a schematic structural view of the anti-mixing sub-module 1204 of FIG. 12;
  • Figure 14 is a block diagram showing the structure of the text restoring unit 1302 of Figure 13; detailed description
  • the traditional anti-copy method on the Internet mostly prevents the user from copying on the webpage, but cannot prevent the user from viewing the webpage source file. The user can still obtain the required text from the source file by viewing the webpage source file.
  • embodiments of the present invention provide a text information protection method, apparatus, and system in a webpage.
  • the text in the webpage is mixed on the server side, that is, the order of the text arrangement in each piece of text is disordered, and the shuffling method is encrypted and mixed with the webpage to be transmitted to the webpage.
  • Browser client After the browser client receives the webpage, it performs normal parsing and layout. The text is also mixed in the internal storage of the browser. However, when the text is displayed, the text is back-mixed according to the shuffle rule given by the server. The text to be in the normal order. When a user copies a piece of text, the text stored from inside the browser is also shuffled.
  • FIG. 1 The embodiment of the invention provides a method for protecting text information in a webpage.
  • the specific process is shown in FIG. 1 and includes:
  • Step 101 The information requested by the client for the combination request, in addition to the original content of the webpage request information, the information related to the encryption is also included in the webpage request information.
  • the client should generate a public key and combine the public key in the web page request information to send to the server.
  • Step 102 The client sends webpage request information to the server.
  • Step 103 The server receives webpage request information, where the webpage request includes normal request content and encryption related information (such as a public key) of the browser client.
  • the webpage request includes normal request content and encryption related information (such as a public key) of the browser client.
  • Step 104 The server organizes the webpage data according to the content of the webpage request information.
  • Step 105 The server generates a shuffling algorithm, and the shuffling algorithm is a method of scrambling the text order.
  • Step 201 Take out a piece of text in the webpage, and the extracted text should be in a label.
  • Step 202 Select a shuffling algorithm, and set the maximum sortable length of the shuffling algorithm to L. If the block text length is N, and N is greater than L, the text is divided into several segments (set to M segment), the length of the first M-1 segment is L, and the length of the last segment is less than or equal to L;
  • Step 203 Take out the first piece of text
  • Step 204 Calculate the shuffling algorithm under the length according to the length of the extracted text, and Figure 3 lists a shuffling algorithm through the mapping relationship.
  • the shuffle mapping relationship can be expressed as follows:
  • F(n) m, l ⁇ n, m ⁇ L me Z ne Z ⁇ . ⁇ F(n l ) ⁇ F(n 2 ), n x ⁇ n 2
  • n is the position of a certain text in the original text block
  • m is the location of the text after the shuffle.
  • the text length is 13, and the maximum mix length is 8, you need to divide the text into two
  • the first segment has a length of 8
  • the second segment has a length of 5.
  • the text 301 of the first paragraph is "I want to enter a piece of text", the length is 8, which is exactly the same as the maximum mixed length, and the mapping relationship is 303. After the shuffle, the text changes to "Segment I want to enter the text", as shown in 302.
  • the second paragraph of text is "row chaotic ordering", the length is 5, less than 8, first find out the length of 5 mixed mapping. As shown in FIG. 3, 304, F(3), F(4), F(7) are removed, and the sequence numbers are rearranged to obtain a mixed-length mapping relationship of length 5, as shown by 305. Through the shuffle mapping, you can get the shuffled text as "chaotic sorting mix”.
  • Step 205 Perform mixing on the text according to the mixing algorithm
  • step 204 If the text has not been taken, the text is removed and the process proceeds to step 204. Until all the text has been taken.
  • Step 106 Complete text mixing.
  • the text is divided into blocks according to the label.
  • each p label is a piece of text, and a total of 3 pieces of text are mixed: " ⁇ p> Although some reasonable requirements put forward by developing countries are not obtained. Satisfied, but the Chinese delegation stated that regardless of the progress of the negotiations, China will unswervingly follow the green and low-carbon development path. ⁇ /p>
  • Step 107 Encrypt the shuffling algorithm, such as RSA encryption.
  • Step 108 Combine the mixed webpage data with the encrypted shuffling algorithm.
  • Step 109 The server sends the webpage data and the encrypted shuffling algorithm to the client.
  • Step 110 The client receives the webpage data sent by the server and the encrypted shuffling algorithm.
  • Step 111 The client starts to parse the webpage data, and the parsed data has a DOM tree. In , the text is still mixed text.
  • Step 112 The client decrypts the shuffling algorithm.
  • the anti-mixing algorithm is obtained by decrypting using the private key of RSA.
  • FIG. 4 An example of an anti-mixing algorithm is shown in FIG. 4. It should be noted that the algorithm for restoring the mixed text to the original sequence can be used as the anti-mixing algorithm, which is not limited by the embodiment of the present invention.
  • Step 401 Take a piece of text in the webpage, and the extracted text should be in the same webpage label;
  • Step 402 If the text length is N, and N is greater than L (L is the maximum sortable length of the shuffling algorithm), then the text is divided into For several segments (set to M segment), the length of the first M-1 segment is L, and the length of the last segment is less than or equal to L;
  • Step 403 Take out the first piece of text
  • Step 404 Calculate a mixed mapping relationship of the length according to the length of the extracted piece of text
  • Step 405 calculates an inverse mapping relationship
  • Step 406 Perform anti-mixing according to the reverse mapping relationship file, and restore the mixed text to the original text
  • the text needs to be segmented during the anti-mixing process. As shown in the example in Figure 5, the character length is 13 and needs to be divided into two segments. The length of the first segment is 8, and the length of the second segment is 5.
  • the text of the first paragraph is "Paragraph my text wants to enter one", and the mixed mapping relationship obtained from the server is shown as 503 in Fig. 5, then the inverse mapping relationship can be obtained as shown in Fig. 5, 504.
  • the second paragraph of the text is "chaotic sorting mixed", the text length is 5, the mixing from the server If the mapping relationship (shown as 505 in Figure 5) is 8 in length, you need to extract the hybrid mapping relationship of length 5, as shown in 505 in Figure 5, and remove F(3), F(4), and F(7). Then, the sequence numbers are rearranged to obtain a mixed-length mapping relationship of length 5, as shown by 506 in Fig. 5, and the length-inverted-displacement mapping relationship (shown as 507 in Fig. 5) is calculated. Through the inverse mapping relationship, you can get the anti-mixing text as "line chaotic sorting".
  • Step 113 The client layouts the webpage, and renders the data storage in the browser layout (such as the web tree's Render tree).
  • the Chinese text is also arranged in a mixed row, and the text is mixed and arranged according to the mixed sorting algorithm when the final text is displayed. . Because text is always in a mixed order in the browser client memory, users can only get mixed text when copying text on a web page.
  • Step 114 The client displays the webpage to the user.
  • Embodiment 2 of the present invention will be described below with reference to the accompanying drawings.
  • An embodiment of the present invention provides a method for protecting text information in a webpage.
  • the process for protecting text in a webpage by using the method is as shown in FIG. 6, and includes:
  • Step 601 The client generates a public key, and combines the public key with the webpage request information.
  • Step 602 The client sends webpage request information to the server.
  • Step 603 The server receives the webpage request information of the client.
  • Step 604 The server mixes the text in the webpage requested by the client to obtain the mixed text.
  • the server mixes the original text, that is, disturbs the sorting of the text in the original text, and
  • a server selects a text block within a tag in the web page; b.
  • the server processes the text block by using a shuffling algorithm to obtain a mixed text;
  • the hashing map may be used to divide the text block into M segments, and the length of the first M - 1 segment is the maximum row length of the shuffling algorithm, and the length of the last segment is less than or equal to the shuffling algorithm.
  • the maximum sizable length, the length of each piece of text is less than the length of the text block.
  • n is the position of a certain text in the original text block
  • m is the position of the text after the shuffling
  • L is the length of a piece of text
  • the server sends, to the client, the webpage data requested by the client, and the text in the webpage that is mixed in the webpage data.
  • the server encrypts the shuffling algorithm by using the public key, combines the encrypted shuffling algorithm with the webpage data, and sends the webpage data to the client.
  • Step 606 The client receives the webpage data returned by the server, and the webpage data carries the text in the webpage after the shuffling.
  • Step 607 The client stores the webpage data, and displays the text in the hashed webpage after being restored to normal;
  • This step specifically includes the following steps:
  • the client parses the webpage data, and stores the data obtained after parsing is completed in a DOM tree
  • the client decrypts the shuffling algorithm by using a corresponding private key to obtain a backmixing 3. Layout the webpage, and store the text in the shuffled webpage in the browser memory;
  • This step specifically includes:
  • the client extracts a text block in a label in the webpage
  • the client processes the text block by using an anti-mixing algorithm to obtain a restored text
  • step 604 the anti-mixing is completed according to the following method:
  • the length of the first M - 1 segment is the maximum row length of the shuffling algorithm, and the length of the last segment is less than or equal to the maximum row length of the shuffle algorithm, each piece of text
  • the length of the text block is less than the length of the text block, and the text block is back-mixed and mapped step by paragraph according to the following expression:
  • n is the position of a certain text in the original text block
  • m is the position of the text after the shuffling
  • L is the length of a piece of text
  • the embodiment of the present invention provides a text information protection device for a webpage.
  • the structure of the device is as shown in FIG. 7, and includes:
  • the request receiving module 701 is configured to receive webpage request information of the client
  • the shuffling module 702 is configured to mix and match text in the webpage requested by the client.
  • the data sending module 703 is configured to send, to the client, the webpage data requested by the client, and carry the text in the webpage after the shuffling in the webpage data.
  • the structure of the shuffling module 702 is as shown in FIG. 8, and includes:
  • the text block extracting unit 801 is configured to select a text block in a label in the webpage;
  • the shuffling calculation unit 802 is configured to process the text block by using a shuffling algorithm to obtain the mixed text;
  • the control unit 803 is configured to control the text block extracting unit 801 and the hashing computing unit 802 to process the text blocks in the webpage block by block until all the texts in the webpage are processed.
  • the structure of the shuffling calculation unit 802 is as shown in FIG. 9, and includes:
  • the segment subunit 901 is configured to divide the text block into segments, and the length of the first segment _1 is the maximum row length of the shuffle algorithm, and the length of the last segment is less than or equal to the maximum of the shuffle algorithm.
  • the length of each piece of text is less than the length of the text block;
  • Mapping sub-unit 902 configured to perform the shuffle mapping of the text blocks piece by piece according to the following expression:
  • is the position of a certain text in the original text block
  • m is the position of the text after the shuffling
  • L is the length of a piece of text
  • the webpage request information includes a public key of the client, and the structure of the data sending module 703 is as shown in FIG.
  • the encryption unit 1001 is configured to encrypt the shuffling algorithm by using the public key; the sending unit 1002 is configured to combine the encrypted shuffling algorithm with the webpage data, and send the Web page data.
  • the text information protection device in the above webpage can be integrated into the server, and the server completes the corresponding
  • the embodiment of the invention further provides a text information protection device in a webpage, and the structure thereof is as shown in FIG. 11, which includes:
  • the request sending module 1101 is configured to send webpage request information to the server
  • the data receiving module 1102 is configured to receive the webpage data returned by the server, where the webpage data carries the text in the webpage after the shuffling;
  • the shuffling recovery module 1103 is configured to store the webpage data, and display the Chinese webpage after the shuffled webpage is restored to normal.
  • the webpage request information includes a public key of the client
  • the apparatus further includes: a public key generating module 1104 configured to generate a public key, and combine the public key with the webpage request information.
  • the webpage data further includes a shuffling algorithm using the public key encryption.
  • the structure of the shuffle recovery module 1103 is as shown in FIG. 12, and includes:
  • the webpage parsing sub-module 1201 is configured to parse the webpage data, and store the data obtained after parsing is completed in the DOM tree;
  • the decryption sub-module 1202 is configured to decrypt the shuffling algorithm by using a corresponding private key to obtain an anti-mixing algorithm
  • the data storage sub-module 1203 is configured to layout the webpage, and store the text in the shuffled webpage in the browser memory;
  • the anti-mixing sub-module 1204 is configured to perform anti-mixing layout on the text according to the anti-mixing algorithm when the text in the webpage is displayed, and display the text in the webpage after returning to normal.
  • the structure of the anti-mixing sub-module 1204 is as shown in FIG. 13 , and includes: a text extracting unit 1301 configured to extract a text block in a label in the webpage; and a text restoring unit 1302 configured to use the reverse The shuffling algorithm processes the text to obtain the restored text;
  • the control unit 1303 is configured to control the anti-mixing algorithm calculation unit 1301 and the text
  • the recovery unit 1302 processes the text blocks in the webpage block by block until all the texts in the webpage are processed;
  • the display unit 1304 is configured to display the text after returning to normal.
  • the structure of the text restoring unit 1302 is as shown in FIG. 14 , and includes: a segment subunit 1401 configured to divide the text block into M segments, and the length of the first M ⁇ 1 segment is the shuffling algorithm.
  • the maximum length of the queue, the length of the last segment is less than or equal to the maximum row length of the shuffling algorithm, and the length of each piece of text is less than the length of the text block;
  • the anti-mixing map sub-unit 1402 is configured to perform a back-mixing mapping of the text blocks piece by piece according to the following expression:
  • n is the position of a certain text in the original text block
  • m is the position of the text after the shuffling
  • L is the length of a piece of text
  • the text information protection device in the above webpage can be integrated into the client, and the client performs the corresponding work.
  • the embodiment of the invention further provides a text information protection system in a webpage, comprising a client and a server, wherein the client integrates the text information protection system in the webpage shown in FIG. 11 to FIG. 14, wherein the server is integrated with FIG. 7 to The text information protection system in the webpage shown in 10.
  • the client is configured to send webpage request information to the server, and receive webpage data returned by the server, where the webpage data carries the text in the webpage after the shuffle, and the webpage data is stored, and the shuffle is performed. After the text in the webpage returns to normal, it is displayed;
  • the server is configured to receive the webpage request information of the client, mix the text in the webpage requested by the client, and obtain the mixed text, where the client sends the webpage data requested by the client.
  • the webpage data carries the text in the webpage after the shuffling.
  • Embodiments of the present invention provide a text information protection method, apparatus, and system in a webpage,
  • the server receives the webpage request information of the client, and the server mixes the text in the webpage requested by the client to obtain the mixed text, and the order of the text in the mixed text is chaotic compared with the original text.
  • the server sends the webpage data requested by the client to the client to carry the text in the webpage in the webpage data; the client sends the webpage request information to the server, and receives the webpage data returned by the server.
  • the webpage data carries the text in the webpage after the shuffling, and the client stores the webpage data, and displays the text in the shuffled webpage after returning to normal.
  • the protection of the original text by the shuffling is realized, and the problem that the text in the webpage is copied is solved. No matter whether the user is copying on the webpage or the source file, the user can not get the text in the normal order, and the obtained disordered text is mixed, thereby achieving the purpose of protecting the text information of the webpage.
  • a computer program flow which may be stored in a computer readable storage medium, such as on a corresponding hardware platform (eg, The system, device, device, device, etc. are executed, and when executed, include one or a combination of the steps of the method embodiments.
  • an embodiment of the present invention further provides a computer storage medium, wherein computer executable instructions are stored, and the computer executable instructions are used to execute the method according to the embodiment of the present invention.
  • all or part of the steps of the foregoing embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve.
  • the invention is not limited to any specific combination of hardware and software.
  • the devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
  • Each device/function module/function unit in the above embodiment is in the form of a software function module. Now available and sold as a standalone product, it can be stored on a computer readable storage medium.
  • the above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.

Abstract

Provided are a method, device and system for protecting text information in a web page and a computer storage medium. The method comprises: a server receiving web page request information of a client; the server shuffling a text in a web page requested by the client so as to obtain a shuffled text, characters in the shuffled text are disordered compared with the original text; and the server sending to the client web page data requested by the client, the web page data carrying the shuffled text in the web page. The provided technical solution is applicable to web page content protection and realizes protection of the original text by shuffling.

Description

网页中文本信息保护方法、 装置和系统、 计算机存储介质 技术领域  Text information protection method, device and system in webpage, computer storage medium
本发明涉及通信技术领域, 尤其涉及一种网页中文本信息保护方法、 装置和系统、 计算机存储介质。 背景技术  The present invention relates to the field of communications technologies, and in particular, to a text information protection method, apparatus and system for a webpage, and a computer storage medium. Background technique
随着互联网的普及应用, 上网的人越来越多, 但网页上的信息很容易 被拷贝, 原创者辛苦的劳动成果很轻易被人转用, 对原创者是一个很大的 损失。 现有技术在防止网页文本拷贝时一般采用禁止用户在网页上进行拷 贝操作。  With the popularization and application of the Internet, more and more people are surfing the Internet, but the information on the webpage is easily copied. The hard work of the original creator is easily diverted, which is a great loss to the original. The prior art generally prohibits a user from performing a copy operation on a web page when preventing copying of a web page text.
网上传统防拷贝方法多是防止用户在网页进行复制操作, 但无法阻止 用户查看网页源文件, 用户还是可以通过查看网页源文件的方法从源文件 中很容易就得到所需要文本。  The traditional anti-copy method on the Internet mostly prevents the user from copying on the webpage, but cannot prevent the user from viewing the webpage source file. The user can still obtain the required text from the source file by viewing the webpage source file.
发明内容 Summary of the invention
本发明实施例提供了一种网页中文本信息保护方法、 装置和系统、 计 算机存储介质, 解决了网页中文本被拷贝的问题。  The embodiment of the invention provides a text information protection method, device and system in a webpage, and a computer storage medium, which solves the problem that the text in the webpage is copied.
一种网页中文本信息保护方法, 包括:  A method for protecting text information in a webpage, comprising:
服务器接收客户端的网页请求信息;  The server receives the webpage request information of the client;
所述服务器对所述客户端请求的网页中的文本进行混排, 得到混排后 所述服务器向所述客户端发送该客户端请求的网页数据, 所述网页数 据中携带混排后的网页中文本。 优选的, 所述服务器对所述客户端请求的网页中的文本进行混排包括: a. 所述服务器选择所述网页中一个标签内的一文本块; The server performs the shuffling of the text in the webpage requested by the client, and after the shuffling, the server sends the webpage data requested by the client to the client, where the webpage data carries the webpage after the shuffling Chinese version. Preferably, the server performs the shuffling of the text in the webpage requested by the client, including: a. the server selects a text block in a label in the webpage;
b. 所述服务器使用混排算法对所述文本块进行处理, 得到混排后的文 本;  b. The server processes the text block by using a shuffling algorithm to obtain a mixed text;
c对所述网页中的文本块逐块进行步骤 a至 b的处理, 至所述网页中 全部文本均处理完成为止。  c performing the processing of steps a to b on a block of text in the web page block by block until all the text in the web page has been processed.
优选的, 所述服务器使用混排算法对所述文本块进行处理, 得到混排 后的文本包括:  Preferably, the server processes the text block by using a shuffling algorithm, and the obtained text after the shuffling comprises:
将所述文本块划分为 M段, 前 M - 1段的长度均为所述混排算法的最 大可排长度, 最后一段长度小于或等于所述混排算法的最大可排长度, 每 一段文本的长度小于所述文本块的长度;  Dividing the text block into M segments, the length of the first M - 1 segment is the maximum row length of the shuffling algorithm, and the length of the last segment is less than or equal to the maximum row length of the shuffle algorithm, each piece of text The length is less than the length of the text block;
根据以下表达式逐段对所述文本块进行混排映射:  The text block is hashed hierarchically according to the following expression:
F(n) = m, l≤n, m≤ L me Z n e Z ^.^ F(nl )≠ F(n2 ), nx≠ n2 其中, n为原文本块中某一文字所在的位置, m为混排后该文字所在的 位置, L为一段文本的长度。 F(n) = m, l≤n, m≤ L me Z ne Z ^.^ F(n l )≠ F(n 2 ), n x ≠ n 2 where n is the character of a text in the original text block Position, m is the position of the text after the shuffling, L is the length of a piece of text.
优选的, 所述网页请求信息中包含客户端的公钥。  Preferably, the webpage request information includes a public key of the client.
优选的 , 所述服务器向所述客户端发送该客户端请求的网页数据包括: 所述服务器使用所述公钥对所述混排算法进行加密;  Preferably, the sending, by the server, the webpage data requested by the client to the client includes: the server encrypting the shuffle algorithm by using the public key;
所述服务器将加密后的混排算法与所述网页数据进行组合, 并向所述 客户端发送所述网页数据。 本发明实施例还提供了一种网页中文本信息保护方法, 包括: 客户端向服务器发送网页请求信息;  The server combines the encrypted shuffling algorithm with the webpage data and sends the webpage data to the client. The embodiment of the invention further provides a text information protection method in a webpage, comprising: the client sending the webpage request information to the server;
所述客户端接收所述服务器返回的网页数据 , 所述网页数据中携带混 排后的网页中文本; 所述客户端存储所述网页数据, 将所述混排后的网页中文本恢复正常 后显示。 Receiving, by the client, the webpage data returned by the server, where the webpage data carries the text in the webpage after the shuffling; The client stores the webpage data, and displays the text in the hashed webpage after returning to normal.
优选的, 所述网页请求信息中包含有所述客户端的公钥, 所述客户端 向服务器发送网页请求信息的步骤之前, 还包括:  Preferably, the webpage request information includes the public key of the client, and before the step of the client sending the webpage request information to the server, the method further includes:
所述客户端生成公钥, 并将所述公钥与所述网页请求信息进行组合。 优选的, 所述网页数据中还包含有使用所述公钥加密的混排算法, 所 述客户端存储所述网页数据, 将所述混排后的网页中文本恢复正常后显示 包括:  The client generates a public key and combines the public key with the webpage request information. Preferably, the webpage data further includes a shuffling algorithm using the public key encryption, and the client stores the webpage data, and the displaying the text in the shuffled webpage is normal after the display comprises:
所述客户端解析所述网页数据 ,将解析完成后得到的数据存储在 DOM 树中;  The client parses the webpage data, and stores the data obtained after parsing is completed in the DOM tree;
所述客户端使用相应的私钥对所述混排算法进行解密, 得到反混排算 法;  The client decrypts the shuffling algorithm by using a corresponding private key to obtain an anti-mixing algorithm;
对网页进行布局, 在浏览器内存中存储混排后的网页中文本; 在所述网页中的文本显示时对所述文本按照所述反混排算法进行反混 排布局, 将所述网页中文本恢复正常后显示。  Layout the webpage, storing the text in the shuffled webpage in the browser memory; and performing anti-mixing layout on the text according to the anti-mixing algorithm when the text in the webpage is displayed, in the webpage Displayed after the text returns to normal.
优选的, 在所述网页中的文本显示时对所述文本按照所述反混排算法 进行反混排布局, 将所述网页中文本恢复正常后显示包括:  Preferably, when the text in the webpage is displayed, the text is back-mixed according to the anti-mixing algorithm, and after the text in the webpage is restored to normal, the display includes:
a. 所述客户端取出所述网页中一个标签内的一文本块;  a. The client extracts a text block in a label in the webpage;
b. 所述客户端使用反混排算法对所述文本块进行处理, 得到恢复的文 本;  b. The client processes the text block by using an anti-mixing algorithm to obtain a restored text;
c 对所述网页中的文本块逐块进行步骤 a至 b的处理, 至所述网页中 全部文本均处理完成为止;  c performing the processing of steps a to b on the block of text in the webpage block by block until all the texts in the webpage are processed;
d. 显示恢复正常后的文本。  d. Display the text after it returns to normal.
优选的, 所述反混排算法为反映射关系, 所述客户端使用所述反混排 算法对所述文本进行处理, 得到恢复的文本包括: 将所述文本块划分为 M段, 前 M - 1段的长度均为所述混排算法的最 大可排长度, 最后一段长度小于或等于所述混排算法的最大可排长度, 每 一段文本的长度小于所述文本块的长度;
Figure imgf000005_0001
Preferably, the anti-mixing algorithm is an inverse mapping relationship, and the client processes the text by using the anti-mixing algorithm, and the recovered text includes: Dividing the text block into M segments, the length of the first M - 1 segment is the maximum row length of the shuffling algorithm, and the length of the last segment is less than or equal to the maximum row length of the shuffle algorithm, each piece of text The length is less than the length of the text block;
Figure imgf000005_0001
其中, n为原文本块中某一文字所在的位置, m为混排后该文字所在的 位置, L为一段文本的长度。 本发明实施例还提供了一种网页中文本信息保护装置, 包括: 请求接收模块, 配置为接收客户端的网页请求信息;  Where n is the position of a certain text in the original text block, m is the position of the text after the shuffling, and L is the length of a piece of text. The embodiment of the invention further provides a text information protection device in a webpage, comprising: a request receiving module, configured to receive webpage request information of a client;
混排模块, 配置为对所述客户端请求的网页中的文本进行混排, 得到 数据发送模块 , 配置为向所述客户端发送该客户端请求的网页数据 , 所述网页数据中携带混排后的网页中文本。  The shuffling module is configured to perform the shuffling of the text in the webpage requested by the client, and obtain a data sending module, configured to send the webpage data requested by the client to the client, where the webpage data carries the shuffle After the text in the web page.
优选的, 所述混排模块包括:  Preferably, the shuffling module comprises:
文本块提取单元, 配置为选择所述网页中一个标签内的一文本块; 混排计算单元, 配置为使用混排算法对所述文本块进行处理, 得到混 排后的文本;  a text block extracting unit configured to select a text block in a tag in the webpage; a shuffling computing unit configured to process the text block using a shuffling algorithm to obtain a mixed text;
控制单元, 配置为控制所述文本块提取单元和所述混排计算单元对所 述网页中的文本块逐块进行处理, 至所述网页中全部文本均处理完成为止。  And a control unit configured to control the text block extracting unit and the hashing computing unit to process the block of text in the webpage block by block until all the text in the webpage is processed.
优选的, 所述混排计算单元包括:  Preferably, the mixing and calculating unit includes:
分段子单元, 配置为将所述文本块划分为 M段, 前 M - 1段的长度均 为所述混排算法的最大可排长度, 最后一段长度小于或等于所述混排算法 的最大可排长度, 每一段文本的长度小于所述文本块的长度; 其中, n为原文本块中某一文字所在的位置, m为混排后该文字所在的 位置, L为一段文本的长度。 a segmentation subunit, configured to divide the text block into M segments, the length of the first M-1 segment being the maximum row length of the shuffle algorithm, and the length of the last segment being less than or equal to the maximum of the shuffle algorithm Row length, the length of each piece of text is less than the length of the text block; Where n is the position of a certain text in the original text block, m is the position of the text after the shuffling, and L is the length of a piece of text.
优选的, 所述网页请求信息中包含客户端的公钥, 所述数据发送模块 包括:  Preferably, the webpage request information includes a public key of the client, and the data sending module includes:
加密单元, 配置为使用所述公钥对所述混排算法进行加密;  An encryption unit configured to encrypt the shuffle algorithm using the public key;
发送单元, 配置为将加密后的混排算法与所述网页数据进行组合, 并 向所述客户端发送所述网页数据。 本发明实施例还提供了一种网页中文本信息保护装置, 包括: 请求发送模块, 配置为向服务器发送网页请求信息;  The sending unit is configured to combine the encrypted shuffling algorithm with the webpage data, and send the webpage data to the client. The embodiment of the invention further provides a text information protection device in a webpage, comprising: a request sending module, configured to send webpage request information to a server;
数据接收模块, 配置为接收所述服务器返回的网页数据, 所述网页数 据中携带混排后的网页中文本;  a data receiving module, configured to receive webpage data returned by the server, where the webpage data carries text in a webpage after being mixed;
混排恢复模块, 配置为存储所述网页数据, 将所述混排后的网页中文 本恢复正常后显示。  The shuffle recovery module is configured to store the webpage data, and display the Chinese webpage after the shuffled webpage is restored to normal.
优选的, 所述网页请求信息中包含有客户端的公钥, 该装置还包括: 公钥生成模块, 配置为生成公钥, 并将所述公钥与所述网页请求信息 进行组合。  Preferably, the webpage request information includes a public key of the client, and the apparatus further includes: a public key generating module configured to generate a public key, and combine the public key with the webpage request information.
优选的, 所述网页数据中还包含有使用所述公钥加密的混排算法, 所 述混排恢复模块包括:  Preferably, the webpage data further includes a shuffling algorithm that uses the public key encryption, and the shuffle recovery module includes:
网页解析子模块, 配置为解析所述网页数据, 将解析完成后得到的数 据存储在 DOM树中;  a webpage parsing sub-module configured to parse the webpage data, and store the data obtained after parsing is completed in a DOM tree;
解密子模块, 配置为使用相应的私钥对所述混排算法进行解密, 得到 反混排算法;  Decrypting the submodule, configured to decrypt the shuffling algorithm by using a corresponding private key to obtain an anti-mixing algorithm;
数据存储子模块, 配置为对网页进行布局, 在浏览器内存中存储混排 后的网页中文本;  a data storage sub-module configured to layout a webpage and store the text in the shuffled webpage in a browser memory;
反混排子模块, 配置为在所述网页中的文本显示时对所述文本按照所 述反混排算法进行反混排布局, 将所述网页中文本恢复正常后显示。 An anti-mixing sub-module configured to follow the text when the text in the web page is displayed The anti-mixing algorithm performs an anti-mixing layout, and displays the text in the webpage after returning to normal.
优选的, 所述反混排子模块包括:  Preferably, the anti-mixing sub-module comprises:
文本提取单元, 配置为取出所述网页中一个标签内的一文本块; 文本恢复单元, 配置为使用反混排算法对所述文本进行处理, 得到恢 复的文本;  a text extracting unit configured to extract a text block in a label in the webpage; a text restoring unit configured to process the text using an anti-mixing algorithm to obtain a restored text;
控制单元, 配置为控制所述反混排算法计算单元和所述文本恢复单元 对所述网页中的文本块逐块进行处理, 至所述网页中全部文本均处理完成 为止;  a control unit, configured to control the anti-mixing algorithm calculation unit and the text recovery unit to process the text blocks in the webpage block by block until all the texts in the webpage are processed;
显示单元, 配置为显示恢复正常后的文本。  The display unit is configured to display the text after it has returned to normal.
优选的, 所述文本恢复单元包括:  Preferably, the text recovery unit comprises:
分段子单元, 配置为将所述文本块划分为 M段, 前 M - 1段的长度均 为所述混排算法的最大可排长度, 最后一段长度小于或等于所述混排算法 的最大可排长度, 每一段文本的长度小于所述文本块的长度;  a segmentation subunit, configured to divide the text block into M segments, the length of the first M-1 segment being the maximum row length of the shuffle algorithm, and the length of the last segment being less than or equal to the maximum of the shuffle algorithm Row length, the length of each piece of text is less than the length of the text block;
反混排映射子单元, 配置为根据以下表达式逐段对所述文本块进行反 混排映射: The anti-mixing map sub-unit is configured to perform anti-mesh mapping of the text blocks piece by piece according to the following expression:
Figure imgf000007_0001
Figure imgf000007_0001
其中, n为原文本块中某一文字所在的位置, m为混排后该文字所在的 位置, L为一段文本的长度。 本发明实施例还提供了一种网页中文本信息保护系统, 包括客户端与 服务器,  Where n is the position of a certain text in the original text block, m is the position of the text after the shuffling, and L is the length of a piece of text. The embodiment of the invention further provides a text information protection system in a webpage, including a client and a server.
所述客户端, 配置为向所述服务器发送网页请求信息, 接收所述服务 器返回的网页数据, 所述网页数据中携带混排后的网页中文本, 储所述网 页数据, 将所述混排后的网页中文本恢复正常后显示;  The client is configured to send webpage request information to the server, and receive webpage data returned by the server, where the webpage data carries the text in the webpage after the shuffle, and the webpage data is stored, and the shuffle is performed. After the text in the webpage returns to normal, it is displayed;
所述服务器, 配置为接收所述客户端的网页请求信息, 对所述客户端 请求的网页中的文本进行混排, 得到混排后的文本, 所述客户端发送该客 户端请求的网页数据在所述网页数据中携带混排后的网页中文本。 本发明实施例还提供了一种计算机存储介质, 其中存储有计算机可执 行指令, 所述计算机可执行指令用于执行上述的方法。 本发明实施例提供了一种网页中文本信息保护方法、 装置和系统、 计 算机存储介质, 服务器接收客户端的网页请求信息, 所述服务器对所述客 户端请求的网页中的文本进行混排, 得到混排后的文本, 所述混排后的文 本中文字的顺序较原文本是混乱的, 然后所述服务器向所述客户端发送该 客户端请求的网页数据在所述网页数据中携带混排后的网页中文本; 客户 端向服务器发送网页请求信息, 接收所述服务器返回的网页数据, 所述网 页数据中携带混排后的网页中文本, 客户端存储所述网页数据, 将所述混 排后的网页中文本恢复正常后显示。 实现了通过混排对原文本的保护, 解 决了网页中文本被拷贝的问题。 附图说明 The server is configured to receive the webpage request information of the client, mix the text in the webpage requested by the client, and obtain the mixed text, where the client sends the guest The webpage data requested by the client carries the text in the shuffled webpage in the webpage data. Embodiments of the present invention also provide a computer storage medium in which computer executable instructions are stored, the computer executable instructions being used to perform the above method. The embodiment of the invention provides a method, a device and a system for protecting text information in a webpage, and a computer storage medium. The server receives the webpage request information of the client, and the server mixes the text in the webpage requested by the client to obtain After the shuffled text, the order of the text in the shuffled text is confusing compared to the original text, and then the server sends the webpage data requested by the client to the client to carry the shuffle in the webpage data. The text in the webpage; the client sends the webpage request information to the server, and receives the webpage data returned by the server, the webpage data carries the text in the webpage after the shuffling, and the client stores the webpage data, and the webpage is mixed The text in the back page is displayed after normal recovery. The protection of the original text by the shuffling is realized, and the problem that the text in the webpage is copied is solved. DRAWINGS
图 1是本发明的实施例一提供的一种网页中文本信息保护方法的流程 图;  1 is a flow chart of a method for protecting text information in a webpage according to Embodiment 1 of the present invention;
图 2是步骤 105中一种混排算法流程的示意图;  2 is a schematic diagram of a flow of a shuffling algorithm in step 105;
图 3是混排算法原理示意图;  Figure 3 is a schematic diagram of the principle of the shuffling algorithm;
图 4是步骤 112中一种反混排算法流程的示意图;  4 is a schematic diagram of a flow of an anti-mixing algorithm in step 112;
图 5 ^ ^混排算法原理示意图;  Figure 5 ^ ^ Schematic diagram of the shuffling algorithm;
图 6是本发明的实施例二提供的一种网页中文本信息保护方法的流程 图;  6 is a flow chart of a method for protecting text information in a webpage according to Embodiment 2 of the present invention;
图 7是本发明的实施例三提供的一种网页中文本信息保护装置的结构 示意图; 图 8是图 7中混排模块 702的结构示意图; FIG. 7 is a schematic structural diagram of a text information protection apparatus for a webpage according to Embodiment 3 of the present invention; FIG. 8 is a schematic structural view of the shuffling module 702 of FIG. 7;
图 9是图 8中混排计算单元 802的结构示意图;  9 is a schematic structural diagram of the shuffling calculation unit 802 of FIG. 8;
图 10是图 7中数据发送模块 703的结构示意图;  FIG. 10 is a schematic structural diagram of the data transmitting module 703 of FIG. 7;
图 11是本发明的实施例三提供的又一种网页中文本信息保护装置的结 构示意图;  FIG. 11 is a schematic structural diagram of still another text information protection apparatus in a webpage according to Embodiment 3 of the present invention; FIG.
图 12是图 11中混排恢复模块 1103的结构示意图;  Figure 12 is a schematic structural view of the shuffling recovery module 1103 of Figure 11;
图 13是图 12中反混排子模块 1204的结构示意图;  13 is a schematic structural view of the anti-mixing sub-module 1204 of FIG. 12;
图 14是图 13中文本恢复单元 1302的结构示意图。 具体实施方式  Figure 14 is a block diagram showing the structure of the text restoring unit 1302 of Figure 13; detailed description
网上传统防拷贝方法多是防止用户在网页进行复制操作, 但无法阻止 用户查看网页源文件, 用户还是可以通过查看网页源文件的方法从源文件 中很容易就得到所需要文本。  The traditional anti-copy method on the Internet mostly prevents the user from copying on the webpage, but cannot prevent the user from viewing the webpage source file. The user can still obtain the required text from the source file by viewing the webpage source file.
为了解决上述问题, 本发明的实施例提供了一种网页中文本信息保护 方法、 装置和系统。 浏览器客户端在向服务器发送网页请求信息后, 在服 务器侧把网页中的文本混排, 即打乱每一段文本中文字排列的顺序, 把混 排方法进行加密与混排后网页一同传输给浏览器客户端。 浏览器客户端接 收到网页后进行正常的解析与布局, 文本在浏览器的内部存储时也是混排 的, 但在显示文本显示时按服务器给的混排规则对文本进行反混排, 用户 看到的文本是正常顺序的。 用户在拷贝某一段文本时, 从浏览器内部存储 得到的文本也是混排的。  In order to solve the above problems, embodiments of the present invention provide a text information protection method, apparatus, and system in a webpage. After the browser client sends the webpage request information to the server, the text in the webpage is mixed on the server side, that is, the order of the text arrangement in each piece of text is disordered, and the shuffling method is encrypted and mixed with the webpage to be transmitted to the webpage. Browser client. After the browser client receives the webpage, it performs normal parsing and layout. The text is also mixed in the internal storage of the browser. However, when the text is displayed, the text is back-mixed according to the shuffle rule given by the server. The text to be in the normal order. When a user copies a piece of text, the text stored from inside the browser is also shuffled.
下文中将结合附图对本发明的实施例进行详细说明。 需要说明的是, 在不沖突的情况下, 本申请中的实施例及实施例中的特征可以相互任意组 合。 首先结合附图, 对本发明的实施例一进行说明。 本发明实施例提供了一种网页中文本信息保护方法, 具体流程如图 1 所示, 包括: Embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that, in the case of no conflict, the features in the embodiments and the embodiments in the present application may be arbitrarily combined with each other. First, the first embodiment of the present invention will be described with reference to the accompanying drawings. The embodiment of the invention provides a method for protecting text information in a webpage. The specific process is shown in FIG. 1 and includes:
步骤 101、为客户端组合需求请求的信息, 除了原有的网页请求信息内 容外, 在网页请求信息中也包括加密相关信息。 例如以 RSA算法为加密方 法, 客户端应生成公钥, 并将公钥组合在网页请求信息中发送给服务器。  Step 101: The information requested by the client for the combination request, in addition to the original content of the webpage request information, the information related to the encryption is also included in the webpage request information. For example, using the RSA algorithm as the encryption method, the client should generate a public key and combine the public key in the web page request information to send to the server.
步骤 102、 客户端向服务器发送网页请求信息;  Step 102: The client sends webpage request information to the server.
步骤 103、服务器收到网页请求信息, 该网页请求中中包括浏览器客户 端的正常请求内容与加密相关信息(如公钥)。  Step 103: The server receives webpage request information, where the webpage request includes normal request content and encryption related information (such as a public key) of the browser client.
步骤 104、 服务器根据网页请求信息的内容组织网页数据。  Step 104: The server organizes the webpage data according to the content of the webpage request information.
步骤 105、服务器生成混排算法, 混排算法是将文本顺序打乱的一种方 法。  Step 105: The server generates a shuffling algorithm, and the shuffling algorithm is a method of scrambling the text order.
图 2为步骤中所使用的一种混排算法, 需要说明的是能达到将文本打 乱目的的算法均在本发明的保护范围内, 本发明实施例对此不作限定。  2 is a shuffling algorithm used in the steps. It should be noted that the algorithm for the purpose of scrambling the text is within the scope of the present invention, which is not limited by the embodiment of the present invention.
以下结合图 2说明文本混排过程:  The following describes the text shuffling process in conjunction with Figure 2:
步骤 201、 取出网页中的一块文本, 所取文本应在一个标签内; 步骤 202、 选择一混排算法, 设混排算法最大可排长度为 L, 若该块文 本长度为 N, 且 N大于 L, 则把文本分为若干段(设为 M段), 前 M-1段 长度都为 L, 最后一段长度小于或等于 L;  Step 201: Take out a piece of text in the webpage, and the extracted text should be in a label. Step 202: Select a shuffling algorithm, and set the maximum sortable length of the shuffling algorithm to L. If the block text length is N, and N is greater than L, the text is divided into several segments (set to M segment), the length of the first M-1 segment is L, and the length of the last segment is less than or equal to L;
步骤 203、 取出第一段文本;  Step 203: Take out the first piece of text;
步骤 204、 根据取出来的文本长度来计算出该长度下的混排算法, 图 3 列举一种通过映射关系的混排算法, 混排映射关系可以表示为如下表达式: Step 204: Calculate the shuffling algorithm under the length according to the length of the extracted text, and Figure 3 lists a shuffling algorithm through the mapping relationship. The shuffle mapping relationship can be expressed as follows:
F(n) = m, l≤n, m≤ L me Z n e Z ^.^ F(nl )≠ F(n2 ), nx≠ n2 其中 n为原文本块中某一文字所在的位置, m为混排后该文字所在的 位置。 F(n) = m, l≤n, m≤ L me Z ne Z ^.^ F(n l )≠ F(n 2 ), n x ≠ n 2 where n is the position of a certain text in the original text block , m is the location of the text after the shuffle.
如图 3所示, 文本长度为 13, 而最大混排长度为 8, 需将文本分为两 段, 第一段长度为 8, 第 2段长度为 5。 As shown in Figure 3, the text length is 13, and the maximum mix length is 8, you need to divide the text into two For the segment, the first segment has a length of 8, and the second segment has a length of 5.
第一段的文字 301为 "我想把一段文本进", 长度为 8, 刚好与最大混 排长度一致, 映射关系为 303。 混排后, 文字变为 "段我文本想进把一", 如 302所示。  The text 301 of the first paragraph is "I want to enter a piece of text", the length is 8, which is exactly the same as the maximum mixed length, and the mapping relationship is 303. After the shuffle, the text changes to "Segment I want to enter the text", as shown in 302.
第 2段文本为 "行混乱排序", 长度为 5, 小于 8, 首先要找出长度为 5 的混排映射关系。 如图 3中 304所示所示, 去掉 F(3)、 F(4)、 F(7), 并将序 号重新排列得到长度为 5的混排映射关系, 如 305所示。 通过混排映射可 以得到混排后的文本为 "乱行排序混"。  The second paragraph of text is "row chaotic ordering", the length is 5, less than 8, first find out the length of 5 mixed mapping. As shown in FIG. 3, 304, F(3), F(4), F(7) are removed, and the sequence numbers are rearranged to obtain a mixed-length mapping relationship of length 5, as shown by 305. Through the shuffle mapping, you can get the shuffled text as "chaotic sorting mix".
步骤 205、 按混排算法对文本进行混排;  Step 205: Perform mixing on the text according to the mixing algorithm;
文本未取完则取下一段文本, 并到步骤 204。 直至全部文本取完。  If the text has not been taken, the text is removed and the process proceeds to step 204. Until all the text has been taken.
步骤 106、 完成文本混排。 文本混排时, 按标签分块取文本, 如下面文 本, 每一个 p标签为一块文本, 一共要分 3块文本进行混排: "<p〉尽管发 展中国家提出的一些合理要求没有得到全部满足, 但中国代表团表示, 无 论谈判进展如何, 中国都将坚定不移地走绿色低碳发展道路。 </p〉  Step 106: Complete text mixing. When the text is mixed, the text is divided into blocks according to the label. For example, the following text, each p label is a piece of text, and a total of 3 pieces of text are mixed: "<p> Although some reasonable requirements put forward by developing countries are not obtained. Satisfied, but the Chinese delegation stated that regardless of the progress of the negotiations, China will unswervingly follow the green and low-carbon development path. </p>
<p〉据中国代表团介绍,本次大会对各方都关注的三大问题- -德班平 台进程、 损失损害补偿机制、 资金问题最后作出了决定, 取得了大家都不 满意但都能接受的成果。 </p〉  <p>According to the Chinese delegation, this conference made a final decision on the three major issues that all parties are concerned about - the Durban platform process, the compensation mechanism for loss damage, and the funding problem. The result. </p>
<p〉本次会议 11 日召开, 原定 22日闭幕, 但由于在应对气候变化基本 原则、 损失损害补偿机制、 资金等关键问题上发达国家与发展中国家存有 巨大争论, 大会不得不连续磋商, 延期至 23 日晚闭幕。 </p〉,,。  <p>The meeting was held on the 11th and was scheduled to close on the 22nd. However, due to the huge disputes between developed and developing countries on key issues such as the basic principles of climate change, compensation mechanisms for loss and damage, and funds, the conference had to continue. The consultation was postponed until the evening of the 23rd. </p>,,.
步骤 107、 对混排算法进行加密, 例如 RSA加密。  Step 107: Encrypt the shuffling algorithm, such as RSA encryption.
步骤 108、 中将混排后的网页数据与加密后的混排算法进行组合。 步骤 109、 服务器将网页数据及加密后的混排算法向客户端发送。 步骤 110、 客户端接收到服务器发送的网页数据和加密后的混排算法。 步骤 111、 客户端开始解析网页数据, 解析完成后的数据存在 DOM树 中, 其中的文本还是混排文本。 Step 108: Combine the mixed webpage data with the encrypted shuffling algorithm. Step 109: The server sends the webpage data and the encrypted shuffling algorithm to the client. Step 110: The client receives the webpage data sent by the server and the encrypted shuffling algorithm. Step 111: The client starts to parse the webpage data, and the parsed data has a DOM tree. In , the text is still mixed text.
步骤 112、 客户端对混排算法进行解密。 如使用 RSA的私钥进行解密 得到反混排算法。  Step 112: The client decrypts the shuffling algorithm. The anti-mixing algorithm is obtained by decrypting using the private key of RSA.
图 4所示为一种反混排算法的举例, 需要说明的是只要能达到将混排 文字恢复为原有顺序的算法皆可作为反混排算法, 本发明实施例对此不作 限定。  An example of an anti-mixing algorithm is shown in FIG. 4. It should be noted that the algorithm for restoring the mixed text to the original sequence can be used as the anti-mixing algorithm, which is not limited by the embodiment of the present invention.
图 4所示的反混排方法具体如下:  The anti-mixing method shown in Figure 4 is as follows:
步骤 401、 取出网页中的一段文本, 所取文本应在同一个网页标签内; 步骤 402、若文本长度为 N,且 N大于 L( L为混排算法最大可排长度), 则把文本分为若干段(设为 M段), 前 M-1段长度都为 L, 最后一段长度 小于或等于 L;  Step 401: Take a piece of text in the webpage, and the extracted text should be in the same webpage label; Step 402: If the text length is N, and N is greater than L (L is the maximum sortable length of the shuffling algorithm), then the text is divided into For several segments (set to M segment), the length of the first M-1 segment is L, and the length of the last segment is less than or equal to L;
步骤 403、 取出第一段文本;  Step 403: Take out the first piece of text;
步骤 404、根据取出来的一段文本的长度来计算出该长度下的混排映射 关系;  Step 404: Calculate a mixed mapping relationship of the length according to the length of the extracted piece of text;
步骤 405计算出反映射关系;  Step 405 calculates an inverse mapping relationship;
步骤 406、按反映射关系文件进行反混排,将混排后的文本恢复为原文 本;  Step 406: Perform anti-mixing according to the reverse mapping relationship file, and restore the mixed text to the original text;
本步骤具体如图 5 所示, 反混排映射关系与混排映射关系为逆函数关 系, 表示如下:  This step is specifically shown in Figure 5. The relationship between the anti-mixing mapping relationship and the shuffling mapping is an inverse function relationship, which is expressed as follows:
G(m) - F~l (n), \ < m, n < L m e Z Z G(m) - F~ l (n), \ < m, n < L me ZZ
在反混排时也需要将文本分段, 如图 5中所示例子, 字符长度为 13 , 需分为两段, 第一段长度为 8, 第 2段长度为 5。  The text needs to be segmented during the anti-mixing process. As shown in the example in Figure 5, the character length is 13 and needs to be divided into two segments. The length of the first segment is 8, and the length of the second segment is 5.
第一段的文字为 "段我文本想进把一", 从服务器得到的混排映射关系 为图 5中 503所示, 则可以得出反映射关系如图 5中 504所示。  The text of the first paragraph is "Paragraph my text wants to enter one", and the mixed mapping relationship obtained from the server is shown as 503 in Fig. 5, then the inverse mapping relationship can be obtained as shown in Fig. 5, 504.
通过反映射关系可以得到反混排文本为 "我想把一段文本进"。  Through the inverse mapping relationship, you can get the anti-mixing text as "I want to put a piece of text into".
第二段的文字为 "乱行排序混", 文本长度为 5, 从服务器得到的混排 映射关系(图 5中 505所示)长度为 8, 则需要取出长度为 5的混排映射关 系, 如图 5中 505所示所示, 去掉 F(3)、 F(4)、 F(7), 并将序号重新排列得 到长度为 5的混排映射关系, 如图 5中 506所示, 再计算出长度为 5反混 排映射关系(图 5中 507所示)。通过反映射关系可以得到反混排文本为 "行 混乱排序"。 The second paragraph of the text is "chaotic sorting mixed", the text length is 5, the mixing from the server If the mapping relationship (shown as 505 in Figure 5) is 8 in length, you need to extract the hybrid mapping relationship of length 5, as shown in 505 in Figure 5, and remove F(3), F(4), and F(7). Then, the sequence numbers are rearranged to obtain a mixed-length mapping relationship of length 5, as shown by 506 in Fig. 5, and the length-inverted-displacement mapping relationship (shown as 507 in Fig. 5) is calculated. Through the inverse mapping relationship, you can get the anti-mixing text as "line chaotic sorting".
若文本未取完则到步骤 407取下一段文本, 并到步骤 404。 直至全部数 据取完。 步骤 113、 客户端对网页进行布局, 在浏览器布局渲染数据存储(如 webkit的 Render树 ) 中文本还以混排进行布局, 在最终文本进行显示时对 文本按混排算法进行反混排布局。 因为文本在浏览器客户端内存中始终为 混序排列, 故用户在拷贝网页上的文本时, 只能得到混排的文本。  If the text has not been completed, the next paragraph of text is taken to step 407, and the process proceeds to step 404. Until all the data is taken. Step 113: The client layouts the webpage, and renders the data storage in the browser layout (such as the web tree's Render tree). The Chinese text is also arranged in a mixed row, and the text is mixed and arranged according to the mixed sorting algorithm when the final text is displayed. . Because text is always in a mixed order in the browser client memory, users can only get mixed text when copying text on a web page.
步骤 114、 客户端将网页显示给用户。 下面结合附图, 对本发明的实施例二进行说明。  Step 114: The client displays the webpage to the user. Embodiment 2 of the present invention will be described below with reference to the accompanying drawings.
本发明实施例提供了一种网页中文本信息保护方法, 使用该方法完成 对网页中文本进行保护的流程如图 6所示, 包括:  An embodiment of the present invention provides a method for protecting text information in a webpage. The process for protecting text in a webpage by using the method is as shown in FIG. 6, and includes:
步骤 601、 客户端生成公钥, 并将所述公钥与网页请求信息进行组合。 步骤 602、 客户端向服务器发送网页请求信息。  Step 601: The client generates a public key, and combines the public key with the webpage request information. Step 602: The client sends webpage request information to the server.
步骤 603、 服务器接收客户端的网页请求信息。  Step 603: The server receives the webpage request information of the client.
步骤 604、服务器对所述客户端请求的网页中的文本进行混排,得到混 排后的文本;  Step 604: The server mixes the text in the webpage requested by the client to obtain the mixed text.
本步骤中, 服务器对原文本进行混排, 即打乱原文本中文字的排序, 顺,  In this step, the server mixes the original text, that is, disturbs the sorting of the text in the original text, and
具体包括如下步骤:  Specifically, the following steps are included:
a. 所述服务器选择所述网页中一个标签内的一文本块; b. 所述服务器使用混排算法对所述文本块进行处理, 得到混排后的文 本; a server selects a text block within a tag in the web page; b. The server processes the text block by using a shuffling algorithm to obtain a mixed text;
本步骤中可使用混排映射, 将所述文本块划分为 M段, 前 M - 1段的 长度均为所述混排算法的最大可排长度, 最后一段长度小于或等于所述混 排算法的最大可排长度, 每一段文本的长度小于所述文本块的长度。 然后 根据以下表达式逐段对所述文本块进行混排映射:
Figure imgf000014_0001
In this step, the hashing map may be used to divide the text block into M segments, and the length of the first M - 1 segment is the maximum row length of the shuffling algorithm, and the length of the last segment is less than or equal to the shuffling algorithm. The maximum sizable length, the length of each piece of text is less than the length of the text block. The text block is then hashed hierarchically according to the following expression:
Figure imgf000014_0001
其中, n为原文本块中某一文字所在的位置, m为混排后该文字所在的 位置, L为一段文本的长度。  Where n is the position of a certain text in the original text block, m is the position of the text after the shuffling, and L is the length of a piece of text.
c对所述网页中的文本块逐块进行步骤 a至 b的处理, 至所述网页中 全部文本均处理完成为止。  c performing the processing of steps a to b on a block of text in the web page block by block until all the text in the web page has been processed.
605、 所述服务器向所述客户端发送该客户端请求的网页数据在所述网 页数据中携带混排后的网页中文本。  605. The server sends, to the client, the webpage data requested by the client, and the text in the webpage that is mixed in the webpage data.
本步骤中, 优选的, 所述服务器使用所述公钥对所述混排算法进行加 密, 将加密后的混排算法与所述网页数据进行组合, 并向所述客户端发送 所述网页数据。  In this step, preferably, the server encrypts the shuffling algorithm by using the public key, combines the encrypted shuffling algorithm with the webpage data, and sends the webpage data to the client. .
步骤 606、客户端接收所述服务器返回的网页数据, 所述网页数据中携 带混排后的网页中文本。  Step 606: The client receives the webpage data returned by the server, and the webpage data carries the text in the webpage after the shuffling.
步骤 607、客户端存储所述网页数据,将所述混排后的网页中文本恢复 正常后显示;  Step 607: The client stores the webpage data, and displays the text in the hashed webpage after being restored to normal;
本步骤具体包括如下步骤:  This step specifically includes the following steps:
1、 所述客户端解析所述网页数据, 将解析完成后得到的数据存储在 DOM树中;  1. The client parses the webpage data, and stores the data obtained after parsing is completed in a DOM tree;
2、 所述客户端使用相应的私钥对所述混排算法进行解密, 得到反混排 3、 对网页进行布局, 在浏览器内存中存储混排后的网页中文本;2. The client decrypts the shuffling algorithm by using a corresponding private key to obtain a backmixing 3. Layout the webpage, and store the text in the shuffled webpage in the browser memory;
4、 在所述网页中的文本显示时对所述文本按照所述反混排算法进行反 混排布局, 将所述网页中文本恢复正常后显示; 4. When the text in the webpage is displayed, the text is back-mixed according to the anti-mixing algorithm, and the text in the webpage is restored to normal and displayed;
本步骤具体包括:  This step specifically includes:
a. 所述客户端取出所述网页中一个标签内的一文本块;  a. The client extracts a text block in a label in the webpage;
b. 所述客户端使用反混排算法对所述文本块进行处理, 得到恢复的文 本;  b. The client processes the text block by using an anti-mixing algorithm to obtain a restored text;
以步骤 604 中使用混排映射算法来完成混排为例, 本步骤中根据以下 方法完成反混排:  Taking the shuffling algorithm in step 604 to complete the shuffling as an example, in this step, the anti-mixing is completed according to the following method:
将所述文本块划分为 M段, 前 M - 1段的长度均为所述混排算法的最 大可排长度, 最后一段长度小于或等于所述混排算法的最大可排长度, 每 一段文本的长度小于所述文本块的长度, 根据以下表达式逐段对所述文本 块进行反混排映射: Dividing the text block into M segments, the length of the first M - 1 segment is the maximum row length of the shuffling algorithm, and the length of the last segment is less than or equal to the maximum row length of the shuffle algorithm, each piece of text The length of the text block is less than the length of the text block, and the text block is back-mixed and mapped step by paragraph according to the following expression:
Figure imgf000015_0001
Figure imgf000015_0001
其中, n为原文本块中某一文字所在的位置, m为混排后该文字所在的 位置, L为一段文本的长度。  Where n is the position of a certain text in the original text block, m is the position of the text after the shuffling, and L is the length of a piece of text.
c 对所述网页中的文本块逐块进行步骤 a至 b的处理, 至所述网页中 全部文本均处理完成为止;  c performing the processing of steps a to b on the block of text in the webpage block by block until all the texts in the webpage are processed;
d. 显示恢复正常后的文本。 下面结合附图, 对本发明的实施例三进行说明。  d. Display the text after it returns to normal. Embodiment 3 of the present invention will be described below with reference to the accompanying drawings.
本发明实施例提供了一种网页中文本信息保护装置, 该装置的结构如 图 7所示, 包括:  The embodiment of the present invention provides a text information protection device for a webpage. The structure of the device is as shown in FIG. 7, and includes:
请求接收模块 701 , 配置为接收客户端的网页请求信息;  The request receiving module 701 is configured to receive webpage request information of the client;
混排模块 702, 配置为对所述客户端请求的网页中的文本进行混排,得 数据发送模块 703 ,配置为向所述客户端发送该客户端请求的网页数据 在所述网页数据中携带混排后的网页中文本。 The shuffling module 702 is configured to mix and match text in the webpage requested by the client. The data sending module 703 is configured to send, to the client, the webpage data requested by the client, and carry the text in the webpage after the shuffling in the webpage data.
优选的, 所述混排模块 702的结构如图 8所示, 包括:  Preferably, the structure of the shuffling module 702 is as shown in FIG. 8, and includes:
文本块提取单元 801 , 配置为选择所述网页中一个标签内的一文本块; 混排计算单元 802, 配置为使用混排算法对所述文本块进行处理,得到 混排后的文本;  The text block extracting unit 801 is configured to select a text block in a label in the webpage; the shuffling calculation unit 802 is configured to process the text block by using a shuffling algorithm to obtain the mixed text;
控制单元 803,配置为控制所述文本块提取单元 801和所述混排计算单 元 802对所述网页中的文本块逐块进行处理, 至所述网页中全部文本均处 理完成为止。  The control unit 803 is configured to control the text block extracting unit 801 and the hashing computing unit 802 to process the text blocks in the webpage block by block until all the texts in the webpage are processed.
优选的, 所述混排计算单元 802的结构如图 9所示, 包括:  Preferably, the structure of the shuffling calculation unit 802 is as shown in FIG. 9, and includes:
分段子单元 901 , 配置为将所述文本块划分为 Μ段, 前 Μ _ 1段的长 度均为所述混排算法的最大可排长度, 最后一段长度小于或等于所述混排 算法的最大可排长度, 每一段文本的长度小于所述文本块的长度;  The segment subunit 901 is configured to divide the text block into segments, and the length of the first segment _1 is the maximum row length of the shuffle algorithm, and the length of the last segment is less than or equal to the maximum of the shuffle algorithm. The length of each piece of text is less than the length of the text block;
映射子单元 902,配置为根据以下表达式逐段对所述文本块进行混排映 射: Mapping sub-unit 902, configured to perform the shuffle mapping of the text blocks piece by piece according to the following expression:
Figure imgf000016_0001
Figure imgf000016_0001
其中, η为原文本块中某一文字所在的位置, m为混排后该文字所在的 位置, L为一段文本的长度。  Where η is the position of a certain text in the original text block, m is the position of the text after the shuffling, and L is the length of a piece of text.
优选的, 所述网页请求信息中包含客户端的公钥, 所述数据发送模块 703的结构如图 10所示, 包括:  Preferably, the webpage request information includes a public key of the client, and the structure of the data sending module 703 is as shown in FIG.
加密单元 1001 , 配置为使用所述公钥对所述混排算法进行加密; 发送单元 1002,配置为将加密后的混排算法与所述网页数据进行组合, 并向所述客户端发送所述网页数据。  The encryption unit 1001 is configured to encrypt the shuffling algorithm by using the public key; the sending unit 1002 is configured to combine the encrypted shuffling algorithm with the webpage data, and send the Web page data.
上述网页中文本信息保护装置可集成于服务器中, 由服务器完成相应 本发明实施例还提供了一种网页中文本信息保护装置, 其结构如图 11 所示, 包括: The text information protection device in the above webpage can be integrated into the server, and the server completes the corresponding The embodiment of the invention further provides a text information protection device in a webpage, and the structure thereof is as shown in FIG. 11, which includes:
请求发送模块 1101 , 配置为向服务器发送网页请求信息;  The request sending module 1101 is configured to send webpage request information to the server;
数据接收模块 1102, 配置为接收所述服务器返回的网页数据, 所述网 页数据中携带混排后的网页中文本;  The data receiving module 1102 is configured to receive the webpage data returned by the server, where the webpage data carries the text in the webpage after the shuffling;
混排恢复模块 1103, 配置为存储所述网页数据, 将所述混排后的网页 中文本恢复正常后显示。  The shuffling recovery module 1103 is configured to store the webpage data, and display the Chinese webpage after the shuffled webpage is restored to normal.
优选的, 所述网页请求信息中包含有客户端的公钥, 该装置还包括: 公钥生成模块 1104, 配置为生成公钥, 并将所述公钥与所述网页请求 信息进行组合。  Preferably, the webpage request information includes a public key of the client, and the apparatus further includes: a public key generating module 1104 configured to generate a public key, and combine the public key with the webpage request information.
优选的, 所述网页数据中还包含有使用所述公钥加密的混排算法, 所 述混排恢复模块 1103的结构如图 12所示, 包括:  Preferably, the webpage data further includes a shuffling algorithm using the public key encryption. The structure of the shuffle recovery module 1103 is as shown in FIG. 12, and includes:
网页解析子模块 1201 , 配置为解析所述网页数据, 将解析完成后得到 的数据存储在 DOM树中;  The webpage parsing sub-module 1201 is configured to parse the webpage data, and store the data obtained after parsing is completed in the DOM tree;
解密子模块 1202, 配置为使用相应的私钥对所述混排算法进行解密, 得到反混排算法;  The decryption sub-module 1202 is configured to decrypt the shuffling algorithm by using a corresponding private key to obtain an anti-mixing algorithm;
数据存储子模块 1203, 配置为对网页进行布局, 在浏览器内存中存储 混排后的网页中文本;  The data storage sub-module 1203 is configured to layout the webpage, and store the text in the shuffled webpage in the browser memory;
反混排子模块 1204, 配置为在所述网页中的文本显示时对所述文本按 照所述反混排算法进行反混排布局, 将所述网页中文本恢复正常后显示。  The anti-mixing sub-module 1204 is configured to perform anti-mixing layout on the text according to the anti-mixing algorithm when the text in the webpage is displayed, and display the text in the webpage after returning to normal.
优选的, 所述反混排子模块 1204的结构如图 13所示, 包括: 文本提取单元 1301 , 配置为取出所述网页中一个标签内的一文本块; 文本恢复单元 1302, 配置为使用反混排算法对所述文本进行处理, 得 到恢复的文本;  Preferably, the structure of the anti-mixing sub-module 1204 is as shown in FIG. 13 , and includes: a text extracting unit 1301 configured to extract a text block in a label in the webpage; and a text restoring unit 1302 configured to use the reverse The shuffling algorithm processes the text to obtain the restored text;
控制单元 1303,配置为控制所述反混排算法计算单元 1301和所述文本 恢复单元 1302对所述网页中的文本块逐块进行处理, 至所述网页中全部文 本均处理完成为止; The control unit 1303 is configured to control the anti-mixing algorithm calculation unit 1301 and the text The recovery unit 1302 processes the text blocks in the webpage block by block until all the texts in the webpage are processed;
显示单元 1304, 配置为显示恢复正常后的文本。  The display unit 1304 is configured to display the text after returning to normal.
优选的, 所述文本恢复单元 1302的结构如图 14所示, 包括: 分段子单元 1401 , 配置为将所述文本块划分为 M段, 前 M - 1段的长 度均为所述混排算法的最大可排长度, 最后一段长度小于或等于所述混排 算法的最大可排长度, 每一段文本的长度小于所述文本块的长度;  Preferably, the structure of the text restoring unit 1302 is as shown in FIG. 14 , and includes: a segment subunit 1401 configured to divide the text block into M segments, and the length of the first M − 1 segment is the shuffling algorithm. The maximum length of the queue, the length of the last segment is less than or equal to the maximum row length of the shuffling algorithm, and the length of each piece of text is less than the length of the text block;
反混排映射子单元 1402, 配置为根据以下表达式逐段对所述文本块进 行反混排映射: The anti-mixing map sub-unit 1402 is configured to perform a back-mixing mapping of the text blocks piece by piece according to the following expression:
Figure imgf000018_0001
Figure imgf000018_0001
其中, n为原文本块中某一文字所在的位置, m为混排后该文字所在的 位置, L为一段文本的长度。  Where n is the position of a certain text in the original text block, m is the position of the text after the shuffling, and L is the length of a piece of text.
上述网页中文本信息保护装置可集成于客户端, 由客户端完成相应功 The text information protection device in the above webpage can be integrated into the client, and the client performs the corresponding work.
•6匕 •6匕
3匕。 本发明实施例还提供了一种网页中文本信息保护系统, 包括客户端与 服务器, 所述客户端集成有图 11至 14所示的网页中文本信息保护系统, 所述服务器集成有图 7至 10所示的网页中文本信息保护系统。 3匕. The embodiment of the invention further provides a text information protection system in a webpage, comprising a client and a server, wherein the client integrates the text information protection system in the webpage shown in FIG. 11 to FIG. 14, wherein the server is integrated with FIG. 7 to The text information protection system in the webpage shown in 10.
所述客户端, 配置为向所述服务器发送网页请求信息, 接收所述服务 器返回的网页数据, 所述网页数据中携带混排后的网页中文本, 储所述网 页数据, 将所述混排后的网页中文本恢复正常后显示;  The client is configured to send webpage request information to the server, and receive webpage data returned by the server, where the webpage data carries the text in the webpage after the shuffle, and the webpage data is stored, and the shuffle is performed. After the text in the webpage returns to normal, it is displayed;
所述服务器, 配置为接收所述客户端的网页请求信息, 对所述客户端 请求的网页中的文本进行混排, 得到混排后的文本, 所述客户端发送该客 户端请求的网页数据在所述网页数据中携带混排后的网页中文本。 本发明的实施例提供了一种网页中文本信息保护方法、 装置和系统, 服务器接收客户端的网页请求信息, 所述服务器对所述客户端请求的网页 中的文本进行混排, 得到混排后的文本, 所述混排后的文本中文字的顺序 较原文本是混乱的, 然后所述服务器向所述客户端发送该客户端请求的网 页数据在所述网页数据中携带混排后的网页中文本; 客户端向服务器发送 网页请求信息, 接收所述服务器返回的网页数据, 所述网页数据中携带混 排后的网页中文本, 客户端存储所述网页数据, 将所述混排后的网页中文 本恢复正常后显示。 实现了通过混排对原文本的保护, 解决了网页中文本 被拷贝的问题。 无论用户是在网页上拷贝, 还是源文件上, 用户都无法得 到正常顺序的文本, 得到的都是混排后的乱序文本, 从而达到了保护网页 文本信息的目的。 本领域普通技术人员可以理解上述实施例的全部或部分步骤可以使用 计算机程序流程来实现, 所述计算机程序可以存储于一计算机可读存储介 质中, 所述计算机程序在相应的硬件平台上(如系统、 设备、 装置、 器件 等)执行, 在执行时, 包括方法实施例的步骤之一或其组合。 The server is configured to receive the webpage request information of the client, mix the text in the webpage requested by the client, and obtain the mixed text, where the client sends the webpage data requested by the client. The webpage data carries the text in the webpage after the shuffling. Embodiments of the present invention provide a text information protection method, apparatus, and system in a webpage, The server receives the webpage request information of the client, and the server mixes the text in the webpage requested by the client to obtain the mixed text, and the order of the text in the mixed text is chaotic compared with the original text. And the server sends the webpage data requested by the client to the client to carry the text in the webpage in the webpage data; the client sends the webpage request information to the server, and receives the webpage data returned by the server. The webpage data carries the text in the webpage after the shuffling, and the client stores the webpage data, and displays the text in the shuffled webpage after returning to normal. The protection of the original text by the shuffling is realized, and the problem that the text in the webpage is copied is solved. No matter whether the user is copying on the webpage or the source file, the user can not get the text in the normal order, and the obtained disordered text is mixed, thereby achieving the purpose of protecting the text information of the webpage. One of ordinary skill in the art will appreciate that all or part of the steps of the above-described embodiments may be implemented using a computer program flow, which may be stored in a computer readable storage medium, such as on a corresponding hardware platform (eg, The system, device, device, device, etc. are executed, and when executed, include one or a combination of the steps of the method embodiments.
相应的, 本发明实施例还提供了一种计算机存储介质, 其中存储有计 算机可执行指令, 所述计算机可执行指令用于执行本发明实施例所述的方 法。  Correspondingly, an embodiment of the present invention further provides a computer storage medium, wherein computer executable instructions are stored, and the computer executable instructions are used to execute the method according to the embodiment of the present invention.
可选地, 上述实施例的全部或部分步骤也可以使用集成电路来实现, 这些步骤可以被分别制作成一个个集成电路模块, 或者将它们中的多个模 块或步骤制作成单个集成电路模块来实现。 这样, 本发明不限制于任何特 定的硬件和软件结合。  Optionally, all or part of the steps of the foregoing embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve. Thus, the invention is not limited to any specific combination of hardware and software.
上述实施例中的各装置 /功能模块 /功能单元可以采用通用的计算装置 来实现, 它们可以集中在单个的计算装置上, 也可以分布在多个计算装置 所组成的网络上。  The devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
上述实施例中的各装置 /功能模块 /功能单元以软件功能模块的形式实 现并作为独立的产品销售或使用时, 可以存储在一个计算机可读取存储介 质中。 上述提到的计算机可读取存储介质可以是只读存储器, 磁盘或光盘 等。 Each device/function module/function unit in the above embodiment is in the form of a software function module. Now available and sold as a standalone product, it can be stored on a computer readable storage medium. The above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易 想到变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保 护范围应以权利要求所述的保护范围为准。  Any changes or substitutions that are readily conceivable within the scope of the present invention are intended to be included within the scope of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

权利要求书 claims
1、 一种网页中文本信息保护方法, 其中, 该方法包括: 1. A method for protecting text information in web pages, wherein the method includes:
服务器接收客户端的网页请求信息; The server receives the client’s web page request information;
所述服务器对所述客户端请求的网页中的文本进行混排, 得到混排后 所述服务器向所述客户端发送该客户端请求的网页数据, 所述网页数 据中携带混排后的网页中文本。 The server shuffles the text in the web page requested by the client, and after obtaining the shuffled text, the server sends the web page data requested by the client to the client, and the web page data carries the shuffled web page. Chinese text.
2、 根据权利要求 1所述的网页中文本信息保护方法, 其中, 所述服务 器对所述客户端请求的网页中的文本进行混排, 包括: 2. The method for protecting text information in web pages according to claim 1, wherein the server shuffles the text in the web pages requested by the client, including:
a. 所述服务器选择所述网页中一个标签内的一文本块; a. The server selects a text block within a tag in the web page;
b. 所述服务器使用混排算法对所述文本块进行处理, 得到混排后的文 本; b. The server uses a shuffling algorithm to process the text block to obtain the shuffled text;
c对所述网页中的文本块逐块进行步骤 a至 b的处理, 至所述网页中 全部文本均处理完成为止。 c. Process the text blocks in the web page block by block from steps a to b until all the text in the web page is processed.
3、 根据权利要求 2所述的网页中文本信息保护方法, 其中, 所述服务 器使用混排算法对所述文本块进行处理, 得到混排后的文本包括: 3. The method for protecting text information in web pages according to claim 2, wherein the server uses a shuffling algorithm to process the text blocks, and the shuffled text obtained includes:
将所述文本块划分为 M段, 前 M - 1段的长度均为所述混排算法的最 大可排长度, 最后一段长度小于或等于所述混排算法的最大可排长度, 每 一段文本的长度小于所述文本块的长度; Divide the text block into M segments. The length of the first M - 1 segments is the maximum arrangable length of the shuffling algorithm. The length of the last segment is less than or equal to the maximum arranging length of the shuffling algorithm. Each segment of text The length is less than the length of the text block;
根据以下表达式逐段对所述文本块进行混排映射: The text blocks are shuffled and mapped segment by segment according to the following expression:
F(n) = m, l≤n, m≤ L me Z n e Z ^^ F(nl )≠ F(n2 ), nx≠ n2 其中, n为原文本块中某一文字所在的位置, m为混排后该文字所在的 位置, L为一段文本的长度。 F(n) = m, l≤n, m≤ L me Z ne Z ^^ F(n l )≠ F(n 2 ), n x ≠ n 2where , n is the position of a certain text in the original text block , m is the position of the text after shuffling, and L is the length of a piece of text.
4、 根据权利要求 2所述的网页中文本信息保护方法, 其中, 所述网页 请求信息中包含客户端的公钥。 4. The method for protecting text information in web pages according to claim 2, wherein the web page request information contains the public key of the client.
5、 根据权利要求 4所述的网页中文本信息保护方法, 其中, 所述服务 器向所述客户端发送该客户端请求的网页数据, 包括: 5. The method for protecting text information in web pages according to claim 4, wherein the server sends the web page data requested by the client to the client, including:
所述服务器使用所述公钥对所述混排算法进行加密; The server uses the public key to encrypt the shuffling algorithm;
所述服务器将加密后的混排算法与所述网页数据进行组合, 并向所述 客户端发送所述网页数据。 The server combines the encrypted shuffling algorithm with the web page data, and sends the web page data to the client.
6、 一种网页中文本信息保护方法, 其中, 该方法包括: 6. A method for protecting text information in web pages, wherein the method includes:
客户端向服务器发送网页请求信息; The client sends web page request information to the server;
所述客户端接收所述服务器返回的网页数据 , 所述网页数据中携带混 排后的网页中文本; The client receives the web page data returned by the server, and the web page data carries the shuffled web page text;
所述客户端存储所述网页数据, 将所述混排后的网页中文本恢复正常 后显示。 The client stores the web page data, restores the text in the shuffled web page to normal, and then displays it.
7、 根据权利要求 6所述的网页中文本信息保护方法, 其中, 所述网页 请求信息中包含有所述客户端的公钥, 所述客户端向服务器发送网页请求 信息的步骤之前, 该方法还包括: 7. The method for protecting text information in web pages according to claim 6, wherein the web page request information contains the public key of the client, and before the step of the client sending the web page request information to the server, the method further include:
所述客户端生成公钥, 并将所述公钥与所述网页请求信息进行组合。 The client generates a public key and combines the public key with the web page request information.
8、 根据权利要求 7所述的网页中文本信息保护方法, 其中, 所述网页 数据中还包含有使用所述公钥加密的混排算法, 所述客户端存储所述网页 数据, 将所述混排后的网页中文本恢复正常后显示, 包括: 8. The method for protecting text information in web pages according to claim 7, wherein the web page data also includes a shuffling algorithm using the public key encryption, the client stores the web page data, and converts the web page data into The text in the shuffled web page will be displayed after returning to normal, including:
所述客户端解析所述网页数据 ,将解析完成后得到的数据存储在 DOM 树中; The client parses the web page data and stores the data obtained after the parsing is completed in the DOM tree;
所述客户端使用相应的私钥对所述混排算法进行解密, 得到反混排算 法; The client uses the corresponding private key to decrypt the shuffling algorithm to obtain the anti-shuffling algorithm;
对网页进行布局, 在浏览器内存中存储混排后的网页中文本; 在所述网页中的文本显示时对所述文本按照所述反混排算法进行反混 排布局, 将所述网页中文本恢复正常后显示。 Lay out the web page, and store the shuffled text in the web page in the browser memory; When the text in the web page is displayed, perform an anti-shuffle layout on the text according to the anti-shuffle algorithm, and put the text in the web page into an anti-shuffle layout. The text is displayed after returning to normal.
9、 根据权利要求 8所述的网页中文本信息保护方法, 其中, 在所述网 页中的文本显示时对所述文本按照所述反混排算法进行反混排布局, 将所 述网页中文本恢复正常后显示包括: 9. The method for protecting text information in a web page according to claim 8, wherein when the text in the web page is displayed, the text is anti-shuffled and laid out according to the anti-shuffle algorithm, and the text in the web page is After returning to normal, the display includes:
a. 所述客户端取出所述网页中一个标签内的一文本块; a. The client retrieves a text block within a tag in the web page;
b. 所述客户端使用反混排算法对所述文本块进行处理, 得到恢复的文 本; b. The client uses an anti-shuffling algorithm to process the text block and obtain the restored text;
c 对所述网页中的文本块逐块进行步骤 a至 b的处理, 至所述网页中 全部文本均处理完成为止; c. Process the text blocks in the web page block by block from steps a to b until all text in the web page is processed;
d. 显示恢复正常后的文本。 d. Display the text after returning to normal.
10、 根据权利要求 9所述的网页中文本信息保护方法, 其中, 所述反 混排算法为反映射关系 , 所述客户端使用所述反混排算法对所述文本进行 处理, 得到恢复的文本包括: 10. The method for protecting text information in web pages according to claim 9, wherein the anti-shuffling algorithm is an anti-mapping relationship, and the client uses the anti-shuffling algorithm to process the text to obtain the restored Text includes:
将所述文本块划分为 M段, 前 M - 1段的长度均为所述混排算法的最 大可排长度, 最后一段长度小于或等于所述混排算法的最大可排长度, 每 一段文本的长度小于所述文本块的长度;
Figure imgf000023_0001
Divide the text block into M segments. The length of the first M - 1 segments is the maximum arrangable length of the shuffling algorithm. The length of the last segment is less than or equal to the maximum arranging length of the shuffling algorithm. Each segment of text The length is less than the length of the text block;
Figure imgf000023_0001
其中, n为原文本块中某一文字所在的位置, m为混排后该文字所在的 位置, L为一段文本的长度。 Among them, n is the position of a certain text in the original text block, m is the position of the text after shuffling, and L is the length of a text.
11、 一种网页中文本信息保护装置, 其中, 该装置包括: 11. A device for protecting text information in web pages, wherein the device includes:
请求接收模块, 配置为接收客户端的网页请求信息; The request receiving module is configured to receive web page request information from the client;
混排模块, 配置为对所述客户端请求的网页中的文本进行混排, 得到 数据发送模块 , 配置为向所述客户端发送该客户端请求的网页数据 , 所述网页数据中携带混排后的网页中文本。 The shuffling module is configured to shuffle the text in the webpage requested by the client to obtain a data sending module, configured to send the webpage data requested by the client to the client, and the webpage data carries the shuffling Chinese text in the web page after.
12、 根据权利要求 11所述的网页中文本信息保护装置, 其中, 所述混 排模块包括: 12. The device for protecting text information in web pages according to claim 11, wherein the mixed Platoon modules include:
文本块提取单元, 配置为选择所述网页中一个标签内的一文本块; 混排计算单元, 配置为使用混排算法对所述文本块进行处理, 得到混 排后的文本; The text block extraction unit is configured to select a text block within a tag in the web page; the shuffling calculation unit is configured to use a shuffling algorithm to process the text block to obtain shuffled text;
控制单元, 配置为控制所述文本块提取单元和所述混排计算单元对所 述网页中的文本块逐块进行处理, 至所述网页中全部文本均处理完成为止。 The control unit is configured to control the text block extraction unit and the shuffling calculation unit to process the text blocks in the web page block by block until all texts in the web page are processed.
13、 根据权利要求 12所述的网页中文本信息保护装置, 其中, 所述混 排计算单元包括: 13. The device for protecting text information in web pages according to claim 12, wherein the mixed arrangement calculation unit includes:
分段子单元, 配置为将所述文本块划分为 M段, 前 M - 1段的长度均 为所述混排算法的最大可排长度, 最后一段长度小于或等于所述混排算法 的最大可排长度, 每一段文本的长度小于所述文本块的长度; The segmentation subunit is configured to divide the text block into M segments. The length of the first M-1 segments is the maximum arrangable length of the shuffling algorithm, and the length of the last segment is less than or equal to the maximum arranging length of the shuffling algorithm. Row length, the length of each piece of text is less than the length of the text block;
F(n) = m, 1≤ n, m≤ L me Z n e Z ^.^ F(nl )≠ F(n2 ), nx≠ n2 F(n) = m, 1≤ n, m≤ L me Z ne Z ^.^ F(n l )≠ F(n 2 ), n x ≠ n 2
其中, n为原文本块中某一文字所在的位置, m为混排后该文字所在的 位置, L为一段文本的长度。 Among them, n is the position of a certain text in the original text block, m is the position of the text after shuffling, and L is the length of a text.
14、 根据权利要求 12所述的网页中文本信息保护装置, 其中, 所述网 页请求信息中包含客户端的公钥, 所述数据发送模块包括: 14. The device for protecting text information in web pages according to claim 12, wherein the web page request information contains the public key of the client, and the data sending module includes:
加密单元, 配置为使用所述公钥对所述混排算法进行加密; An encryption unit configured to encrypt the shuffling algorithm using the public key;
发送单元, 配置为将加密后的混排算法与所述网页数据进行组合, 并 向所述客户端发送所述网页数据。 The sending unit is configured to combine the encrypted shuffling algorithm with the web page data, and send the web page data to the client.
15、 一种网页中文本信息保护装置, 其中, 包括: 15. A device for protecting text information in web pages, including:
请求发送模块, 配置为向服务器发送网页请求信息; The request sending module is configured to send web page request information to the server;
数据接收模块, 配置为接收所述服务器返回的网页数据, 所述网页数 据中携带混排后的网页中文本; The data receiving module is configured to receive the web page data returned by the server, and the web page data carries the shuffled web page text;
混排恢复模块, 配置为存储所述网页数据, 将所述混排后的网页中文 本恢复正常后显示。 A shuffle recovery module configured to store the web page data and convert the shuffled web page into Chinese It will be displayed after it returns to normal.
16、 根据权利要求 15所述的网页中文本信息保护装置, 其中, 所述网 页请求信息中包含有客户端的公钥, 该装置还包括: 16. The device for protecting text information in web pages according to claim 15, wherein the web page request information contains the public key of the client, and the device further includes:
公钥生成模块, 配置为生成公钥, 并将所述公钥与所述网页请求信息 进行组合。 A public key generation module configured to generate a public key and combine the public key with the web page request information.
17、 根据权利要求 16所述的网页中文本信息保护装置, 其中, 所述网 页数据中还包含有使用所述公钥加密的混排算法, 所述混排恢复模块包括: 网页解析子模块, 配置为解析所述网页数据, 将解析完成后得到的数 据存储在 DOM树中; 17. The device for protecting text information in web pages according to claim 16, wherein the web page data also includes a shuffling algorithm encrypted using the public key, and the shuffling recovery module includes: a web page parsing sub-module, Configured to parse the web page data and store the data obtained after the parsing is completed in the DOM tree;
解密子模块, 配置为使用相应的私钥对所述混排算法进行解密, 得到 反混排算法; The decryption submodule is configured to use the corresponding private key to decrypt the shuffling algorithm to obtain the anti-shuffling algorithm;
数据存储子模块, 配置为对网页进行布局, 在浏览器内存中存储混排 后的网页中文本; The data storage submodule is configured to lay out web pages and store the shuffled web page text in the browser memory;
反混排子模块, 配置为在所述网页中的文本显示时对所述文本按照所 述反混排算法进行反混排布局, 将所述网页中文本恢复正常后显示。 The anti-shuffling sub-module is configured to perform an anti-shuffling layout on the text according to the anti-shuffling algorithm when the text in the web page is displayed, and restore the text in the web page to normal before displaying it.
18、 根据权利要求 17所述的网页中文本信息保护装置, 其中, 所述反 混排子模块包括: 18. The device for protecting text information in web pages according to claim 17, wherein the anti-shuffling sub-module includes:
文本提取单元, 配置为取出所述网页中一个标签内的一文本块; 文本恢复单元, 配置为使用反混排算法对所述文本进行处理, 得到恢 复的文本; The text extraction unit is configured to extract a text block within a tag in the web page; the text recovery unit is configured to use an anti-shuffling algorithm to process the text to obtain the recovered text;
控制单元, 配置为控制所述反混排算法计算单元和所述文本恢复单元 对所述网页中的文本块逐块进行处理, 至所述网页中全部文本均处理完成 为止; The control unit is configured to control the anti-shuffling algorithm calculation unit and the text recovery unit to process the text blocks in the web page block by block until all texts in the web page are processed;
显示单元, 配置为显示恢复正常后的文本。 Display unit configured to display text after normalization.
19、 根据权利要求 18所述的网页中文本信息保护装置, 其中, 所述文 本恢复单元包括: 19. The device for protecting text information in web pages according to claim 18, wherein the text information This recovery unit includes:
分段子单元, 配置为将所述文本块划分为 M段, 前 M - 1段的长度均 为所述混排算法的最大可排长度, 最后一段长度小于或等于所述混排算法 的最大可排长度, 每一段文本的长度小于所述文本块的长度; The segmentation subunit is configured to divide the text block into M segments. The length of the first M-1 segments is the maximum arrangable length of the shuffling algorithm, and the length of the last segment is less than or equal to the maximum arranging length of the shuffling algorithm. Row length, the length of each piece of text is less than the length of the text block;
反混排映射子单元, 配置为根据以下表达式逐段对所述文本块进行反 混排映射: The anti-shuffling mapping subunit is configured to perform anti-shuffling mapping on the text block segment by segment according to the following expression:
Figure imgf000026_0001
Figure imgf000026_0001
其中, n为原文本块中某一文字所在的位置, m为混排后该文字所在的 位置, L为一段文本的长度。 Among them, n is the position of a certain text in the original text block, m is the position of the text after shuffling, and L is the length of a text.
20、 一种网页中文本信息保护系统, 其中, 包括客户端与服务器, 所述客户端, 配置为向所述服务器发送网页请求信息, 接收所述服务 器返回的网页数据, 所述网页数据中携带混排后的网页中文本, 储所述网 页数据, 将所述混排后的网页中文本恢复正常后显示; 20. A system for protecting text information in web pages, which includes a client and a server. The client is configured to send web page request information to the server and receive web page data returned by the server. The web page data carries The text in the shuffled web page is stored in the web page data, and the text in the shuffled web page is restored to normal and then displayed;
所述服务器, 配置为接收所述客户端的网页请求信息, 对所述客户端 请求的网页中的文本进行混排, 得到混排后的文本, 所述客户端发送该客 户端请求的网页数据在所述网页数据中携带混排后的网页中文本。 The server is configured to receive web page request information from the client, shuffle the text in the web page requested by the client, and obtain the shuffled text, and the client sends the web page data requested by the client in The web page data carries the shuffled web page text.
21、 一种计算机存储介质, 其中存储有计算机可执行指令, 所述计算 机可执行指令用于执行所述权利要求 1至 5、 权利要求 6至 10任一项所述 的方法。 21. A computer storage medium in which computer-executable instructions are stored, and the computer-executable instructions are used to execute the method described in any one of claims 1 to 5 and 6 to 10.
PCT/CN2014/079542 2014-01-08 2014-06-09 Method, device and system for protecting text information in web page and computer storage medium WO2015103849A1 (en)

Applications Claiming Priority (2)

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

Publications (1)

Publication Number Publication Date
WO2015103849A1 true WO2015103849A1 (en) 2015-07-16

Family

ID=53523504

Family Applications (1)

Application Number Title Priority Date Filing Date
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

Country Status (2)

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

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110175610A (en) * 2019-05-23 2019-08-27 上海交通大学 A kind of bill images text recognition method for supporting secret protection
CN116112243A (en) * 2023-01-17 2023-05-12 广州鲁邦通物联网科技股份有限公司 Industrial control system intelligent computer physical intrusion detection defense system and method

Families Citing this family (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
CN111046658B (en) * 2019-12-18 2023-05-09 支付宝(杭州)信息技术有限公司 Method, device and equipment for recognizing disorder text
CN116975853B (en) * 2023-06-25 2024-04-05 阅霆信息技术(上海)有限公司 Method for preventing text content from being completely intercepted at Web end

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
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
CN101635622B (en) * 2008-07-24 2013-06-12 阿里巴巴集团控股有限公司 Method, system and equipment for encrypting and decrypting web page

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
CN101635622B (en) * 2008-07-24 2013-06-12 阿里巴巴集团控股有限公司 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 (4)

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

Also Published As

Publication number Publication date
CN104766019A (en) 2015-07-08

Similar Documents

Publication Publication Date Title
WO2022252632A1 (en) Data encryption processing method and apparatus, computer device, and storage medium
US9137222B2 (en) Crypto proxy for cloud storage services
WO2015103849A1 (en) Method, device and system for protecting text information in web page and computer storage medium
US20160094347A1 (en) Method and system for secure management of computer applications
US20150302218A1 (en) Method and system for file hiding
US20120226823A1 (en) Document distribution system and method
CN109214201B (en) Data sharing method, terminal equipment and computer readable storage medium
JP2022534461A (en) Key management methods, clients and programs
JP2008103936A (en) Secret information management device, and secret information management system
CN112347508A (en) Block chain data sharing encryption and decryption method and system
CN108764902B (en) Method, node and blockchain system for storing data
US9641328B1 (en) Generation of public-private key pairs
CN113162752A (en) Data processing method and device based on hybrid homomorphic encryption
CN103607420A (en) Safe electronic medical system for cloud storage
CN113434852A (en) Password processing method, password verification device, medium and electronic equipment
JP6840692B2 (en) Computer system, connection device, and data processing method
US20150082040A1 (en) Method, information service system and program for information encryption/decryption
CN106570405A (en) Method and apparatus for performing encryption/decryption on text in input method
GB2546612A (en) Password-authenticated public key encryption and decryption
CN114270331A (en) Opaque encryption for data deduplication
CN108370312B (en) Encryption device, search device, computer-readable recording medium, encryption method, and search method
JP2013150026A (en) Data processing system, concealing device, secret key generation device, concealing method, secret key generation method, and program
CN107251479B (en) Data storage device and data processing method
JP2017130720A (en) Ciphertext management method, ciphertext management device and program
WO2021144834A1 (en) Secret retrieval system, secret retrieval method, and secret retrieval program

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14877646

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14877646

Country of ref document: EP

Kind code of ref document: A1