CN112199622A - Page jump method, system and storage medium - Google Patents

Page jump method, system and storage medium Download PDF

Info

Publication number
CN112199622A
CN112199622A CN202011050049.XA CN202011050049A CN112199622A CN 112199622 A CN112199622 A CN 112199622A CN 202011050049 A CN202011050049 A CN 202011050049A CN 112199622 A CN112199622 A CN 112199622A
Authority
CN
China
Prior art keywords
page
jump
parameter
parameter data
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011050049.XA
Other languages
Chinese (zh)
Inventor
林泽全
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management 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 Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN202011050049.XA priority Critical patent/CN112199622A/en
Publication of CN112199622A publication Critical patent/CN112199622A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9566URL specific, e.g. using aliases, detecting broken or misspelled links

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Storage Device Security (AREA)

Abstract

A page jump method, system and storage medium. The invention relates to big data processing technology, and discloses a page jump method, which adopts a POST mode to replace a GET mode to carry out data transmission between cross-domain pages; the basis of adopting the POST mode is that a server is required to be used as a transfer medium, a set of consistent data structure formats are agreed between a client and the server, and encryption and decryption safety measures are carried out so as to realize cross-domain skip of pages. The invention also relates to a block chain technology, data are stored in the block chain, and the invention solves the limitation of different browsers on the URL parameter transmission length aiming at the parameter transmission process among pages with more data to be transmitted; the hidden danger of sensitive parameter information leakage brought by plaintext transmission is solved by adopting RSA non-stacking encryption.

Description

Page jump method, system and storage medium
Technical Field
The present invention relates to big data processing, and in particular, to a page jump method, system, and storage medium.
Background
Under the Hybrid APP framework, the page cross-domain jump technology is widely applied. The page jump comprises the scenes that a local page jumps to an online page, the online page jumps to the local page, and an A domain name page jumps to a B domain name page.
In a page cross-domain jump scenario, parameter sharing between a current page and a jump page is required.
In the prior art, a parameter transmission mode between cross-domain pages is a get mode, the get mode is to splice parameters of key value pairs behind a URL (uniform resource locator), although the method has the characteristics of simple technology, no need of cooperation of a third party and realization of cross-domain; but has the following disadvantages:
1) when the parameters needing to be transmitted are more, because the limitation of different browsers on the length of the URL is different, the overlong URL has the risk of being cut off;
2) when the parameters needing to be transmitted have sensitive information, the potential safety hazard that the sensitive information is leaked exists.
In the prior art, parameter transmission is carried out in a browser caching mode, the parameter transmission can be realized without the cooperation of a third party, and the transmittable parameters are not limited, but the defects that cross-domain is not supported and sensitive data are easy to crawl by malicious browser plug-ins exist.
Therefore, a method for transferring a page jump parameter that can cross domains and transfer a large number of parameters is needed. Provided is a page jump method.
Disclosure of Invention
The invention provides a page jump method, a page jump system and a computer readable storage medium, which mainly solve the problem that more parameters cannot be transmitted in cross-domain page jump.
In order to achieve the above object, the present invention provides a page jump method, applied to an electronic device, the method comprising:
the current page sends a request for obtaining an RSA public key to a server side; the server side issues a public key and a private key corresponding to the request according to the request and a preset rule;
the current page sends the skip parameter data to the server side through a POST mode; the jump parameter comprises an encrypted parameter string and a unique page identifier of an encrypted current page; the method for acquiring the encrypted parameter string comprises the following steps: performing key-value mode pairing on the page parameter information to be transmitted by the current page; carrying out asymmetric encryption on the paired page parameter information by using the public key, and obtaining an encryption parameter string of the page parameter information to be transmitted;
the server receives the jump parameter data and instructs the current page to jump to a jump page according to the jump parameter data;
skipping a page to perform an initialization process, and sending a decryption request to the server through the unique page identifier;
and the server decrypts the encrypted parameter string by using the private key, and returns the decrypted parameter data to the jump page to finish parameter transmission and page jump.
Further, preferably, after the current page sends the jump parameter data to the server in a POST mode, the server caches the jump parameter data sent on the current page into the redis, completes the page jump process through the validity period judging program, and temporarily clears the jump parameter data cache exceeding the validity period in the redis.
Further, preferably, the method for completing the page jump process by the validity period determination program includes:
the server side carries out pairing on the encrypted parameter string and the unique page identification sent by the current page, caches the paired jump parameter data into a redis, and sets the validity period of the paired jump parameter data;
the server receives the jump parameter data and instructs the current page to jump to a jump page according to the jump parameter data;
skipping a page to perform an initialization process, and sending a decryption request to a server through the unique page identifier;
the server side inquires whether a group corresponding to the unique page identifier exists in the redis or not and caches the subsequent jump parameter data;
if the cache corresponding to the unique page identifier exists in the redis and the cache is within the validity period, the server side acquires the cache, decrypts the encrypted parameter string according to the private key, returns the decrypted data to the jump page, and simultaneously clears the cache corresponding to the unique page identifier in the redis;
if the cache corresponding to the unique page identifier does not exist in the redis, returning an abnormal signal to the jump page, sending a jump abnormal prompt after the jump page receives the abnormal signal, and automatically jumping back to the current page;
and when the paired jump parameter data reaches the validity period, clearing the paired jump parameter data of the cache of the paired jump parameter data.
Further, preferably, when the current page jumps to the jump page, the timeout timer is used to set the retention time of the current page.
Further, preferably, the process of initializing the jump page requests the server to obtain an initialization configuration item for the jump page; the initialization configuration items are stored in selectConditions.
In order to achieve the above object, the present invention further provides a page jump system, which includes an RSA encryption unit, a jump parameter data uploading unit, and a jump execution unit; wherein the content of the first and second substances,
the RSA encryption unit is used for sending a request for obtaining an RSA public key to the server side by the current page; the server side issues a public key and a private key corresponding to the request according to the request and a preset rule;
the skip parameter data uploading unit is used for uploading skip parameter data to the server side by the current page in a POST mode; the jump parameter comprises an encrypted parameter string and a unique page identifier of an encrypted current page; the method for acquiring the encrypted parameter string comprises the following steps: performing key-value mode pairing on the page parameter information to be transmitted by the current page; carrying out asymmetric encryption on the paired page parameter information by using the public key, and obtaining an encryption parameter string of the page parameter information to be transmitted;
the jump execution unit is used for receiving the jump parameter data by the server, instructing the current page to jump to a jump page according to the jump parameter data, carrying out an initialization process on the jump page, and sending a decryption request to the server through the unique page identifier; and the server decrypts the encrypted parameter string by using the private key, and returns the decrypted parameter data to the jump page to finish parameter transmission and page jump.
Further, it is preferable that the water-soluble polymer,
the skip execution unit comprises a skip module, a decryption module and a skip judgment module;
the skip module is used for pairing the encrypted parameter string and the unique page identifier sent by the current page by the server, caching the paired skip parameter data into a redis, and setting the validity period of the paired skip parameter data; the server receives the jump parameter data and instructs the current page to jump to a jump page according to the jump parameter data;
the decryption module is used for skipping a page to perform an initialization process and sending a decryption request to the server side through the unique page identifier;
the jump judging module is used for the server side to inquire whether the group corresponding to the unique page identifier exists in the redis and then the cache of the jump parameter data exists; if the cache corresponding to the unique page identifier exists in the redis and the cache is within the validity period, the server side acquires the cache, decrypts the encrypted parameter string according to the private key, returns the decrypted data to the jump page, and simultaneously clears the cache corresponding to the unique page identifier in the redis; if the cache corresponding to the unique page identifier does not exist in the redis, returning an abnormal signal to the jump page, sending a jump abnormal prompt after the jump page receives the abnormal signal, and automatically jumping back to the current page; and when the paired jump parameter data reaches the validity period, clearing the cache of the paired jump parameter data.
Further, preferably, the skip module further includes a skip stay sub-module; and the jump stopping submodule is used for setting the stopping specified time of the current page through a timeout timer when the current page jumps to the jump page.
To achieve the above object, the present invention also provides an electronic device, including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores a program executable by the at least one processor, the program being executable by the at least one processor to enable the at least one processor to perform the page jump method as described above.
In addition, to achieve the above object, the present invention further provides a computer-readable storage medium storing a computer program, wherein the computer program is executed by a processor to implement the steps of the page jump method.
The page skipping method, the system, the electronic device and the computer readable storage medium provided by the invention send a request for obtaining an RSA public key to a server side through a current page; the server side issues a public key and a private key corresponding to the request according to the request and a preset rule; the current page sends the skip parameter data to the server side through a POST mode; the server receives the jump parameter data and instructs the current page to jump towards the jump page according to the jump parameter data; skipping a page to perform an initialization process, and sending a decryption request to a server through the unique page identifier; and the server decrypts the encrypted parameter string by using the private key, and returns the decrypted parameter data to the jump page to finish parameter transmission and page jump. The beneficial effects are as follows:
1) the data transmission between the static pages is realized by adopting a POST mode and taking the server as a skip medium and encrypting the transmission data;
2) the method solves the problem that different browsers limit the transmission length of the URL parameters in the parameter transmission process among the pages with more data to be transmitted;
3) the hidden danger of sensitive parameter information leakage brought by plaintext transmission is solved by adopting RSA non-stacking encryption;
4) the method has wide application field, can be applied to cross-domain pages and can also be applied among homologous pages.
Drawings
FIG. 1 is a flowchart of a preferred embodiment of a page jump method of the present invention;
FIG. 2 is a flowchart of a preferred embodiment of a method for completing a page jump process by a validity period determination procedure according to the present invention;
FIG. 3 is a schematic structural diagram of a page jump system according to a preferred embodiment of the present invention;
FIG. 4 is a schematic structural diagram of an electronic device according to a preferred embodiment of the 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.
The invention provides a page jump method, which adopts a POST mode to replace a GET mode to carry out data transmission between cross-domain pages; the basis of adopting the POST mode is that the server is required to be used as a transfer medium, the client and the server agree on a set of consistent data structure format, and encryption and decryption safety measures are carried out.
The invention is applied to a hybrid APP framework, and hybrid APP is an APP development mode which is widely popular at present. In the Hybrid mode, the bottom-layer functional API is provided by a native container in a certain mode, then the business logic is completed by an H5 page, and finally the native container loads an H5 page to complete the whole App. There are various types of api's in the Hybrid framework, and all business related logic is placed in the H5 page, native only as containers. The basic principle of Hybrid is that through JSbridge, H5 page can call Native api, Native can call H5 page method or notify H5 page callback. And the essence of page jump is the change in browser object window location (url).
FIG. 1 shows the flow of the preferred embodiment of the page jump method of the present invention. Referring to fig. 1, the method may be performed by an apparatus, which may be implemented by software and/or hardware.
It should be noted that, in the present invention, a page jump method, specifically, the page jump method includes steps S110 to S150.
S110, sending a RSA public key acquisition request to a server side by a current page; and the server side issues a public key and a private key corresponding to the request according to the request and a preset rule.
In the specific implementation process, firstly, a user clicks a jump menu of a current page, and the user clicks to trigger a jump event. That is, if a jump event occurs, the server is triggered to perform an encryption process. The encryption process comprises the steps of obtaining an RSA public key and issuing a corresponding public key and a corresponding private key according to a preset rule.
In other words, the encryption adopts the RASA asymmetric algorithm, RSA is the most widely used asymmetric encryption algorithm at present, and the design concept is as follows: the two large prime numbers are multiplied, the product serves as a public key, the prime numbers factorized by the product are combined into a private key, a decryptor owns the private key, and the public key generated by the private key calculation is issued to an encryptor. The encryption uses the public key to encrypt and send the ciphertext to the decrypter, which decrypts the ciphertext into plaintext using the private key.
The algorithm implementation process is as follows:
1. randomly selecting two large prime numbers p and q, wherein p is not equal to q, and calculating N ═ pq;
2. according to the Euler function, the integer number not greater than N and coprime to N is (p-1) (q-1).
3. An integer e is chosen to be coprime with (p-1) (q-1) and e is less than (p-1) (q-1).
4. D is calculated using the following equation: d × e ≡ 1(mod (p-1) (q-1)).
5. Records of p and q are destroyed.
Wherein (N, e) is a public key and (N, d) is a private key. And (4) transmitting an http login request by using ajax used by the project, and encrypting by adopting jseny to protect the security of a login account of the user.
The unique page identification of the current page comprises a page URL, an application form number, user information and other unique page identifications. The unique page identifier is not fixed and is adjusted at any time according to the condition of the actual page. In the specific implementation process, the method is realized by a unique application form number from +, and the visible specific service scene is adjusted at any time, mainly for distinguishing the user from which scene to use, so as to avoid confusion.
It should be noted that the preset rule may be defined according to the requirements of the service scenario, and the simplest rule is, for example: the server configures 10 sets of encryption and decryption public and private keys, and allocates a first set when a user A enters and a second set when a user B enters according to a configuration rule, and so on.
This preset rule can be set according to the scene complexity requirement at that time.
S120, the current page uploads the skip parameter data to a server side in a POST mode; the jump parameter comprises an encrypted parameter string and a unique page identifier of an encrypted current page; the method for acquiring the encrypted parameter string comprises the following steps: performing key-value mode pairing on the page parameter information to be transmitted by the current page; and carrying out asymmetric encryption on the paired page parameter information by using the public key, and obtaining an encryption parameter string of the page parameter information to be transmitted.
The KEY is paired in a value mode, that is, the parameter generates a character string according to KEY value and KEY value (space is removed by url code value, and ' pkey ' KEY ' is spliced after $ str character string, and KEY is an agreed KEY), and special characters are avoided by url code encoding.
The current page uploads the encryption parameter string and the unique page identifier to a server side in a POST mode;
wherein, it should be noted that the POST mode is compared with the GET mode:
most of the pages in the GET mode have less data transmission quantity and are not sensitive data. The GET mode can only submit 1024 bytes at most, the POST mode has no limitation, and a larger amount of data can be transmitted, wherein the maximum data in the IIS4 is 80KB, and the maximum data in the IIS5 is 100 KB.
The data of the GET request is appended to the URL (i.e., the data is placed in the HTTP protocol header) to segment the URL and transmit the data, with parameters connected; and the POST request interaction is troublesome, so the parameters are generally carried behind the URL and transmitted by adopting a GET mode. However, for a page jump process with a large amount of transmitted information of sensitive information, a safer POST mode needs to be adopted. If a POST mode is adopted, a server is needed to be used as a medium, and meanwhile, the client and the server agree on a set of data structure formats and encryption and decryption safety measures are provided.
S130, the server receives the jump parameter data and instructs a current page to jump to a jump page according to the jump parameter data;
s140, carrying out an initialization process on the jump page, and sending a decryption request to the server through the unique page identifier;
s150, the server decrypts the encrypted parameter string by using the private key, and returns the decrypted parameter data to the jump page to finish parameter transmission and page jump.
Embodiments of this technical solution are applied in specific scenarios.
For example, when the insurance preparation page (page A) jumps to the insurance, the insurance application page (page B) jumps, and a large number of insurance application related parameters need to be brought to the insurance. According to the application form number, the user information and other parameters are assembled according to key value on an application preparation page, the encrypted parameters are sent to a server side in a post request mode by taking the application form number as a unique mark, and after the server side returns success, the application preparation page jumps to an application page of a production line along with the application form number.
When the insurance application page is initialized, the application sheet number of the url post-strip is obtained, a server-side interface is requested, the server-side returns cached parameter information through the unique mark of the application sheet number, and after the insurance application page passes the decryption parameter, the original business logic performs page rendering.
Furthermore, in order to avoid the situation that the server side has a large amount of data, after the current page sends the jump parameter data to the server side through a POST mode, the server side caches the jump parameter data sent on the current page into redis, and the page jump process is completed through a validity period judging program.
That is, the encryption parameter string and the unique page identification in step S120 are cached in the redis, and the validity period is set. It should be noted that these data are not used after jumping to page B, and a large amount of server resources are consumed. The valid period can be set according to actual conditions, and the data is cleared when the valid period is exceeded. The expiration date may be 1 minute.
FIG. 2 shows the flow of the preferred embodiment of the method for completing the page jump process by the validity period determination procedure. Referring to fig. 2, the method for completing the page jump process through the validity period determination program includes:
s210, the server side carries out pairing on the encrypted parameter string and the unique page identification sent on the current page, caches the paired jump parameter data into a redis, and sets the validity period of the paired jump parameter data.
S220, the server receives the jump parameter data and instructs the current page to jump to the jump page according to the jump parameter data.
Specifically, the encryption parameter string and the corresponding unique page identifier form a one-to-one correspondence (encryption parameter string: unique page identifier); and after the information is corresponded, caching the information into a redis as a group of data.
It should be noted that, under the hybrid app framework, redis is used as a cache, and a cache is added to the service logic, so that the access pressure of the database is reduced, and the throughput of the system can be improved to a certain extent.
The specific logic process is as follows: 1. hitting in the cache according to the commodity id; 2. and checking the cache and directly returning. 3. In contrast, query the database 4, place the data in the cache 5, return the data. And caching the hot spot data in the cache and providing the utilization rate of the cache. The validity period of the cache needs to be set. Generally the time of day, can jump according to the actual situation.
And caching in the redis, and storing the redis in a two-dimensional table form. The two-dimensional table comprises a table name, a primary key and a field. Three layers use ": the partition is a key, value is the content in the field.
And S230, carrying out an initialization process on the jump page, and sending a decryption request to the server through the unique page identifier.
Initializing configuration items in an APP (application), wherein in the process of page initialization, the content of the configuration items is preferentially loaded if some configuration items need to be immediately displayed to a user; otherwise, it can be loaded again when in use. If the frequency of use of the configuration item is high, or the configuration item itself has more configuration contents (consumes network resources, etc.), it may be considered to use a local cache to temporarily store the configuration item.
The configuration items are initialized in the VUE, corresponding methods can be written in the methods, a server is requested to acquire the content of the configuration items, and the method is called when the page is initialized.
In the prior art, the initialization configuration items are uniformly stored in the selectConditions, so that the configuration items are transferred for later use or during page jump. For example, when a new or modified form page jumps, the configuration items are transmitted, and the service requests are reduced.
S240, the server side inquires whether cache of the paired backward jump parameter data corresponding to the unique page identifier exists in the redis;
if the cache corresponding to the unique page identifier exists in the redis and the cache is within the validity period, the server side acquires the cache, decrypts the encrypted parameter string according to the private key, returns the decrypted data to the jump page, and simultaneously clears the cache corresponding to the unique page identifier in the redis;
if the cache corresponding to the unique page identifier does not exist in the redis, returning an abnormal signal to the jump page, sending a jump abnormal prompt after the jump page receives the abnormal signal, and automatically jumping back to the current page;
and when the paired jump parameter data reaches the validity period, clearing the cache of the paired jump parameter data.
It should be noted that, the current page is rendered according to the original service logic and the obtained parameters.
In a specific embodiment, the page stays may be set for a specified time before jumping. It should be noted that setting the page dwell specified time and then jumping is implemented by the function plus timeout timer.
In summary, the page jump method of the present invention performs data transmission between cross-domain pages by adopting a POST mode instead of a GET mode; the basis of adopting the POST mode is that the server is required to be used as a transfer medium, the client and the server agree on a set of consistent data structure format, and encryption and decryption safety measures are carried out.
FIG. 3 is a block diagram of a preferred embodiment of the page jump system of the present invention; as shown with reference to figure 3 of the drawings,
the page jump system 300 comprises an RSA encryption unit 310, a jump parameter data uploading unit 320 and a jump execution unit 330; wherein the content of the first and second substances,
the RSA encryption unit 310 is configured to send an RSA public key acquisition request to the server on the current page; the server side issues a public key and a private key corresponding to the request according to the request and a preset rule;
a skip parameter data uploading unit 320, configured to upload skip parameter data to the server by using a POST on the current page; the jump parameter comprises an encrypted parameter string and a unique page identifier of an encrypted current page; the method for acquiring the encrypted parameter string comprises the following steps: performing key-value mode pairing on the page parameter information to be transmitted by the current page; carrying out asymmetric encryption on the paired page parameter information by using the public key, and obtaining an encryption parameter string of the page parameter information to be transmitted;
a skip execution unit 330, configured to receive the skip parameter data by the server, instruct a current page to skip to a skip page according to the skip parameter data, perform an initialization process on the skip page, and send a decryption request to the server through the unique page identifier; and the server decrypts the encrypted parameter string by using the private key, and returns the decrypted parameter data to the jump page to finish parameter transmission and page jump.
In a specific embodiment, the jump execution unit 330 includes a jump module 331, a decryption module 332, and a jump decision module 333;
the skip module 331 is configured to group the encrypted parameter string and the unique page identifier sent on the current page by the server, cache the paired skip parameter data in a redis, and set a validity period of the paired skip parameter data; the server receives the jump parameter data and instructs the current page to jump to a jump page according to the jump parameter data;
the decryption module 332 is configured to jump to a page to perform an initialization process, and send a decryption request to the server through the unique page identifier;
the jump judging module 333, configured to query, by the server, whether a cache corresponding to the unique page identifier exists in the redis; if the cache corresponding to the unique page identifier exists in the redis and the cache is within the validity period, the server side acquires the cache, decrypts the encrypted parameter string according to the private key, returns the decrypted data to the jump page, and simultaneously clears the cache corresponding to the unique page identifier in the redis; if the cache corresponding to the unique page identifier does not exist in the redis, returning an abnormal signal to the jump page, sending a jump abnormal prompt after the jump page receives the abnormal signal, and automatically jumping back to the current page; and when the paired jump parameter data reaches the validity period, clearing the cache of the paired jump parameter data.
In a specific embodiment, the skip module 331 further includes a skip stay sub-module 3310; the jump stopping sub-module 3310 is configured to set a specified time for stopping the current page by a timeout timer when the current page jumps to the jump page.
The invention provides a page jump method which is applied to an electronic device 4.
FIG. 4 shows an application environment of a preferred embodiment of the page jump method according to the present invention.
Referring to fig. 4, in the present embodiment, the electronic device 4 may be a terminal device having an arithmetic function, such as a server, a smart phone, a tablet computer, a portable computer, or a desktop computer.
The electronic device 4 includes: a processor 42, a memory 41, a communication bus 43, and a network interface 44.
The memory 41 includes at least one type of readable storage medium. The at least one type of readable storage medium may be a non-volatile storage medium such as a flash memory, a hard disk, a multimedia card, a card-type memory 41, and the like. In some embodiments, the readable storage medium may be an internal storage unit of the electronic device 3, such as a hard disk of the electronic device 4. In other embodiments, the readable storage medium may also be an external memory 41 of the electronic device 4, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, provided on the electronic device 3.
In the present embodiment, the readable storage medium of the memory 41 is generally used for storing the page jump program 40 and the like installed in the electronic device 4. The memory 41 may also be used to temporarily store data that has been output or is to be output.
The processor 32 may be a Central Processing Unit (CPU), microprocessor or other data Processing chip in some embodiments, and is used for running program codes stored in the memory 41 or Processing data, such as executing the page jump program 40.
The communication bus 43 is used to realize connection communication between these components.
The network interface 44 may optionally include a standard wired interface, a wireless interface (e.g., a WI-FI interface), and is typically used to establish a communication link between the electronic apparatus 4 and other electronic devices.
Fig. 4 only shows the electronic device 4 with components 41-44, but it is to be understood that not all of the shown components are required to be implemented, and that more or fewer components may alternatively be implemented.
Optionally, the electronic device 4 may further include a user interface, which may include an input unit such as a Keyboard (Keyboard), a voice input device such as a microphone (microphone) or other equipment with voice recognition function, a voice output device such as a sound box, a headset, etc., and optionally may also include a standard wired interface or a wireless interface.
Optionally, the electronic device 4 may further include a display, which may also be referred to as a display screen or a display unit. In some embodiments, the display device may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an Organic Light-Emitting Diode (OLED) touch device, or the like. The display is used for displaying information processed in the electronic apparatus 4 and for displaying a visualized user interface.
Optionally, the electronic device 4 may further include a Radio Frequency (RF) circuit, a sensor, an audio circuit, and the like, which are not described in detail herein.
In the apparatus embodiment shown in fig. 4, the memory 41, which is a kind of computer storage medium, may include therein an operating system, and a page jump program 40; the processor 42, when executing the page jump program 40 stored in the memory 41, implements the following steps: the current page sends a request for obtaining an RSA public key to a server side; the server side issues a public key and a private key corresponding to the request according to the request and a preset rule; the current page sends the skip parameter data to the server side through a POST mode; the jump parameter comprises an encrypted parameter string and a unique page identifier of an encrypted current page; the method for acquiring the encrypted parameter string comprises the following steps: performing key-value mode pairing on the page parameter information to be transmitted by the current page; carrying out asymmetric encryption on the paired page parameter information by using the public key to obtain an encrypted parameter string of the page parameter information to be transmitted; the server receives the jump parameter data and instructs the current page to jump to a jump page according to the jump parameter data; skipping a page to perform an initialization process, and sending a decryption request to the server through the unique page identifier; and the server decrypts the encrypted parameter string by using the private key, and returns the decrypted parameter data to the jump page to finish parameter transmission and page jump.
In other embodiments, the page jump program 40 may also be divided into one or more modules, which are stored in the memory 41 and executed by the processor 42 to accomplish the present invention. The modules referred to herein are a series of computer program segments that perform particular functions. The page jump program 40 may be divided into an RSA encryption unit 310, a jump parameter data upload unit 320, and a jump execution unit 330.
In addition, the present invention also provides a computer-readable storage medium, which mainly includes a storage data area and a storage program area, wherein the storage data area may store data created according to the use of the blockchain node, and the storage program area may store an operating system and an application program required for at least one function, the computer-readable storage medium includes a page jump program, and the page jump program implements an operation such as a page jump method when executed by a processor.
The embodiments of the computer-readable storage medium of the present invention are substantially the same as the embodiments of the page jump method, the page jump system, and the electronic device, and are not described herein again.
In summary, the page jump method, system, electronic device and computer readable storage medium of the present invention adopt a POST mode, take a server as a jump medium, encrypt transmission data, and then realize data transmission between static pages; aiming at the parameter transmission process among the pages with more data to be transmitted, the limitation of different browsers on the URL parameter transmission length is solved; the hidden danger of sensitive parameter information leakage brought by plaintext transmission is solved by adopting RSA non-stacking encryption.
The block chain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
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, apparatus, article, or method 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, apparatus, article, or method. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, apparatus, article, or method that includes 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 solutions 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 several programs for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the methods 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 (10)

1. A page jump method is applied to an electronic device and is characterized by comprising the following steps:
the current page sends a request for obtaining an RSA public key to a server side; the server side issues a public key and a private key corresponding to the request according to the request and a preset rule;
the current page sends the skip parameter data to the server side through a POST mode; the jump parameter comprises an encrypted parameter string and a unique page identifier of an encrypted current page; the method for acquiring the encrypted parameter string comprises the following steps: performing key-value mode pairing on the page parameter information to be transmitted by the current page; carrying out asymmetric encryption on the paired page parameter information by using the public key to obtain an encrypted parameter string of the page parameter information to be transmitted;
the server receives the jump parameter data and instructs the current page to jump to a jump page according to the jump parameter data;
skipping a page to perform an initialization process, and sending a decryption request to the server through the unique page identifier;
and the server decrypts the encrypted parameter string by using the private key, and returns the decrypted parameter data to the jump page to finish parameter transmission and page jump.
2. The page jump method according to claim 1, wherein after the current page sends the jump parameter data to the server by POST, the server caches the jump parameter data sent on the current page into redis, and completes the page jump process by the validity period discrimination program, and then clears the cache of the jump parameter data exceeding the validity period in the redis.
3. The page jump method of claim 2,
the method for completing the page jump process through the validity period judging program comprises the following steps:
the server side carries out pairing on the encrypted parameter string and the unique page identification sent by the current page, caches the paired jump parameter data into a redis, and sets the validity period of the paired jump parameter data;
the server receives the jump parameter data and instructs the current page to jump to a jump page according to the jump parameter data;
skipping a page to perform an initialization process, and sending a decryption request to a server through the unique page identifier;
the server side inquires whether a group corresponding to the unique page identifier exists in the redis or not and caches the subsequent jump parameter data;
if the cache corresponding to the unique page identifier exists in the redis and is within the validity period, the server side acquires the cache, decrypts the encrypted parameter string according to the private key, returns the decrypted data to the jump page, and simultaneously clears the cache corresponding to the unique page identifier in the redis;
if the cache corresponding to the unique page identifier does not exist in the redis, returning an abnormal signal to the jump page, sending a jump abnormal prompt after the jump page receives the abnormal signal, and automatically jumping back to the current page;
and when the paired jump parameter data reaches the validity period, clearing the cache of the paired jump parameter data.
4. The page jump method of claim 3, wherein when the current page jumps to a jump page, the current page stays for a specified time by a timeout timer.
5. The page turning method according to claim 3, characterized in that the process of initializing the turned page requests the server to obtain an initialization configuration item for the turned page; the initialization configuration items are stored in selectConditions.
6. A page jump system is characterized by comprising an RSA encryption unit, a jump parameter data uploading unit and a jump execution unit; wherein the content of the first and second substances,
the RSA encryption unit is used for sending a request for obtaining an RSA public key to the server side by the current page; the server side issues a public key and a private key corresponding to the request according to the request and a preset rule;
the skip parameter data uploading unit is used for uploading skip parameter data to the server side by the current page in a POST mode; the jump parameter comprises an encrypted parameter string and a unique page identifier of an encrypted current page; the method for acquiring the encrypted parameter string comprises the following steps: performing key-value mode pairing on the page parameter information to be transmitted by the current page; carrying out asymmetric encryption on the paired page parameter information by using the public key, and obtaining an encryption parameter string of the page parameter information to be transmitted;
the jump execution unit is used for receiving the jump parameter data by the server, instructing the current page to jump to a jump page according to the jump parameter data, carrying out an initialization process on the jump page, and sending a decryption request to the server through the unique page identifier; and the server decrypts the encrypted parameter string by using the private key, and returns the decrypted parameter data to the jump page to finish parameter transmission and page jump.
7. The page jump system of claim 6,
the skip execution unit comprises a skip module, a decryption module and a skip judgment module;
the skip module is used for pairing the encrypted parameter string and the unique page identifier sent by the current page by the server, caching the paired skip parameter data into a redis, and setting the validity period of the paired skip parameter data; the server receives the jump parameter data and instructs the current page to jump to a jump page according to the jump parameter data;
the decryption module is used for skipping a page to perform an initialization process and sending a decryption request to the server side through the unique page identifier;
the jump judging module is used for the server side to inquire whether the group corresponding to the unique page identifier exists in the redis and then the cache of the jump parameter data exists; if the cache corresponding to the unique page identifier exists in the redis and the cache is within the validity period, the server side acquires the cache, decrypts the encrypted parameter string according to the private key, returns the decrypted data to the jump page, and simultaneously clears the cache corresponding to the unique page identifier in the redis; if the cache corresponding to the unique page identifier does not exist in the redis, returning an abnormal signal to the jump page, sending a jump abnormal prompt after the jump page receives the abnormal signal, and automatically jumping back to the current page; and when the paired jump parameter data reaches the validity period, clearing the cache of the paired jump parameter data.
8. The page jump system of claim 7, wherein said jump module further comprises a jump dwell submodule; and the jump stopping submodule is used for setting the stopping specified time of the current page through a timeout timer when the current page jumps to the jump page.
9. An electronic device, comprising: at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores a program executable by the at least one processor to enable the at least one processor to perform the page jump method as claimed in any one of claims 1 to 5.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out a page jump method according to any one of claims 1 to 5.
CN202011050049.XA 2020-09-29 2020-09-29 Page jump method, system and storage medium Pending CN112199622A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011050049.XA CN112199622A (en) 2020-09-29 2020-09-29 Page jump method, system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011050049.XA CN112199622A (en) 2020-09-29 2020-09-29 Page jump method, system and storage medium

Publications (1)

Publication Number Publication Date
CN112199622A true CN112199622A (en) 2021-01-08

Family

ID=74008523

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011050049.XA Pending CN112199622A (en) 2020-09-29 2020-09-29 Page jump method, system and storage medium

Country Status (1)

Country Link
CN (1) CN112199622A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114189406A (en) * 2021-12-16 2022-03-15 深圳市超视网络技术有限公司 Edge computing gateway based on Internet of things
CN114285834A (en) * 2021-12-24 2022-04-05 山石网科通信技术股份有限公司 Message transmission method and device and terminal equipment
CN114710547A (en) * 2022-04-15 2022-07-05 掌阅科技股份有限公司 Page display method, resource sending method, electronic equipment, server and medium
CN115297346A (en) * 2022-06-30 2022-11-04 贵阳朗玛视讯科技有限公司 Multi-application authentication method and device based on EPG system

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108040065A (en) * 2017-12-22 2018-05-15 平安养老保险股份有限公司 Webpage redirect after exempt from login method, device, computer equipment and storage medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108040065A (en) * 2017-12-22 2018-05-15 平安养老保险股份有限公司 Webpage redirect after exempt from login method, device, computer equipment and storage medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114189406A (en) * 2021-12-16 2022-03-15 深圳市超视网络技术有限公司 Edge computing gateway based on Internet of things
CN114285834A (en) * 2021-12-24 2022-04-05 山石网科通信技术股份有限公司 Message transmission method and device and terminal equipment
CN114710547A (en) * 2022-04-15 2022-07-05 掌阅科技股份有限公司 Page display method, resource sending method, electronic equipment, server and medium
CN115297346A (en) * 2022-06-30 2022-11-04 贵阳朗玛视讯科技有限公司 Multi-application authentication method and device based on EPG system
CN115297346B (en) * 2022-06-30 2023-08-25 贵阳朗玛视讯科技有限公司 EPG system-based multi-application authentication method and device

Similar Documents

Publication Publication Date Title
US10972908B2 (en) Wireless network connection method, apparatus, and system
CN112199622A (en) Page jump method, system and storage medium
US10951595B2 (en) Method, system and apparatus for storing website private key plaintext
US8938074B2 (en) Systems and methods for secure communication using a communication encryption bios based upon a message specific identifier
CN108449315B (en) Request validity verifying device, method and computer readable storage medium
CN106921496A (en) A kind of digital signature method and system
CN111460503B (en) Data sharing method, device, equipment and storage medium
CN104796257A (en) Flexible data authentication
CN110912920A (en) Data processing method, apparatus and medium
CN107948170B (en) Interface request parameter encryption method, device, equipment and readable storage medium
CN107040520B (en) Cloud computing data sharing system and method
CN112035827B (en) Cipher data processing method, device, equipment and readable storage medium
US10963593B1 (en) Secure data storage using multiple factors
EP2913973A1 (en) Trusted NFC smart poster tag
CN112241298A (en) Page display method and device, storage medium and electronic device
US9787476B2 (en) Image verification by an electronic device
CN111901287B (en) Method and device for providing encryption information for light application and intelligent equipment
KR20210112359A (en) Browser Cookie Security
CN111222075A (en) Data transmission method based on multiple Webviews, server and storage medium
CN115632798A (en) Electronic certificate authentication tracing method, system and related equipment based on intelligent contract
CN110290097B (en) Data processing method and device, storage medium and electronic device
CN113434882A (en) Communication protection method and device of application program, computer equipment and storage medium
CN116076055A (en) Method and system for verifying user identification
CN109450643B (en) Signature verification method realized on Android platform based on native service
CN107729345B (en) Website data processing method and device, website data processing platform and storage medium

Legal Events

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