A method and device for encrypting parameters of page links
The encryption method for page links addresses parameter length and server load issues by generating fixed-length MD5 values and storing them locally, enhancing security and efficiency in Internet hospital platforms.
Patent Information
- Application Number
- CN202410271047.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-11
- Publication Date
- 2024-12-10
- Estimated Expiration
- 2044-03-11
AI Technical Summary
Existing encryption methods for page links in Internet hospital platforms face issues with parameter length limitations in the front-end address bar, leading to truncation and increased server load, while also being vulnerable to cracking.
A method and device that encrypts page link parameters based on the page's business requirements, generates fixed-length MD5 values, and stores them locally using localStorage, reducing parameter length and enhancing security.
Solves the parameter length limitation issue, reduces server load, and significantly increases the difficulty of parameter cracking by hiding encrypted parameters locally, ensuring secure and efficient page access.
Smart Images

Figure CN118094596B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data security technology, and in particular to a method and device for encrypting parameters of a page link. Background Art
[0002] The Internet hospital platform is a system that provides various medical services to patients, doctors, hospitals, pharmacies and other participants. In order to prevent malicious users from obtaining and tampering with sensitive data, the security of the system can be improved through encryption processing.
[0003] One way is to use the interface for encryption. However, if the interface is used for encryption, as long as the link is encrypted once, each page access will be accompanied by a decryption, and the interface needs to be decrypted when the page is loaded, jumped, and refreshed. The front end must wait for the interface request result to obtain the data, which not only puts pressure on the server calculation, but also greatly affects the performance of the front-end page display. In this way, all sensitive information is encrypted and decrypted using the back-end interface, but some data is just not intended for users to modify or view. It is only for protection of ordinary users and may not require this level of encryption. Therefore, encryption can be performed on the client side, and each user's own machine bears the pressure of the server.
[0004] In the client's encryption scheme, the parameters in the link can be encrypted, and the encryption result will be displayed in the front-end address bar, that is, the URL. If some asymmetric encryption is used, the encrypted parameters will be very long and the browser will truncate them. For example, the maximum length of the URL of some browsers is limited to 8182 characters, and the maximum length of the URL of some browsers is limited to 8000 characters. If the parameter is too long, plus some characters after encryption conversion, it may exceed the maximum length limit of the browser URL and will be truncated, resulting in a lack of parameters in the front-end address bar or even an inability to parse the parameters, affecting page access. Summary of the invention
[0005] The embodiment of the present invention provides a method and device for encrypting parameters of a page link, which is used to solve the problem of parameter length limitation of the front-end address bar in the existing encryption method, reduce the carried parameters, and increase the difficulty of cracking.
[0006] In a first aspect, an embodiment of the present invention provides a method for encrypting parameters of a page link, the method comprising:
[0007] When a page is loaded, determining whether to encrypt the page link according to the business to which the page belongs;
[0008] Encrypting the original parameters in the page link to obtain encrypted parameters;
[0009] Generate a parameter value of fixed length according to the encryption parameter, and store the encryption parameter locally;
[0010] The original parameter in the page link is redirected to the parameter value of the fixed length.
[0011] Further, generating a parameter value of a fixed length according to the encryption parameter includes:
[0012] Generate a corresponding MD5 value from the encryption parameter.
[0013] Further, storing the encryption parameters locally includes:
[0014] Use localStorage to store the encrypted parameters locally.
[0015] Further, the step of determining to encrypt the page link according to the business to which the page belongs includes:
[0016] Determining that the page link needs to be encrypted according to the business to which the page belongs;
[0017] If there is no encryption field in the page link, determine to encrypt the page link;
[0018] The encryption field is composed of the encryption key plus the MD5 value.
[0019] Furthermore, it also includes:
[0020] If it is determined to decrypt the parameters in the page link, then the corresponding encryption parameters are searched locally according to the fixed-length parameter value carried in the page link;
[0021] Decrypting the encrypted parameters to obtain original parameters;
[0022] Redirecting the fixed-length parameter value carried in the page link to the original parameter;
[0023] The page is rendered according to the page link redirected to the original parameter.
[0024] In a second aspect, an embodiment of the present invention provides a parameter encryption device for a page link, the device comprising:
[0025] A determination module, used for determining whether to encrypt a page link according to the business to which the page belongs when the page is loaded;
[0026] An encryption module is used to encrypt the original parameters in the page link to obtain encrypted parameters; generate a parameter value of a fixed length according to the encrypted parameters, and store the encrypted parameters locally;
[0027] The redirection module is used to redirect the original parameter in the page link to the parameter value of the fixed length.
[0028] Furthermore, the encryption module is specifically used to generate a corresponding MD5 value from the encryption parameter.
[0029] Furthermore, the encryption module is specifically used to store the encryption parameters locally using localStorage.
[0030] In a third aspect, an embodiment of the present invention provides an electronic device, comprising a processor and a memory, wherein the memory is used to store program instructions, and the processor is used to implement the steps of any of the above-mentioned page link parameter encryption methods when executing a computer program stored in the memory.
[0031] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium storing a computer program, which implements the steps of the parameter encryption method of the above-mentioned page link when executed by a processor.
[0032] In the embodiment of the present invention, when a page is loaded, the page link is encrypted according to the business to which the page belongs; the original parameters in the page link are encrypted to obtain encrypted parameters; a fixed-length parameter value is generated according to the encrypted parameters, and the encrypted parameters are stored locally; the original parameters in the page link are redirected to a fixed-length parameter value. In this invention, an encryption function based on the encryption of the original parameters in the page link is used to generate a fixed-length parameter value, which can solve the problem of the length limit of the parameters in the front-end address bar in the existing encryption method, reduce the parameters carried, increase the difficulty of cracking, and hide the encrypted parameters locally, so that users cannot use the parameters in the web page link to decrypt, and others cannot obtain the real encryption parameters based on the web page link, which greatly increases the difficulty of cracking. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0034] Figure 1 A schematic diagram of a method for encrypting parameters of a page link provided by an embodiment of the present invention;
[0035] Figure 2 A schematic diagram of a flow chart of implementing a URL parameter encryption solution based on vue-router provided in an embodiment of the present invention;
[0036] Figure 3 A schematic diagram of the structure of a parameter encryption device for a page link provided by an embodiment of the present invention;
[0037] Figure 4 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0038] In order to make the purpose, technical scheme and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0039] In order to solve the problem of the length limitation of the parameters in the front-end address bar in the existing encryption method, reduce the carried parameters, and increase the difficulty of cracking, the embodiment of the present invention provides a parameter encryption method and device for a page link.
[0040] Embodiment 1:
[0041] Figure 1 A schematic diagram of a method for encrypting parameters of a page link provided by an embodiment of the present invention, the process includes the following steps:
[0042] S101: When a page is loaded, determine to encrypt the page link according to the business to which the page belongs.
[0043] S102: Encrypt the original parameters in the page link to obtain encrypted parameters.
[0044] S103: Generate a parameter value of a fixed length according to the encryption parameter, and store the encryption parameter locally.
[0045] S104: redirecting the original parameter in the page link to a parameter value of a fixed length.
[0046] Since the encryption function obtained by encrypting the original parameters in the page link in the embodiment of the present invention generates a parameter value of a fixed length, the problem of the parameter length limitation of the front-end address bar in the existing encryption method can be solved, the carried parameters can be reduced, the difficulty of cracking can be increased, and the encrypted parameters can be hidden locally. Users cannot use the parameters in the web page link to decrypt, and other people cannot obtain the real encryption parameters based on the web page link, which greatly increases the difficulty of cracking.
[0047] The parameter encryption method of the page link provided in the embodiment of the present invention is applied to the client, and the client can be an electronic device, specifically a smart terminal, PC, tablet computer and other devices. In the embodiment of the present invention, the encryption and decryption pressure of the server can be reduced by encrypting and decrypting the parameters of the page link through the client; a solution to solve the URL encryption only with the front end is created; the configuration of the front-end encryption cost-free solution is solved, and the original code does not need to be changed, and only configuration is required to take effect; it can be used with very simple configuration, and it is a very open dynamic parameter configuration solution, whether it is an encryption key or an encryption method, it can be customized, and the encryption method can be added independently according to business needs; the URL parameter length limit problem of the original encryption solution is solved, and the parameters carried by the URL are reduced, which is more difficult to be cracked; when using this encryption solution, the real parameters are hidden locally, so the user will not be able to use the parameters obtained in the URL to decrypt, and other people will not be able to know the real encryption parameters based on the URL, which greatly increases the difficulty of cracking.
[0048] In one implementation, the embodiment of the present invention is implemented based on vue-router, for example, it can be implemented based on the hook function of vue-router. For example, the hook function includes beforeEach and afterEach, which are respectively processed before entering the corresponding page and before entering the initialization page.
[0049] In one example, in the above S101, it can be determined whether the business needs to be encrypted according to the business to which the page belongs. If not, the process is exited; if necessary, it is determined to encrypt the page link.
[0050] In another example, in the above S101, it can be determined that the page link needs to be encrypted according to the business to which the page belongs; if there is no encrypted field in the page link, that is, there is a non-encrypted field, it is determined that the page link is encrypted, and if there is an encrypted field in the page link, it is determined that it does not need to be encrypted again. The encrypted field can be composed of an encryption key plus a fixed-length parameter value, such as an MD5 value.
[0051] Both of the above examples can be judged in the hook function beforeEach.
[0052] In the process of encrypting the original parameters in the page link to obtain the encrypted parameters in the above S102, the encryption method used is not limited here.
[0053] In one implementation, in the above S103, when a fixed-length parameter value is generated according to the encryption parameter, the encryption parameter can be used to generate a corresponding MD5 value. The MD5 value has a fixed length, which is shorter than the encryption parameter length in the prior art. For example, the original parameter is "name = Zhang San & phone = 15666666666 & gender = male", the encryption parameter is "JTdCJTIybmFtZSUyMiUzQSUyMiVFNSVCQyVBMCVFNCVCOCU4OSUyMiUyQyUyMnBob25lJTIyJTNBJTIyMTU2NjY2NjY2NjYlMjIlMkMlMjJnZW5kZXIlMjIlM0ElMjIlRTclOTQlQjclMjIlN0Q=", and the MD5 value is "bde28ffd8945f7116cf1495847b6ff05".
[0054] In one implementation, in the above S103, when the encryption parameters are stored locally, localStorage is used to store the encryption parameters locally. In this implementation, because localStorage is local storage, when the user copies the URL to others, others cannot know the encryption parameters. The MD5 value generates a key, and the key has no other meaning except that it represents an unordered random string of fixed length. What is stored in localStorage is a parameter in the form of key: value (value is the encryption parameter). Others cannot know the value stored locally by the user even if they get the key, so it can increase the difficulty of cracking and improve the security of the system.
[0055] In the above step 104, when redirecting the original parameters in the page link to parameter values of fixed length, an encrypted field may be carried in the web page link, such as an encryption key plus an MD5 value after an equal sign, for example, qsc_encrypt_key=bde28ffd8945f7116cf1495847b6ff05.
[0056] For example, a website carries parameters like this: https: / / www.xx.com??name=张三&phone=15666666666&gender=男. The result generated by the prior art is: https: / / www.xx.com?key=JTdCJTIybmFtZSUyMiUzQSUyMiVFNSVCQyVBMCVFNCVCOCU4OSUyMiUyQyUyMnBob25lJTIyJTNBJTIyMTU2NjY2NjY2NjYlMjIlMkMlMjJnZW5kZXIlMjIlM0ElMjIlRTclOTQlQjclMjIlN0Q=. The result generated by the technology in this case is: https: / / www.xx.com?key=bde28ffd8945f7116cf1495847b6ff05.
[0057] The embodiment of the present invention further includes a decryption process, which includes the following steps:
[0058] If it is determined to decrypt the parameters in the page link, according to the parameter value with a fixed length carried in the page link, search for the corresponding encrypted parameter locally;
[0059] Decrypt the encrypted parameter to obtain the original parameter;
[0060] Redirect the parameter value with a fixed length carried in the page link to the original parameter;
[0061] Render the page according to the page link redirected to the original parameter.
[0062] This decryption process can be completed in afterEach. First, obtain the parameter to of its hook function, and then determine whether decryption is required. If it is required and the decryption is successful, modify the encrypted parameter to restore it to the original parameter. In this way, the page can use the original this.$route.query to obtain the original parameter without modification, and then the page rendering can be completed. In the prior art, the parameters carried are directly encrypted into a string and carried on the URL. After the page enters, the post-hook function afterEac of vue-router will be executed to decrypt, and after decryption, it will be stuffed back into the relevant parameters of vue-router (restore the parameters, which does not affect the business code of the page). When the page enters or jumps, it is also necessary to preprocess the page to be jumped to encrypt the parameters into the URL, with the help of the pre-hook function beforeEach of vue-router.
[0063] The following uses a specific embodiment to illustrate the embodiment of the present invention. See Figure 2As shown, the following steps are included:
[0064] Step 1: Enter the page.
[0065] This step is page loading. At this time, there are several important hook functions in vue-router. Two of them are used here: beforeEach and afterEach. They are used before entering the corresponding page and before entering the initialization page.
[0066] Step 2: Determine whether the page route needs to be encrypted; if yes, go to step 3; if no, go to step 6.
[0067] In this step, the judgment is made in beforeEach. First, it is determined whether encryption is required. Here, it is determined based on the business (the business requires encryption). If it is not required, it will jump directly to the end. If it is required, it will go down and you can write some of your own judgment conditions and then insert the corresponding encryption method.
[0068] Step 3: Determine whether the current routing address parameter is an encryption parameter (encryption key+md5 by default); if yes, go to step 5; if no, go to step 4.
[0069] This step is still determined in beforeEach. If the current link has a corresponding encrypted field (for example: qsc_encrypt_key=bde28ffd8945f7116cf1495847b6ff05, which is an encryption key plus an md5 value after the equal sign) and can be decrypted successfully, it means that the current link is an encrypted field, skipping the subsequent encryption to step 5. If it is a non-encrypted field, step 4 needs to be performed.
[0070] Step 4: Encrypt the parameters and use them to generate MD5 values. Store the encrypted parameters in localStorage, set the MD5 value as the URL parameter and redirect the page.
[0071] This step is the encryption process. Encryption still needs to be performed in beforeEach. Here, the original parameters are used for encryption, and then the encrypted parameters are used to generate MD5 values. Then localStorage is used to store the encrypted parameters locally. Then the parameters of the page URL need to be redirected to the MD5 generated by key + encrypted parameters. For a single page (spa), no page flickering will be seen.
[0072] Step 5: Get the encrypted string on the url, match the key in localStorage, get the encrypted parameters from localStorage, decrypt it, and then restore it to the parameters of vue-router.
[0073] This step is performed in afterEach. First, the parameter to of its hook function is obtained, and then it is determined whether decryption is required. If it is required and the decryption is successful, the encrypted parameters are modified and restored to the original parameters. In this way, the page does not need to be modified and the original this.$route.query can be used to obtain the original parameters.
[0074] Step 6: End.
[0075] The page is rendered in this step and then ends.
[0076] For example, on the doctor side of the Internet hospital platform, different patient information can be found on the doctor side according to different doctor permissions. Some patient information is copied out without the knowledge of the user (such as the doctor) himself or other people get the URL parameters. Other people can crack it according to the encryption parameters of the front end (it is difficult, but crackable) to find out the information of this doctor and this patient. If this encryption scheme is used, even if the user actively copies the link to others, others will not be able to know the patient's information. During use, you can access the module code of the current scheme that has been written, introduce an instance of vue-router, and determine whether encryption is required based on the route or name of the page that needs to be encrypted (whether the business page needs to be encrypted). For the page that needs to be encrypted, the scheme shown in the embodiment of the present invention is used for encryption and decryption.
[0077] according to Figure 3From the process shown, it can be seen that from the beginning to the end, only some customized settings of parameter settings and encryption and decryption judgment are needed, which has no other impact on the page and the original logic of the code. Moreover, a certain degree of the same back-end functions can be achieved through the pure front-end, which greatly reduces the pressure on the back-end server. Such an encryption usage solution can save development costs in terms of development, and there is no need to develop both the front-end and the back-end. This solution is very flexible for users. Users can configure their own encryption and decryption methods to replace the original encryption and decryption methods, and even the key displayed on the URL can be customized. For the confidentiality of parameters, the encryption method is first used here to encrypt the original parameters, and then the encrypted parameters are converted into MD5 values. Using MD5 values instead of encrypted parameters as parameters better protects the parameters. Of course, you can also configure whether to use the local storage solution in the configuration parameters. If not, the encryption key + encryption parameters are used as the parameters of the URL (this makes it convenient to copy the URL to other browsers for use); for the above conversion MD5 solution, it is more widely adapted to other encryption solutions, and there is no need to consider the length limit, because the final encrypted parameters are stored locally; using this solution, ordinary users cannot know the parameters, even if they copy the URL parameters to others, others cannot open the real page, which increases the difficulty of cracking here.
[0078] Embodiment 2:
[0079] Based on the above embodiments, Figure 3 A schematic diagram of a structure of a parameter encryption device for a page link provided by an embodiment of the present invention, the device comprising:
[0080] The determination module 301 is used to determine whether to encrypt the page link according to the business to which the page belongs when the page is loaded;
[0081] The encryption module 302 is used to encrypt the original parameters in the page link to obtain encrypted parameters; generate a parameter value of a fixed length according to the encrypted parameters, and store the encrypted parameters locally;
[0082] The redirection module 303 is used to redirect the original parameters in the page link to parameter values of fixed length.
[0083] Furthermore, the encryption module 302 is specifically configured to generate a corresponding MD5 value from the encryption parameter.
[0084] Furthermore, the encryption module 302 is specifically configured to use localStorage to store the encryption parameters locally.
[0085] Furthermore, the determination module 301 is specifically used to determine whether the page link needs to be encrypted according to the business to which the page belongs; if there is no encryption field in the page link, determine to encrypt the page link; wherein the encryption field is composed of an encryption key plus an MD5 value.
[0086] Furthermore, it also includes:
[0087] The decryption module is used to search for the corresponding encrypted parameters locally according to the fixed-length parameter value carried in the page link if it is determined to decrypt the parameters in the page link; decrypt the encrypted parameters to obtain the original parameters; redirect the fixed-length parameter value carried in the page link to the original parameters; and render the page according to the page link redirected to the original parameters.
[0088] Embodiment 3:
[0089] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Based on the above embodiments, an electronic device is further provided in an embodiment of the present invention, including a processor 401, a communication interface 402, a memory 403 and a communication bus 404, wherein the processor 401, the communication interface 402, and the memory 403 communicate with each other through the communication bus 404;
[0090] The memory 403 stores a computer program. When the program is executed by the processor 401, the processor 401 executes the steps of implementing the parameter encryption method of the page link in the above embodiment.
[0091] For the specific implementation process, please refer to the above embodiment, and the similarities are not repeated here.
[0092] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0093] The communication interface 402 is used for communication between the electronic device and other devices.
[0094] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0095] The above-mentioned processor can be a general-purpose processor, including a central processing unit, a network processor (Network Processor, NP), etc.; it can also be a digital signal processing processor (Digital Signal Processing, DSP), an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, etc.
[0096] Embodiment 4:
[0097] On the basis of the above embodiments, an embodiment of 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 parameter encryption method of the page link in the above embodiments.
[0098] For the specific implementation process, please refer to the above embodiment, and the similarities are not repeated here.
[0099] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0100] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0101] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0102] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0103] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A method for encrypting parameters of a page link, characterized in that: The method comprises: When a page is loaded, determining whether to encrypt the page link according to the business to which the page belongs; Encrypting the original parameters in the page link to obtain encrypted parameters; Generate a corresponding MD5 value for the encryption parameter, generate a parameter value of fixed length according to the encryption parameter, and store the encryption parameter locally in the form of key:value, where value is the encryption parameter; Redirecting the original parameter in the page link to the parameter value of the fixed length; The redirecting of the original parameter in the page link to the parameter value of the fixed length includes: carrying an encrypted field in the page link, the encrypted field is composed of an encryption key plus the MD5 value, and the encryption key is a fixed-length and meaningless disordered random string.
2. The method according to claim 1, characterized in that The storing the encryption parameters locally comprises: Use localStorage to store the encrypted parameters locally.
3. The method according to claim 1, characterized in that Determining to encrypt the page link according to the business to which the page belongs includes: Determining that the page link needs to be encrypted according to the business to which the page belongs; If there is no encryption field in the page link, determine to encrypt the page link; The encryption field is composed of the encryption key plus the MD5 value.
4. The method according to claim 1, characterized in that Also includes: If it is determined to decrypt the parameters in the page link, then the corresponding encryption parameters are searched locally according to the fixed-length parameter value carried in the page link; Decrypting the encrypted parameters to obtain original parameters; Redirecting the fixed-length parameter value carried in the page link to the original parameter; The page is rendered according to the page link redirected to the original parameter.
5. A parameter encryption device for a page link, characterized in that: The device comprises: A determination module, used for determining whether to encrypt a page link according to the business to which the page belongs when the page is loaded; The encryption module is used to encrypt the original parameters in the page link to obtain encrypted parameters; generate corresponding MD5 values from the encrypted parameters; generate parameter values of fixed length according to the encrypted parameters, and store the encrypted parameters locally in the form of key:value, where value is the encrypted parameters; A redirection module, used for redirecting the original parameters in the page link to the parameter value of the fixed length; the redirection of the original parameters in the page link to the parameter value of the fixed length includes: carrying an encrypted field in the page link, the encrypted field is composed of an encryption key plus the MD5 value, and the encryption key is a fixed-length and meaningless unordered random string.
6. The device according to claim 5, characterized in that The encryption module is specifically used to store the encryption parameters locally using localStorage.
7. An electronic device, characterized in that: The electronic device comprises a processor and a memory, wherein the memory is used to store program instructions, and the processor is used to implement the steps of the parameter encryption method of the page link as claimed in any one of claims 1 to 4 when executing the computer program stored in the memory.
8. A computer-readable storage medium, characterized in that: It stores a computer program, which, when executed by a processor, implements the steps of the parameter encryption method for page links as described in any one of claims 1 to 4.
