A method, device, equipment and storage medium for determining access rights

By encrypting the network address and matching the group identifier, the problems of low efficiency in determining access rights and insufficient data security in the existing technology are solved, and fast and safe access rights verification is achieved.

CN114978646BActive Publication Date: 2024-09-20JINGDONG TECH HLDG CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210523364.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-13
Publication Date
2024-09-20
Estimated Expiration
2042-05-13

AI Technical Summary

Technical Problem

In the existing technology, the efficiency of determining access permissions of network addresses is low and data security is insufficient, especially in the case of massive data, resulting in long waiting times for users and easy data theft.

Method used

By encrypting accessible network addresses, generating encrypted information groups and matching based on group identifiers, the access permissions of network addresses can be quickly determined, avoiding one-by-one matching, improving efficiency and enhancing data security.

Benefits of technology

It improves the efficiency of determining access permissions, ensures data security, reduces user waiting time, and prevents data theft.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114978646B
    Figure CN114978646B
Patent Text Reader

Abstract

The embodiment of the present invention discloses a method, device, equipment and storage medium for determining access rights, the method comprising: obtaining a current network address to be accessed; encrypting the current network address to determine the current address encryption information corresponding to the current network address, the current address encryption information including the current digital ciphertext; based on the group identifier corresponding to the stored encryption information group, detecting whether there is a target encryption information group that matches the current digital ciphertext; if there is a target encryption information group, determining the access rights corresponding to the current network address according to the encryption information of each target accessible address in the target encryption information group and the encryption information of the current address. Through the technical solution of the embodiment of the present invention, the efficiency of determining access rights can be improved, and the security of data can be guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to Internet technologies, and in particular to a method, apparatus, device and storage medium for determining access rights. Background Art

[0002] With the rapid development of Internet technology, it is necessary to manage access rights to network addresses in order to ensure the security of network communications.

[0003] Currently, legal accessible network addresses are usually stored in a database. When accessing a network address, each accessible network address in the database can be matched with the network address to determine whether the network address is an accessible network address, that is, whether the network address has access rights.

[0004] However, in the process of implementing the present invention, the inventors found that there are at least the following problems in the prior art:

[0005] Since the amount of data of the stored accessible network addresses is huge, the efficiency of determining access rights through one-by-one matching will be low, the user waiting time will be long, and the user experience will be reduced. In addition, directly storing the accessible network addresses will also pose a risk of data theft and the security of the data cannot be guaranteed. Summary of the invention

[0006] The embodiments of the present invention provide a method, apparatus, device and storage medium for determining access rights, so as to improve the efficiency of determining access rights and ensure the security of data.

[0007] In a first aspect, an embodiment of the present invention provides a method for determining access rights, including:

[0008] Get the current network address to be accessed;

[0009] Encrypting the current network address to determine current address encryption information corresponding to the current network address, wherein the current address encryption information includes current digital ciphertext;

[0010] Based on the group identifier corresponding to the stored encrypted information group, detecting whether there is a target encrypted information group that matches the current digital ciphertext, wherein the encrypted information group is obtained by grouping each of the accessible address encrypted information based on the accessible digital ciphertext in the accessible address encrypted information corresponding to the accessible network address, and the group identifier is determined based on the accessible digital ciphertext in the encrypted information group;

[0011] If the target encrypted information group exists, the access permission corresponding to the current network address is determined according to each target accessible address encrypted information in the target encrypted information group and the current address encrypted information.

[0012] In a second aspect, an embodiment of the present invention further provides an access rights determination device, including:

[0013] The current network address acquisition module is used to obtain the current network address to be accessed;

[0014] An encryption processing module, used to perform encryption processing on the current network address to determine current address encryption information corresponding to the current network address, wherein the current address encryption information includes a current digital ciphertext;

[0015] a detection module, configured to detect whether there is a target encrypted information group matching the current digital ciphertext based on a group identifier corresponding to a stored encrypted information group, wherein the encrypted information group is obtained by grouping each of the accessible address encrypted information based on accessible digital ciphertexts in the accessible address encrypted information corresponding to the accessible network address, and the group identifier is determined based on the accessible digital ciphertext in the encrypted information group;

[0016] The access permission determination module is used to determine the access permission corresponding to the current network address according to the target encrypted information group and the current address encryption information if the target encrypted information group exists.

[0017] In a third aspect, an embodiment of the present invention further provides an electronic device, the electronic device comprising:

[0018] one or more processors;

[0019] A memory for storing one or more programs;

[0020] When the one or more programs are executed by the one or more processors, the one or more processors implement the access authority determination method provided by any embodiment of the present invention.

[0021] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the access authority determination method provided by any embodiment of the present invention.

[0022] The embodiments of the above invention have the following advantages or beneficial effects:

[0023] By pre-encrypting the accessible network address, and based on the accessible digital ciphertext in the accessible address encryption information corresponding to the accessible network address, each accessible address encryption information is grouped to obtain each encryption information group, and the corresponding group identifier is determined based on the accessible digital ciphertext in the encryption information group, so that the security of the stored data can be guaranteed by encryption, and the efficiency of determining the access rights can be improved by grouping. After obtaining the current network address to be accessed, the current network address can be encrypted to determine the current address encryption information corresponding to the current network address, and based on the group identifier corresponding to the stored encryption information group, it is detected whether there is a target encryption information group that matches the current digital ciphertext in the current address encryption information, so that based on the current digital ciphertext, it is only necessary to match with the group identifier corresponding to each encryption information group, without matching with each accessible address encryption information, and when there is a matching target encryption information group, the access rights corresponding to the current network address are further determined according to each target accessible address encryption information and the current address encryption information in the target encryption information group, so that the efficiency of determining the access rights can be improved and the security of the data can be guaranteed. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Figure 1 is a flow chart of a method for determining access rights provided in Embodiment 1 of the present invention;

[0025] Figure 2 This is a preset example of an encrypted file involved in the first embodiment of the present invention;

[0026] Figure 3 is a flow chart of a method for determining access rights provided by Embodiment 2 of the present invention;

[0027] Figure 4 It is a schematic diagram of the structure of a device for determining access rights provided in Embodiment 3 of the present invention;

[0028] Figure 5 It is a structural schematic diagram of an electronic device provided in Embodiment 4 of the present invention. DETAILED DESCRIPTION

[0029] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.

[0030] Embodiment 1

[0031] Figure 1This is a flowchart of a method for determining access rights provided in the first embodiment of the present invention. This embodiment can be applied to the case where there are a large number of accessible network addresses and whether the current network address to be accessed has access rights. In particular, it can be applied to the scenario where a user accesses a network address through a client and determines whether the network address has access rights. The method can be executed by an access rights determination device, which can be implemented by software and / or hardware and integrated into an electronic device. Figure 1 As shown, the method specifically comprises the following steps:

[0032] S110: Obtain the current network address to be accessed.

[0033] The current network address may refer to the network address corresponding to the information resource to be accessed. For example, the information resource may refer to an HTML page. The network address may refer to a URL (Uniform Resource Locator). Each information resource has a unified and unique URL address on the network, so that the corresponding information resource can be accessed by accessing the URL address.

[0034] Specifically, when a user accesses a corresponding information resource by triggering a network address on a client, the current network address to be accessed can be intercepted and obtained.

[0035] S120, encrypting the current network address to determine current address encryption information corresponding to the current network address, where the current address encryption information includes the current digital ciphertext.

[0036] The current digital ciphertext may refer to the sortable pure digital ciphertext corresponding to the current network address. The current address encryption information in this embodiment may only include the current digital ciphertext.

[0037] Specifically, the current protocol information, current domain name information and resource storage path information in the current network address can be extracted as the data to be encrypted, and based on the preset digital encryption method, the encrypted data is encrypted to determine the current digital ciphertext corresponding to the current network address. By only encrypting the current protocol information, current domain name information and resource storage path information in the current network address, it is possible to avoid encrypting invalid data in the current network address and ensure the validity of the encrypted information. Among them, the preset digital encryption method can be a pre-set method for generating pure digital ciphertext. The preset digital encryption method can be but is not limited to the pure digital encryption method in the MD5 (Message Digest Algorithm) information digest. For example, if the current network address is: https: / / list.jd.com / list.html?cat=737,794,798, the data to be encrypted is extracted as: https: / / list.jd.com / list.html, and the MD5 pure digital encryption method can be used to generate the current digital ciphertext with a maximum length of 16 bits, such as 2513289846331975.

[0038] S130. Based on the group identifier corresponding to the stored encrypted information group, detect whether there is a target encrypted information group that matches the current digital ciphertext, wherein the encrypted information group is obtained by grouping each accessible address encrypted information based on the accessible digital ciphertext in the accessible address encrypted information corresponding to the accessible network address, and the group identifier is determined based on the accessible digital ciphertext in the encrypted information group.

[0039] Exemplarily, based on the accessible digital ciphertext in the accessible address encryption information corresponding to the accessible network address, each accessible address encryption information is grouped to obtain each encrypted information group, which may include: encrypting each accessible network address to determine the accessible address encryption information corresponding to each accessible network address; based on a preset grouping method and the accessible digital ciphertext in the accessible address encryption information, each accessible address encryption information is grouped to obtain each encrypted information group.

[0040] Among them, the accessible network address can be a pre-set legal network address with access rights. The accessible address encryption information in this embodiment may also only include accessible digital ciphertext. Specifically, each accessible network address can be encrypted based on the same process as the current network address encryption process. For example, for each accessible network address, the accessible protocol information, accessible domain name information and resource storage path information in the accessible network address can be extracted as data to be encrypted, and based on a preset digital encryption method, the encrypted data can be encrypted to determine the accessible digital ciphertext corresponding to the accessible network address. This embodiment can group each accessible address encryption information according to a preset grouping method based on the accessible digital ciphertext corresponding to the accessible network address, that is, group each accessible digital ciphertext to obtain each encrypted information group, and each encrypted information group obtained at this time includes at least one accessible digital ciphertext after division.

[0041] Exemplarily, the grouping of each accessible address encrypted information can be achieved by the following two grouping methods to obtain each encrypted information group:

[0042] As a first grouping method, "based on a preset grouping method and the accessible digital ciphertext in the accessible address encryption information, each accessible address encryption information is grouped to obtain each encrypted information group", which may include: based on the accessible digital ciphertext in the accessible address encryption information, each accessible address encryption information is sorted, and according to the sorted order, each preset number of accessible address encryption information is taken as a group to obtain each encrypted information group.

[0043] The preset number may refer to the number of accessible address encryption information contained in each encryption information group, which may be set based on business requirements and the number of currently existing accessible network addresses.

[0044] Specifically, for the case where the accessible address encrypted information only includes accessible digital ciphertexts, each accessible digital ciphertext can be arranged in descending or ascending order to obtain each accessible digital ciphertext whose numbers decrease or increase in sequence after sorting, and according to the arrangement order, each preset number of accessible digital ciphertexts are divided into a group, that is, each encrypted information group is obtained, and each encrypted information group can include the same number of accessible digital ciphertexts. For example, if there are 100,000 accessible network addresses, the 100,000 accessible digital ciphertexts can be sorted, and according to the sorted order, every 1,000 accessible digital ciphertexts are divided into a group, thereby obtaining 100 encrypted information groups.

[0045] As a second grouping method, "based on the preset grouping method and the accessible digital ciphertext in the accessible address encryption information, grouping each accessible address encryption information to obtain each encrypted information group" may include: based on the accessible digital ciphertext in the accessible address encryption information, taking each accessible address encryption information in each preset digital ciphertext range with a preset ciphertext interval as a group to obtain each encrypted information group.

[0046] The preset digital ciphertext range may be a preset digital ciphertext range with a fixed preset ciphertext interval. For example, if the preset ciphertext interval is 1000, the preset digital ciphertext range may be: 21000-21999, 22000-22999, etc.

[0047] Specifically, for the case where the accessible address encryption information only includes accessible digital ciphertexts, the preset digital ciphertext range of each accessible digital ciphertext can be detected, and the accessible digital ciphertexts in the same preset digital ciphertext range can be divided into a group, that is, each encrypted information group is obtained.

[0048] Exemplarily, determining the group identifier corresponding to the encrypted information group based on the accessible digital ciphertext in the encrypted information group may include: determining the group identifier corresponding to each encrypted information group based on each accessible digital ciphertext in each encrypted information group based on a preset group identifier determination method that matches the preset grouping method.

[0049] For example, the first group identification determination method that matches the first grouping method can be: based on the minimum accessible digital ciphertext in the encrypted information group, determine the group identification corresponding to the encrypted information group, or, based on the maximum accessible digital ciphertext in the encrypted information group, determine the group identification corresponding to the encrypted information group. Specifically, for each encrypted information group, if the accessible digital ciphertexts are sorted in ascending order, the minimum accessible digital ciphertext (i.e., the first accessible digital ciphertext) or the maximum accessible digital ciphertext (i.e., the last accessible digital ciphertext) in the encrypted information group can be directly used as the group identification corresponding to the encrypted information group. Alternatively, if the encrypted information group is stored in the form of a file, the minimum accessible digital ciphertext or the maximum accessible digital ciphertext in the encrypted information group and the file identification can be used to generate a corresponding file name, and the file name can be used as the group identification. For example, if the minimum accessible digital ciphertext in a certain encrypted information group is 21344, the generated file name: 21344jrapp.txt can be used as the group identification.

[0050] The second group identification determination method matching the second grouping method can be: based on the left endpoint in the preset digital ciphertext range corresponding to the encryption information group, determine the group identification corresponding to the encryption information group, or based on the right endpoint in the preset digital ciphertext range corresponding to the encryption information group, determine the group identification corresponding to the encryption information group. Specifically, for each encryption information group, the lower limit value or upper limit value of the preset digital ciphertext range in which the encryption information group is located can be directly determined as the group identification corresponding to the encryption information group. Or, if the encryption information group is stored in the form of a file, the lower limit value or upper limit value of the preset digital ciphertext range in which the encryption information group is located and the file identification can be used to generate a corresponding file name, and the file name is used as the group identification. For example, if the preset digital ciphertext range in which a certain encryption information group is located is 21000-21999, the lower limit value 21000 or the upper limit value 21999 can be directly used as the group identification corresponding to the encryption information group. Or the generated file name 21000jrapp.txt or 21999jrapp.txt is used as the group identification.

[0051] Exemplarily, S130 may include: obtaining group identifiers corresponding to each stored encrypted information group; determining a target group identifier corresponding to the current digital ciphertext; matching the target group identifier with the group identifier corresponding to each encrypted information group to determine whether there is a target encrypted information group corresponding to the target group identifier.

[0052] Specifically, the target group identifier corresponding to the current digital ciphertext can be determined based on a method that matches the above-mentioned method for determining the group identifier corresponding to the encrypted information group. Exemplarily, if the group identifier corresponding to the encrypted information group is determined based on the first group identifier determination method, the current digital ciphertext can be matched with the digital ciphertext in each stored group identifier, and the group identifier corresponding to the matched data ciphertext can be determined as the target group identifier. For example, if the minimum accessible digital ciphertext in the encrypted information group is used as the group identifier corresponding to the encrypted information group, the various group identifiers can be sorted from small to large, and it is detected whether the current digital ciphertext is in two adjacent group identifiers. If so, the group identifier with a smaller value can be used as the target group identifier. Exemplarily, if the group identifier corresponding to the encrypted information group is determined based on the second group identifier determination method, the quotient obtained by dividing the current digital ciphertext by the preset ciphertext interval can be multiplied by the preset ciphertext interval, and the obtained value can be used as the target group identifier. For example, if the current digital ciphertext is: 21024, and the preset ciphertext interval is 1000, it can be determined that the target group identifier is 21000. By matching the target group identifier with each stored group identifier, it is detected whether the target group identifier exists in each stored group identifier, thereby determining whether the target encrypted information group corresponding to the target group identifier exists.

[0053] S140: If there is a target encrypted information group, determine the access rights corresponding to the current network address according to each target accessible address encrypted information and the current address encrypted information in the target encrypted information group.

[0054] Specifically, when there is a target encrypted information group, it indicates that the current network address may be a legal accessible network address. At this time, the current address encryption information can be matched with each target accessible address encryption information in the target encrypted information group to determine whether there is the same target accessible address encryption information as the current address encryption information, thereby determining whether the current network address has access rights. For example, in the case where the accessible address encryption information only includes accessible digital ciphertexts, the current digital ciphertext can be matched with each accessible digital ciphertext in the target encrypted information group to determine whether there is the same target accessible digital ciphertext as the current digital ciphertext, thereby determining whether the current network address has access rights. If it exists, it indicates that the current network address has access rights, and the web page corresponding to the current network address can be loaded at this time, thereby allowing the user to access the information resources corresponding to the current network address. If it does not exist, it indicates that the current network address does not have access rights, and the loading of the corresponding page can be prohibited at this time, and the address non-compliance information can be displayed to prompt the user the reason for the access failure.

[0055] Exemplarily, if it is detected that there is no target encrypted information group that matches the current digital ciphertext, it is determined that the current network address does not have access rights. Specifically, when it is detected that there is no target encrypted information group, no further permission verification is required. At this time, it can be directly determined that the current network address does not have access rights. Based on the current digital ciphertext, it is only necessary to match the group identifier corresponding to each encrypted information group, without matching each accessible address encrypted information, which greatly improves the efficiency of determining access rights and ensures data security.

[0056] The technical solution of this embodiment is to encrypt the accessible network address in advance, and to group the accessible address encryption information to obtain the encrypted information groups based on the accessible digital ciphertext in the accessible address encryption information corresponding to the accessible network address, and to determine the corresponding group identifier based on the accessible digital ciphertext in the encrypted information group, so that the security of the stored data can be guaranteed by encryption, and the efficiency of determining the access rights can be improved by grouping. After obtaining the current network address to be accessed, the current network address can be encrypted to determine the current address encryption information corresponding to the current network address, and based on the group identifier corresponding to the stored encryption information group, it is detected whether there is a target encryption information group that matches the current digital ciphertext in the current address encryption information, so that based on the current digital ciphertext, it is only necessary to match the group identifier corresponding to each encryption information group, without matching each accessible address encryption information, and when there is a matching target encryption information group, the access rights corresponding to the current network address are further determined based on each target accessible address encryption information and the current address encryption information in the target encryption information group, so that the efficiency of determining the access rights can be improved and the security of the data can be guaranteed.

[0057] On the basis of the above technical solution, "determining the access rights corresponding to the current network address according to the encryption information of each target accessible address in the target encrypted information group and the encryption information of the current address" in S140 may include: based on a binary search method, querying whether the current digital ciphertext exists in the digital ciphertexts accessible to each target in the target encrypted information group; and determining the access rights corresponding to the current network address based on the query results.

[0058] Specifically, for the case where the accessible address encrypted information only includes accessible digital ciphertexts, the target accessible digital ciphertexts in the target encrypted information group can be sorted and converted into an ordered array, and through a binary search method, it can be quickly determined whether the current digital ciphertext exists in each target accessible digital ciphertext in the target encrypted information group. If it exists, it is determined that the current network address has access rights, otherwise it is determined that the current network address does not have access rights, so there is no need to compare one by one, which can further improve the efficiency of determining access rights. For example, if the number of target accessible digital ciphertexts in the target encrypted information group is 1000, it takes at most log2(1000)<10 times through binary search to determine the query result, thereby achieving more efficient and secure access rights verification.

[0059] On the basis of the above-mentioned technical solutions, after determining the group identifier corresponding to the encrypted information group, it can also include: storing each encrypted information group into a corresponding encrypted file, and determining the file name corresponding to the encrypted file based on the group identifier; presetting each encrypted file into an application package, so as to store each encrypted file on the access terminal by installing the application package.

[0060] Specifically, each encrypted information group can be stored in the form of a file, that is, one encrypted file stores one encrypted information group, and the corresponding file name is determined based on the group identifier. For example, if the digital ciphertext is used as the group identifier, the corresponding file name can be determined based on the group identifier and the file identifier. Figure 2 A preset example of an encrypted file is given. Figure 2 As shown, by presetting all generated encrypted files into an APK (Android application package), each encrypted file can be stored in a readable and writable directory of the access terminal by installing the application package, and the encrypted file can be updated by upgrading the application program of the access terminal, such as adding a new encrypted file. When obtaining the group identifier corresponding to each stored encrypted information group, each encrypted file in the readable and writable directory of the access terminal can be read into the access terminal memory to obtain the group identifier corresponding to the file name of each encrypted file and each target accessible address encrypted information in the target encrypted information group, so as to realize the permission verification of the network address.

[0061] Embodiment 2

[0062] Figure 3 This is a flowchart of a method for determining access rights provided in Embodiment 2 of the present invention. In this embodiment, based on the above embodiment, the current address encryption information may include current string ciphertext in addition to the current digital ciphertext, and on this basis, the access rights determination process is described in detail. The explanations of the terms that are the same or corresponding to the above embodiments are not repeated here.

[0063] See also Figure 3 The access permission determination method provided in this embodiment specifically includes the following steps:

[0064] S310: Obtain the current network address to be accessed.

[0065] S320, encrypt the current network address to determine the current address encryption information corresponding to the current network address, where the current address encryption information includes the current digital ciphertext and the current character string ciphertext.

[0066] The current string ciphertext may refer to the string ciphertext with numbers and letters corresponding to the current network address. In addition to the sortable current digital ciphertext, the current address encryption information in this embodiment may also include the current string ciphertext with a higher encryption level to further ensure data security.

[0067] Exemplarily, S320 may include: extracting current protocol information, current domain name information and resource storage path information in the current network address; encrypting the current protocol information, current domain name information and resource storage path information based on a preset digital encryption method to determine the current digital ciphertext corresponding to the current network address; encrypting the current protocol information, current domain name information and resource storage path information based on a preset string encryption method to determine the current string ciphertext corresponding to the current network address.

[0068] The preset digital encryption method may be a pre-set method for generating pure digital ciphertext. The preset string encryption method may be a pre-set method for generating ciphertext in a string format. The preset digital encryption method may be, but not limited to, a pure digital encryption method in an MD5 (Message Digest Algorithm) information digest. The preset string encryption method may be, but not limited to, a string encryption method in an MD5 information digest.

[0069] Specifically, the current protocol information, current domain name information and resource storage path information in the current network address can be extracted as the data to be encrypted, and based on the preset digital encryption method, the encrypted data is encrypted to determine the current digital ciphertext corresponding to the current network address. The encrypted data is encrypted using the preset string encryption method to determine the current string ciphertext corresponding to the current network address. By encrypting only the current protocol information, current domain name information and resource storage path information in the current network address, it is possible to avoid encrypting invalid data in the current network address and ensure the validity of the encrypted information. For example, if the current network address is: https: / / list.jd.com / list.html? cat=737,794,798, then the data to be encrypted is extracted as: https: / / list.jd.com / list.html, and the data to be encrypted can be used to generate a current digital ciphertext with a maximum length of 16 bits, such as 2513289846331975, by using the MD5 pure digital encryption method, and the data to be encrypted can be used to generate a current string ciphertext with a maximum length of 32 bits, such as c45bb5352d8d9a89e16dda3f1e9c7df6 by using the MD5 string encryption method. In this embodiment, the current digital ciphertext and the current string ciphertext can also be concatenated to obtain the current address encryption information generated by the concatenation, for example: the current address encryption information is: 2513289846331975-c45bb5352d8d9a89e16dda3f1e9c7df6.

[0070] S330. Based on the group identifier corresponding to the stored encrypted information group, detect whether there is a target encrypted information group that matches the current digital ciphertext, wherein the encrypted information group is obtained by grouping each accessible address encrypted information based on the accessible digital ciphertext in the accessible address encrypted information corresponding to the accessible network address, and the group identifier is determined based on the accessible digital ciphertext in the encrypted information group.

[0071] Exemplarily, based on the accessible digital ciphertext in the accessible address encryption information corresponding to the accessible network address, each accessible address encryption information is grouped to obtain each encrypted information group, which may include: encrypting each accessible network address to determine the accessible address encryption information corresponding to each accessible network address; based on a preset grouping method and the accessible digital ciphertext in the accessible address encryption information, each accessible address encryption information is grouped to obtain each encrypted information group.

[0072] Specifically, the same process as the current network address encryption process is used to encrypt each accessible network address, and the obtained accessible address encryption information also includes two parts of ciphertext, namely, accessible digital ciphertext and accessible character string ciphertext. The above embodiment provides two grouping methods. The first grouping method is: based on the accessible digital ciphertext in the accessible address encryption information, each accessible address encryption information is sorted, and in the sorted order, each preset number of accessible address encryption information is taken as a group to obtain each encrypted information group. The second grouping method is: based on the accessible digital ciphertext in the accessible address encryption information, each accessible address encryption information in each preset digital ciphertext range with a preset ciphertext interval is taken as a group to obtain each encrypted information group. For the case where the accessible address encrypted information includes accessible digital ciphertext and accessible string ciphertext, each encrypted information group after each grouping method can only include the corresponding accessible string ciphertext (the accessible digital ciphertext at this time is only used for encrypted information sorting and determining the group identifier), or can include the complete accessible address encrypted information composed of accessible digital ciphertext and accessible string ciphertext, so that the binary search method can be used for rapid query later, further improving the efficiency of authority determination. For example, the information stored in the encrypted information group is as follows:

[0073] 7adfc819fc7e96f55955a2a342b37050

[0074] 7fc9e1d76260c965f8a66cd646d4014b

[0075] 3921e77a985fc0f2fb025370091946c2

[0076] …

[0077] f1ee90f0feb64e67d2d2ad843b414ba1

[0078] or,

[0079] 9748402862000022-7adfc819fc7e96f55955a2a342b37050

[0080] 9751480745123414-7fc9e1d76260c965f8a66cd646d4014b

[0081] 9774615100228041-3921e77a985fc0f2fb025370091946c2

[0082] …

[0083] 9998163985652090-f1ee90f0feb64e67d2d2ad843b414ba1

[0084] or,

[0085] 21000-ef27bcf3fdc7228db0d0df08621a77db

[0086] 21001-10909800a65dce39c3f54c57974e7a33

[0087] 21002-a0dd066961968f903172e1a2f37d889d

[0088] …

[0089] 21999-edeb7fc67e3b3326623edee195606a06

[0090] The method for determining the group identifier corresponding to the encryption group information in this embodiment, and the process of detecting whether there is a target encryption information group matching the current digital ciphertext based on the group identifier corresponding to the stored encryption information group can be referred to the above embodiment and will not be repeated here.

[0091] S340: If there is a target encrypted information group, determine the access rights corresponding to the current network address according to the encrypted information of each target accessible address in the target encrypted information group and the encrypted information of the current address.

[0092] Exemplarily, S340 may include: matching each target accessible character string ciphertext in the target encrypted information group with the current character string ciphertext, and determining the access permission corresponding to the current network address based on the matching result.

[0093] Specifically, in the case where the target encrypted information group may only include the corresponding target accessible string ciphertext, each target accessible string ciphertext in the target encrypted information group may be matched with the current string ciphertext to determine whether there is a target accessible string ciphertext identical to the current string ciphertext, and if so, it is determined that the current network address has access rights, otherwise it is determined that the current network address does not have access rights. By matching with a string ciphertext with a higher number of bits, the accuracy of access rights determination can be further improved, and data security can be further guaranteed.

[0094] Exemplarily, S340 may also include: if it is detected based on a binary search method that a current digital ciphertext exists in the target encrypted information group, the target accessible string ciphertext corresponding to the current digital ciphertext in the target encrypted information group is matched with the current string ciphertext, and the access rights corresponding to the current network address are determined based on the matching result.

[0095] Specifically, for the case where the target encrypted information group may include complete accessible address encrypted information consisting of accessible digital ciphertext and accessible string ciphertext, the various target accessible digital ciphertexts in the target encrypted information group may be sorted and converted into an ordered array, and by binary search, it may be quickly detected whether the current digital ciphertext exists in the various target accessible digital ciphertexts in the target encrypted information group, without the need to compare them one by one, thereby further improving the efficiency of determining access rights. If the current digital ciphertext exists, it may be further determined whether the target accessible string ciphertext corresponding to the current digital ciphertext in the target encrypted information group is the same as the current string ciphertext. If they are the same, it may be determined that the current network address has access rights, otherwise it may be determined that the current network address does not have access rights, thereby using the current string ciphertext to further improve the accuracy of determining access rights and further ensure data security.

[0096] The technical solution of this embodiment, by encrypting the current network address, determining the current address encryption information including the current digital ciphertext and the current string ciphertext, and verifying the current network address based on the current digital ciphertext and the current string ciphertext, can further improve the accuracy of access right determination and further ensure data security.

[0097] The following is an embodiment of an access permission determination device provided in an embodiment of the present invention. The device and the access permission determination methods of the above embodiments belong to the same inventive concept. For details not described in detail in the embodiment of the access permission determination device, reference can be made to the embodiment of the above access permission determination method.

[0098] Embodiment 3

[0099] Figure 4 This is a schematic diagram of the structure of an access rights determination device provided by Embodiment 3 of the present invention. This embodiment is applicable to the case where there are a large number of accessible network addresses and whether the current network address to be accessed has access rights. Figure 4 The device specifically includes: a current network address acquisition module 410, an encryption processing module 420, a detection module 430 and an access authority determination module 440.

[0100] Among them, the current network address acquisition module 410 is used to obtain the current network address to be accessed; the encryption processing module 420 is used to encrypt the current network address and determine the current address encryption information corresponding to the current network address, and the current address encryption information includes the current digital ciphertext; the detection module 430 is used to detect whether there is a target encryption information group that matches the current digital ciphertext based on the group identifier corresponding to the stored encryption information group, wherein the encryption information group is obtained by grouping each accessible address encryption information based on the accessible digital ciphertext in the accessible address encryption information corresponding to the accessible network address, and the group identifier is determined based on the accessible digital ciphertext in the encryption information group; the access permission determination module 440 is used to determine the access permission corresponding to the current network address based on the target encryption information group and the current address encryption information if the target encryption information group exists.

[0101] Optionally, the device further comprises: an encryption information grouping module;

[0102] Encrypted information grouping module, including:

[0103] An encryption processing unit, used to perform encryption processing on each accessible network address and determine the accessible address encryption information corresponding to each accessible network address;

[0104] The encrypted information grouping unit is used to group the accessible address encrypted information based on a preset grouping method and the accessible digital ciphertext in the accessible address encrypted information to obtain each encrypted information group.

[0105] Optionally, the encryption information grouping unit is specifically used for:

[0106] Based on the accessible digital ciphertext in the accessible address encrypted information, each accessible address encrypted information is sorted, and according to the sorted order, each preset number of accessible address encrypted information is taken as a group to obtain each encrypted information group; or,

[0107] Based on the accessible digital ciphertext in the accessible address encrypted information, each accessible address encrypted information in each preset digital ciphertext range with a preset ciphertext interval is taken as a group to obtain each encrypted information group, wherein each preset digital ciphertext range.

[0108] Optionally, the device further includes: a group identification determination module, specifically configured to:

[0109] Determine the group identifier corresponding to the encrypted information group based on the smallest accessible digital ciphertext in the encrypted information group, or determine the group identifier corresponding to the encrypted information group based on the largest accessible digital ciphertext in the encrypted information group; or

[0110] The group identifier corresponding to the encrypted information group is determined based on the lower limit value of the preset digital ciphertext range corresponding to the encrypted information group, or the group identifier corresponding to the encrypted information group is determined based on the upper limit value of the preset digital ciphertext range corresponding to the encrypted information group.

[0111] Optionally, the detection module 430 is specifically used to: obtain the group identifier corresponding to each stored encrypted information group; determine the target group identifier corresponding to the current digital ciphertext; match the target group identifier with the group identifier corresponding to each encrypted information group to determine whether there is a target encrypted information group corresponding to the target group identifier.

[0112] Optionally, the access permission determination module 440 is specifically used to: query whether the current digital ciphertext exists in each target-accessible digital ciphertext in the target encrypted information group based on a binary search method; and determine the access permission corresponding to the current network address based on the query result.

[0113] Optionally, the current address encryption information also includes: the current character string ciphertext;

[0114] The encryption processing module 420 is specifically used to: extract the current protocol information, current domain name information and resource storage path information in the current network address; based on a preset digital encryption method, encrypt the current protocol information, current domain name information and resource storage path information to determine the current digital ciphertext corresponding to the current network address; based on a preset string encryption method, encrypt the current protocol information, current domain name information and resource storage path information to determine the current string ciphertext corresponding to the current network address.

[0115] Optionally, the access authority determination module 440 is specifically configured to:

[0116] Match each target accessible string ciphertext in the target encrypted information group with the current string ciphertext, and determine the access rights corresponding to the current network address based on the matching result; or,

[0117] If the current digital ciphertext is detected in the target encrypted information group based on the binary search method, the target accessible string ciphertext corresponding to the current digital ciphertext in the target encrypted information group is matched with the current string ciphertext, and the access rights corresponding to the current network address are determined based on the matching result.

[0118] Optionally, the device further comprises:

[0119] The encrypted information group storage module is used to store each encrypted information group into a corresponding encrypted file after determining the group identifier corresponding to the encrypted information group, and determine the file name corresponding to the encrypted file based on the group identifier; pre-set each encrypted file into an application package, so as to store each encrypted file on the access terminal by installing the application package.

[0120] Optionally, the access permission determination module 440 is further used to: if it is detected that there is no target encrypted information group matching the current digital ciphertext, determine that the current network address does not have access permission.

[0121] The access permission determination device provided in the embodiment of the present invention can execute the access permission determination method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of executing the access permission determination method.

[0122] It is worth noting that in the embodiment of the above-mentioned access right determination device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.

[0123] Embodiment 4

[0124] Figure 5 A schematic diagram of the structure of an electronic device provided in Embodiment 4 of the present invention. Figure 5 A block diagram of an exemplary electronic device 12 suitable for use in implementing embodiments of the present invention is shown. Figure 5 The electronic device 12 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0125] like Figure 5 As shown, the electronic device 12 is in the form of a general purpose computing device. The components of the electronic device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that connects various system components (including the system memory 28 and the processing unit 16).

[0126] Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. By way of example, these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.

[0127] The electronic device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the electronic device 12, including volatile and non-volatile media, removable and non-removable media.

[0128] The system memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. The electronic device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be used to read and write non-removable, non-volatile magnetic media ( Figure 5 not shown, usually called a "hard drive"). Although Figure 5 Not shown in the figure, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data medium interfaces. The system memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present invention.

[0129] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in system memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. Program modules 42 generally perform the functions and / or methods of the embodiments described herein.

[0130] The electronic device 12 may also communicate with one or more external devices 14 (e.g., keyboards, pointing devices, displays 24, etc.), may communicate with one or more devices that enable a user to interact with the electronic device 12, and / or may communicate with any device that enables the electronic device 12 to communicate with one or more other computing devices (e.g., network cards, modems, etc.). Such communication may be performed via an input / output (I / O) interface 22. Furthermore, the electronic device 12 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 20. As shown, the network adapter 20 communicates with other modules of the electronic device 12 via a bus 18. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0131] The processing unit 16 executes various functional applications and data processing by running the program stored in the system memory 28, for example, implementing a method for determining access rights provided in an embodiment of the present invention, the method comprising:

[0132] Get the current network address to be accessed;

[0133] Encrypt the current network address to determine the current address encryption information corresponding to the current network address, where the current address encryption information includes the current digital ciphertext;

[0134] Based on the group identifier corresponding to the stored encrypted information group, detecting whether there is a target encrypted information group that matches the current digital ciphertext, wherein the encrypted information group is obtained by grouping each accessible address encrypted information based on the accessible digital ciphertext in the accessible address encrypted information corresponding to the accessible network address, and the group identifier is determined based on the accessible digital ciphertext in the encrypted information group;

[0135] If the target encrypted information group exists, the access permission corresponding to the current network address is determined according to each target accessible address encrypted information and the current address encrypted information in the target encrypted information group.

[0136] Of course, those skilled in the art can understand that the processor can also implement the technical solution of the access authority determination method provided by any embodiment of the present invention.

[0137] Embodiment 5

[0138] This embodiment provides a computer-readable storage medium having a computer program stored thereon. When the program is executed by a processor, the steps of the access authority determination method provided in any embodiment of the present invention are implemented. The method includes:

[0139] Get the current network address to be accessed;

[0140] Encrypt the current network address to determine the current address encryption information corresponding to the current network address, where the current address encryption information includes the current digital ciphertext;

[0141] Based on the group identifier corresponding to the stored encrypted information group, detecting whether there is a target encrypted information group that matches the current digital ciphertext, wherein the encrypted information group is obtained by grouping each accessible address encrypted information based on the accessible digital ciphertext in the accessible address encrypted information corresponding to the accessible network address, and the group identifier is determined based on the accessible digital ciphertext in the encrypted information group;

[0142] If the target encrypted information group exists, the access permission corresponding to the current network address is determined according to each target accessible address encrypted information and the current address encrypted information in the target encrypted information group.

[0143] The computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to: an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.

[0144] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0145] The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0146] Computer program code for performing the operations of the present invention may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0147] It should be understood by those skilled in the art that the modules or steps of the present invention described above can be implemented by a general-purpose computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, optionally, they can be implemented by a program code executable by a computer device, so that they can be stored in a storage device and executed by the computing device, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.

[0148] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A method for determining access rights, It is characterized in that include: Get the current network address to be accessed; Encrypting the current network address to determine current address encryption information corresponding to the current network address, wherein the current address encryption information includes current digital ciphertext; Based on the group identifier corresponding to the stored encrypted information group, detecting whether there is a target encrypted information group that matches the current digital ciphertext, wherein the encrypted information group is obtained by grouping each of the accessible address encrypted information based on the accessible digital ciphertext in the accessible address encrypted information corresponding to the accessible network address, and the group identifier is determined based on the accessible digital ciphertext in the encrypted information group; the accessible network address is a pre-set legal network address with access rights; If the target encrypted information group exists, the access permission corresponding to the current network address is determined according to each target accessible address encrypted information in the target encrypted information group and the current address encrypted information.

2. The method according to claim 1, It is characterized in that The step of grouping each of the accessible address encrypted information based on the accessible digital ciphertext in the accessible address encrypted information corresponding to the accessible network address to obtain each of the encrypted information groups includes: Encrypting each accessible network address to determine the accessible address encryption information corresponding to each accessible network address; Based on a preset grouping method and the accessible digital ciphertext in the accessible address encrypted information, each of the accessible address encrypted information is grouped to obtain each of the encrypted information groups.

3. The method according to claim 2, It is characterized in that The step of grouping the encrypted information of the accessible addresses based on a preset grouping method to obtain the encrypted information groups includes: Based on the accessible digital ciphertext in the accessible address encrypted information, each of the accessible address encrypted information is sorted, and according to the sorted order, each preset number of the accessible address encrypted information is taken as a group to obtain each of the encrypted information groups; or, Based on the accessible digital ciphertext in the accessible address encrypted information, each of the accessible address encrypted information in each preset digital ciphertext range with a preset ciphertext interval is taken as a group to obtain each of the encrypted information groups, wherein each preset digital ciphertext range.

4. The method according to claim 3, It is characterized in that The determining, based on the accessible digital ciphertext in the encrypted information group, a group identifier corresponding to the encrypted information group includes: Determine the group identifier corresponding to the encrypted information group based on the smallest accessible digital ciphertext in the encrypted information group, or determine the group identifier corresponding to the encrypted information group based on the largest accessible digital ciphertext in the encrypted information group; or The group identifier corresponding to the encrypted information group is determined based on the lower limit value of the preset digital ciphertext range corresponding to the encrypted information group, or the group identifier corresponding to the encrypted information group is determined based on the upper limit value of the preset digital ciphertext range corresponding to the encrypted information group.

5. The method according to claim 1, It is characterized in that The detecting whether there is a target encrypted information group matching the current digital ciphertext based on the group identifier corresponding to the stored encrypted information group includes: Obtaining group identifiers corresponding to each stored encrypted information group; Determine a target group identifier corresponding to the current digital ciphertext; The target group identifier is matched with the group identifier corresponding to each encrypted information group to determine whether there is a target encrypted information group corresponding to the target group identifier.

6. The method according to claim 1, It is characterized in that Determining the access rights corresponding to the current network address according to each target accessible address encryption information in the target encryption information group and the current address encryption information includes: Based on a binary search method, query whether the current digital ciphertext exists in each target accessible digital ciphertext in the target encrypted information group; The access authority corresponding to the current network address is determined based on the query result.

7. The method according to claim 1, It is characterized in that The current address encryption information also includes: the current character string ciphertext; The encrypting the current network address to determine the current address encryption information corresponding to the current network address includes: Extracting current protocol information, current domain name information and resource storage path information from the current network address; Based on a preset digital encryption method, encrypt the current protocol information, current domain name information and resource storage path information to determine the current digital ciphertext corresponding to the current network address; Based on a preset string encryption method, the current protocol information, current domain name information and resource storage path information are encrypted to determine the current string ciphertext corresponding to the current network address.

8. The method according to claim 7, It is characterized in that Determining the access rights corresponding to the current network address according to each target accessible address encryption information in the target encryption information group and the current address encryption information includes: Matching each target accessible string ciphertext in the target encrypted information group with the current string ciphertext, and determining the access permission corresponding to the current network address based on the matching result; or, If the current digital ciphertext is detected in the target encrypted information group based on the binary search method, the target accessible string ciphertext corresponding to the current digital ciphertext in the target encrypted information group is matched with the current string ciphertext, and the access permission corresponding to the current network address is determined based on the matching result.

9. The method according to claim 1, It is characterized in that After determining the group identifier corresponding to the encrypted information group, the method further includes: storing each of the encrypted information groups into a corresponding encrypted file, and determining a file name corresponding to the encrypted file based on the group identifier; Each of the encrypted files is pre-set into an application package, so that each of the encrypted files is stored on an access terminal by installing the application package.

10. The method according to any one of claims 1 to 9, It is characterized in that The method further comprises: If it is detected that there is no target encrypted information group matching the current digital ciphertext, it is determined that the current network address does not have access rights.

11. A device for determining access rights, It is characterized in that include: The current network address acquisition module is used to obtain the current network address to be accessed; An encryption processing module, used to perform encryption processing on the current network address to determine current address encryption information corresponding to the current network address, wherein the current address encryption information includes a current digital ciphertext; a detection module, configured to detect whether there is a target encrypted information group matching the current digital ciphertext based on a group identifier corresponding to a stored encrypted information group, wherein the encrypted information group is obtained by grouping each of the accessible address encrypted information based on the accessible digital ciphertext in the accessible address encrypted information corresponding to the accessible network address, and the group identifier is determined based on the accessible digital ciphertext in the encrypted information group; the accessible network address is a pre-set legal network address with access rights; The access permission determination module is used to determine the access permission corresponding to the current network address according to the target encrypted information group and the current address encryption information if the target encrypted information group exists.

12. An electronic device, It is characterized in that The electronic device comprises: one or more processors; A memory for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the access authority determination method as described in any one of claims 1-10.

13. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the access authority determination method as described in any one of claims 1 to 10 is implemented.