CN108536860B - Webpage encryption and decryption methods, terminal equipment and computer readable storage medium - Google Patents

Webpage encryption and decryption methods, terminal equipment and computer readable storage medium Download PDF

Info

Publication number
CN108536860B
CN108536860B CN201810351330.3A CN201810351330A CN108536860B CN 108536860 B CN108536860 B CN 108536860B CN 201810351330 A CN201810351330 A CN 201810351330A CN 108536860 B CN108536860 B CN 108536860B
Authority
CN
China
Prior art keywords
encrypted
webpage
decryption
encryption
web page
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.)
Expired - Fee Related
Application number
CN201810351330.3A
Other languages
Chinese (zh)
Other versions
CN108536860A (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.)
Wuhan Polytechnic University
Original Assignee
Wuhan Polytechnic University
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 Wuhan Polytechnic University filed Critical Wuhan Polytechnic University
Priority to CN201810351330.3A priority Critical patent/CN108536860B/en
Publication of CN108536860A publication Critical patent/CN108536860A/en
Application granted granted Critical
Publication of CN108536860B publication Critical patent/CN108536860B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/126Character encoding

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a webpage encryption and decryption method, terminal equipment and a computer readable storage medium. According to the method, the object to be encrypted in the webpage to be encrypted is converted into the encrypted source code with the uniform format according to the preset transcoding standard, so that the common computer language can be identified, the subsequent encryption is completed, the encrypted webpage of the webpage to be encrypted is generated by adding the decryption identification for decryption to the initial ciphertext obtained by encryption, and the user with the right to modify the webpage content can decrypt the webpage conveniently while the safety of the webpage content is ensured. Meanwhile, when the encrypted webpage is decrypted, the decryption rule can be quickly determined according to the decryption identification carried in the encrypted webpage to finish decryption, and the initial plaintext obtained by decryption is transcoded according to the same transcoding standard to finish decryption of the webpage to be decrypted. Based on the mode, the technical problem that the webpage file developed based on the HTTP protocol cannot be encrypted in the prior art is solved.

Description

Webpage encryption and decryption methods, terminal equipment and computer readable storage medium
Technical Field
The present invention relates to the field of network technologies, and in particular, to a method for encrypting and decrypting a web page, a terminal device, and a computer-readable storage medium.
Background
With the rapid development of the application of the internet technology, great convenience is brought to the daily life and work of people. At present, people increasingly browse webpages through a webpage browser in life and work to acquire useful information and data for online contact and communication.
However, with the continuous development of network technologies, since the transmission principle of web pages developed based on HyperText Transfer Protocol (HTTP) is plaintext transmission, it provides opportunities for illegal users to perform illegal activities, and if an illegal user only needs to slightly modify a regular website, the illegal user can make his own phishing website, thereby endangering the legal user.
Therefore, it is very important to encrypt the web page file in the web server. However, at present, common computer languages are powerless.
Therefore, it is important to provide a scheme for encrypting a web file developed based on the HTTP protocol.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a webpage encryption and decryption method, a terminal device and a computer readable storage medium, and aims to solve the technical problem that a webpage file developed based on an HTTP (hyper text transport protocol) protocol cannot be encrypted in the prior art.
In order to achieve the above object, the present invention provides a web page encryption method, which comprises the following steps:
determining an encryption rule of a webpage to be encrypted, and acquiring the object to be encrypted;
extracting an object to be encrypted from the webpage to be encrypted according to the encryption rule;
according to a preset transcoding standard, carrying out transcoding operation on the object to be encrypted to obtain an encrypted source code with a uniform format; the encryption source codes correspond to the objects to be encrypted one by one;
encrypting the encrypted source code according to the encryption rule to obtain an initial ciphertext;
and adding a decryption identifier for decryption to the initial ciphertext to generate an encrypted webpage of the webpage to be encrypted.
Preferably, before the transcoding operation is performed on the object to be encrypted according to a preset transcoding standard, the method further includes:
judging whether the object to be encrypted is a single-byte object;
correspondingly, the transcoding the object to be encrypted according to the preset transcoding standard specifically includes:
if the object to be encrypted is determined to be a single-byte object, carrying out primary transcoding operation on the object to be encrypted according to a preset transcoding standard;
and if the object to be encrypted is determined to be a multi-byte object, carrying out transcoding operation twice on the object to be encrypted according to a preset transcoding standard.
Preferably, the performing, according to a preset transcoding standard, two transcoding operations on the object to be encrypted specifically includes:
converting the multi-byte object into a single-byte object according to a preset transcoding standard;
and carrying out transcoding operation on the single-byte object according to a preset transcoding standard.
Preferably, the encrypted source code is a Unicode character;
correspondingly, the transcoding the object to be encrypted according to the preset transcoding standard to obtain an encrypted source code in a unified format specifically includes:
according to the American information exchange standard code, carrying out transcoding operation on the object to be encrypted to obtain Unicode characters in a unified format;
and taking the Unicode character as an encryption source code of the object to be encrypted.
Preferably, the adding a decryption identifier for decryption to the initial ciphertext specifically includes:
determining a decryption identifier of the initial ciphertext corresponding to the object to be encrypted according to the attribute of the object to be encrypted;
and adding the decryption identification to a preset position in the initial ciphertext according to a preset adding rule.
In addition, to achieve the above object, the present invention also provides a terminal device, including: a memory, a processor, and a web page encryption program stored on the memory and executable on the processor, the web page encryption program configured to implement the steps of the web page encryption method.
In addition, to achieve the above object, the present invention also provides a computer-readable storage medium having stored thereon a web page encryption program, which, when executed by a processor, implements the steps of the web page encryption method.
In addition, in order to achieve the above object, the present invention further provides a method for decrypting a web page, the method comprising the steps of:
acquiring a webpage to be decrypted, and extracting a decryption identifier from the webpage to be decrypted;
determining a decryption rule of the webpage to be decrypted according to the decryption identification;
decrypting the webpage to be decrypted according to the decryption rule to obtain an initial plaintext;
and carrying out transcoding operation on the initial plaintext according to a preset transcoding standard to obtain a decrypted webpage of the webpage to be decrypted.
In addition, to achieve the above object, the present invention also provides a terminal device, including: a memory, a processor, and a web page decryption program stored on the memory and executable on the processor, the web page decryption program configured to implement the steps of the web page decryption method.
In addition, to achieve the above object, the present invention also provides a computer readable storage medium having a webpage decryption program stored thereon, where the webpage decryption program implements the steps of the webpage decryption method when executed by a processor.
According to the method, the object to be encrypted in the webpage to be encrypted is converted into the encrypted source code with the uniform format according to the preset transcoding standard, so that the common computer language can be identified, then the encrypted source code is encrypted according to the determined encryption rule, the decryption identification for decryption is added to the initial ciphertext obtained by encryption, the encrypted webpage of the webpage to be encrypted is generated, and the user with the authority of modifying the webpage content can decrypt the webpage conveniently while the safety of the webpage content is ensured. Meanwhile, when the encrypted webpage is decrypted, the decryption rule corresponding to the encryption rule can be quickly determined by obtaining the decryption identification carried in the encrypted webpage, then the webpage to be decrypted is decrypted according to the determined decryption rule to obtain an initial plaintext, and then the initial plaintext obtained by decryption is transcoded according to the transcoding standard corresponding to the transcoding standard in the encryption operation, so that the webpage to be decrypted can be decrypted. Based on the encryption and decryption modes, the technical problem that the webpage file developed based on the HTTP protocol cannot be encrypted in the prior art is solved, and the encryption and decryption modes are simple and do not occupy too much network bandwidth and system resources.
Drawings
Fig. 1 is a schematic structural diagram of a terminal device in a hardware operating environment for executing a web page encryption program according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a tree structure of a web page encryption system running on a terminal device according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating a first embodiment of a web page encryption method according to the present invention;
FIG. 4 is a schematic view of a user interface of a first embodiment of a web page encryption method according to the present invention;
FIG. 5 is a schematic view of a user interface of a first embodiment of a web page encryption method according to the present invention;
FIG. 6 is a schematic view of a user interface of a first embodiment of a web page encryption method according to the present invention;
FIG. 7 is a flowchart illustrating a second embodiment of a web page encryption method according to the present invention;
FIG. 8 is a functional block diagram of the encryption system for web pages according to the present invention;
fig. 9 is a schematic structural diagram of a terminal device in a hardware operating environment for executing a web page decryption program according to an embodiment of the present invention;
fig. 10 is a schematic diagram of a tree structure of a web page decryption system running on a terminal device according to an embodiment of the present invention;
FIG. 11 is a flowchart illustrating a first embodiment of a method for decrypting web pages according to the present invention;
FIG. 12 is a functional block diagram of the web page decryption system according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a terminal device in a hardware operating environment for executing a web page encryption program according to an embodiment of the present invention.
As shown in fig. 1, the terminal device may include: a processor 1001, such as a Central Processing Unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), a Mouse (Mouse), and optionally, the user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a WIreless interface (e.g., a WIreless-FIdelity (WI-FI) interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the configuration shown in fig. 1 does not constitute a limitation of the terminal device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
Accordingly, as shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a web page encryption program.
In the terminal device shown in fig. 1, the network interface 1004 is mainly used for establishing a communication connection between the terminal device and a network; the user interface 1003 is mainly used for receiving input instructions of a user; the terminal device calls the web page encryption program stored in the memory 1005 through the processor 1001, and performs the following operations:
determining an encryption rule of a webpage to be encrypted, and acquiring the webpage to be encrypted;
extracting an object to be encrypted from the webpage to be encrypted according to the encryption rule;
according to a preset transcoding standard, carrying out transcoding operation on the object to be encrypted to obtain an encrypted source code with a uniform format; the encryption source codes correspond to the objects to be encrypted one by one;
encrypting the encrypted source code according to the encryption rule to obtain an initial ciphertext;
and adding a decryption identifier for decryption to the initial ciphertext to generate an encrypted webpage of the webpage to be encrypted.
Further, the processor 1001 may call the web page encryption program stored in the memory 1005, and further perform the following operations:
judging whether the object to be encrypted is a single-byte object;
correspondingly, the transcoding the object to be encrypted according to the preset transcoding standard specifically includes:
if the object to be encrypted is determined to be a single-byte object, carrying out primary transcoding operation on the object to be encrypted according to a preset transcoding standard;
and if the object to be encrypted is determined to be a multi-byte object, carrying out transcoding operation twice on the object to be encrypted according to a preset transcoding standard.
Further, the processor 1001 may call the web page encryption program stored in the memory 1005, and further perform the following operations:
converting the multi-byte object into a single-byte object according to a preset transcoding standard;
and carrying out transcoding operation on the single-byte object according to a preset transcoding standard.
Further, the encrypted source code is a Unicode character, and the processor 1001 may call the web page encryption program stored in the storage 1005, and further perform the following operations:
according to the American information exchange standard code, carrying out transcoding operation on the object to be encrypted to obtain Unicode characters in a unified format;
and taking the Unicode character as an encryption source code of the object to be encrypted.
Further, the processor 1001 may call the web page encryption program stored in the memory 1005, and further perform the following operations:
determining a decryption identifier of the initial ciphertext corresponding to the object to be encrypted according to the attribute of the object to be encrypted;
and adding the decryption identification to a preset position in the initial ciphertext according to a preset adding rule.
In addition, it should be noted that, in a specific implementation, the web pages generally used by us can be roughly divided into the following three types: pure English web pages, pure Chinese web pages, and Chinese and English mixed web pages.
Therefore, the encryption processing of web pages can be roughly divided into encryption of pure English web pages, encryption of pure Chinese web pages and encryption of mixed Chinese and English web pages.
Regarding to the specific process division of the web page encryption system based on the dynamic Server Pages (asp) provided in the embodiment of the present invention, the specific process division may be referred to as a tree structure schematic diagram of the web page encryption system running on the terminal device shown in fig. 2, which is not described herein again.
In addition, those skilled in the art can understand that the above description is only a list of several common web page forms, and the technical solution of the present invention is not limited at all, and in practical applications, the division of the web pages may be more detailed, which is not limited in this embodiment.
According to the scheme, before the object to be encrypted in the webpage to be encrypted is encrypted, the object to be encrypted in the webpage to be encrypted is converted into the encrypted source code with the uniform format according to the preset transcoding standard, so that the common computer language can be identified, then the encrypted source code is encrypted according to the determined encryption rule, the decryption identification for decryption is added to the initial ciphertext obtained by encryption, the encrypted webpage of the webpage to be encrypted is generated, and the user with the right of modifying the webpage content can decrypt conveniently while the safety of the webpage content is ensured. Based on the encryption mode, the technical problem that the webpage file developed based on the HTTP protocol cannot be encrypted in the prior art is solved, and the encryption mode is simple and does not occupy too much network bandwidth and system resources.
Based on the hardware structure, the embodiment of the webpage encryption method is provided.
Referring to fig. 3, fig. 3 is a flowchart illustrating a first embodiment of a web page encryption method according to the present invention.
In a first embodiment, the web page encryption method includes the steps of:
s10: determining an encryption rule of a webpage to be encrypted, and acquiring the webpage to be encrypted.
It should be noted that the encryption rule in this embodiment is specifically selected from several existing data encryption algorithms preset by developers, for example, when a pure english web page needs to be encrypted, the encryption algorithm used may be set as a method a, when a pure chinese web page needs to be encrypted, the encryption algorithm used may be set as a method B, and when a mixed web page of chinese and english is encrypted, only the method a may be used to encrypt english content in the mixed web page, or only the method B may be used to encrypt chinese content in the mixed web page, or both the method a and the method B may be used to encrypt english content in the mixed web page.
In addition, in order to facilitate understanding of the determination method of the encryption rule, several determination methods are listed as follows:
(1) when a user needs to perform webpage encryption operation, the user selects from an encryption rule list provided by terminal equipment for performing encryption operation, for example, options such as ' pure English webpage encryption ', ' pure Chinese webpage encryption ', ' only encrypting English content in a webpage ', ' only encrypting Chinese content in a webpage ', ' all Chinese and English contents in a webpage ' are encrypted ' are directly displayed on a display interface of the terminal equipment, each option is established in the system by the user and directly connected with an encryption algorithm, and when the user needs to perform webpage encryption operation, the user only needs to select a proper option according to the need;
(2) when a user needs to perform webpage encryption operation, providing an operation interface at a terminal device for performing encryption operation, manually inputting encryption conditions, and selecting a corresponding encryption method from encryption methods provided in a system;
(3) and setting a default encryption rule for the terminal equipment, for example, completely encrypting Chinese and English in a default state, and setting a corresponding encryption method.
The above description is only for illustrative purposes and does not limit the technical aspects of the present invention. In the specific implementation, the setting can be set by a person skilled in the art according to the actual situation, and is not limited herein.
S20: and extracting an object to be encrypted from the webpage to be encrypted according to the encryption rule.
Specifically, if the determined encryption rule is to encrypt only the english characters, all the english characters in the web page to be encrypted are extracted and used as the object to be encrypted.
If the determined encryption rule is that only the Chinese characters are encrypted, all Chinese characters in the webpage to be encrypted are extracted and used as an object to be encrypted.
If the determined encryption rule is to encrypt both Chinese and English characters in the webpage, all English characters in the webpage to be encrypted are extracted, simultaneously all Chinese characters in the webpage to be encrypted are extracted, and the proposed English characters and Chinese characters are respectively used as objects to be encrypted.
It should be noted that, in the specific implementation, a person skilled in the art may provide different encryption options according to needs, so as to correspond to different encryption rules, for example, only encrypt part of english characters in an english web page, or only encrypt part of chinese characters in a chinese web page, or only encrypt part of english characters or part of chinese characters in a mixed web page of chinese and english, which is not limited herein.
S30: and carrying out transcoding operation on the object to be encrypted according to a preset transcoding standard so as to obtain an encrypted source code with a uniform format.
In order to facilitate the transcoding operation, in this embodiment, the transcoding operation is mainly performed on the object to be encrypted according to American Standard Code for Information Interchange (ASCII), and the encrypted source Code obtained after transcoding is Unicode characters that can be recognized by the currently commonly used computer language.
In addition, it should be noted that, in order to ensure that the encrypted source codes obtained after transcoding different objects to be encrypted are different from each other, in this embodiment, the encrypted source codes obtained after transcoding the objects to be encrypted need to be in one-to-one correspondence with the objects to be encrypted according to a preset transcoding identifier.
S40: and encrypting the encrypted source code according to the encryption rule to obtain an initial ciphertext.
S50: and adding a decryption identifier for decryption to the initial ciphertext to generate an encrypted webpage of the webpage to be encrypted.
It should be understood that, since the web page subjected to the encryption operation may be a pure english web page, or a pure chinese web page, or a web page in which chinese and english are mixed, in order to facilitate decryption of the encrypted web page, for example, it may be quickly determined whether the contents of the web page to be decrypted include chinese, english, or both chinese and english. Therefore, it is necessary to add a decryption flag (a distinction flag for distinguishing whether the encrypted object is english or chinese) for decryption to the initial ciphertext.
Specifically, in practical implementation, the decryption identifier of the initial ciphertext corresponding to the object to be encrypted may be determined according to the attribute of the object to be encrypted, for example, the decryption identifier of an english character is set to "1", and the decryption identifier of a chinese character is set to "0".
In addition, in order to further improve the encryption level, when a decryption identifier is added to an initial ciphertext, the decryption identifier may be added to a preset position of the initial ciphertext according to a preset addition rule, for example, the decryption identifier corresponding to an english character may be set to be added to the 2 nd bit of the initial ciphertext corresponding to each english character; the decryption identifier corresponding to the chinese character may be set to be added to the 3 rd bit of the initial ciphertext corresponding to each chinese character.
The above description is only for illustrative purposes and does not limit the technical aspects of the present invention. In the specific implementation, the setting can be set by a person skilled in the art according to the actual situation, and is not limited herein.
In addition, it is worth mentioning that, in order to facilitate the decryption operation of the encrypted web page by the user having the right to modify the web page content, the decryption identifier of the initial ciphertext corresponding to the object to be encrypted determined in this embodiment may be, specifically, the same encryption identifier is set for the same type of object to be encrypted. That is, if all the contents in the mixed web page are encrypted, the decryption identifiers added to the initial ciphertext corresponding to all the chinese characters are all "0", and the decryption identifiers added to the initial ciphertext corresponding to all the english characters are all "1".
In addition, in order to further improve the security level, before a decryption identifier for decryption is added to the initial ciphertext and the encrypted web page of the web page to be encrypted is generated, transcoding can be performed on the initial ciphertext once, and the initial ciphertext is converted into a language which cannot be identified by a computer from a coding format.
In order to better understand the web page encryption method provided in this embodiment, the following detailed description is made with reference to fig. 4 to 6:
referring to fig. 4, fig. 4 is a schematic view of a user operation interface of the webpage encryption system based on the asp webpage. When the user needs to perform the webpage encryption operation, any one of the options can be selected according to the option provided on the interface and the encryption requirement of the webpage.
When the user selects one of the items, for example, the pure english web encryption option, the user will enter the operation interface shown in fig. 5. In the interface, a user can add a text file or a webpage address of a webpage needing encryption operation to a place where a webpage to be encrypted is added in fig. 5, then trigger an encryption key on the interface, encrypt the webpage and jump to an encrypted webpage input interface, as shown in fig. 6.
In fig. 6, taking the extracted object to be encrypted as "Wang" as an example, after the encryption is clicked, the system operates according to the determined encryption rule and transcoding criterion, and obtains the encrypted source code, the initial ciphertext, and the final encrypted web page content shown in fig. 6.
The above description is only for illustrative purposes and does not limit the technical aspects of the present invention. In a specific implementation, a person skilled in the art may set the operation interface according to an actual situation, which is not limited herein.
In addition, for convenience of understanding, in the embodiment, the selection of the encryption method and the selection and encryption of the web page are specifically exemplified as follows:
definition 1: let x be a non-negative integer, m be a positive integer, f (x)mThe remainder of x divided by m is called f (x)mIs a remainder function on m.
Specifically, when x is divided exactly by m, the remainder is 0; when x cannot be divided exactly by m, the remainder is some integer between 1 and m-1.
Thus, the following relationship can be obtained: f (x)m∈{0,1,2,Λ,m-1}。
Properties 1: if it is not
Figure BDA0001632307860000101
m∈Z+Then the following function is present:
Figure BDA0001632307860000102
then, g (x)m∈{1,2,L,m}。
And (3) proving that:
1) when x is>0f(x)mNot equal to 0, with g (x)m=f(x)m∈{1,2,L,m-1};
2) When f (| x |)mWhen 0, there are g (x)m=m;
3) When x is<0f(|x|)mNot equal to 0, there is f (| x |)m∈{1,2,L,m-1};
It can thus be derived:
y-f(|x|)me { m-1, m-2, L, 1}, i.e., g (x)m=m-f(|x|)m∈{1,2,L,m-1}。
In view of the above, it can be seen that,
Figure BDA0001632307860000103
m∈Z+having g (x)m∈{1,2,L,m}。
Properties 2:
Figure BDA0001632307860000104
m∈Z+with x ═ g (x)m
And (3) proving that:
1) when x ∈ (1, 2, L, m-1), since x is present>0f(x)mNot equal to 0, so g (x)m=f(x)m=x;
2) When x is m, there is f (| x |)mNot less than 0, so g (x)m=m=x。
In the comprehensive way, the method can be comprehensively known,
Figure BDA0001632307860000111
with x ═ g (x)m
Properties 3: if x is g (y)mThen, then
Figure BDA0001632307860000114
s.t.y=km+x=km+g(y)m
And (3) proving that:
Qx=g(y)m∈{1,2,L,m}∴g(x)mx, thus g (y)m=g(x)mI.e., y is congruent with x. Therefore, due to the congruence relationship,
Figure BDA0001632307860000112
s.t.y=km+x=km+g(y)m
theorem 1: if h: Z → Z is a linear reversible function, then
Figure BDA0001632307860000113
Has g (h)-1(g(h(x))m))m=x。
And (3) proving that:
let y be g (h (x))mThe composition of the composite material is determined by the property 3,
Figure BDA0001632307860000115
so that h (x) km + y km + g (h (x))m
Since h: Z → Z is a linear invertible function, h-1Z → Z is also a linear reversible function. Thus, there are:
h-1(h(x))=h-1(km+g(h(x))m)=mh-1(k)+h-1(g(h(x))m) I.e. by
x=mh-1(k)+h-1(g(h(x))m)。
And Qh-1(k)∈Z∴g(x)m=g(h-1(g(h(x))m))m
Qx∈{1,2,L,m}∴x=g(x)mG (h) of-1(g(h(x))m))m=x。
Based on the derivation of the above formula, it can be found that the main idea of selecting the available encryption method is: the value m in theorem 1 is found first, and taking the object to be encrypted as an english character as an example, the number of all possible different english characters in the english character needs to be found. Then, different English characters are coded, and the codes of all characters in the English character string are encrypted, so that the initial ciphertext obtained after encryption is still in a coding format. And finally, replacing the initial ciphertext by the character corresponding to the code to obtain the encrypted webpage.
Specifically, if the pure english web page is composed of n english characters, that is, the object to be encrypted is x1x2LxnThen, then
Figure BDA0001632307860000116
Has asc (x)i) E {1, 2, L, 128 }. In the encryption process of the object to be encrypted in the English webpage, the system executes the following operations:
step 1: initializing an initial position i of a Chinese character and an English character of a pure English webpage and a set variable of an object to be encrypted, such as miwen ═ 1;
step 2: and (3) taking the ith English character from the object to be encrypted:
if the asp sentence ch is mid (mingwen, i, 1), the ith english character ch is xi
And step 3: obtaining the ASCII code x ═ chr (ch) corresponding to the character ch, wherein x ∈ {1, 2, L, 128 };
and 4, step 4: encrypting x to obtain y ═ h (x) epsilon Z;
and 5: the integer y is subjected to complementation to obtain z as g (y)128=g(h(x))128∈{1,2,L,128};
Step 6: obtaining an english character ch ═ chr (z) ═ chr (g (h (x)) corresponding to the integer z128);
And 7: executing character string connection miwen & ch;
and 8: executing i-i + 1;
and step 9: if i is less than or equal to n, returning to the step 2; otherwise, the web page encryption is finished.
In order to verify whether the above-mentioned encryption method selection is appropriate, in a concrete implementation, an abstract mathematical model can be materialized, so that the rationality of the encryption algorithm selection can be determined.
Specifically, first, a reversible encryption function is defined as a reversible modulo r function h (x) ═ ax + b modr,
h-1(x)=a-1(x-b) modr, where a ∈ {1, 2, L, r-1} and aa-1mod r=1,b∈Z。
Obviously, h (x) and h-1(x) Are all linear functions. For example, when r is 256 and a is 3, a is taken-1171; when a is 5, there is a-1205. If h (x) is (3x +24) mod256, then h-1(x) 171(x-24) mod256, and h (x), h-1(x) E { -255, -254, L, -1, 0, 1, 2, L, 255 }. With the different values of a, b and r, different encryption and decryption functions can be obtained.
It is important to note that to be able to encrypt 128 different characters, r must satisfy r ≧ 128 and r ∈ Z+
It should be understood that the above-described embodiments,
Figure BDA0001632307860000121
x belongs to Z, with x mod m belonging to {1-m, 2-m, L, -1, 0, 1, 2, L, m-1}, and | x | mod m belonging to {0, 1, 2, L, m-1 }. Therefore, in order to make the function f(x)128E {1, 2, L, 128}, the function is not constructed:
Figure BDA0001632307860000122
from property 1, known as f (x)128∈{1,2,L,128}。
Function f (x) for the above construction128
Figure BDA0001632307860000123
Are all f (x)128∈{1,2,L,128}。
From theorem 1, if x is the ASCII code of the english character to be encrypted (object to be encrypted), the ASCII code of the encrypted character (initial ciphertext) is y ═ f (h (x))128. Conversely, if x is the ASCII code of the ciphertext character, the decrypted character is y ═ f (h)-1(x))128
It should be noted that the above is only a specific example of selecting an encryption method and encrypting english characters in a web page, and in a specific implementation, a person skilled in the art may reasonably select the method according to needs, and the method is not limited herein.
In addition, the encryption method and the specific encryption operation for the chinese characters in the web page can be implemented in the manner described above, and are not described herein again.
It is not difficult to find out through the above description that the web page encryption method provided in this embodiment converts an object to be encrypted in a web page to be encrypted into an encrypted source code of a uniform format according to a preset transcoding standard when the web page to be encrypted is encrypted, so that a common computer language can be identified, the technical problem that a web page file developed based on an HTTP protocol cannot be encrypted in the prior art is solved, then the encrypted source code is encrypted according to a determined encryption rule, and a decryption identifier for decryption is added to an initial ciphertext obtained by encryption, so as to generate an encrypted web page of the web page to be encrypted.
Further, as shown in fig. 7, a second embodiment of the web page encryption method according to the present invention is provided based on the first embodiment, in this embodiment, before performing a transcoding operation on the object to be encrypted according to a preset transcoding standard, it is required to first determine whether the object to be encrypted is a single-byte object, and then perform the transcoding operation according to a determination result.
For convenience of illustration, step S30 is subdivided into three sub-steps in this embodiment, which are detailed in fig. 7.
In step S301, it is determined whether the object to be encrypted is a single-byte object.
Correspondingly, if the object to be encrypted is determined to be a single-byte object, executing step S302, and performing a transcoding operation on the object to be encrypted according to a preset transcoding standard; if the object to be encrypted is determined not to be a single-byte object, step S303 is executed, and two transcoding operations are performed on the object to be encrypted according to a preset transcoding standard.
In step S302, a transcoding operation is performed on the object to be encrypted according to a preset transcoding standard.
In step S303, according to a preset transcoding standard, performing transcoding operation on the object to be encrypted twice.
Specifically, since a multi-byte object (not a single-byte object), such as a chinese character, occupies 2 bytes and the corresponding ASCII code exceeds the length recognizable by the computer language, it is necessary to perform two transcoding operations on the multi-byte object.
Specifically, the transcoding operation can be implemented according to the following procedures:
firstly, converting the objects which are not single byte into single byte objects according to a preset transcoding standard.
And then, according to a preset transcoding standard, carrying out transcoding operation on the single-byte object obtained by transcoding so as to obtain an encrypted source code in a unified format.
It is not difficult to find out through the above description that the webpage encryption method provided by this embodiment performs transcoding operation on the object to be encrypted according to the preset transcoding standard to obtain the encrypted source code in the unified format that can be recognized by the existing computer language, by first determining whether the object to be encrypted is a single-byte object, and then performing transcoding operation according to the determination result, it can be ensured that transcoding can be easily achieved whether the webpage to be encrypted is a pure english webpage or a pure chinese webpage or a webpage in which both chinese and english are mixed, thereby ensuring the subsequent encryption process.
In addition, the embodiment of the invention also provides a webpage encryption system. As shown in fig. 8, the webpage encryption system applied to the asp webpage may include: the system comprises an encryption rule determining module 9001, a to-be-encrypted webpage obtaining module 9002, an object to be encrypted extracting module 9003, a transcoding module 9004, an encryption module 9005 and an encrypted webpage generating module 9006.
The encryption rule determining module 9001 is configured to determine an encryption rule of a web page to be encrypted.
And a to-be-encrypted web page acquiring module 9002, configured to acquire the to-be-encrypted web page.
And an object to be encrypted extraction module 9003, configured to extract an object to be encrypted from the web page to be encrypted according to the encryption rule.
And the transcoding module 9004 is configured to perform transcoding operation on the object to be encrypted according to a preset transcoding standard to obtain an encrypted source code in a unified format.
It should be noted that, in order to ensure that the encrypted source codes obtained after transcoding different objects to be encrypted are different from each other, in this embodiment, the encrypted source codes obtained after transcoding by the transcoding module 9004 need to correspond to the objects to be encrypted one to one.
And the encryption module 9005 is used for encrypting the encrypted source code according to the encryption rule to obtain an initial ciphertext.
And an encrypted web page generating module 9006, configured to add a decryption identifier for decryption to the initial ciphertext to generate an encrypted web page of the web page to be encrypted.
It is not difficult to find out through the above description that the web page encryption system provided in this embodiment converts an object to be encrypted in a web page to be encrypted into an encrypted source code of a uniform format according to a preset transcoding standard when the web page to be encrypted is encrypted, so that a common computer language can be identified, the technical problem that a web page file developed based on an HTTP protocol cannot be encrypted in the prior art is solved, then the encrypted source code is encrypted according to a determined encryption rule, and a decryption identifier for decryption is added to an initial ciphertext obtained by encryption, so as to generate an encrypted web page of the web page to be encrypted.
It should be noted that the above-described work flows are only exemplary, and do not limit the scope of the present invention, and in practical applications, a person skilled in the art may select some or all of them to achieve the purpose of the solution of the embodiment according to actual needs, and the present invention is not limited herein.
In addition, the technical details that are not described in detail in this embodiment may refer to the web page encryption method provided in any embodiment of the present invention, and are not described herein again.
In addition, an embodiment of the present invention further provides a computer-readable storage medium, where a web page encryption program is stored on the computer-readable storage medium, and when executed by a processor, the web page encryption program implements the following operations:
determining an encryption rule of a webpage to be encrypted, and acquiring the webpage to be encrypted;
extracting an object to be encrypted from the webpage to be encrypted according to the encryption rule;
according to a preset transcoding standard, carrying out transcoding operation on the object to be encrypted to obtain an encrypted source code with a uniform format; the encryption source codes correspond to the objects to be encrypted one by one;
encrypting the encrypted source code according to the encryption rule to obtain an initial ciphertext;
and adding a decryption identifier for decryption to the initial ciphertext to generate an encrypted webpage of the webpage to be encrypted.
Further, the webpage encryption program when executed by the processor further realizes the following operations:
judging whether the object to be encrypted is a single-byte object;
correspondingly, the transcoding the object to be encrypted according to the preset transcoding standard specifically includes:
if the object to be encrypted is determined to be a single-byte object, carrying out primary transcoding operation on the object to be encrypted according to a preset transcoding standard;
and if the object to be encrypted is determined to be a multi-byte object, carrying out transcoding operation twice on the object to be encrypted according to a preset transcoding standard.
Further, the webpage encryption program when executed by the processor further realizes the following operations:
converting the multi-byte object into a single-byte object according to a preset transcoding standard;
and carrying out transcoding operation on the single-byte object according to a preset transcoding standard.
Further, the encrypted source code is a Unicode character, and the following operations are also implemented when the web page encryption program is executed by the processor:
correspondingly, the transcoding the object to be encrypted according to the preset transcoding standard to obtain an encrypted source code in a unified format specifically includes:
according to the American information exchange standard code, carrying out transcoding operation on the object to be encrypted to obtain Unicode characters in a unified format;
and taking the Unicode character as an encryption source code of the object to be encrypted.
Further, the webpage encryption program when executed by the processor further realizes the following operations:
determining a decryption identifier of the initial ciphertext corresponding to the object to be encrypted according to the attribute of the object to be encrypted;
and adding the decryption identification to a preset position in the initial ciphertext according to a preset adding rule.
Referring to fig. 9, fig. 9 is a schematic structural diagram of a terminal device in a hardware operating environment for executing a web page decryption program according to an embodiment of the present invention.
As shown in fig. 9, the terminal device may include: a processor 9001, such as a Central Processing Unit (CPU), a communication bus 9002, a user interface 9003, a network interface 9004, and a memory 9005. Among other things, a communication bus 9002 is used to enable connected communication between these components. The user interface 9003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), a Mouse (Mouse), and optionally, the user interface 1003 may also include a standard wired interface, a wireless interface. Network interface 9004 optionally may include a standard wired interface, a WIreless interface (e.g., a WIreless-FIdelity (WI-FI) interface). The memory 9005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a memory device separate from the processor 9001.
Those skilled in the art will appreciate that the configuration shown in fig. 9 does not constitute a limitation of the terminal device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
Accordingly, as shown in fig. 9, a memory 9005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a web page decryption program.
In the terminal device shown in fig. 9, a network interface 9004 is mainly used to establish a communication connection of the terminal device with a network; the user interface 9003 is mainly used to receive an input instruction from a user; the terminal device calls the web page decryption program stored in the memory 9005 through the processor 9001, and performs the following operations:
acquiring a webpage to be decrypted, and extracting a decryption identifier from the webpage to be decrypted;
determining a decryption rule of the webpage to be decrypted according to the decryption identification;
decrypting the webpage to be decrypted according to the decryption rule to obtain an initial plaintext;
and carrying out transcoding operation on the initial plaintext according to a preset transcoding standard to obtain a decrypted webpage of the webpage to be decrypted.
In addition, it should be noted that, in a specific implementation, the web pages generally used by us can be roughly divided into the following three types: pure English web pages, pure Chinese web pages, and Chinese and English mixed web pages.
Therefore, the decryption processing of the web page can be roughly divided into decryption of a pure English web page, decryption of a pure Chinese web page and decryption of a Chinese and English mixed web page.
Regarding to the specific process division of the web page decryption system based on the dynamic Server Pages (asp) provided in the embodiment of the present invention, the specific process division may refer to a schematic tree structure diagram of the web page decryption system running on the terminal device shown in fig. 10, which is not described herein again.
In addition, those skilled in the art can understand that the above description is only a list of several common web page forms, and the technical solution of the present invention is not limited at all, and in practical applications, the division of the web pages may be more detailed, which is not limited in this embodiment.
In addition, it should be noted that, in a specific implementation, the same terminal device may be used to execute both the webpage decryption program according to the embodiment of the present invention and the webpage decryption program according to the embodiment of the present invention.
According to the scheme, when the encrypted webpage is decrypted, the decryption identification carried in the encrypted webpage is obtained, so that the decryption rule corresponding to the encryption rule can be quickly determined, then the webpage to be decrypted is decrypted according to the determined decryption rule to obtain the initial plaintext, then the initial plaintext obtained by decryption is transcoded according to the transcoding standard corresponding to the transcoding standard according to the encryption operation, and then the decryption of the webpage to be decrypted can be quickly completed. Because the decryption mode is simple, the method does not occupy excessive network bandwidth and system resources.
Based on the hardware structure, the embodiment of the webpage decryption method is provided.
Referring to fig. 11, fig. 11 is a flowchart illustrating a first embodiment of a web page decryption method according to the present invention.
In a first embodiment, the web page decryption method includes the steps of:
s10: and acquiring a webpage to be decrypted, and extracting a decryption identifier from the webpage to be decrypted.
S20: and determining a decryption rule of the webpage to be decrypted according to the decryption identification.
S30: and decrypting the webpage to be decrypted according to the decryption rule to obtain an initial plaintext.
S40: and carrying out transcoding operation on the initial plaintext according to a preset transcoding standard to obtain a decrypted webpage of the webpage to be decrypted.
It should be understood that the webpage decryption method provided in this embodiment is specifically an operation corresponding to the webpage encryption method related in any embodiment of the present invention.
Therefore, the web page to be decrypted in this embodiment substantially refers to an encrypted web page obtained by encrypting according to the web page encryption method.
Meanwhile, in order to ensure that the decryption operation can be smoothly carried out, in the decryption process, the decryption rule, the transcoding standard and the like according to the method correspond to the encryption rule and the transcoding standard adopted in the webpage encryption method.
Under the condition that the encryption rule and the transcoding standard are consistent, when the webpage to be decrypted is decrypted, the corresponding decrypted webpage can be obtained only by performing inverse processing according to the encryption operation.
In a specific implementation manner, a person skilled in the art may set the inverse operation of the decryption process according to the selected different encryption algorithms, which is not described herein again.
As can be easily found from the above description, in the webpage decryption method provided in this embodiment, when the encrypted webpage is decrypted, the decryption identifier carried in the encrypted webpage is obtained, so that the decryption rule corresponding to the encryption rule can be quickly determined, then the webpage to be decrypted is decrypted according to the determined decryption rule to obtain the initial plaintext, and then the initial plaintext obtained by decryption is transcoded according to the transcoding standard corresponding to the transcoding standard according to which the encryption operation is performed, so that the decryption of the webpage to be decrypted can be quickly completed. Because the decryption mode is simple, the method does not occupy excessive network bandwidth and system resources.
In addition, the embodiment of the invention also provides a webpage decryption system. As shown in fig. 12, the webpage decryption system is applied to an asp webpage and may include: a to-be-decrypted webpage obtaining module 12001, a decryption identifier extracting module 12002, a decryption rule determining module 12003, a decryption module 12004, and a decrypted webpage generating module 12005.
The to-be-decrypted webpage obtaining module 12001 is configured to obtain a to-be-decrypted webpage. And the decryption identifier extracting module 12002 is configured to extract a decryption identifier from the webpage to be decrypted. A decryption rule determining module 12003, configured to determine, according to the decryption identifier, a decryption rule of the web page to be decrypted. And the decryption module 12004 is configured to decrypt the web page to be decrypted according to the decryption rule to obtain an initial plaintext. And the decrypted webpage generating module 12005 is configured to perform transcoding operation on the initial plaintext according to a preset transcoding standard to obtain a decrypted webpage of the webpage to be decrypted.
As can be easily found from the above description, the webpage decryption system provided in this embodiment can quickly determine the decryption rule corresponding to the encryption rule by obtaining the decryption identifier carried in the encrypted webpage when decrypting the encrypted webpage, then decrypt the webpage to be decrypted according to the determined decryption rule to obtain the initial plaintext, and then transcode the initial plaintext obtained by decryption according to the transcoding standard corresponding to the transcoding standard according to the encryption operation, so as to quickly complete decryption of the webpage to be decrypted. Because the decryption mode is simple, the method does not occupy excessive network bandwidth and system resources.
It should be noted that the above-described work flows are only exemplary, and do not limit the scope of the present invention, and in practical applications, a person skilled in the art may select some or all of them to achieve the purpose of the solution of the embodiment according to actual needs, and the present invention is not limited herein.
In addition, the technical details that are not described in detail in this embodiment may refer to the web page encryption and decryption method provided in any embodiment of the present invention, and are not described herein again.
In addition, an embodiment of the present invention further provides a computer-readable storage medium, where a webpage decryption program is stored on the computer-readable storage medium, and when executed by a processor, the webpage decryption program implements the following operations:
acquiring a webpage to be decrypted, and extracting a decryption identifier from the webpage to be decrypted;
determining a decryption rule of the webpage to be decrypted according to the decryption identification;
decrypting the webpage to be decrypted according to the decryption rule to obtain an initial plaintext;
and carrying out transcoding operation on the initial plaintext according to a preset transcoding standard to obtain a decrypted webpage of the webpage to be decrypted.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (9)

1. A method for encrypting a web page, the method comprising the steps of:
determining an encryption rule of a webpage to be encrypted, and acquiring the webpage to be encrypted;
extracting an object to be encrypted from the webpage to be encrypted according to the encryption rule, wherein the object to be encrypted is a Chinese character and/or an English character based on an ASP webpage;
adding corresponding encryption marks to the object to be encrypted, wherein the encryption marks comprise marks corresponding to Chinese characters and marks corresponding to English characters, and the marks corresponding to the Chinese characters are different from the marks corresponding to the English characters;
judging whether the object to be encrypted is a single-byte object;
if the object to be encrypted is determined to be a single-byte object, carrying out primary transcoding operation on the object to be encrypted according to a preset transcoding standard;
if the object to be encrypted is determined not to be a single-byte object, carrying out transcoding operation on the object to be encrypted twice according to a preset transcoding standard;
obtaining an encrypted source code with a uniform format; the encryption source codes correspond to the objects to be encrypted one by one;
encrypting the encrypted source code by a preset encryption function formula to obtain an initial ciphertext;
the preset encryption function formula is as follows:
Figure FDA0003523681770000011
wherein x is the encrypted source code, and the initial ciphertext is y ═ f (h (x))128H (x) ═ ax + b) modr where r is modulo, r ≧ 128 and r ∈ Z+,Z+Is a positive integer, a ∈ {1, 2., r-1}, and aa-1mod r is 1, b belongs to Z, and Z is an integer;
and adding a decryption identifier for decryption to the initial ciphertext to generate an encrypted webpage of the webpage to be encrypted.
2. The method of claim 1, wherein the performing two transcoding operations on the object to be encrypted according to a preset transcoding standard specifically comprises:
converting the object which is not a single byte into a single byte object according to a preset transcoding standard;
and carrying out transcoding operation on the single-byte object according to a preset transcoding standard.
3. The method of any of claims 1 to 2, wherein the encrypted source code is a Unicode character;
correspondingly, the transcoding the object to be encrypted according to the preset transcoding standard to obtain an encrypted source code in a unified format specifically includes:
according to the American information exchange standard code, carrying out transcoding operation on the object to be encrypted to obtain Unicode characters in a unified format;
and taking the Unicode character as an encryption source code of the object to be encrypted.
4. The method according to any one of claims 1 to 2, wherein the adding of the decryption identifier for decryption to the initial ciphertext specifically includes:
determining a decryption identifier of the initial ciphertext corresponding to the object to be encrypted according to the attribute of the object to be encrypted;
and adding the decryption identification to a preset position in the initial ciphertext according to a preset adding rule.
5. A terminal device, characterized in that the terminal device comprises: a memory, a processor, and a web page encryption program stored on the memory and executable on the processor, the web page encryption program configured to implement the steps of the web page encryption method of any one of claims 1 to 4.
6. A computer-readable storage medium, having stored thereon a web page encryption program, which when executed by a processor, implements the steps of the web page encryption method according to any one of claims 1 to 4.
7. A method for decrypting web pages, applied to the method for encrypting web pages according to any one of claims 1 to 4, characterized in that it comprises the following steps:
acquiring a webpage to be decrypted, and extracting a decryption identifier from the webpage to be decrypted;
determining a decryption rule of the webpage to be decrypted according to the decryption identification;
decrypting the webpage to be decrypted according to the decryption rule to obtain an initial plaintext;
and carrying out transcoding operation on the initial plaintext according to a preset transcoding standard to obtain a decrypted webpage of the webpage to be decrypted.
8. A terminal device, characterized in that the terminal device comprises: a memory, a processor, and a web page decryption program stored on the memory and executable on the processor, the web page decryption program configured to implement the steps of the web page decryption method of claim 7.
9. A computer-readable storage medium, in which a web page decryption program is stored, and the web page decryption program, when executed by a processor, implements the steps of the web page decryption method according to claim 7.
CN201810351330.3A 2018-04-18 2018-04-18 Webpage encryption and decryption methods, terminal equipment and computer readable storage medium Expired - Fee Related CN108536860B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810351330.3A CN108536860B (en) 2018-04-18 2018-04-18 Webpage encryption and decryption methods, terminal equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810351330.3A CN108536860B (en) 2018-04-18 2018-04-18 Webpage encryption and decryption methods, terminal equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN108536860A CN108536860A (en) 2018-09-14
CN108536860B true CN108536860B (en) 2022-04-15

Family

ID=63477687

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810351330.3A Expired - Fee Related CN108536860B (en) 2018-04-18 2018-04-18 Webpage encryption and decryption methods, terminal equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN108536860B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109977685A (en) * 2019-03-21 2019-07-05 古联(北京)数字传媒科技有限公司 Web page contents encryption method, encryption device and system
CN112039662A (en) * 2020-08-26 2020-12-04 山谷网安科技股份有限公司 Symmetric encryption transmission method for sensitive data in Web application webpage of secret-related unit

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101635622A (en) * 2008-07-24 2010-01-27 阿里巴巴集团控股有限公司 Method, system and equipment for encrypting and decrypting web page
CN102685108A (en) * 2012-03-31 2012-09-19 奇智软件(北京)有限公司 Method and device for adding and deciphering webpage enciphered data
CN107276746A (en) * 2017-07-19 2017-10-20 河南神州数码索贝科技有限公司 A kind of Chinese character encipher-decipher method

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2374258B (en) * 2001-04-05 2004-03-31 Ibm Method and apparatus for encryption of data
CN101997680B (en) * 2009-08-10 2012-12-26 北京多思科技发展有限公司 Security chip directly supporting certificate management
JP2013205437A (en) * 2012-03-27 2013-10-07 Hitachi Ltd Method and apparatus for calculating nonlinear function s-box
CN103377326B (en) * 2012-04-13 2017-07-11 腾讯科技(北京)有限公司 A kind of dynamic web page program code obscures encryption method and device
US10719828B2 (en) * 2014-02-11 2020-07-21 Square, Inc. Homomorphic passcode encryption
CN106027228B (en) * 2016-07-20 2020-03-31 努比亚技术有限公司 Encryption and decryption method and encryption and decryption system for webpage identifier
CN107770171B (en) * 2017-10-18 2020-01-24 厦门集微科技有限公司 Verification method and system for anti-crawler of server

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101635622A (en) * 2008-07-24 2010-01-27 阿里巴巴集团控股有限公司 Method, system and equipment for encrypting and decrypting web page
CN102685108A (en) * 2012-03-31 2012-09-19 奇智软件(北京)有限公司 Method and device for adding and deciphering webpage enciphered data
CN107276746A (en) * 2017-07-19 2017-10-20 河南神州数码索贝科技有限公司 A kind of Chinese character encipher-decipher method

Also Published As

Publication number Publication date
CN108536860A (en) 2018-09-14

Similar Documents

Publication Publication Date Title
US9785787B2 (en) Encrypting images on a client device for secure transmission and storage on a storage device
US10506428B2 (en) Wireless network connection method, apparatus, and system
CN110224999B (en) Information interaction method and device and storage medium
CN107786331B (en) Data processing method, device, system and computer readable storage medium
CN106599723B (en) File encryption method and device and file decryption method and device
US9608822B2 (en) Method for generating an HTML document that contains encrypted files and the code necessary for decrypting them when a valid passphrase is provided
CN109347620B (en) Sample alignment method, system and computer readable storage medium
CN106972927A (en) A kind of encryption method and system for different safety class
US20120284528A1 (en) Multi-purpose multi-dimensional, variable and multi-key e-mail and data encryption method
CN108536860B (en) Webpage encryption and decryption methods, terminal equipment and computer readable storage medium
CN106921493A (en) A kind of encryption method and system
CN106789058B (en) Proxy re-encryption algorithm description and analysis method
CN104463019B (en) The encipher-decipher method of electronic document
CN106911712A (en) A kind of encryption method and system for being applied to distributed system
CN110704854A (en) Stream type encryption method aiming at text data reserved format
CN111191255A (en) Information encryption processing method, server, terminal, device and storage medium
CN113836498A (en) Webpage source code obfuscation method and device, electronic device and storage medium
WO2016179889A1 (en) Fingerprint search method and apparatus, and terminal
CN112860933B (en) Ciphertext image retrieval method, device, terminal equipment and storage medium
CN107644168B (en) Information extraction method, terminal and computer readable storage medium
CN108650264B (en) Data transmission method, device, equipment and computer readable storage medium
CN109343971B (en) Browser data transmission method and device based on cache technology
KR101558726B1 (en) User security authentication system in internet and method thereof
CN107729345B (en) Website data processing method and device, website data processing platform and storage medium
Balajee UNICODE and Colors Integration tool for Encryption and Decryption

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
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20220415