CN112579955A - Page access method, equipment, medium and electronic equipment - Google Patents

Page access method, equipment, medium and electronic equipment Download PDF

Info

Publication number
CN112579955A
CN112579955A CN202011479740.XA CN202011479740A CN112579955A CN 112579955 A CN112579955 A CN 112579955A CN 202011479740 A CN202011479740 A CN 202011479740A CN 112579955 A CN112579955 A CN 112579955A
Authority
CN
China
Prior art keywords
configuration information
user
link address
access
preview key
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
CN202011479740.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.)
Beijing Sankuai Online Technology Co Ltd
Original Assignee
Beijing Sankuai Online Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Sankuai Online Technology Co Ltd filed Critical Beijing Sankuai Online Technology Co Ltd
Priority to CN202011479740.XA priority Critical patent/CN112579955A/en
Publication of CN112579955A publication Critical patent/CN112579955A/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/9558Details of hyperlinks; Management of linked annotations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces

Abstract

The present specification discloses a page access method, device, medium, and electronic device, including: receiving an access request sent by a user, wherein the access request comprises a link address to be accessed; according to the link address to be accessed, encrypted configuration information corresponding to the link address and a preview key corresponding to the encrypted configuration information are determined; decrypting the encrypted configuration information based on the preview key to obtain decrypted configuration information; and sending the decrypted configuration information to the user. Therefore, the common user can be effectively limited from accessing the undistributed configuration information, the appointed user can determine whether the undistributed configuration information has problems through a preview mode, and the configuration information is released under the condition of no problem, so that the online fault caused by the prior release is avoided, and the user experience of the user is improved.

Description

Page access method, equipment, medium and electronic equipment
Technical Field
The present disclosure relates to the field of internet information processing technologies, and in particular, to a page access method, a device, a medium, and an electronic device.
Background
Front-end technology generally refers to technology from a browser to a client computer, and includes creating a front-end interface such as a Web page or App application for presentation to a user, for example: the user interface interaction technology of the Internet product is realized through HTML, CSS and JavaScript and various derived technologies, frames and solutions.
With the development of front-end technology, front-end configuration dynamic technology becomes a common technology for updating configuration information. The front-end configuration dynamic technology is that the code of a client at a user side is not required to be modified, the version of the client is not required to be updated, and the configuration information to be updated is issued to the server, so that after the user logs in the client, the server pushes the configuration information to be updated to the client, and dynamic change of content such as application function, interaction and the like can be realized on line, and better user experience can be provided for the user.
However, in practical applications, the configuration information to be updated is usually published directly on the server. If the configuration information to be updated has errors, the errors can be found only by applying the configuration information to the client after the configuration information is released, and the found errors are modified, so that the user experience of the user on the client is poor.
Therefore, the present application provides a page access method to solve the above problems.
Disclosure of Invention
The present specification provides a page access method, device, medium, and electronic device, so as to partially solve the problems in the prior art.
The technical scheme adopted by the specification is as follows:
the page access method provided by the specification comprises the following steps:
receiving an access request sent by a user, wherein the access request comprises a link address to be accessed;
according to the link address to be accessed, encrypted configuration information corresponding to the link address and a preview key corresponding to the encrypted configuration information are determined, wherein the encrypted configuration information is the configuration information to be issued;
decrypting the encrypted configuration information based on the preview key to obtain decrypted configuration information;
and sending the decrypted configuration information to the user so that the user can conveniently access a display page rendered by using the decrypted configuration information.
Optionally, determining a preview key corresponding to the encrypted configuration information according to the link address to be accessed specifically includes:
analyzing the link address to be accessed;
judging whether the link address to be accessed contains a preview key;
if the link address to be accessed contains a preview key, determining the preview key as the preview key corresponding to the encrypted configuration information;
if the link address to be accessed does not contain the preview key, determining the access authority of the user according to the user identifier contained in the access request, and determining the preview key corresponding to the encrypted configuration information according to the access authority of the user.
Optionally, determining a preview key corresponding to the encrypted configuration information according to the access right of the user specifically includes:
judging whether the user has the authority to access the encrypted configuration information or not according to the access authority of the user;
and if the judgment result shows that the link address has the access authority, searching the preview key corresponding to the encrypted configuration information corresponding to the determined link address according to the mapping relation between the encrypted configuration information and the preview key which are stored in advance.
Optionally, after determining whether the user has the right to access the encrypted configuration information, the method further includes:
if the judgment result is that the link address is not provided with the access authority, determining unencrypted configuration information corresponding to the link address according to the link address to be accessed, and sending the unencrypted configuration information to the user, so that the user can conveniently access a display page rendered by the unencrypted configuration information.
Optionally, the mapping relationship between the pre-stored encrypted configuration information and the preview key specifically includes:
acquiring configuration information to be issued, wherein the configuration information to be issued comprises attribute values of configuration items;
obtaining a preview key corresponding to the configuration information to be issued according to the attribute value of the configuration item and a set encryption algorithm;
encrypting the attribute value of the configuration item by using the preview key to obtain encrypted configuration information;
and establishing a mapping relation between the preview key and the encrypted configuration information.
Optionally, obtaining a preview key corresponding to the configuration information to be issued according to the attribute value of the configuration item and a set encryption algorithm, specifically including:
and if the number of the attribute values of the configuration items contained in the configuration information is greater than 1, obtaining a preview key corresponding to the attribute value of each configuration item according to the attribute value of the configuration item and a set encryption algorithm aiming at the attribute value of each configuration item.
Optionally, sending the decrypted configuration information to the user specifically includes:
generating a preview page corresponding to the link address to be accessed according to the decrypted configuration information;
and sending the preview page to the user.
A page access device provided in this specification, the page access device includes:
the system comprises a receiving unit, a processing unit and a processing unit, wherein the receiving unit is used for receiving an access request sent by a user, and the access request comprises a link address to be accessed;
the processing unit is used for determining encrypted configuration information corresponding to the link address and a preview key corresponding to the encrypted configuration information according to the link address to be accessed, wherein the encrypted configuration information is the configuration information to be issued; decrypting the encrypted configuration information based on the preview key to obtain decrypted configuration information;
a sending unit, configured to send the decrypted configuration information to the user, so that the user can access a display page rendered by using the decrypted configuration information.
The present specification provides a computer-readable storage medium storing a computer program which, when executed by a processor, implements the page access method described above.
The present specification provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and running on the processor, and when the processor executes the computer program, the processor implements the page access method described above.
The technical scheme adopted by the specification can achieve the following beneficial effects:
the page access method provided by the specification receives an access request sent by a user, wherein the access request comprises a link address to be accessed; according to the link address to be accessed, encrypted configuration information corresponding to the link address and a preview key corresponding to the encrypted configuration information are determined, wherein the encrypted configuration information is the configuration information to be issued; decrypting the encrypted configuration information based on the preview key to obtain decrypted configuration information; and sending the decrypted configuration information to the user so that the user can conveniently access a display page rendered by using the decrypted configuration information. For the link address to be accessed, which contains undistributed configuration information, when the user requests access, the preview key of the configuration information needs to be determined, and then the configuration information is decrypted by the preview key, and then the link address can be accessed by the user. Therefore, the common user can be effectively limited from accessing the undistributed configuration information, the appointed user can determine whether the undistributed configuration information has problems through a preview mode, and the configuration information is released under the condition of no problem, so that the online fault caused by the prior release is avoided, and the user experience of the user is improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the specification and are incorporated in and constitute a part of this specification, illustrate embodiments of the specification and together with the description serve to explain the specification and not to limit the specification in a non-limiting sense. In the drawings:
fig. 1 is a schematic flowchart of a page access method provided in an embodiment of the present specification;
fig. 2 is a schematic flowchart of a page access method provided in an embodiment of the present specification;
fig. 3 is a schematic flowchart of a page access method provided in an embodiment of the present specification;
fig. 4 is a schematic flowchart of a method for pre-publishing configuration information according to an embodiment of the present disclosure;
fig. 5 is a flowchart illustrating a preview key generation method according to an embodiment of the present disclosure;
FIG. 6 is a diagram illustrating a method for pre-publishing configuration information according to an embodiment of the present disclosure;
fig. 7 is a schematic diagram of a configuration information pre-pushing method provided in an embodiment of the present specification;
FIG. 8 is a diagram illustrating a preview link generation provided by an embodiment of the present specification;
fig. 9 is a schematic diagram of a page access method provided in an embodiment of the present specification;
fig. 10 is a schematic structural diagram of a page access device provided in an embodiment of the present specification;
fig. 11 is a schematic structural diagram of an electronic device provided in an embodiment of this specification.
Detailed Description
Based on this, the present specification provides a page access method, which receives an access request sent by a user, where the access request includes a link address to be accessed; according to the link address to be accessed, encrypted configuration information corresponding to the link address and a preview key corresponding to the encrypted configuration information are determined, wherein the encrypted configuration information is the configuration information to be issued; decrypting the encrypted configuration information based on the preview key to obtain decrypted configuration information; and sending the decrypted configuration information to the user so that the user can conveniently access a display page rendered by using the decrypted configuration information.
For the link address to be accessed, which contains undistributed configuration information, when the user requests access, the preview key of the configuration information needs to be determined, and then the configuration information is decrypted by the preview key, and then the link address can be accessed by the user. Therefore, the common user can be effectively limited from accessing the undistributed configuration information, the appointed user can determine whether the undistributed configuration information has problems through a preview mode, and the configuration information is released under the condition of no problem, so that the online fault caused by the prior release is avoided, and the user experience of the user is improved.
In order to make the objects, technical solutions and advantages of the present disclosure more clear, the technical solutions of the present disclosure will be clearly and completely described below with reference to the specific embodiments of the present disclosure and the accompanying drawings. It is to be understood that the embodiments described are only a few embodiments of the present disclosure, and not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present specification without any creative effort belong to the protection scope of the present specification.
The technical solutions provided by the embodiments of the present description are described in detail below with reference to the accompanying drawings.
The configuration information pre-issuing equipment receives configuration information to be issued, wherein the configuration information to be issued comprises configuration items and attribute values of the configuration items. And generating a preview key corresponding to the configuration information to be issued according to the attribute value of the configuration item and a set encryption algorithm (such as an RSA mixed encryption algorithm). The preview key has uniqueness. Specifically, a set encryption algorithm is used to generate a preview key corresponding to the configuration information to be issued according to the attribute value of the configuration item, the identifier of the configuration item, and the page identifier of the page corresponding to the configuration item.
Optionally, if the number of the configuration items included in the configuration information to be issued is greater than 1, a preview key corresponding to an attribute value of each configuration item is determined for each configuration item.
The configuration information pre-distribution equipment encrypts the attribute values of the configuration items by using the preview secret key to obtain encrypted configuration information; and establishing a mapping relation between the preview key and the encrypted configuration information.
And the configuration information pre-issuing equipment pushes the encrypted configuration information to each application server and generates a preview link containing the configuration information to be issued. The preview link may be the same as or different from the access link of the page corresponding to the configuration information to be published. If the difference is that the preview link is obtained according to the access link and the preview key of the page corresponding to the configuration information to be issued.
Optionally, the configuration information pre-issuing device pushes a mapping relationship between the preview key and the encrypted configuration information to each application server.
Fig. 1 is a schematic flowchart of a page access method provided in an embodiment of the present specification. The method may be as follows. The execution subject of the embodiments of the present specification is a server-side device.
Step 101: receiving an access request sent by a user, wherein the access request comprises a link address to be accessed.
In the embodiments provided in this specification, a user sends an access request to a server through a client used, and the access request includes a link address to be accessed.
It should be noted that the link address to be accessed may be a link address of a normal page (i.e., a page to which configuration information has been issued), or may be a link address corresponding to a page that is about to be updated but is not yet updated (i.e., a server side has stored the configuration information to be updated of the page but has not yet issued the configuration information to be updated externally, and only a user with access right may access the page).
Step 103: and according to the link address to be accessed, determining encrypted configuration information corresponding to the link address and a preview key corresponding to the encrypted configuration information, wherein the encrypted configuration information is the configuration information to be issued.
In the embodiment provided by the present specification, when receiving an access request sent by a user, a server analyzes a link address to be accessed included in the access request, and determines whether the link address to be accessed includes a preview key;
if the link address to be accessed contains a preview key, determining encrypted configuration information corresponding to the link address according to the link address to be accessed, and determining the preview key as the preview key corresponding to the encrypted configuration information;
if the link address to be accessed does not contain the preview key, determining the access authority of the user according to the user identifier contained in the access request, and determining the encrypted configuration information corresponding to the link address and the preview key corresponding to the encrypted configuration information according to the access authority of the user.
Specifically, whether the user has the authority to access the encrypted configuration information is judged according to the access authority of the user; and if the judgment result shows that the link address has the access authority, searching the preview key corresponding to the encrypted configuration information corresponding to the determined link address according to the mapping relation between the encrypted configuration information and the preview key which are stored in advance.
It should be noted that the mapping relationship between the pre-stored encrypted configuration information and the preview key may be generated by the configuration information pre-distribution equipment and then sent to the server, or may be obtained by the server according to the acquired configuration information to be distributed.
The following describes a mapping relationship between pre-stored encrypted configuration information and a preview key, which is obtained by the server according to the acquired configuration information to be issued.
Specifically, configuration information to be issued is obtained, wherein the configuration information to be issued comprises attribute values of configuration items; obtaining a preview key corresponding to the configuration information to be issued according to the attribute value of the configuration item and a set encryption algorithm; encrypting the attribute value of the configuration item by using the preview key to obtain encrypted configuration information; and establishing a mapping relation between the preview key and the encrypted configuration information.
It should be noted that the object of the encryption process may be the attribute value of the configuration item, or may be a preview result corresponding to the configuration item generated by modifying the original attribute value corresponding to the configuration item based on the attribute value of the configuration item, that is, the preview result is encrypted by using the preview key, so as to obtain an encrypted preview result.
Optionally, if the number of the attribute values of the configuration items included in the configuration information is greater than 1, for the attribute value of each configuration item, obtaining a preview key corresponding to the attribute value of the configuration item according to the attribute value of the configuration item and a set encryption algorithm.
Optionally, after determining whether the user has the right to access the encrypted configuration information, the method further includes:
if the judgment result is that the link address is not provided with the access authority, determining unencrypted configuration information corresponding to the link address according to the link address to be accessed, and sending the unencrypted configuration information to the user, so that the user can conveniently access a display page rendered by the unencrypted configuration information.
Step 105: and decrypting the encrypted configuration information based on the preview key to obtain the decrypted configuration information.
In the embodiments provided in this specification, after obtaining the preview key, the encrypted configuration information is decrypted by using the obtained preview key to obtain the decrypted configuration information.
Step 107: and sending the decrypted configuration information to the user so that the user can conveniently access a display page rendered by using the decrypted configuration information.
In an embodiment provided by the present specification, the server may generate a preview page corresponding to the link address to be accessed according to the decrypted configuration information; and sending the preview page to the user.
The server can also directly send the decrypted configuration information to the user, and the client used by the user renders and loads the page content containing the decrypted configuration information after receiving the decrypted configuration information.
Optionally, the method further includes: and sending an issuing instruction to a server under the condition that the displayed page is normal, wherein the issuing instruction is used for indicating the server to operate the configuration information.
Specifically, if the user is an auditor of the configuration information to be issued, the user confirms that the page display is normal by checking the display page rendered by the decrypted configuration information, and may send an issue instruction to the server, where the issue instruction is used to instruct the server to issue the configuration information.
Through the technical scheme provided by the specification, an access request sent by a user is received, wherein the access request comprises a link address to be accessed; according to the link address to be accessed, encrypted configuration information corresponding to the link address and a preview key corresponding to the encrypted configuration information are determined, wherein the encrypted configuration information is the configuration information to be issued; decrypting the encrypted configuration information based on the preview key to obtain decrypted configuration information; and sending the decrypted configuration information to the user so that the user can conveniently access a display page rendered by using the decrypted configuration information.
For the link address to be accessed, which contains undistributed configuration information, when the user requests access, the preview key of the configuration information needs to be determined, and then the configuration information is decrypted by the preview key, and then the link address can be accessed by the user. Therefore, the common user can be effectively limited from accessing the undistributed configuration information, the appointed user can determine whether the undistributed configuration information has problems through a preview mode, and the configuration information is released under the condition of no problem, so that the online fault caused by the prior release is avoided, and the user experience of the user is improved.
Based on the same inventive concept, fig. 2 is a schematic flow chart of a page access method provided in an embodiment of the present specification. The method may be as follows.
Step 201: receiving an access request sent by a user, wherein the access request comprises a link address to be accessed, and the link address to be accessed comprises a preview secret key.
Step 203: analyzing the link address to be accessed contained in the access request, and judging whether the link address to be accessed contains a preview key. If so, go to step 205.
Step 205: and according to the link address to be accessed, encrypted configuration information corresponding to the link address is determined, and the preview key is determined to be the preview key corresponding to the encrypted configuration information.
Step 207: and decrypting the encrypted configuration information based on the preview key to obtain the decrypted configuration information.
Step 209: and sending the decrypted configuration information to the user so that the user can conveniently access a display page rendered by using the decrypted configuration information.
Based on the same inventive concept, fig. 3 is a schematic flow chart of a page access method provided in an embodiment of the present specification. The method may be as follows.
Step 301: receiving an access request sent by a user, wherein the access request comprises a link address to be accessed.
Step 303: analyzing the link address to be accessed contained in the access request, and judging whether the link address to be accessed contains a preview key. If not, go to step 305.
Step 305: and determining the access authority of the user according to the user identification contained in the access request.
Step 307: and judging whether the user has the authority of accessing the encrypted configuration information or not according to the access authority of the user. If the determination result is that there is an access right, execute step 309; otherwise, step 315 is performed.
Step 309: and according to the link address to be accessed, encrypted configuration information corresponding to the link address is determined, and a preview key corresponding to the encrypted configuration information corresponding to the determined link address is searched according to a mapping relation between the pre-stored encrypted configuration information and the preview key.
Step 311: and decrypting the encrypted configuration information based on the preview key to obtain the decrypted configuration information.
Step 313: and sending the decrypted configuration information to the user so that the user can conveniently access a display page rendered by using the decrypted configuration information.
Step 315: according to the link address to be accessed, determining unencrypted configuration information corresponding to the link address, and sending the unencrypted configuration information to the user, so that the user can access a display page rendered by the unencrypted configuration information.
Based on the same inventive concept, fig. 4 is a schematic flow chart of a method for pre-issuing configuration information provided in the embodiment of the present specification.
The background configuration server receives and stores configuration information to be updated (namely the configuration information to be issued), wherein the configuration information to be issued comprises configuration items and attribute values of the configuration items.
The background configuration server receives a preview request, wherein the preview request comprises configuration information to be issued; and generating a preview key corresponding to the to-be-issued configuration information according to the attribute value of the configuration item in the to-be-issued configuration information contained in the preview request and a set encryption algorithm (for example, an RSA mixed encryption algorithm).
Fig. 5 is a flowchart illustrating a preview key generation method according to an embodiment of the present disclosure. The preview key has uniqueness, and information leakage can be avoided. Specifically, a set encryption algorithm is used, and a preview key corresponding to the configuration information to be issued is generated according to the attribute value of the configuration item and the identifier of the configuration item.
For example: for the identifier of the configuration item and the attribute value of the configuration item shown in fig. 5, the RSA algorithm is used to perform mixed encryption, so as to obtain the preview key secret-1 corresponding to the key-1.
Optionally, if the number of the configuration items included in the configuration information to be issued is greater than 1, a preview key corresponding to an attribute value of each configuration item is determined for each configuration item.
Optionally, if the number of attributes corresponding to the configuration items included in the configuration information to be issued is greater than 1, a preview key corresponding to an attribute value of each attribute is determined for each attribute.
The background configuration server modifies the original attribute value corresponding to the configuration item based on the attribute value of the configuration item in the configuration information to be issued contained in the preview request, and generates a preview result corresponding to the configuration item; and encrypting the preview result by using the preview key to obtain the encrypted preview result (namely the pre-release configuration information). Fig. 6 is a schematic diagram of a configuration information pre-publishing method provided in an embodiment of the present disclosure. As can be seen from fig. 6, after the original configuration attribute value is modified, a pre-distribution operation is performed, that is, the preview result is encrypted by using the preview key, so as to obtain pre-distribution configuration information.
And the background configuration server pushes the pre-release configuration information to the application server after obtaining the pre-release configuration information. Fig. 7 is a schematic diagram of a configuration information pre-pushing method provided in an embodiment of the present specification. As can be seen from fig. 7, the pre-release configuration information is pushed to each application server through the push processor.
And after the background configuration server generates the preview key corresponding to the configuration information to be issued, the background configuration server generates a preview link based on the page address, the preview key and the timestamp corresponding to the pre-configuration information through a real-time preview device. The preview link may be a two-dimensional code or may be in other forms. The user can trigger the preview link through scanning a code or a PC device to access the content corresponding to the preview link. Fig. 8 is a schematic diagram illustrating generation of a preview link provided in an embodiment of the present specification.
When an application server receives an access request sent by a user, analyzing a link address to be accessed contained in the access request, and judging whether the link address to be accessed contains a preview secret key or not, if so, accessing pre-release configuration information; otherwise, the original configuration information is accessed. Fig. 9 is a schematic diagram of a page access method provided in an embodiment of the present specification.
Based on the same idea, the page access method provided by the embodiment of the present specification further provides a corresponding device, a storage medium, and an electronic device.
Fig. 10 is a schematic structural diagram of a page access device provided in an embodiment of this specification, where the page access device includes: receiving unit 1001, processing unit 1002, and transmitting unit 1003, wherein:
a receiving unit 1001, configured to receive an access request sent by a user, where the access request includes a link address to be accessed;
the processing unit 1002 is configured to determine, according to the link address to be accessed, encrypted configuration information corresponding to the link address and a preview key corresponding to the encrypted configuration information, where the encrypted configuration information is configuration information to be issued; decrypting the encrypted configuration information based on the preview key to obtain decrypted configuration information;
a sending unit 1003, configured to send the decrypted configuration information to the user, so that the user accesses a display page rendered by using the decrypted configuration information.
In another embodiment provided in this specification, the determining, by the processing unit 1002, a preview key corresponding to the encrypted configuration information according to the link address to be accessed specifically includes:
analyzing the link address to be accessed;
judging whether the link address to be accessed contains a preview key;
if the link address to be accessed contains a preview key, determining the preview key as the preview key corresponding to the encrypted configuration information;
if the link address to be accessed does not contain the preview key, determining the access authority of the user according to the user identifier contained in the access request, and determining the preview key corresponding to the encrypted configuration information according to the access authority of the user.
In another embodiment provided in this specification, the determining, by the processing unit 1002, a preview key corresponding to the encrypted configuration information according to the access right of the user specifically includes:
judging whether the user has the authority to access the encrypted configuration information or not according to the access authority of the user;
and if the judgment result shows that the link address has the access authority, searching the preview key corresponding to the encrypted configuration information corresponding to the determined link address according to the mapping relation between the encrypted configuration information and the preview key which are stored in advance.
In another embodiment provided in this specification, the processing unit 1002 is further configured to, after determining whether the user has an authority to access the encrypted configuration information, if the determination result is that there is no access authority, determine, according to the link address to be accessed, the unencrypted configuration information corresponding to the link address;
the sending unit 1003 is further configured to send the unencrypted configuration information to the user, so that the user can access a display page rendered by using the unencrypted configuration information.
In another embodiment provided in this specification, the mapping relationship between the encrypted configuration information and the preview key, which is stored in advance by the processing unit 1002, specifically includes:
acquiring configuration information to be issued, wherein the configuration information to be issued comprises attribute values of configuration items;
obtaining a preview key corresponding to the configuration information to be issued according to the attribute value of the configuration item and a set encryption algorithm;
encrypting the attribute value of the configuration item by using the preview key to obtain encrypted configuration information;
and establishing a mapping relation between the preview key and the encrypted configuration information.
In another embodiment provided in this specification, the obtaining, by the processing unit 1002, a preview key corresponding to the configuration information to be issued according to the attribute value of the configuration item and a set encryption algorithm specifically includes:
and if the number of the attribute values of the configuration items contained in the configuration information is greater than 1, obtaining a preview key corresponding to the attribute value of each configuration item according to the attribute value of the configuration item and a set encryption algorithm aiming at the attribute value of each configuration item.
In another embodiment provided in this specification, the sending unit 1003 sends the decrypted configuration information to the user, specifically including:
generating a preview page corresponding to the link address to be accessed according to the decrypted configuration information; and sending the preview page to the user.
It should be noted that the page access device provided in this specification may be implemented in a hardware manner, or may be implemented in a software manner, where the implementation manner is not specifically limited. The page access equipment receives an access request sent by a user, wherein the access request comprises a link address to be accessed; according to the link address to be accessed, encrypted configuration information corresponding to the link address and a preview key corresponding to the encrypted configuration information are determined, wherein the encrypted configuration information is the configuration information to be issued; decrypting the encrypted configuration information based on the preview key to obtain decrypted configuration information; and sending the decrypted configuration information to the user so that the user can conveniently access a display page rendered by using the decrypted configuration information. For the link address to be accessed, which contains undistributed configuration information, when the user requests access, the preview key of the configuration information needs to be determined, and then the configuration information is decrypted by the preview key, and then the link address can be accessed by the user. Therefore, the common user can be effectively limited from accessing the undistributed configuration information, the appointed user can determine whether the undistributed configuration information has problems through a preview mode, and the configuration information is released under the condition of no problem, so that the online fault caused by the prior release is avoided, and the user experience of the user is improved.
The present specification also provides a computer readable storage medium storing a computer program which, when executed by a processor, is operable to perform the page access method provided in fig. 1 above.
Based on the page access method shown in fig. 1, an embodiment of the present specification further provides a schematic structural diagram of the electronic device shown in fig. 11. As shown in fig. 11, at the hardware level, the electronic device includes a processor, an internal bus, a network interface, a memory, and a non-volatile memory, but may also include hardware required for other services. The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs the computer program to implement the page access method described in fig. 1 above. The electronic device needs to determine a preview key of the configuration information when a user requests access to the link address to be accessed, and then decrypts the configuration information through the preview key, so that the electronic device can be accessed by the user. Therefore, the common user can be effectively limited from accessing the undistributed configuration information, the appointed user can determine whether the undistributed configuration information has problems through a preview mode, and the configuration information is released under the condition of no problem, so that the online fault caused by the prior release is avoided, and the user experience of the user is improved.
Of course, besides the software implementation, the present specification does not exclude other implementations, such as logic devices or a combination of software and hardware, and the like, that is, the execution subject of the following processing flow is not limited to each logic unit, and may be hardware or logic devices.
In the 90 s of the 20 th century, improvements in a technology could clearly distinguish between improvements in hardware (e.g., improvements in circuit structures such as diodes, transistors, switches, etc.) and improvements in software (improvements in process flow). However, as technology advances, many of today's process flow improvements have been seen as direct improvements in hardware circuit architecture. Designers almost always obtain the corresponding hardware circuit structure by programming an improved method flow into the hardware circuit. Thus, it cannot be said that an improvement in the process flow cannot be realized by hardware physical modules. For example, a Programmable Logic Device (PLD), such as a Field Programmable Gate Array (FPGA), is an integrated circuit whose Logic functions are determined by programming the Device by a user. A digital system is "integrated" on a PLD by the designer's own programming without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Furthermore, nowadays, instead of manually making an Integrated Circuit chip, such Programming is often implemented by "logic compiler" software, which is similar to a software compiler used in program development and writing, but the original code before compiling is also written by a specific Programming Language, which is called Hardware Description Language (HDL), and HDL is not only one but many, such as abel (advanced Boolean Expression Language), ahdl (alternate Hardware Description Language), traffic, pl (core universal Programming Language), HDCal (jhdware Description Language), lang, Lola, HDL, laspam, hardward Description Language (vhr Description Language), vhal (Hardware Description Language), and vhigh-Language, which are currently used in most common. It will also be apparent to those skilled in the art that hardware circuitry that implements the logical method flows can be readily obtained by merely slightly programming the method flows into an integrated circuit using the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, an Application Specific Integrated Circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic for the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller as pure computer readable program code, the same functionality can be implemented by logically programming method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Such a controller may thus be considered a hardware component, and the means included therein for performing the various functions may also be considered as a structure within the hardware component. Or even means for performing the functions may be regarded as being both a software module for performing the method and a structure within a hardware component.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functions of the various elements may be implemented in the same one or more software and/or hardware implementations of the present description.
As will be appreciated by one skilled in the art, embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, the description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the description may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The description has been presented with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the description. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or Flash memory (Flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus 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 apparatus. 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 apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, the description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the description may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
This description may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only an example of the present specification, and is not intended to limit the present specification. Various modifications and alterations to this description will become apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present specification should be included in the scope of the claims of the present specification.

Claims (10)

1. A method for page access, the method comprising:
receiving an access request sent by a user, wherein the access request comprises a link address to be accessed;
according to the link address to be accessed, encrypted configuration information corresponding to the link address and a preview key corresponding to the encrypted configuration information are determined, wherein the encrypted configuration information is the configuration information to be issued;
decrypting the encrypted configuration information based on the preview key to obtain decrypted configuration information;
and sending the decrypted configuration information to the user so that the user can conveniently access a display page rendered by using the decrypted configuration information.
2. The method according to claim 1, wherein determining the preview key corresponding to the encrypted configuration information according to the link address to be accessed specifically includes:
analyzing the link address to be accessed;
judging whether the link address to be accessed contains a preview key;
if the link address to be accessed contains a preview key, determining the preview key as the preview key corresponding to the encrypted configuration information;
if the link address to be accessed does not contain the preview key, determining the access authority of the user according to the user identifier contained in the access request, and determining the preview key corresponding to the encrypted configuration information according to the access authority of the user.
3. The method according to claim 2, wherein determining the preview key corresponding to the encrypted configuration information according to the access right of the user specifically includes:
judging whether the user has the authority to access the encrypted configuration information or not according to the access authority of the user;
and if the judgment result shows that the link address has the access authority, searching the preview key corresponding to the encrypted configuration information corresponding to the determined link address according to the mapping relation between the encrypted configuration information and the preview key which are stored in advance.
4. The method of claim 3, wherein after determining whether the user has permission to access the encrypted configuration information, the method further comprises:
if the judgment result is that the link address is not provided with the access authority, determining unencrypted configuration information corresponding to the link address according to the link address to be accessed, and sending the unencrypted configuration information to the user, so that the user can conveniently access a display page rendered by the unencrypted configuration information.
5. The method of claim 3, wherein the mapping relationship between the pre-stored encrypted configuration information and the preview key specifically comprises:
acquiring configuration information to be issued, wherein the configuration information to be issued comprises attribute values of configuration items;
obtaining a preview key corresponding to the configuration information to be issued according to the attribute value of the configuration item and a set encryption algorithm;
encrypting the attribute value of the configuration item by using the preview key to obtain encrypted configuration information;
and establishing a mapping relation between the preview key and the encrypted configuration information.
6. The method according to claim 5, wherein obtaining the preview key corresponding to the configuration information to be issued according to the attribute value of the configuration item and a set encryption algorithm specifically includes:
and if the number of the attribute values of the configuration items contained in the configuration information is greater than 1, obtaining a preview key corresponding to the attribute value of each configuration item according to the attribute value of the configuration item and a set encryption algorithm aiming at the attribute value of each configuration item.
7. The method of claim 1, wherein sending the decrypted configuration information to the user specifically comprises:
generating a preview page corresponding to the link address to be accessed according to the decrypted configuration information;
and sending the preview page to the user.
8. A page access device, characterized in that the page access device comprises:
the system comprises a receiving unit, a processing unit and a processing unit, wherein the receiving unit is used for receiving an access request sent by a user, and the access request comprises a link address to be accessed;
the processing unit is used for determining encrypted configuration information corresponding to the link address and a preview key corresponding to the encrypted configuration information according to the link address to be accessed, wherein the encrypted configuration information is the configuration information to be issued; decrypting the encrypted configuration information based on the preview key to obtain decrypted configuration information;
a sending unit, configured to send the decrypted configuration information to the user, so that the user can access a display page rendered by using the decrypted configuration information.
9. A computer-readable storage medium, characterized in that the storage medium stores a computer program which, when executed by a processor, implements the page access method of any of the preceding claims 1 to 7.
10. An electronic device comprising a memory, a processor and a computer program stored on the memory and running on the processor, wherein the processor implements the page access method of any of claims 1 to 7 when executing the program.
CN202011479740.XA 2020-12-15 2020-12-15 Page access method, equipment, medium and electronic equipment Pending CN112579955A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011479740.XA CN112579955A (en) 2020-12-15 2020-12-15 Page access method, equipment, medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011479740.XA CN112579955A (en) 2020-12-15 2020-12-15 Page access method, equipment, medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN112579955A true CN112579955A (en) 2021-03-30

Family

ID=75135194

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011479740.XA Pending CN112579955A (en) 2020-12-15 2020-12-15 Page access method, equipment, medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN112579955A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113591120A (en) * 2021-08-09 2021-11-02 北京达佳互联信息技术有限公司 Information issuing method and device, electronic equipment and storage medium
CN114581595A (en) * 2021-12-13 2022-06-03 北京市建筑设计研究院有限公司 Rendering configuration information generation method and device, electronic equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113591120A (en) * 2021-08-09 2021-11-02 北京达佳互联信息技术有限公司 Information issuing method and device, electronic equipment and storage medium
CN114581595A (en) * 2021-12-13 2022-06-03 北京市建筑设计研究院有限公司 Rendering configuration information generation method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN107370730B (en) Login information processing method and equipment
CN108932297B (en) Data query method, data sharing method, device and equipment
US10963542B2 (en) Blockchain-based image processing method and apparatus
CN109062582B (en) Encryption method and device for application installation package
CN105824830B (en) Method, client and equipment for displaying page
CN107580013B (en) Method and device for requesting data in cross-domain mode
CN113079200A (en) Data processing method, device and system
CN109145240B (en) Page access method, device and system based on code scanning operation
CN111796823A (en) Method and device for updating page and displaying page and page maintenance system
CN107479868B (en) Interface loading method, device and equipment
CN112579955A (en) Page access method, equipment, medium and electronic equipment
CN109284066B (en) Data processing method, device, equipment and system
CN112307509A (en) Desensitization processing method, equipment, medium and electronic equipment
CN113746882A (en) User session information storage method and device and electronic equipment
CN111753291B (en) Application container creating method, device and equipment
CN112287376A (en) Method and device for processing private data
CN115134067A (en) Method for detecting private data leakage
CN106156050B (en) Data processing method and device
CN107566499B (en) Data synchronization method, device and system
CN111737304B (en) Processing method, device and equipment of block chain data
CN112650521A (en) Software development kit SDK (software development kit) hot repair method and device and electronic equipment
KR101823226B1 (en) Method and system for code protection
CN108200058B (en) Chat encryption method and device, electronic terminal and readable storage medium
JP2018163490A (en) Access control device and access control program
CN106648913B (en) Data acquisition software identification method and device

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