CN109711187A - Page processing method, device, computer readable storage medium and electronic equipment - Google Patents

Page processing method, device, computer readable storage medium and electronic equipment Download PDF

Info

Publication number
CN109711187A
CN109711187A CN201811446735.1A CN201811446735A CN109711187A CN 109711187 A CN109711187 A CN 109711187A CN 201811446735 A CN201811446735 A CN 201811446735A CN 109711187 A CN109711187 A CN 109711187A
Authority
CN
China
Prior art keywords
page
execution route
decryption
data
path
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811446735.1A
Other languages
Chinese (zh)
Other versions
CN109711187B (en
Inventor
张文豪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN201811446735.1A priority Critical patent/CN109711187B/en
Publication of CN109711187A publication Critical patent/CN109711187A/en
Application granted granted Critical
Publication of CN109711187B publication Critical patent/CN109711187B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Storage Device Security (AREA)

Abstract

This disclosure relates to a kind of page processing method, device, computer readable storage medium and electronic equipment, which comprises by target pages be grouped at least one page be successively determined as first page;For first page, it performs the following operations: triggering browser kernel load first page, wherein debugging code is injected in browser kernel, debugging code can print the corresponding variable information of each atomic operation during loading first page for browser kernel;According to variable information, the execution route for carrying out page data decryption is determined;Execution route is verified according to second page;When execution route passes through verification, it is based on execution route, page data is generated and decrypts template, and target pages is grouped corresponding packet identification and the page data to decrypt template associated.Therefore, it can make the page that can directly obtain page ciphertext data in the case where loading without browser kernel, promote user experience.

Description

Page processing method, device, computer readable storage medium and electronic equipment
Technical field
This disclosure relates to field of computer technology, and in particular, to a kind of page processing method, device, computer-readable Storage medium and electronic equipment.
Background technique
For the safety for guaranteeing page data, existing JS script when being executed, generallys use the mode of encryption, i.e., under Encrypted data are provided in the page of load.When the page is loaded by browser, scheme pair can be decrypted by JS This is encrypted data and is decrypted, to obtain truthful data needed for the page.And in order to guarantee the safety of decryption scheme, The code that can decrypt to JS carries out scrambling code processing, in this case, then can make JS decrypt scheme code it is extremely complex, can not It reads, and code is not fixed.Therefore, it when the data JS encryption in the page, is then difficult to obtain page in the page grabbed Truthful data in face.
Summary of the invention
Purpose of this disclosure is to provide a kind of succinct, accurate page processing methods, device, computer readable storage medium And electronic equipment.
To achieve the goals above, according to the disclosure in a first aspect, provide a kind of page processing method, the method packet It includes:
By target pages be grouped at least one page be successively determined as first page, the target pages grouping has Corresponding packet identification, and the page includes encryption page data;
For the first page, perform the following operations:
It triggers the browser kernel and loads the first page, wherein be injected with debugging generation in the browser kernel Code, the debugging code can print each original during loading the first page for the browser kernel The corresponding variable information of sub- operation;
According to the variable information, the execution route for carrying out page data decryption is determined, wherein the execution route It indicates target atoms operation and its executes sequence;
The execution route is verified according to second page, wherein the second page is the target pages point One or more pages in group in addition to the first page;
When the execution route passes through verification, it is based on the execution route, page data is generated and decrypts template, and by institute It is associated with page data decryption template to state the corresponding packet identification of target pages grouping, wherein the page data solution Close template is used to that the encryption page data in the page for belonging to the target pages grouping to be decrypted.
It optionally, include multiple executing methods, the executable side of each of described first page in the first page Method corresponds to a method path, and the method path includes multiple atomic operations, and described according to the variable information, determination is used for Carry out the execution route of page data decryption, comprising:
The most method path of the total number for the atomic operation for being included is determined as to decrypt path;
According to the corresponding variable information of the atomic operation each in the decryption path, determine for carrying out page data The execution route of decryption.
Optionally, the variable information includes input variable information and output variable information;
It is described according to the corresponding variable information of the atomic operation each in the decryption path, determine for carrying out the page The execution route of data deciphering, comprising:
By its corresponding input variable information in the decryption path and the identical atomic operation of output variable information from institute It states and is removed in decryption path, to obtain the execution route.
Optionally, described according to the corresponding variable information of the atomic operation each in the decryption path, determination is used for Carry out the execution route of page data decryption, comprising:
Determine the local variable and global variable in the decryption path;
If the local variable does not carry out operation with any global variable in calculating process, in the decryption path In, the local variable replaced with the value of the local variable, to obtain the execution route.
It is optionally, described that the execution route is verified according to second page, comprising:
Determine input information and the output information in second page;
The input information is subjected to calculation process according to the execution route, obtains check information;
When determining that the corresponding output information of the check information is similar, determine that the execution route passes through verification.
Optionally, the method also includes:
Determine that first page belonging to the third page is grouped, the third page includes encryption page data;
With in the packet identification associated page data decryption template in first page grouping, it is determining with it is described The corresponding target pages data deciphering template of the third page;
It is decrypted based on encryption page data of the target pages data deciphering template to the third page.
According to the second aspect of the disclosure, a kind of Page handling device is provided, described device includes:
First determining module is successively determined as first page at least one page in being grouped target pages, institute Stating target pages grouping has corresponding packet identification, and the page includes encryption page data;
Loading module loads the first page for triggering the browser kernel, wherein in the browser kernel Be injected with debugging code, the debugging code for the browser kernel can during loading the first page, Print the corresponding variable information of each atomic operation;
Second determining module, for determining the execution route for carrying out page data decryption according to the variable information, Wherein, the execution route indicates target atoms operation and its executes sequence;
Correction verification module, for being verified according to second page to the execution route, wherein the second page is institute State one or more pages in target pages grouping in addition to the first page;
Generation module generates page data solution for being based on the execution route when the execution route passes through verification Close template, and the corresponding packet identification of target pages grouping is associated with page data decryption template, wherein institute Page data decryption template is stated to be used to that the encryption page data in the page for belonging to the target pages grouping to be decrypted.
It optionally, include multiple executing methods, the executable side of each of described first page in the first page Method corresponds to a method path, and the method path includes multiple atomic operations, and second determining module includes:
First determines submodule, for the most method path of the total number for the atomic operation for being included to be determined as decrypting Path;
Second determines submodule, for according to the corresponding variable information of the atomic operation each in the decryption path, Determine the execution route for carrying out page data decryption.
Optionally, the variable information includes input variable information and output variable information;
Described second determines that submodule is used for:
By its corresponding input variable information in the decryption path and the identical atomic operation of output variable information from institute It states and is removed in decryption path, to obtain the execution route.
Optionally, described second determine that submodule includes:
Third determines submodule, for determining local variable and global variable in the decryption path;
Submodule is replaced, for not carrying out operation with any global variable in calculating process in the local variable When, the local variable is replaced in the decryption path, with the value of the local variable, to obtain the execution route.
Optionally, the correction verification module includes:
4th determines submodule, for determining input information and output information in second page;
Operation submodule obtains verification letter for the input information to be carried out calculation process according to the execution route Breath;
5th determines submodule, for determining institute when determining that the corresponding output information of the check information is similar It states execution route and passes through verification.
Optionally, described device further include:
Third determining module, for determining that first page belonging to the third page is grouped, the third page includes encryption Page data;
4th determining module, for being decrypted in page data associated with the packet identification in first page grouping In template, target pages data deciphering template corresponding with the third page is determined;
Deciphering module, for the encryption page data based on the target pages data deciphering template to the third page It is decrypted.
According to the third aspect of the disclosure, a kind of computer readable storage medium is provided, computer program is stored thereon with, The program realizes the step of above-mentioned first aspect any the method when being executed by processor.
According to the fourth aspect of the disclosure, a kind of electronic equipment is provided, comprising:
Memory is stored thereon with computer program;
Processor, for executing the computer program in the memory, to realize any institute of above-mentioned first aspect The step of stating method.
In the above-mentioned technical solutions, during browser kernel loads first page, each atomic operation is printed Corresponding variable information is determined that page data decrypts template according to the corresponding variable information of each atomic operation later, is based on Page data decryption template can be decrypted the encryption page data in the page.Through the above technical solutions, on the one hand The execution route of page data decryption can be determined, so that page data decryption template is generated, so as to be based on the page Page encryption data is decrypted in data deciphering template, so that the page without browser kernel in the case where loading To directly obtain page ciphertext data, it is bonded the use demand of user, promotes user experience.On the other hand, by generation Page data decrypt template with its belonging to target pages be grouped packet identification it is associated, can also be decrypted in order to page data The management and lookup of template further promote the efficiency of page processing.
Other feature and advantage of the disclosure will the following detailed description will be given in the detailed implementation section.
Detailed description of the invention
Attached drawing is and to constitute part of specification for providing further understanding of the disclosure, with following tool Body embodiment is used to explain the disclosure together, but does not constitute the limitation to the disclosure.In the accompanying drawings:
Fig. 1 is the flow chart of the page processing method provided according to an embodiment of the present disclosure;
Fig. 2 is provided according to an embodiment of the present disclosure according to variable information, is determined for carrying out page data A kind of flow chart of example implementations of the execution route of decryption;
Fig. 3 is one verified according to second page to execution route provided according to an embodiment of the present disclosure The flow chart of kind example implementations;
Fig. 4 is the flow chart of the page processing method provided according to the another embodiment of the disclosure;
Fig. 5 is the block diagram of the Page handling device provided according to an embodiment of the present disclosure;
Fig. 6 is the block diagram of a kind of electronic equipment shown according to an exemplary embodiment;
Fig. 7 is the block diagram of a kind of electronic equipment shown according to an exemplary embodiment.
Specific embodiment
It is described in detail below in conjunction with specific embodiment of the attached drawing to the disclosure.It should be understood that this place is retouched The specific embodiment stated is only used for describing and explaining the disclosure, is not limited to the disclosure.
As described in the background art, in the prior art, in order to guarantee the safety of decryption scheme, the code that JS can be decrypted Scrambling code processing is carried out, in this case, then can make that the code of JS decryption scheme is extremely complex, can not read, and code is not It is fixed.To same decryption scheme, the scrambling code mode difference in the different pages to correspond to Multiple Code in the decryption scheme.And it is right In being encrypted and being had the page explicitly output and input through the above way, the disclosure provides a kind of page processing method, To solve the above problems.Shown in Fig. 1, for the flow chart of the page processing method provided according to an embodiment of the present disclosure. As shown in Figure 1, which comprises
In S11, by target pages be grouped at least one page be successively determined as first page, the target pages Grouping has corresponding packet identification, and the page includes encryption page data.
Illustratively, multiple pages can be grouped according to page URL, to obtain at least one banking, often A banking has corresponding packet identification, which is used for the unique identification banking.
Wherein, each page has its corresponding URL (Uniform Resource Locator, unified resource positioning Symbol), wherein multiple pages are grouped according to page URL, comprising:
By in the URL of each page HTTPS and HTTP be normalized, illustratively, HTTP can be normalized to;
It will be normalized with www. prefix and without the URL of www. prefix, illustratively, can be normalized to www.;
Later, the URL after normalization is grouped, and illustratively can be with for each grouping one packet identification of distribution It is grouped according to domain name, depth and URL type, for example, domain name is identical, URL depth is predetermined depth and URL type is The page of number is determined as a banking, and domain name is identical, URL depth is predetermined depth and URL type is the page of character Face is determined as another banking.Wherein, which can rule of thumb be configured, and the predetermined depth is bigger, divide The precision of banking out is higher.
In this embodiment, after the completion of being grouped to multiple pages, it can arbitrarily select a grouping as target Banking, so as to from the target pages grouping selection first page carry out subsequent operation, for the first page, It performs the following operations:
In S12, triggering browser kernel loads first page, wherein debugging generation is injected in the browser kernel Code, the debugging code can print each original during loading the first page for the browser kernel The corresponding variable information of sub- operation.
In existing webpage design mode, for the safety for guaranteeing page data, usually provided in the page encrypted Data, i.e. encryption page data.When the page is loaded by browser, then it can pass through the decryption in browser kernel Scheme is decrypted, to obtain truthful data needed for the page.And the decryption scheme in browser kernel is difficult to obtain.? In the disclosure, debugging code can be injected in browser kernel, so that browser kernel is printed when executing decryption scheme The corresponding variable information of each atomic operation, so as to determined according to the variable information browser kernel decryption scheme etc. Efficacious prescriptions case.
Specifically, triggering browser kernel loads the first page, and during the loading procedure, browser kernel can be to first Encryption page data in the page is decrypted, and can then print the corresponding change of each atomic operation in decrypting process in this process Measure information, wherein the atomic operation can be the operation that addition, subtraction operation or assignment etc. can not be split again.
In S13, according to variable information, the execution route for carrying out page data decryption is determined, wherein the execution Path indicates target atoms operation and its executes sequence, that is, the encryption page data in first page is suitable according to executing respectively It is the encryption page in the browser kernel load first page that sequence, which executes the data obtained after above-mentioned target atoms operation, Page ciphertext data after face data.
It optionally, include multiple executing methods, the executable side of each of described first page in the first page Method corresponds to a method path, and the method path includes multiple atomic operations.Wherein, in first page there may be it is multiple can The JS method of execution, by browser injecting codes, so as to print each executable corresponding method of JS method Path, that is, when executing the JS method, the execution sequence of each atomic operation is formed by method path, should so as to basis Determine the corresponding method path of decryption scheme in multiple method paths.
Illustratively, according to variable information, the exemplary approach of the execution route for carrying out page data decryption is determined such as Under, as shown in Figure 2, comprising:
In S21, the most method path of the total number for the atomic operation for being included is determined as to decrypt path;
In S22, according to the corresponding variable information of atomic operation each in decryption path, determine for carrying out page data The execution route of decryption.
Wherein, in order to guarantee the safety of browser encipherment scheme, by by the decryption scheme scrambling code at multiple operations, The operation that the method that the sum of operation is generally more than the operation of the page data in first page is included.Therefore, first is being determined When the method for the decryption in the page, directly the most method path of the total number for the atomic operation for being included can be determined as solving Data calculation amount is saved so as to quickly determine decryption path in close path.
Optionally, in one embodiment, the variable information includes input variable information and output variable information;
It is described according to the corresponding variable information of the atomic operation each in the decryption path, determine for carrying out the page The execution route of data deciphering, comprising:
By its corresponding input variable information in the decryption path and the identical atomic operation of output variable information from institute It states and is removed in decryption path, to obtain the execution route.
Wherein, each atomic operation decrypted in path is as shown in table 1, and V1, V2 etc. are variable, and the input of atomic operation becomes The output variable information that information is an atomic operation thereon is measured, is not shown here.
Table 1
Illustratively, the input variable information of atomic operation 5 is the output variable information of atomic operation 4, that is, (V1,1), (V2,2), (V4,6), (V5,5) }, as shown in table 1, the output variable information of atomic operation 5 be (V1,1), (V2,2), (V4, 6),(V5,5)}.It follows that the corresponding input variable information of atomic operation 5 is identical with output variable information, at this point it is possible to will Atomic operation 5 is removed from decryption path, and the path that remaining atomic operation forms is determined as execution route.
Illustratively, example implementations atomic operation removed from decryption path are as follows:
If the atomic operation removed is first atomic operation decrypted in path, can be straight by first atomic operation Removal is connect, i.e., the order of operation in decryption path is directly since second atomic operation.If the atomic operation removed is decryption The last one atomic operation in path can directly remove the last one atomic operation, will in decryption path, this is last A upper atomic operation for one atomic operation is determined as decrypting the last one atomic operation in path.
If the atomic operation removed is in decryption path, in addition to first atomic operation and the last one atomic operation Atomic operation 5 when atomic operation, such as in table 1 transports a upper atom for atomic operation 5 when removing atomic operation 5 The output variable information of calculation 4 is determined as the input variable information of next atomic operation 6 of atomic operation 5, can incite somebody to action as a result, Atomic operation 5 is removed from decryption path.
In this embodiment, the execution route obtained be (atomic operation 1, V5=V6*2, V6=2), (atomic operation 2, V5=V5+1), (atomic operation 3, V4=V5+1, V5=V5), (atomic operation 4, V1 input are that 1, V2 input is 2, V4=6, V5 =5, V6=2), (atomic operation 6, V6'=3), (atomic operation 7, V1'=V2+V1), (atomic operation 8, V3=V2+V1'), (atomic operation 9, V3'=V3+V6'+V4) }.
In the above-mentioned technical solutions, for input variable information and the identical atomic operation of output variable information, After the atomic operation has executed, there is no the changes that essence is carried out to its corresponding variable, therefore, can by the atomic operation from Decryption removes in path, on the one hand can effectively simplify the length in decryption path, on the other hand, also it is possible to prevente effectively from decrypting The atomic operation that redundancy is added in path, while data calculation amount is effectively reduced, it is also ensured that calculate the accurate of data Property.
Optionally, in another embodiment, described according to the corresponding change of the atomic operation each in the decryption path Information is measured, determines the execution route for carrying out page data decryption, comprising:
Determine the local variable and global variable in the decryption path;
If the local variable does not carry out operation with any global variable in calculating process, in the decryption path In, the local variable replaced with the value of the local variable, to obtain the execution route.
Wherein, the local variable decrypted in path refers to the variable occurred inside the corresponding method in decryption path, example Such as, the variable V 3 in table 1, V4 etc., the global variable decrypted in path refer to from the external input corresponding method in decryption path Variable, such as the variable V 1 and V2 in table 1.
Illustratively, if local variable does not carry out operation with any global variable in calculating process, the local variable is indicated Value independent of external input, i.e. the value of local variable is unrelated with the value that external variable inputs.Therefore, as shown in table 1, In atomic operation 1, only local variable V5 and V6, therefore, V5 is 4 (V5=V6*2=2*2) in atomic operation 1, in original In sub- operation 2 V5 be 5, in atomic operation 3 V4 be 6, V5 5.
Therefore, the execution route determined through the above way is { (atomic operation 1, V5=4, V6=2), (atomic operation 2, V5=5), (atomic operation 3, V4=6, V5=6), (atomic operation 4, it is 2, V4=6, V5=5 that V1 input, which be that 1, V2 inputs, V6=2), (atomic operation 5, V1=1, V2=2, V4=6, V5=5, V6=2), (atomic operation 6, V6'=3), (atomic operation 7, V1'=V2+V1), (atomic operation 8, V3=V2+V1'), (atomic operation 9, V3'=V3+3+6) }.
In the above-mentioned technical solutions, it for local variable, is created in inside method and acts on inside method. Therefore, its not with global variable participate in operation when, corresponding value be it is fixed, it is unrelated with external input.Therefore, pass through The value of the local variable is directly replaced into the local variable, when page encryption data is decrypted according to the local variable, Its actual value can be directly utilized, i.e., participates in calculating using the local variable as constant, is further simplified decryption path, and Treatment effeciency is improved, user experience is promoted.
Optionally, in another embodiment, in summary two ways execution route can be obtained.Illustratively, it can incite somebody to action The corresponding input variable information of its in the decryption path and the identical atomic operation of output variable information are from the decryption path Middle removal, and when the local variable with any global variable does not carry out operation in calculating process, in the decryption The local variable is replaced in path, with the value of the local variable.Its specific embodiment is described in detail above, herein not It repeats again.In this embodiment, the execution route determined is { (atomic operation 1, V5=4, V6=2), (atomic operation 2, V5 =5), (atomic operation 3, V4=6, V5=6), (atomic operation 4, V1 input are that 1, V2 input is 2, V4=6, V5=5, V6= 2), (atomic operation 6, V6'=3), (atomic operation 7, V1'=V2+V1), (atomic operation 8, V3=V2+V1'), (atomic operation 9, V3'=V3+3+6) }.
Optionally, in another embodiment, if existing when judge branch in decryption path, record browser kernel loads the Selected branch when one page is directly ignored in the path being not carried out in the judgement branch, so as to effectively avoid sentencing Disconnected step is further simplified decryption path.
It optionally, can be according to first page in the page encryption data and page ciphertext data for determining first page The page encryption data and page ciphertext data in face handle decryption path.Wherein it is possible in browser kernel load the When one page, the page encryption data and page ciphertext data of first page are determined.It later, can be by the page of first page Encryption data input variable information corresponding with each atomic operation in decryption path is compared, by the page with first page The encryption data most like corresponding atomic operation of input variable information in face is determined as first atomic operation in execution route, Atomic operation corresponding with the most like output variable information of the page ciphertext data of first page is determined as in execution route The last one atomic operation.
Illustratively, atom corresponding with the most like input variable information of first page page encryption data that is determining Operation is atomic operation 2, atomic operation corresponding with the most like input variable information of the page encryption data of first page is Atomic operation 9.Wherein, which can combine with above-described embodiment, i.e., execution route is { (atomic operation 2, V5 at this time =5), (atomic operation 3, V4=6, V5=6), (atomic operation 4, V1 input are that 1, V2 input is 2, V4=6, V5=5, V6= 2), (atomic operation 6, V6'=3), (atomic operation 7, V1'=V2+V1), (atomic operation 8, V3=V2+V1'), (atomic operation 9, V3'=V3+3+6) }.Wherein, above-described embodiment is only an example implementations, and the disclosure is to this without limiting.
In S14, execution route is verified according to second page, wherein the second page is the page object One or more pages in the grouping of face in addition to the first page;
Wherein, first page is the page selecting from target pages grouping, when determining holding in first page When walking along the street diameter, can be grouped by target pages in other pages the execution route is verified, so as to verify the Whether the corresponding execution route in one page face can be adapted for other pages under target pages grouping.
Optionally, a kind of example implementations verified according to second page to the execution route are such as Under, as shown in Figure 3, comprising:
In S31, input information and the output information in second page are determined.
Wherein it is possible to by target pages be grouped in the corresponding JS file of multiple pages be compared, will be in JS file Kinds of characters string data is determined as doubtful input source, later, after the JS method code part in doubtful input source can be excluded, Remaining string data is determined as to input information.The output letter of second page can be directly obtained by browser kernel Breath.
In S32, the input information is subjected to calculation process according to the execution route, obtains check information;
In S33, when determining that the corresponding output information of the check information is similar, determine that the execution route is logical Cross verification.
After determining the input information of second page, then the input information can be held according to first page is corresponding Walking along the street diameter executes corresponding atomic operation, it is hereby achieved that output is as a result, i.e. check information.In the check information and second page When the output information in face is similar, it can determine that the execution route passes through verification.It illustratively, can be by determining check information and the Whether the distance of the output information of two pages is similar both to determine, can be with when distance therebetween is less than first threshold Determine that check information is similar with the output information of second page.In another example can be by calculating check information and second page Cosine similarity between output information determines whether the two is similar, and cosine similarity therebetween is greater than second threshold When, it can determine that check information is similar with the output information of second page.It should be noted that first threshold and second threshold can To be configured according to actual use scene, above-described embodiment be determine check information and second page output information whether Similar example implementations, are not defined the disclosure.
In the above-mentioned technical solutions, it when determining the corresponding execution route of first page, is grouped by target pages Other pages the execution route is verified, on the one hand can guarantee the accuracy of the execution route, on the other hand can also To promote the scope of application of the execution route, accurate data support is provided to generate page data decryption template.
In S15, when execution route passes through verification, it is based on execution route, page data is generated and decrypts template, and by mesh It is associated with page data decryption template to mark the corresponding packet identification of banking, wherein the page data decryption template is used It is decrypted in the encryption page data in the page for belonging to the target pages grouping.
Wherein, target atoms operation is indicated in execution route and its executes sequence, it as a result, can be with according to the execution route Determine the corresponding relationship between page-out encryption data and page ciphertext data.As shown in Table 1, page encryption data is as defeated Enter variable V 1 and V2, page ciphertext data is output variable V3', then can determine that page-out encrypts by above-mentioned execution route Relationship between data and page ciphertext data be V3'=V3+V6'+V4=(V2+V1')+V6'+V4=(V2+ (V2+V1))+ V6'+V4=2V2+V1+3+6=2V2+V1+9.
In this embodiment it is possible to by the relationship between the page encryption data determined and page ciphertext data store to Page data is decrypted in template, execution route and the relationship can also be stored together into page data decryption template.
Due in the prior art, will do it scrambling code to the decryption scheme of browser kernel, so that decryption scheme is difficult to read. Moreover, when being directly obtained the page, the truthful data that can not be directly obtained in the page.The application is based on true as a result, The thought of the equivalent scheme of the fixed decryption scheme prints each atom during browser kernel loads first page The corresponding variable information of operation determines that page data decrypts template according to the corresponding variable information of each atomic operation later, The encryption page data in the page can be decrypted based on page data decryption template.Therefore, pass through above-mentioned technical side Case, on the one hand can determine the execution route of page data decryption, so that page data decryption template is generated, so as to base Page encryption data is decrypted in page data decryption template, so that the page is in the feelings loaded without browser kernel Page ciphertext data can be directly obtained under condition, is bonded the use demand of user, promote user experience.On the other hand, By the page data of generation decryption template with its belonging to the packet identification that is grouped of target pages it is associated, can also be in order to page Face data decrypts the management and lookup of template, further promotes the efficiency of page processing.
Optionally, as shown in figure 4, the method also includes:
In S41, determine that first page belonging to the third page is grouped, the third page includes encryption page data.
Wherein, at least one described banking, third page can be determined according to the URL of the third page got The corresponding first page grouping in face.Wherein it is possible to which the method for carrying out banking according to URL as described above, determines third The grouping is determined as first page grouping by grouping belonging to the page.
In S42, in the associated page data decryption template of packet identification in being grouped with first page, determine with The corresponding target pages data deciphering template of the third page;
In first page grouping, multiple page data decryption templates may be corresponding with, by the third page and can be somebody's turn to do Page data decryption template in first page grouping is matched one by one, when being successfully matched to page data decryption template, Page data decryption template is determined as first page data deciphering template.It illustratively, can be by the way that first page be grouped In page data decryption template matched with the third page, with corresponding with the third page target pages data deciphering of determination Template.For example, can by page structure corresponding to the third page and page data decryption template corresponding to page structure into Row matching, wherein page structure can be deposited by the mode that DOM (Document Object Model, DOM Document Object Model) is set Storage, page data are decrypted page structure corresponding to template and be can be corresponding to the page for generating page data decryption template Page structure.When the corresponding dom tree of third page dom tree corresponding with page data decryption template is consistent, this can be determined The third page and page data decryption template matching success, can decrypt template for the page data of the successful match and be determined as Target pages data deciphering template corresponding with the third page.
It optionally, can be with if the third page is matched to page data decryption template not successfully in first page grouping Directly according to page processing method described above, the creation page data decryption corresponding with the third page in first page grouping Template, and page data decryption template is associated with the packet identification that first page is grouped, so as to first page It is grouped corresponding page data decryption template to be updated, improves the diversity and applicability of page data decryption template, promoted User experience.
In S43, it is decrypted based on encryption page data of the target pages data deciphering template to the third page.
Wherein, the pass between page encryption data and page ciphertext data is stored in target pages data deciphering template System, therefore, directly can determine the corresponding page of the third page according to the relationship stored in target pages data deciphering template Ciphertext data, improve page treatment effeciency, while it is also ensured that page ciphertext data accuracy so that the page without Browser kernel can obtain the truthful data in the page in the case where loading, meet the use needs of user, promote user Usage experience.
The disclosure also provides a kind of Page handling device, as shown in figure 5, described device 10 includes:
First determining module 100 is successively determined as first page at least one page in being grouped target pages, The target pages grouping has corresponding packet identification, and the page includes encryption page data;
Loading module 200 loads the first page for triggering the browser kernel, wherein in the browser Debugging code is injected in core, the debugging code can be in the process for loading the first page for the browser kernel In, print the corresponding variable information of each atomic operation;
Second determining module 300, for determining the execution road for carrying out page data decryption according to the variable information Diameter, wherein the execution route indicates target atoms operation and its executes sequence;
Correction verification module 400, for being verified according to second page to the execution route, wherein the second page For one or more pages in target pages grouping in addition to the first page;
Generation module 500 generates page number for being based on the execution route when the execution route passes through verification According to decryption template, and the corresponding packet identification of target pages grouping is associated with page data decryption template, In, the page data decryption template is used to solve the encryption page data in the page for belonging to the target pages grouping It is close.
It optionally, include multiple executing methods, the executable side of each of described first page in the first page Method corresponds to a method path, and the method path includes multiple atomic operations, and second determining module 300 includes:
First determines submodule, for the most method path of the total number for the atomic operation for being included to be determined as decrypting Path;
Second determines submodule, for according to the corresponding variable information of the atomic operation each in the decryption path, Determine the execution route for carrying out page data decryption.
Optionally, the variable information includes input variable information and output variable information;
Described second determines that submodule is used for:
By its corresponding input variable information in the decryption path and the identical atomic operation of output variable information from institute It states and is removed in decryption path, to obtain the execution route.
Optionally, described second determine that submodule includes:
Third determines submodule, for determining local variable and global variable in the decryption path;
Submodule is replaced, for not carrying out operation with any global variable in calculating process in the local variable When, the local variable is replaced in the decryption path, with the value of the local variable, to obtain the execution route.
Optionally, the correction verification module 400 includes:
4th determines submodule, for determining input information and output information in second page;
Operation submodule obtains verification letter for the input information to be carried out calculation process according to the execution route Breath;
5th determines submodule, for determining institute when determining that the corresponding output information of the check information is similar It states execution route and passes through verification.
Optionally, described device 10 further include:
Third determining module, for determining that first page belonging to the third page is grouped, the third page includes encryption Page data;
4th determining module, for being decrypted in page data associated with the packet identification in first page grouping In template, target pages data deciphering template corresponding with the third page is determined;
Deciphering module, for the encryption page data based on the target pages data deciphering template to the third page It is decrypted.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method Embodiment in be described in detail, no detailed explanation will be given here.
Fig. 6 is the block diagram of a kind of electronic equipment 700 shown according to an exemplary embodiment.As shown in fig. 6, the electronics is set Standby 700 may include: processor 701, memory 702.The electronic equipment 700 can also include multimedia component 703, input/ Export one or more of (I/O) interface 704 and communication component 705.
Wherein, processor 701 is used to control the integrated operation of the electronic equipment 700, to complete above-mentioned page processing side All or part of the steps in method.Memory 702 is for storing various types of data to support the behaviour in the electronic equipment 700 To make, these data for example may include the instruction of any application or method for operating on the electronic equipment 700, with And the relevant data of application program, such as contact data, the message of transmitting-receiving, picture, audio, video etc..The memory 702 It can be realized by any kind of volatibility or non-volatile memory device or their combination, such as static random-access is deposited Reservoir (Static Random Access Memory, abbreviation SRAM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, abbreviation EEPROM), erasable programmable Read-only memory (Erasable Programmable Read-Only Memory, abbreviation EPROM), programmable read only memory (Programmable Read-Only Memory, abbreviation PROM), and read-only memory (Read-Only Memory, referred to as ROM), magnetic memory, flash memory, disk or CD.Multimedia component 703 may include screen and audio component.Wherein Screen for example can be touch screen, and audio component is used for output and/or input audio signal.For example, audio component may include One microphone, microphone is for receiving external audio signal.The received audio signal can be further stored in storage Device 702 is sent by communication component 705.Audio component further includes at least one loudspeaker, is used for output audio signal.I/O Interface 704 provides interface between processor 701 and other interface modules, other above-mentioned interface modules can be keyboard, mouse, Button etc..These buttons can be virtual push button or entity button.Communication component 705 is for the electronic equipment 700 and other Wired or wireless communication is carried out between equipment.Wireless communication, such as Wi-Fi, bluetooth, near-field communication (Near Field Communication, abbreviation NFC), 2G, 3G or 4G or they one or more of combination, therefore corresponding communication Component 705 may include: Wi-Fi module, bluetooth module, NFC module.
In one exemplary embodiment, electronic equipment 700 can be by one or more application specific integrated circuit (Application Specific Integrated Circuit, abbreviation ASIC), digital signal processor (Digital Signal Processor, abbreviation DSP), digital signal processing appts (Digital Signal Processing Device, Abbreviation DSPD), programmable logic device (Programmable Logic Device, abbreviation PLD), field programmable gate array (Field Programmable Gate Array, abbreviation FPGA), controller, microcontroller, microprocessor or other electronics member Part is realized, for executing above-mentioned page processing method.
In a further exemplary embodiment, a kind of computer readable storage medium including program instruction is additionally provided, it should The step of above-mentioned page processing method is realized when program instruction is executed by processor.For example, the computer readable storage medium It can be the above-mentioned memory 702 including program instruction, above procedure instruction can be executed by the processor 701 of electronic equipment 700 To complete above-mentioned page processing method.
Fig. 7 is the block diagram of a kind of electronic equipment 1900 shown according to an exemplary embodiment.For example, electronic equipment 1900 It may be provided as a server.Referring to Fig. 7, electronic equipment 1900 includes processor 1922, and quantity can be one or more A and memory 1932, for storing the computer program that can be executed by processor 1922.The meter stored in memory 1932 Calculation machine program may include it is one or more each correspond to one group of instruction module.In addition, processor 1922 can To be configured as executing the computer program, to execute above-mentioned page processing method.
In addition, electronic equipment 1900 can also include power supply module 1926 and communication component 1950, the power supply module 1926 It can be configured as the power management for executing electronic equipment 1900, which can be configured as realization electronic equipment 1900 communication, for example, wired or wireless communication.In addition, the electronic equipment 1900 can also include that input/output (I/O) connects Mouth 1958.Electronic equipment 1900 can be operated based on the operating system for being stored in memory 1932, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM etc..
In a further exemplary embodiment, a kind of computer readable storage medium including program instruction is additionally provided, it should The step of above-mentioned page processing method is realized when program instruction is executed by processor.For example, the computer readable storage medium It can be the above-mentioned memory 1932 including program instruction, above procedure instruction can be held by the processor 1922 of electronic equipment 1900 Row is to complete above-mentioned page processing method.
The preferred embodiment of the disclosure is described in detail in conjunction with attached drawing above, still, the disclosure is not limited to above-mentioned reality The detail in mode is applied, in the range of the technology design of the disclosure, a variety of letters can be carried out to the technical solution of the disclosure Monotropic type, these simple variants belong to the protection scope of the disclosure.
It is further to note that specific technical features described in the above specific embodiments, in not lance In the case where shield, it can be combined in any appropriate way.In order to avoid unnecessary repetition, the disclosure to it is various can No further explanation will be given for the combination of energy.
In addition, any combination can also be carried out between a variety of different embodiments of the disclosure, as long as it is without prejudice to originally Disclosed thought equally should be considered as disclosure disclosure of that.

Claims (10)

1. a kind of page processing method, which is characterized in that the described method includes:
By target pages be grouped at least one page be successively determined as first page, the target pages grouping, which has, to be corresponded to Packet identification, and the page include encryption page data;
For the first page, perform the following operations:
It triggers the browser kernel and loads the first page, wherein be injected with debugging code, institute in the browser kernel Each atomic operation can be printed during loading the first page for the browser kernel by stating debugging code Corresponding variable information;
According to the variable information, the execution route for carrying out page data decryption is determined, wherein the execution route instruction Target atoms operation and its execute sequence;
The execution route is verified according to second page, wherein the second page is in target pages grouping One or more pages in addition to the first page;
When the execution route passes through verification, it is based on the execution route, page data is generated and decrypts template, and by the mesh It is associated with page data decryption template to mark the corresponding packet identification of banking, wherein the page data decrypts mould Plate is used to that the encryption page data in the page for belonging to the target pages grouping to be decrypted.
2. the method according to claim 1, wherein including multiple executing methods, institute in the first page The corresponding method path of each executing method in first page is stated, the method path includes multiple atomic operations, institute It states according to the variable information, determines the execution route for carrying out page data decryption, comprising:
The most method path of the total number for the atomic operation for being included is determined as to decrypt path;
According to the corresponding variable information of the atomic operation each in the decryption path, determine for carrying out page data decryption Execution route.
3. according to the method described in claim 2, it is characterized in that, the variable information includes that input variable information and output become Measure information;
It is described according to the corresponding variable information of the atomic operation each in the decryption path, determine for carrying out page data The execution route of decryption, comprising:
By its corresponding input variable information in the decryption path and the identical atomic operation of output variable information from the solution It is removed in close path, to obtain the execution route.
4. according to the method described in claim 2, it is characterized in that, described transport according to the atom each in the decryption path Corresponding variable information is calculated, determines the execution route for carrying out page data decryption, comprising:
Determine the local variable and global variable in the decryption path;
If the local variable does not carry out operation with any global variable in calculating process, in the decryption path, The local variable is replaced with the value of the local variable, to obtain the execution route.
5. the method according to claim 1, wherein described carry out school to the execution route according to second page It tests, comprising:
Determine input information and the output information in second page;
The input information is subjected to calculation process according to the execution route, obtains check information;
When determining that the corresponding output information of the check information is similar, determine that the execution route passes through verification.
6. method according to any one of claims 1-5, which is characterized in that the method also includes:
Determine that first page belonging to the third page is grouped, the third page includes encryption page data;
In page data decryption template associated with the packet identification in first page grouping, the determining and third The corresponding target pages data deciphering template of the page;
It is decrypted based on encryption page data of the target pages data deciphering template to the third page.
7. a kind of Page handling device, which is characterized in that described device includes:
First determining module is successively determined as first page, the mesh at least one page in being grouped target pages Marking banking has corresponding packet identification, and the page includes encryption page data;
Loading module loads the first page for triggering the browser kernel, wherein inject in the browser kernel There is debugging code, the debugging code can be printed for the browser kernel during loading the first page The corresponding variable information of each atomic operation out;
Second determining module, for determining the execution route for carrying out page data decryption according to the variable information, In, the execution route indicates target atoms operation and its executes sequence;
Correction verification module, for being verified according to second page to the execution route, wherein the second page is the mesh Mark one or more pages in banking in addition to the first page;
Generation module generates page data and decrypts mould for being based on the execution route when the execution route passes through verification Plate, and the corresponding packet identification of target pages grouping is associated with page data decryption template, wherein the page Face data decryption template is used to that the encryption page data in the page for belonging to the target pages grouping to be decrypted.
8. device according to claim 7, which is characterized in that include multiple executing methods, institute in the first page The corresponding method path of each executing method in first page is stated, the method path includes multiple atomic operations, institute Stating the second determining module includes:
First determines submodule, decrypts road for the most method path of the total number for the atomic operation for being included to be determined as Diameter;
Second determines submodule, for according to the corresponding variable information of the atomic operation each in the decryption path, determination For carrying out the execution route of page data decryption.
9. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is held by processor The step of any one of claim 1-6 the method is realized when row.
10. a kind of electronic equipment characterized by comprising
Memory is stored thereon with computer program;
Processor, for executing the computer program in the memory, to realize described in any one of claim 1-6 The step of method.
CN201811446735.1A 2018-11-29 2018-11-29 Page processing method and device, computer readable storage medium and electronic equipment Active CN109711187B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811446735.1A CN109711187B (en) 2018-11-29 2018-11-29 Page processing method and device, computer readable storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811446735.1A CN109711187B (en) 2018-11-29 2018-11-29 Page processing method and device, computer readable storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN109711187A true CN109711187A (en) 2019-05-03
CN109711187B CN109711187B (en) 2020-01-24

Family

ID=66255319

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811446735.1A Active CN109711187B (en) 2018-11-29 2018-11-29 Page processing method and device, computer readable storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN109711187B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020166051A1 (en) * 2001-05-03 2002-11-07 Marvin Moser Method, system, and apparatus for encrypting a web browser script
CN103856458A (en) * 2012-12-04 2014-06-11 腾讯科技(深圳)有限公司 Page authentication method and device
CN103873430A (en) * 2012-12-10 2014-06-18 腾讯科技(深圳)有限公司 Method, client and system for page information verification
CN104217173A (en) * 2014-08-27 2014-12-17 武汉理工大学 Method of encrypting data and files for browser
US20170006064A1 (en) * 2015-07-02 2017-01-05 Oracle International Corporation Data encryption service
CN106412024A (en) * 2016-09-07 2017-02-15 网易无尾熊(杭州)科技有限公司 Page acquisition method and device
CN107180168A (en) * 2016-03-10 2017-09-19 阿里巴巴集团控股有限公司 File loading, generation method and device, and intelligent terminal
CN107403103A (en) * 2016-05-20 2017-11-28 阿里巴巴集团控股有限公司 File decryption method and apparatus
US20170344496A1 (en) * 2007-10-30 2017-11-30 Vmware, Inc. Cryptographic multi-shadowing with integrity verification
CN108319822A (en) * 2018-01-05 2018-07-24 武汉斗鱼网络科技有限公司 A kind of method, storage medium, electronic equipment and the system of protection web page code

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020166051A1 (en) * 2001-05-03 2002-11-07 Marvin Moser Method, system, and apparatus for encrypting a web browser script
US20170344496A1 (en) * 2007-10-30 2017-11-30 Vmware, Inc. Cryptographic multi-shadowing with integrity verification
CN103856458A (en) * 2012-12-04 2014-06-11 腾讯科技(深圳)有限公司 Page authentication method and device
CN103873430A (en) * 2012-12-10 2014-06-18 腾讯科技(深圳)有限公司 Method, client and system for page information verification
CN104217173A (en) * 2014-08-27 2014-12-17 武汉理工大学 Method of encrypting data and files for browser
US20170006064A1 (en) * 2015-07-02 2017-01-05 Oracle International Corporation Data encryption service
CN107180168A (en) * 2016-03-10 2017-09-19 阿里巴巴集团控股有限公司 File loading, generation method and device, and intelligent terminal
CN107403103A (en) * 2016-05-20 2017-11-28 阿里巴巴集团控股有限公司 File decryption method and apparatus
CN106412024A (en) * 2016-09-07 2017-02-15 网易无尾熊(杭州)科技有限公司 Page acquisition method and device
CN108319822A (en) * 2018-01-05 2018-07-24 武汉斗鱼网络科技有限公司 A kind of method, storage medium, electronic equipment and the system of protection web page code

Also Published As

Publication number Publication date
CN109711187B (en) 2020-01-24

Similar Documents

Publication Publication Date Title
US10891384B2 (en) Blockchain transaction device and method
EP3208788B1 (en) Method of protecting a circuit against a side-channel analysis
Samaila et al. IoT-HarPSecA: a framework and roadmap for secure design and development of devices and applications in the IoT space
CN101231622B (en) Data storage method and equipment base on flash memory, as well as data fetch method and apparatu
CN113765657A (en) Key data processing method and device and server
JPWO2016113886A1 (en) Random number expansion apparatus, random number expansion method and random number expansion program
CN104424428B (en) For monitoring the electronic circuit and method of data processing
CN111144576A (en) Model training method and device and electronic equipment
CN111512590B (en) Homomorphic encryption for password authentication
CN109359471B (en) Encryption method, device, system, equipment and medium based on user identity
US20200136798A1 (en) Ciphertext comparison method using homomorphic encryption and apparatus for performing the same
US10572635B2 (en) Automatic correction of cryptographic application program interfaces
CN111209577B (en) Method and device for adding watermark data, storage medium and electronic equipment
CN109923829A (en) Reach an agreement to secret value
CN109711187A (en) Page processing method, device, computer readable storage medium and electronic equipment
CN105809494A (en) method and system for invoice generation and invoice verification
KR102045843B1 (en) Method and apparatus for block encryption algorithm
CN105939192A (en) Data encryption method and device
KR101440680B1 (en) Homomorphic Encryption and Decryption Method using Chinese Remainder Theorem and apparatus using the same
JP2005045760A (en) Cipher processing method and device thereof
JP2007067942A (en) Ic card, and ic card program
CN107239712A (en) The hidden method and device of user profile based on application program
CN111191272A (en) Data desensitization method, electronic device and storage medium
CN113283959B (en) Travel information pushing processing method, device, equipment and system
CN113127034B (en) BMC-based board card updating method, system, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant