Enterprise internal software authority management method and device, equipment and storage medium

By classifying security levels and defining attributes for enterprise users, a multi-level key set is generated, and the Chebyshev chaos mapping algorithm is used for resource encryption and key distribution, which solves the problems of existing rights management methods under dynamic changes and a large number of user resources. It solves the problems of low efficiency and high cost and realizes permission management with high security and flexibility.

CN118627100AInactive Publication Date: 2024-09-10深圳市信诚数字科技有限公司
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202411086111.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-08
Publication Date
2024-09-10
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing permission management methods for internal enterprise software, such as RBAC and ACL, are difficult to flexibly respond to dynamically changing permission requirements. Management costs are high and efficiency is low, especially when facing a large number of users and resources.

Method used

By classifying security levels and defining attributes for enterprise users, we can generate hierarchical structures and perform relationship mapping, generate multi-level key sets, perform resource encryption and key distribution, and use the Chebyshev chaos mapping algorithm to generate and derive keys to achieve Resource access management with permissions.

Benefits of technology

It improves the security and flexibility of permission management, implements permission-based resource access management, simplifies the complexity of permission management, and supports dynamic adjustments and system updates.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118627100A
    Figure CN118627100A
Patent Text Reader

Abstract

The invention provides an authority management method and device for enterprise internal software, equipment and a storage medium, and the method comprises the steps: carrying out the security level division and attribute definition of enterprise users, generating a hierarchical structure, and carrying out the relation mapping to obtain a security level system; generating a system key and a sub-key according to a preset algorithm, and forming a multi-level key set; generating a level parameter set according to the multi-level key set, and issuing public parameters; classifying and encrypting the software resources to form an encrypted resource set corresponding to the security level; distributing a user key for the enterprise user according to the multi-level key set; when a user requests to access software resources, user authentication is carried out through a user key and public parameters, key derivation is carried out according to an authentication result and a system key, and a resource access key is generated; and decrypting the software resource by using the resource access key and providing the decrypted software resource to the user. According to the method, the security and flexibility of authority management are improved, and resource access management based on authority is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of rights management, and in particular to a rights management method, device, equipment and storage medium for internal software of an enterprise. Background Art

[0002] As the degree of enterprise informatization continues to increase, enterprise internal software plays an increasingly important role in the daily operation of enterprises. Enterprise internal software usually contains a large amount of sensitive information and resources. How to effectively manage and protect these resources has become a key issue. At present, the permission management of enterprise internal software mainly relies on traditional methods such as role-based access control (RBAC) model and access control list (ACL).

[0003] In the RBAC model, users are assigned to one or more roles, each with a specific set of permissions. The ACL approach defines which users or user groups can access specific resources by defining access control lists for resources. However, these traditional approaches have certain limitations when dealing with complex permission management requirements. For example, the RBAC model is difficult to flexibly respond to dynamically changing permission requirements, and the ACL approach has high management costs and low efficiency when faced with a large number of users and resources. Summary of the invention

[0004] The main purpose of the present invention is to solve the above-mentioned deficiencies of the prior art. In a first aspect, the present invention provides a method for managing the rights of internal enterprise software. The method for managing the rights of internal enterprise software includes: Perform security level classification and attribute definition processing on enterprise users to obtain a hierarchical structure, and perform relationship mapping processing on the hierarchical structure to obtain a security level system; Performing master key and subkey generation processing on the system of the enterprise internal software according to a preset algorithm to obtain a system key, and performing key generation processing on each security level in the security level system according to the system key to obtain a multi-level key set; Performing parameter generation processing on each security level according to the multi-level key set to obtain a level parameter set, and performing publishing processing on the level parameter set to obtain a public parameter; Classifying the resources of the enterprise's internal software to obtain resource sets corresponding to the security levels, and encrypting each resource set according to the corresponding key in the multi-level key set to obtain encrypted software resources; Allocate keys to enterprise users according to the multi-level key set to obtain user keys, and allocate the user keys to corresponding enterprise users, store the public parameters in a public area, and store the system keys in a system management terminal; When a user requests to access a software resource, user authentication is performed based on the user key provided by the user and the public parameters stored in the public area to obtain an authentication result, and key derivation is performed based on the authentication result and the system key stored in the system management end to obtain a resource access key; The software resource is decrypted according to the resource access key to obtain the decrypted software resource, and the decrypted software resource is provided to the authenticated user to implement permission-based resource access management.

[0005] Optionally, in a first implementation of the first aspect of the present invention, the security level classification and attribute definition processing of the enterprise users to obtain a hierarchical structure, and the relationship mapping processing of the hierarchical structure to obtain a security level system includes: Performing hierarchical classification processing on enterprise users to obtain an initial user hierarchy, and performing authority evaluation processing on enterprise users based on the initial user hierarchy to obtain a user authority matrix; Performing cluster analysis on enterprise users according to the user authority matrix to obtain optimized security level division, and encoding the optimized security level division to obtain a unique identifier for each security level; Performing permission definition processing on the security levels according to the optimized security level division and the unique identifier to obtain the access permission range of each security level, and performing comparative analysis processing on the access permission range of each security level to obtain the permission inclusion relationship between the levels; Performing directed graph construction processing on the security levels according to the authority inclusion relationship between the levels to obtain a security level hierarchy graph, and performing structural processing on the security level hierarchy graph to obtain a hierarchical structure of enterprise users; The hierarchical structure is traversed to obtain a set of directly superior levels of each security level, and the security level is recursively processed according to the set of directly superior levels of each security level to obtain a set of all superior levels of each security level; Relationship mapping is performed based on the hierarchical structure, all upper level sets, unique identifiers and access authority ranges to obtain a security level system.

[0006] Optionally, in a second implementation of the first aspect of the present invention, the master key and subkey generation processing is performed on the system of the enterprise internal software according to the preset algorithm to obtain the system key, and the key generation processing is performed on each security level in the security level system according to the system key to obtain the multi-level key set, including: The master key generation process of the enterprise internal software system is performed according to the preset Chebyshev chaotic mapping algorithm to obtain the system master key and system subkey; The subkeys of each security level are generated according to the unique identifier of each security level and the system subkey using the Chebyshev chaotic map algorithm; The Chebyshev chaotic mapping algorithm is used to generate a private key for each security level according to the upper level set, unique identifier and system master key of each security level, and random key generation is performed on each security level to obtain a secret key for each security level; The subkeys, private keys and secret keys of the various security levels are combined to obtain a multi-level key set.

[0007] Optionally, in a third implementation of the first aspect of the present invention, the master key generation process is performed on the system of the enterprise internal software according to a preset Chebyshev chaotic mapping algorithm to obtain the system master key and the system subkey, including: Performing random number generation processing on the system to obtain a random integer, and performing master key setting processing on the system according to the random integer and a preset Chebyshev chaotic mapping algorithm to obtain a system master key; Performing subkey calculation processing on the system according to the system master key and the preset enhanced Chebyshev chaotic mapping algorithm to obtain a system subkey; The system master key is securely stored to obtain the system master key stored in the system management terminal, and the system subkey is publicly processed to obtain a publicly accessible system subkey.

[0008] Optionally, in a fourth implementation manner of the first aspect of the present invention, performing parameter generation processing on each security level according to the multi-level key set to obtain a level parameter set, and performing publishing processing on the level parameter set to obtain public parameters includes: Encrypting the corresponding secret key according to the private key of each security level to obtain encryption parameters, and storing the encryption parameters to obtain a publicly accessible encryption parameter set; Signing the security level according to the secret key and system subkey of each security level to obtain verification parameters; storing the verification parameters to obtain a publicly accessible verification parameter set; Summarizing the unique identifiers of each security level to obtain an identifier set, and combining the encryption parameter set, the verification parameter set and the identifier set to obtain a level parameter set; The level parameter set is publicly released to obtain public parameters that can be accessed by all users, and the public parameters are distributed to obtain public parameters stored in a public area.

[0009] Optionally, in a fifth implementation of the first aspect of the present invention, when a user requests to access a software resource, performing user authentication processing according to a user key provided by the user and a public parameter stored in a public area to obtain an authentication result, and performing key derivation processing according to the authentication result and a system key stored in a system management terminal to obtain a resource access key includes: When a user requests to access a software resource, the user request is parsed to obtain the security level information of the target resource and the user key provided by the user, and the public parameters of the public area are retrieved according to the user key to obtain the encryption parameters and verification parameters corresponding to the user security level; Performing identity authentication processing on the user according to the user key and the encryption parameter to obtain a user identity authentication result, and performing authority verification processing on the user according to the user identity authentication result and the verification parameter to obtain a user authentication result; Access processing is performed on the system key of the system management end according to the user authentication result to obtain a system master key and a system subkey, and the Chebyshev chaotic mapping algorithm is used to perform key derivation calculation according to the system master key, the system subkey and the security level information of the target resource to obtain a private key of the target resource; The private key of the target resource and the user authentication result are combined to obtain a resource access key.

[0010] Optionally, in a sixth implementation of the first aspect of the present invention, after the security level classification and attribute definition processing are performed on the enterprise users to obtain a hierarchical structure, and the relationship mapping processing is performed on the hierarchical structure to obtain a security level system, the method further includes: When the enterprise organizational structure changes, the multiple security levels are dynamically adjusted according to the changes to obtain an updated security level structure; updating the system key according to the updated security level structure, the system master key and the preset cryptographic algorithm to obtain an updated system key system; updating the public parameters according to the updated system key system to obtain updated public parameters; The updated security level structure, the updated system key system and the updated public parameters are distributed and processed to complete the dynamic update of the system.

[0011] A second aspect of the present invention provides a rights management device for enterprise internal software, the rights management device for enterprise internal software comprising: A classification module is used to classify enterprise users into security levels and perform attribute definition processing to obtain a hierarchical structure, and to perform relationship mapping processing on the hierarchical structure to obtain a security level system; A key generation module is used to generate a master key and a subkey for the system of the enterprise's internal software according to a preset algorithm to obtain a system key, and to generate a key for each security level in the security level system according to the system key to obtain a multi-level key set; A key processing module, used for performing parameter generation processing on each security level according to the multi-level key set to obtain a level parameter set, and performing publishing processing on the level parameter set to obtain a public parameter; A resource encryption module, used to classify the resources of the enterprise's internal software to obtain a resource set corresponding to the security level, and encrypt each resource set according to the corresponding key in the multi-level key set to obtain the encrypted software resources; A key distribution module, used to distribute keys to enterprise users according to the multi-level key set, obtain user keys, and distribute the user keys to corresponding enterprise users, store the public parameters in a public area, and store the system keys in a system management terminal; The resource key generation module is used to perform user authentication processing according to the user key provided by the user and the public parameters stored in the public area when the user requests to access the software resource, obtain the authentication result, and perform key derivation processing according to the authentication result and the system key stored in the system management end to obtain the resource access key; The decryption module is used to decrypt the software resource according to the resource access key to obtain the decrypted software resource, and provide the decrypted software resource to the authenticated user to implement permission-based resource access management.

[0012] The third aspect of the present invention provides a permission management device for internal enterprise software, comprising: a memory and at least one processor, wherein instructions are stored in the memory, and the memory and the at least one processor are interconnected via a line; the at least one processor calls the instructions in the memory so that the permission management device for the internal enterprise software executes the steps of the above-mentioned permission management method for the internal enterprise software.

[0013] A fourth aspect of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, which, when executed on a computer, enable the computer to execute the steps of the above-mentioned method for managing rights of internal enterprise software.

[0014] The above-mentioned enterprise internal software rights management method, device, equipment and storage medium, by dividing the security level and defining the attributes of enterprise users, generating a hierarchical structure and performing relationship mapping, obtains a security level system; generates system keys and subkeys according to a preset algorithm to form a multi-level key set; generates a level parameter set according to the multi-level key set, and publishes public parameters; classifies and encrypts software resources to form an encrypted resource set corresponding to the security level; allocates user keys to enterprise users according to the multi-level key set; when a user requests to access software resources, user authentication is performed through user keys and public parameters, and key derivation is performed based on the authentication result and system keys to generate resource access keys; software resources are decrypted using resource access keys and provided to users. This method improves the security and flexibility of rights management and realizes rights-based resource access management.

[0015] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention are realized and obtained by the structures particularly pointed out in the description, claims and drawings.

[0016] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 This is a schematic diagram of a first embodiment of a method for managing rights of internal enterprise software according to an embodiment of the present invention; Figure 2 A schematic diagram of an embodiment of a rights management device for internal enterprise software in an embodiment of the present invention; Figure 3 The figure is a schematic diagram of an embodiment of a rights management device for internal enterprise software in an embodiment of the present invention. DETAILED DESCRIPTION

[0018] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0019] The terms "including" and "having" and any variations thereof mentioned in the embodiments of the present invention are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device end including a series of steps or units is not limited to the listed steps or units, but may optionally include other steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or device ends.

[0020] To facilitate understanding of this embodiment, a method for managing the rights of internal enterprise software disclosed in an embodiment of the present invention is first described in detail. Figure 1 As shown, the method comprises the following steps: 101. Perform security level classification and attribute definition processing on enterprise users to obtain a hierarchical structure, and perform relationship mapping processing on the hierarchical structure to obtain a security level system; In one embodiment of the present invention, the security level division and attribute definition processing of enterprise users to obtain a hierarchical structure, and the relationship mapping processing of the hierarchical structure to obtain a security level system includes: hierarchical classification processing of enterprise users to obtain an initial user level, and authority evaluation processing of enterprise users based on the initial user level to obtain a user authority matrix; cluster analysis of enterprise users based on the user authority matrix to obtain an optimized security level division, and encoding processing of the optimized security level division to obtain a unique identifier for each security level; authority definition processing of the security level based on the optimized security level division and the unique identifier to obtain an access right for each security level. The method comprises the following steps: determining the scope of authority, and performing comparative analysis on the scope of access authority of each security level to obtain the authority inclusion relationship between the levels; constructing a directed graph of the security levels according to the authority inclusion relationship between the levels to obtain a security level hierarchy graph, and structuring the security level hierarchy graph to obtain a hierarchical structure of enterprise users; traversing the hierarchical structure to obtain a set of direct superior levels of each security level, and recursively processing the security levels according to the set of direct superior levels of each security level to obtain a set of all superior levels of each security level; performing relationship mapping processing according to the hierarchical structure, the set of all superior levels, the unique identifier and the scope of access authority to obtain a security level system.

[0021] Specifically, first, the security level and attribute definition of enterprise users need to be processed. This process begins with the hierarchical classification of enterprise users. By analyzing the user's position, responsibilities and permission requirements in the organization, the initial user level is obtained. In a medical software company, users are divided into different levels such as management, development team, testing team and customer support team. Subsequently, the permission evaluation of enterprise users is carried out according to this initial user level, considering the operation requirements of each user in different system modules, so as to obtain the user permission matrix. This matrix contains permission items such as "read medical records", "modify diagnostic reports", and "access financial data". Next, the enterprise users are clustered according to this user permission matrix, and machine learning algorithms such as K-means or hierarchical clustering are used to group users with similar permission requirements, so as to obtain the optimized security level division. In this process, the system will find that some developers and testers have similar permission requirements, so they are classified into the same security level. Then, the optimized security level division is coded and a unique identifier is assigned to each security level, such as "DEV001" for development level 1, "TEST002" for test level 2, etc. Based on the optimized security level division and unique identifier, the permission definition is processed for each security level, and the system functions and data ranges that each level can access are clearly defined to obtain the access permission range of each security level. These access permission ranges are then compared and analyzed to determine the permission inclusion relationship between different levels. For example, the system will recognize that the permission of "senior developer" completely includes the permission of "junior developer", and the permission of "project manager" includes the permission of "senior developer". Using the permission inclusion relationship between these levels, the security levels are constructed into a directed graph to create a security level hierarchy diagram, in which arrows point from high permission levels to low permission levels. Then, this security level hierarchy diagram is structured and converted into a data structure that can be efficiently stored and processed in a computer system, such as an adjacency matrix or adjacency list, to obtain a hierarchical structure of enterprise users. This hierarchical structure is traversed and the system obtains the set of direct superior levels of each security level. For example, for the level of "senior developer", its direct superiors are "project manager" and "technical director". Then, based on these sets of direct superior levels, the security level is recursively processed, tracing upward layer by layer, and finally all the superior level sets of each security level are obtained. This process is implemented using a depth-first search or breadth-first search algorithm. Finally, the hierarchical structure, all superior level sets, unique identifiers, and access permission ranges are relationally mapped, and these complex associations are stored using a relational database or a graph database, and finally a complete security level system is obtained.This system not only contains the basic information of each security level, but also includes the hierarchical relationship and permission inheritance relationship between them, providing a solid foundation for subsequent permission management and access control. For example, when a new user joins the company, he only needs to be assigned to the appropriate security level to automatically inherit all permissions of that level, greatly simplifying the complexity of permission management.

[0022] 102. Perform master key and subkey generation processing on the system of the enterprise internal software according to a preset algorithm to obtain a system key, and perform key generation processing on each security level in the security level system according to the system key to obtain a multi-level key set; In one embodiment of the present invention, the master key and subkey generation processing of the system of the enterprise's internal software is performed according to a preset algorithm to obtain a system key, and the key generation processing is performed on each security level in the security level system according to the system key to obtain a multi-level key set, including: the master key generation processing of the system of the enterprise's internal software is performed according to a preset Chebyshev chaotic mapping algorithm to obtain a system master key and a system subkey; the subkey of each security level is generated according to the unique identifier and the system subkey of each security level by using the Chebyshev chaotic mapping algorithm; the private key of each security level is generated according to the upper level set, the unique identifier and the system master key of each security level by using the Chebyshev chaotic mapping algorithm, and random key generation is performed for each security level to obtain a secret key for each security level; the subkeys, private keys and secret keys of each security level are combined to obtain a multi-level key set.

[0023] Specifically, the system of the enterprise internal software is first processed by using the preset Chebyshev chaotic mapping algorithm to generate the master key. Specifically, the system generates a random number as a seed, and then obtains the system master key through iterative calculation of the Chebyshev polynomial. For example, if the generated random number is 7329, the system will substitute it into the Chebyshev polynomial T_n(x) = cos(n * arccos(x)) for multiple iterations, and finally obtain a complex value as the system master key. Next, the system uses a similar method, but with different parameters or iteration times, to generate the system subkey.

[0024] With the system master key and subkey, the system will use the Chebyshev chaotic mapping algorithm to combine the unique identifier of each security level and the system subkey to generate the subkey of each security level. This process can be understood as converting the unique identifier of the security level (such as "DEV001") into a numerical value, then performing some mathematical operation (such as modular multiplication) with the system subkey, and then substituting the result into the Chebyshev polynomial for calculation. In this way, each security level will get a unique subkey, and there is a mathematical relationship between these subkeys and the system subkey.

[0025] Next, the system uses the Chebyshev chaotic map algorithm again, this time to generate private keys for each security level based on the set of parent levels, unique identifiers, and the system master key. For example, for the security level "Senior Developer", the system considers the identifiers of its parent levels (such as "Project Manager" and "Technical Director"), combines this information with the "Senior Developer"'s own identifier and the system master key, and finally generates a private key through Chebyshev polynomials. This method ensures that the private key is not only related to the security level itself, but also to its position in the entire hierarchy. At the same time, the system also performs random key generation for each security level to obtain a secret key for each security level. This process involves using a cryptographically secure random number generator to generate a completely independent random key for each security level. These secret keys can be used to encrypt sensitive information specific to that security level. Finally, the system combines the subkeys, private keys, and secret keys of each security level to obtain a multi-level key set. This combination process involves splicing these three keys together in a predefined format, or encrypting them separately and storing them in a data structure. For example, for the security level "Senior Developer", its entry in the multi-level key set may look like this: {Level: "DEV002", Subkey: "8f3a...", Private key: "2c7b...", Secret key: "9e5d..."}. This multi-level key generation method based on the Chebyshev chaotic map algorithm has several important features: First, due to the characteristics of Chebyshev polynomials, it is difficult to derive high-level keys even if the low-level keys are known, which ensures the security of the system. Second, since all keys are associated with the system master key and subkey, the system administrator only needs to keep these two keys properly to regenerate or verify keys of any level when needed. Third, each security level has three keys with different uses, which provides greater flexibility and can be used in different security scenarios. For example, subkeys can be used for ordinary encrypted communications, private keys can be used for identity authentication, and secret keys can be used to encrypt and store particularly sensitive data. In practical applications, this key system can effectively support various security requirements of internal enterprise software. For example, when a "senior developer" needs to access the source code of a project, the system can use the subkey of that level to encrypt the transmitted data, use the private key to verify the user's identity, and use the secret key to encrypt and store the user's personal configuration information. When a "project manager" needs to view the work progress of all subordinate developers, the system can use the project manager-level key to decrypt and access all lower-level information, thus achieving hierarchical access control. In this way, enterprises can achieve flexible and sophisticated permission management while ensuring system security.

[0026] Furthermore, the master key generation processing of the system of the enterprise's internal software according to the preset Chebyshev chaotic mapping algorithm to obtain the system master key and system sub-key includes: performing random number generation processing on the system to obtain a random integer, and performing master key setting processing on the system according to the random integer and the preset Chebyshev chaotic mapping algorithm to obtain the system master key; performing sub-key calculation processing on the system according to the system master key and the preset enhanced Chebyshev chaotic mapping algorithm to obtain the system sub-key; performing secure storage processing on the system master key to obtain the system master key stored in the system management end, and publicly processing the system sub-key to obtain a publicly accessible system sub-key.

[0027] Specifically, first, the system will use the preset Chebyshev chaotic mapping algorithm to generate the master key for the system of the enterprise's internal software. This process begins with generating a random integer S as a seed, and then uses the enhanced Chebyshev polynomial Tn(x) = (2xTn-1(x) - Tn-2(x))(mod P) for iterative calculation, where x is a preset parameter defined in the range of (-∞, +∞), P is a large prime number, and n represents the number of iterations. After multiple iterations, the system finally obtains the system master key S. Next, the system uses a similar method, but with different parameters or iterations, to calculate d = TS(x) to generate the system subkey d. With the system master key and subkey, the system will continue to use the Chebyshev chaotic mapping algorithm, combined with the unique identifier and system subkey of each security level, to generate the subkeys of each security level. Specifically, for each security level i, the system will substitute its unique identifier Si and system subkey d into the formula di = TSi(d) =TSi·S(x) for calculation. Here, TSi·S(x) means that Si and S are used as exponents and Si·S Chebyshev polynomial iterations are performed on x. This process ensures that each security level has a unique subkey, and there is a mathematical relationship between these subkeys and the system subkeys. Next, the system uses the Chebyshev chaotic map algorithm again, this time to generate the private key of each security level based on the set of parent levels of each security level, the unique identifier and the system master key. For each security level i, the system calculates Ki = TSSUPi(di) = TSSUPi·Si·S(x), where SSUPi represents the product of the identifiers of all parent levels of the security level. This calculation process involves multiple iterations of Chebyshev polynomials, which ensures that the private key is not only related to the security level itself, but also to its position in the entire hierarchical structure. At the same time, the system also generates random keys for each security level to obtain the secret keys SKi of each security level. This process uses a cryptographically secure random number generator to generate a completely independent random key for each security level. These secret keys can be used to encrypt sensitive information specific to that security level. Finally, the system combines the subkeys di, private keys Ki, and secret keys SKi at each security level to obtain a multi-level key set. This combination process involves splicing the three keys together in a predefined format, or encrypting them separately and storing them in a data structure. The Chebyshev chaotic map algorithm plays a key role in the whole process. The algorithm is based on Chebyshev polynomials, which are defined as Tn(x) = cos(n·arccos(x)), where n is the degree of the polynomial. In practical applications, the recursive form is usually used: T0(x) = 1, T1(x) = x, Tn+1(x) = 2xTn(x) - Tn-1(x).This recursive relationship makes the calculation of Chebyshev polynomials efficient. In the enhanced Chebyshev chaotic map, modular operations are introduced to expand the domain of x, and the formula becomes Tn(x) = (2xTn-1(x) -Tn-2(x))(mod P), where P is a large prime number. This improvement allows x to take values ​​in a larger range, enhancing the security of the algorithm. The Chebyshev chaotic map algorithm has several important properties: semigroup properties, that is, Tr(Ts(x)) = Trs(x); commutativity, that is, Tr(Ts(x)) = Ts(Tr(x)); and the difficulty of solving the discrete logarithm problem. These properties make the cryptographic system based on this algorithm have good security. In the key generation process, the specific application of the algorithm is as follows: when generating the system master key, select random numbers S and x, and calculate TS(x); when generating the system subkey, calculate d = TS(x); when generating the security level subkey, calculate di = TSi(d) = TSi·S(x); when generating the security level private key, calculate Ki = TSSUPi(di) =TSSUPi·Si·S(x). Each step involves multiple Chebyshev polynomial iterations and modular operations. This multi-level key generation method based on the Chebyshev chaotic mapping algorithm ensures that there is a mathematical correlation between the keys while maintaining sufficient randomness and security. High-level keys can be used to derive low-level keys, but the reverse is extremely difficult, which is exactly the feature required for hierarchical access control. In this way, the permission management system of the enterprise's internal software can achieve flexible and sophisticated access control while ensuring high security.

[0028] 103. Perform parameter generation processing on each security level according to the multi-level key set to obtain a level parameter set, and perform publishing processing on the level parameter set to obtain a public parameter; In one embodiment of the present invention, parameter generation processing is performed on each security level according to the multi-level key set to obtain a level parameter set, and the level parameter set is published to obtain public parameters, including: encrypting the corresponding secret key according to the private key of each security level to obtain encryption parameters, and storing the encryption parameters to obtain a publicly accessible encryption parameter set; signing the security level according to the secret key and system subkey of each security level to obtain verification parameters; storing the verification parameters to obtain a publicly accessible verification parameter set; aggregating the unique identifiers of each security level to obtain an identifier set, and combining the encryption parameter set, verification parameter set and identifier set to obtain a level parameter set; publicly publishing the level parameter set to obtain public parameters accessible to all users, and distributing the public parameters to obtain public parameters stored in a public area.

[0029] Specifically, first, the system will encrypt the corresponding secret key according to the private key of each security level. This step uses a symmetric encryption algorithm, such as AES. Specifically, for each security level i, the system will use the private key Ki of that level as the encryption key to encrypt the secret key SKi to obtain the encryption parameter Mi = EKi(SKi), where E represents the encryption function. This process ensures that even if the encryption parameters are made public, people without the corresponding private key cannot obtain the secret key. Next, the system will store these encryption parameters and store them in a data structure to form a publicly accessible encryption parameter set. Next, the system will sign the security level according to the secret key and system subkey of each security level to obtain the verification parameter. This step utilizes the characteristics of the Chebyshev chaotic map algorithm. For each security level i, the system calculates Signi = TSKi(d) = TSKi·S(x), where SKi is the secret key of that level, d is the system subkey, and T represents the Chebyshev polynomial. This signing process creates a verification parameter related to both the secret key and the system subkey, which can be used for subsequent identity authentication. The system then stores these verification parameters and centrally stores them in a publicly accessible verification parameter set. The system then aggregates the unique identifiers for each security level to form a set of identifiers. This process is simple and straightforward, which is to collect the unique identifiers of all security levels (such as "DEV001", "TEST002", etc.) into a list or array. This set of identifiers will be used to index and identify different security levels. After obtaining the encryption parameter set, verification parameter set, and identifier set, the system will combine these three sets to obtain the level parameter set. This combination process involves creating a composite data structure in which each entry contains an identifier for a security level, the corresponding encryption parameters, and the verification parameters. For example, for security level i, its entry in the level parameter set may be of the form {ID: Si, EncParam: Mi, VerifyParam: Signi}. Finally, the system publicly publishes this level parameter set to obtain public parameters that can be accessed by all users. This step includes converting the level parameter set into a format suitable for public transmission and storage, such as JSON or XML. The system also distributes these public parameters and stores them in public areas, such as public databases or distributed storage systems, to ensure that all components or users who need access to these parameters can easily obtain them. The key to this whole process is that it creates a set of parameters that can be made public, which are related to sensitive key information but do not directly expose these keys. The encrypted parameters Mi protect the secret key SKi, and only users with the corresponding private key Ki can decrypt and obtain SKi.The verification parameter Signi provides a way to verify that the user has the correct secret key without directly comparing the secret key itself. The identifier set provides a clear security level index for the entire system. The advantage of this parameter generation and publishing method is that it allows the system to store and distribute security-related parameters in a public area without leaking sensitive information. This greatly simplifies the design and implementation of the system because there is no need to establish a secure transmission channel for each parameter. At the same time, this method also improves the flexibility and scalability of the system. For example, if a new security level needs to be added, only new parameters need to be generated and added to the public parameters without modifying the structure of the entire system. In addition, this method also supports the implementation of distributed systems. Since all necessary parameters are public, different parts of the system can independently obtain these parameters and perform necessary calculations and verifications without frequently communicating with the central server. This not only improves the performance and availability of the system, but also enhances the robustness of the system, because even if some components are temporarily unavailable, other parts can still operate normally.

[0030] 104. Classify the resources of the enterprise's internal software to obtain resource sets corresponding to the security levels, and encrypt each resource set according to the corresponding key in the multi-level key set to obtain encrypted software resources; In one embodiment of the present invention, first, the system needs to classify the resources of the enterprise's internal software, which is usually based on the sensitivity and importance of the resources. The system uses an automated content analysis algorithm combined with predefined classification rules to scan and evaluate the resources. For example, files containing financial data are classified as highly sensitive, while public company policy documents are classified as low sensitivity. This classification process takes into account multiple factors such as the content, metadata, creator, and frequency of use of the file, and ultimately assigns a security level to each resource. After completing the resource classification, the system organizes resources with the same security level together to form a resource collection corresponding to the security level. This step involves creating logical groupings or physically moving files to a specific storage location. For example, all documents classified as "confidential" may be organized into a collection called "confidential resources." This organization method not only facilitates subsequent encryption processing, but also helps with permission management and access control. Next, the system encrypts each resource collection according to the corresponding key in the multi-level key set. This process utilizes the multi-level key set generated previously to ensure that each resource collection is encrypted using a key that matches its security level. Specifically, for each resource collection, the system selects a secret key SKi corresponding to the security level. Then, the system uses a strong encryption algorithm, such as AES (Advanced Encryption Standard), with SKi as the key to encrypt each file in the resource collection. The encryption process usually processes the files in the resource collection one by one. For each file, the system first reads the file content and then divides the content into data blocks suitable for encryption algorithm processing. Each data block is encrypted using the selected encryption algorithm and key. The encrypted data blocks are reassembled to form an encrypted file. In addition, the system generates a unique initialization vector (IV) for each encrypted file to increase the security of encryption. During the encryption process, the system also needs to consider how to handle the metadata of the file. Some metadata (such as file name, creation date, etc.) may need to remain readable for file management, while other sensitive metadata may also need to be encrypted. The system adopts a hybrid approach, keeping some metadata as plain text and encrypting sensitive metadata together with the file content. After encryption is completed, the system generates an encrypted software resource. These encrypted resources usually include encrypted file contents, encrypted sensitive metadata, and some auxiliary information for decryption and verification (such as the encryption algorithm identifier used, initialization vector, etc.). The system will package this information into a specific file format for easy storage and management. Finally, the system will update the resource management database to record the encryption status of each resource, the encryption key identifier used, and other information. These records are very important for subsequent access control and auditing. In this way, the resources of the enterprise's internal software are effectively classified and encrypted, forming a secure resource library that can only be accessed and decrypted by users with appropriate permissions.This process not only protects the security of sensitive data, but also lays the foundation for implementing fine-grained access control.

[0031] 105. Allocate keys to enterprise users according to the multi-level key set to obtain user keys, and allocate the user keys to corresponding enterprise users, store the public parameters in a public area, and store the system keys on a system management end; In one embodiment of the present invention, in the rights management system of enterprise internal software, key distribution is a key step to ensure that users can securely access resources. First, the system distributes keys to enterprise users based on a multi-level key set. This process begins with identifying the security level of each user, which is completed by querying a user management database or directory service. After determining the user's security level, the system selects the corresponding subkey from the multi-level key set as the user key of the user. For example, when a user is classified as a "senior developer", the system selects the subkey corresponding to the "senior developer" security level. Next, the system securely distributes the selected user key to the corresponding enterprise user. This is achieved through a secure key distribution protocol. The system uses asymmetric encryption technology, such as the RSA algorithm, to protect the key transmission process. Specifically, the system first obtains the user's public key (which has been provided when the user registered), and then uses this public key to encrypt the user key. The encrypted user key is sent to the user through a secure channel (such as HTTPS). After the user receives the encrypted key, he uses his own private key to decrypt it to obtain the actual user key. In the key distribution process, the system considers the life cycle management of the key. This includes setting the validity period of the key, formulating a key rotation strategy, and establishing a key revocation mechanism. The system sets an expiration time for each assigned user key and automatically triggers the update process when the key is about to expire. At the same time, if a potential security threat is detected, the system immediately revokes a user's key and quickly assigns a new key. After completing the user key assignment, the system stores the public parameters in a public area. These public parameters include the encryption parameter set, verification parameter set, and identifier set generated in the previous steps. The system stores these parameters in a central database or uses a distributed storage system to improve availability and performance. When storing, the system ensures that these parameters are easy to access while also considering data consistency and integrity. The system uses digital signatures to protect these public parameters to prevent unauthorized modifications. Finally, the system securely stores the system keys (including the system master key and system subkeys) on the system management side. This is the most sensitive part of the entire permission management system, because the leakage of the system key will endanger the entire security system. Therefore, the system adopts multi-layer protection measures. First, the system key is divided into multiple parts and managed using threshold cryptography technology, requiring multiple administrators to be present at the same time to reconstruct the complete key. Secondly, the system uses a hardware security module (HSM) to store and protect system keys. HSM provides a tamper-proof physical environment to effectively prevent the key from being stolen. In addition, the system implements a strict access control policy to limit the scope of personnel who can access the system keys, and conducts detailed logging and auditing of all operations involving system keys. In this way, the permission management system of the enterprise's internal software achieves secure key distribution and storage.Users obtain keys that match their security levels, public parameters are stored in easily accessible public areas, and the most sensitive system keys are protected most strictly. This design ensures the security of the system while providing good scalability and flexibility to adapt to the ever-changing security needs of enterprises.

[0032] 106. When a user requests to access a software resource, user authentication is performed based on the user key provided by the user and the public parameters stored in the public area to obtain an authentication result, and key derivation is performed based on the authentication result and the system key stored in the system management terminal to obtain a resource access key; In one embodiment of the present invention, when a user requests to access a software resource, user authentication is performed according to a user key provided by the user and public parameters stored in a public area to obtain an authentication result, and key derivation is performed according to the authentication result and a system key stored in a system management end to obtain a resource access key, including: when a user requests to access a software resource, the user request is parsed to obtain security level information of the target resource and a user key provided by the user, and public parameters in the public area are retrieved according to the user key to obtain encryption parameters and verification parameters corresponding to the user security level; identity authentication is performed on the user according to the user key and the encryption parameters to obtain a user identity authentication result, and permission verification is performed on the user according to the user identity authentication result and the verification parameters to obtain a user authentication result; access is performed on the system key of the system management end according to the user authentication result to obtain a system master key and a system subkey, and a key derivation calculation is performed according to the system master key, the system subkey and the security level information of the target resource using the Chebyshev chaotic mapping algorithm to obtain a private key of the target resource; the private key of the target resource and the user authentication result are combined to obtain a resource access key.

[0033] First, the system parses the user request and extracts the target resource security level information and the user key provided by the user. This parsing process involves decoding the user request message, identifying the requested resource identifier, and searching the resource security level information from the system's resource directory. Next, the system retrieves the public parameters stored in the public area based on the user key provided by the user. The system uses the user key as an index to search the public parameter database for encryption parameters and verification parameters corresponding to the user's security level. These parameters have been stored in the public area during the previous key generation and parameter publishing stages. After obtaining the relevant parameters, the system performs user identity authentication. The system uses the user key and the retrieved encryption parameters to perform a decryption operation and attempts to restore the user's secret key. If the decryption is successful and the restored secret key conforms to the expected format, the system considers that the user identity authentication has passed and generates a positive user identity authentication result. Subsequently, the system performs permission verification based on the user identity authentication result and the verification parameters. The system uses the previously generated verification parameters (usually a signature based on the Chebyshev chaos map algorithm) to verify whether the user has permission to access the target resource. Specifically, the system uses the user's secret key and system subkey to calculate a verification value through Chebyshev polynomials, and then compares this value with the stored verification parameters. If they match, the system generates a positive user authentication result, indicating that the user is not only valid, but also has the authority to access the target resource. After confirming the user's identity and authority, the system performs access processing on the system key of the system management end according to the user authentication result. The system extracts the system master key and system subkey from the secure storage. This process may involve decryption operations, or in the case of using a hardware security module (HSM), it may be necessary to obtain the key through a specific security protocol. After obtaining the system key, the system uses the Chebyshev chaotic mapping algorithm to perform key derivation calculations based on the system master key, system subkey, and the security level information of the target resource to obtain the private key of the target resource. This process involves multiple Chebyshev polynomial iterations, and the specific calculation process is as follows: First, the system uses the security level identifier of the target resource and the system subkey to calculate an intermediate value, and then combines this intermediate value with the system master key, and performs Chebyshev polynomial calculations again to finally obtain the private key of the target resource. Finally, the system combines the private key of the target resource and the user authentication result to obtain the resource access key. This combination process may involve concatenating the private key and the authentication result, and then generating the final resource access key through a cryptographically secure hash function. This resource access key will be used for subsequent resource decryption and access operations. Throughout the process, the system also needs to consider the balance between security and performance. For example, the system may use a cache mechanism to store temporary calculation results, reduce repeated calculations, and improve response speed.At the same time, the system also needs to implement a strict logging and auditing mechanism to record detailed information of each access request, including user identity, target resource, access time, etc., for subsequent security analysis and auditing. In addition, the system needs to handle various abnormal situations, such as invalid user keys, permission verification failures, abnormal system key access, etc. For these situations, the system needs to have a clear error handling process to ensure security (not leaking sensitive information) and provide useful error feedback to legitimate users.

[0034] 107. Decrypt the software resource according to the resource access key to obtain the decrypted software resource, and provide the decrypted software resource to the authenticated user to implement permission-based resource access management.

[0035] In one embodiment of the present invention, first, the system uses the resource access key to decrypt the target software resource. This process starts with locating the encrypted software resource, and the system finds the corresponding encrypted resource file based on the previous request information. Then, the system reads the metadata of the encrypted resource, which contains key parameters such as the algorithm information used during encryption and the initialization vector. Next, the system uses the resource access key and the read metadata parameters to initialize the decryption algorithm. Usually, a symmetric encryption algorithm such as AES (Advanced Encryption Standard) is used here. The system divides the encrypted resource data into data blocks suitable for decryption algorithm processing and performs a decryption operation on each data block. During the decryption process, the system will also verify the integrity of the data to ensure that the resource has not been tampered with during the storage process. After the decryption is completed, the system reassembles the decrypted data blocks to obtain a complete decrypted software resource. After the decryption is completed, the system will perform an integrity check on the decrypted software resource. This step uses a pre-stored checksum or digital signature to verify whether the decrypted resource is consistent with the original resource. If the check fails, the system will record an error log, terminate the access process, and notify the administrator of possible security issues. After confirming the integrity of the resource, the system will filter the decrypted resource according to the user's permission level. This step ensures that users can only access resource content within their permissions. For example, for a document with multiple parts, the system may only allow users to access certain chapters. The system will crop or mark the resource content according to the user permissions determined in the previous authentication process to ensure that users can only see or operate the authorized parts. Subsequently, the system prepares the resource content that has been filtered by permissions into a format suitable for user access. This may involve converting the resource to a specific file format or preparing a secure viewing interface. During this process, the system will also add necessary security tags, such as watermarks or access timestamps, for subsequent auditing and tracking. Before providing resource access, the system will start a secure transmission channel, usually using the HTTPS protocol, to ensure that the resource will not be eavesdropped or tampered with during transmission. The system will also set appropriate cache control and access restrictions to prevent the resource from being illegally copied or stored. Finally, the system transmits the processed resource to the authenticated user through a secure channel. While the user receives the resource, the system will record detailed access logs, including user identity, access time, resource identifier and other information.

[0036] Furthermore, after the security level classification and attribute definition processing of the enterprise users are performed to obtain a hierarchical structure, and the relationship mapping processing is performed on the hierarchical structure to obtain a security level system, it also includes: when the enterprise organizational structure changes, the multiple security levels are dynamically adjusted according to the changes to obtain an updated security level structure; the system key is updated according to the updated security level structure, the system master key and the preset cryptographic algorithm to obtain an updated system key system; the public parameters are updated according to the updated system key system to obtain updated public parameters; the updated security level structure, the updated system key system and the updated public parameters are distributed to complete the dynamic update of the system.

[0037] Specifically, first, the system dynamically adjusts multiple security levels according to the changes. This process involves analyzing changes in the organizational structure, such as department mergers, splits, additions or deletions, and then adjusting the division of security levels accordingly. The system will re-evaluate the security needs of each user group and resource group, and may merge some security levels, create new security levels, or adjust the scope of authority of existing security levels. The result of this step is an updated security level structure. Next, the system updates the system key based on the updated security level structure, the system master key, and the preset cryptographic algorithm. This process first involves regenerating the system subkey using the system master key and the preset cryptographic algorithm (usually the Chebyshev chaotic map algorithm). Then, the system generates new subkeys and private keys for each updated security level. This step ensures that the key system is consistent with the new security level structure while retaining the original cryptographic security. During the update process, the system maintains a key version control mechanism to roll back or track the key change history when necessary. Subsequently, the system updates the public parameters based on the updated system key system. This includes recalculating the encryption parameters and verification parameters of each security level using the new key. Specifically, the system will use the new private key to re-encrypt the secret key of each security level to generate new encryption parameters. At the same time, the system will use the new secret key and system subkey to regenerate the verification parameters. This step ensures that the public parameters are synchronized with the new key system and maintains the consistency of the entire system. After completing the above updates, the system distributes the updated security level structure, the updated system key system, and the updated public parameters to complete the dynamic update of the system. This distribution process first involves updating the security level structure information in the central database to ensure that all system components can access the latest organizational structure and permission definitions. Then, the system will distribute the new system key to the system management end through a secure channel, and multiple authentication and encrypted transmission may be required to protect this sensitive information. For public parameters, the system will update the parameter set stored in the public area to ensure that all users and system components can obtain the latest parameters. During the distribution process, the system also needs to consider compatibility and smooth transition. For example, the system may set a transition period during which both the old and new key systems are supported to ensure that ongoing operations are not interrupted by the update. The system will also send notifications to all affected users and administrators to inform them of the content of the system update and any actions they need to take. Finally, the system will perform a comprehensive security audit to verify that the update was completed successfully and that all components have been synchronized to the latest state. The system will also generate a detailed update log that records every step of the entire update process for future auditing and troubleshooting.

[0038] In this embodiment, by dividing the security level and defining the attributes of enterprise users, generating a hierarchical structure and performing relationship mapping, a security level system is obtained; a system key and a subkey are generated according to a preset algorithm to form a multi-level key set; a level parameter set is generated according to the multi-level key set, and public parameters are released; software resources are classified and encrypted to form an encrypted resource set corresponding to the security level; user keys are allocated to enterprise users according to the multi-level key set; when a user requests to access a software resource, user authentication is performed through the user key and public parameters, and a key is derived according to the authentication result and the system key to generate a resource access key; the software resource is decrypted using the resource access key and provided to the user. This method improves the security and flexibility of permission management and realizes permission-based resource access management.

[0039] The above describes the method for managing the rights of internal enterprise software in the embodiment of the present invention. The following describes the device for managing the rights of internal enterprise software in the embodiment of the present invention. Figure 2 In one embodiment of the present invention, an apparatus for managing the rights of internal enterprise software includes: The classification module 201 is used to classify the security levels and define the attributes of enterprise users to obtain a classification structure, and to perform relationship mapping on the classification structure to obtain a security classification system; The key generation module 202 is used to generate a master key and a subkey for the system of the enterprise internal software according to a preset algorithm to obtain a system key, and to generate a key for each security level in the security level system according to the system key to obtain a multi-level key set; The key processing module 203 is used to perform parameter generation processing on each security level according to the multi-level key set to obtain a level parameter set, and to publish the level parameter set to obtain a public parameter; The resource encryption module 204 is used to classify the resources of the enterprise's internal software to obtain resource sets corresponding to the security levels, and encrypt each resource set according to the corresponding key in the multi-level key set to obtain encrypted software resources; A key distribution module 205 is used to distribute keys to enterprise users according to the multi-level key set, obtain user keys, distribute the user keys to corresponding enterprise users, store the public parameters in a public area, and store the system keys on the system management end; The resource key generation module 206 is used to perform user authentication processing according to the user key provided by the user and the public parameters stored in the public area when the user requests to access the software resource, obtain the authentication result, and perform key derivation processing according to the authentication result and the system key stored in the system management end to obtain the resource access key; The decryption module 207 is used to decrypt the software resource according to the resource access key to obtain the decrypted software resource, and provide the decrypted software resource to the authenticated user to implement permission-based resource access management.

[0040] In an embodiment of the present invention, the permission management device of the enterprise internal software runs the permission management method of the enterprise internal software, and the permission management device of the enterprise internal software generates a hierarchical structure and performs relationship mapping by dividing the security level and defining the attributes of the enterprise users, and obtains a security level system; generates a system key and a subkey according to a preset algorithm to form a multi-level key set; generates a level parameter set according to the multi-level key set, and publishes public parameters; classifies and encrypts software resources to form an encrypted resource set corresponding to the security level; allocates user keys to enterprise users according to the multi-level key set; when a user requests to access software resources, user authentication is performed through the user key and the public parameter, and key derivation is performed according to the authentication result and the system key to generate a resource access key; and the software resource is decrypted using the resource access key and provided to the user. This method improves the security and flexibility of permission management and realizes permission-based resource access management.

[0041] above Figure 2 The rights management device for internal enterprise software in the embodiment of the present invention is described in detail from the perspective of modular functional entities. The rights management device for internal enterprise software in the embodiment of the present invention is described in detail from the perspective of hardware processing.

[0042] Figure 3 1 is a schematic diagram of the structure of a rights management device for enterprise internal software provided by an embodiment of the present invention. The rights management device 300 for enterprise internal software may have relatively large differences due to different configurations or performances, and may include one or more processors (central processing units, CPU) 310 (for example, one or more processors) and a memory 320, and one or more storage media 330 (for example, one or more mass storage device terminals) storing application programs 333 or data 332. Among them, the memory 320 and the storage medium 330 may be short-term storage or permanent storage. The program stored in the storage medium 330 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the rights management device 300 for enterprise internal software. Furthermore, the processor 310 may be configured to communicate with the storage medium 330, and execute a series of instruction operations in the storage medium 330 on the rights management device 300 for enterprise internal software to implement the steps of the rights management method for enterprise internal software.

[0043] The enterprise internal software rights management device 300 may also include one or more power supplies 340, one or more wired or wireless network interfaces 350, one or more input and output interfaces 360, and / or one or more operating systems 331, such as Windows Serve, Mac OS X, Unix, Linux, FreeBSD, etc. Those skilled in the art will appreciate that Figure 3 The structure of the rights management device for enterprise internal software shown does not constitute a limitation on the rights management device for enterprise internal software provided by the present invention, and may include more or fewer components than shown in the figure, or a combination of certain components, or a different arrangement of components.

[0044] The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. Instructions are stored in the computer-readable storage medium. When the instructions are executed on a computer, the computer executes the steps of the method for managing permissions of internal enterprise software.

[0045] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described system, device, or unit can refer to the corresponding process in the aforementioned method embodiment and will not be repeated here.

[0046] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or the whole or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.

[0047] As described above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for managing the rights of internal enterprise software, characterized in that: The method for managing the rights of internal enterprise software includes: Perform security level classification and attribute definition processing on enterprise users to obtain a hierarchical structure, and perform relationship mapping processing on the hierarchical structure to obtain a security level system; Performing master key and subkey generation processing on the system of the enterprise internal software according to a preset algorithm to obtain a system key, and performing key generation processing on each security level in the security level system according to the system key to obtain a multi-level key set; Performing parameter generation processing on each security level according to the multi-level key set to obtain a level parameter set, and performing publishing processing on the level parameter set to obtain a public parameter; Classifying the resources of the enterprise's internal software to obtain resource sets corresponding to the security levels, and encrypting each resource set according to the corresponding key in the multi-level key set to obtain encrypted software resources; Allocate keys to enterprise users according to the multi-level key set to obtain user keys, and allocate the user keys to corresponding enterprise users, store the public parameters in a public area, and store the system keys in a system management terminal; When a user requests to access a software resource, user authentication is performed based on the user key provided by the user and the public parameters stored in the public area to obtain an authentication result, and key derivation is performed based on the authentication result and the system key stored in the system management end to obtain a resource access key; The software resource is decrypted according to the resource access key to obtain the decrypted software resource, and the decrypted software resource is provided to the authenticated user to implement permission-based resource access management.

2. The method for managing the rights of internal enterprise software according to claim 1, characterized in that: The security level classification and attribute definition processing of the enterprise users to obtain a hierarchical structure, and the relationship mapping processing of the hierarchical structure to obtain a security level system includes: Performing hierarchical classification processing on enterprise users to obtain an initial user hierarchy, and performing authority evaluation processing on enterprise users based on the initial user hierarchy to obtain a user authority matrix; Performing cluster analysis on enterprise users according to the user authority matrix to obtain optimized security level division, and encoding the optimized security level division to obtain a unique identifier for each security level; Performing permission definition processing on the security levels according to the optimized security level division and the unique identifier to obtain the access permission range of each security level, and performing comparative analysis processing on the access permission range of each security level to obtain the permission inclusion relationship between the levels; Performing directed graph construction processing on the security levels according to the authority inclusion relationship between the levels to obtain a security level hierarchy graph, and performing structural processing on the security level hierarchy graph to obtain a hierarchical structure of enterprise users; The hierarchical structure is traversed to obtain a set of directly superior levels of each security level, and the security level is recursively processed according to the set of directly superior levels of each security level to obtain a set of all superior levels of each security level; Relationship mapping is performed based on the hierarchical structure, all upper level sets, unique identifiers and access authority ranges to obtain a security level system.

3. The method for managing the rights of internal enterprise software according to claim 2, characterized in that: The master key and subkey generation process is performed on the system of the enterprise internal software according to the preset algorithm to obtain the system key, and the key generation process is performed on each security level in the security level system according to the system key to obtain the multi-level key set including: The master key generation process of the enterprise internal software system is performed according to the preset Chebyshev chaotic mapping algorithm to obtain the system master key and system subkey; The subkeys of each security level are generated according to the unique identifier of each security level and the system subkey using the Chebyshev chaotic map algorithm; The Chebyshev chaotic mapping algorithm is used to generate a private key for each security level according to the upper level set, unique identifier and system master key of each security level, and random key generation is performed on each security level to obtain a secret key for each security level; The subkeys, private keys and secret keys of the various security levels are combined to obtain a multi-level key set.

4. The method for managing the rights of internal enterprise software according to claim 3, characterized in that: The master key generation process of the enterprise internal software system according to the preset Chebyshev chaotic mapping algorithm to obtain the system master key and system subkey includes: Performing random number generation processing on the system to obtain a random integer, and performing master key setting processing on the system according to the random integer and a preset Chebyshev chaotic mapping algorithm to obtain a system master key; Performing subkey calculation processing on the system according to the system master key and the preset enhanced Chebyshev chaotic mapping algorithm to obtain a system subkey; The system master key is securely stored to obtain the system master key stored in the system management terminal, and the system subkey is publicly processed to obtain a publicly accessible system subkey.

5. The method for managing the rights of internal enterprise software according to claim 3, characterized in that: The step of performing parameter generation processing on each security level according to the multi-level key set to obtain a level parameter set, and performing publishing processing on the level parameter set to obtain public parameters includes: Encrypting the corresponding secret key according to the private key of each security level to obtain encryption parameters, and storing the encryption parameters to obtain a publicly accessible encryption parameter set; Signing the security level according to the secret key and system subkey of each security level to obtain verification parameters; storing the verification parameters to obtain a publicly accessible verification parameter set; Summarizing the unique identifiers of each security level to obtain an identifier set, and combining the encryption parameter set, the verification parameter set and the identifier set to obtain a level parameter set; The level parameter set is publicly released to obtain public parameters that can be accessed by all users, and the public parameters are distributed to obtain public parameters stored in a public area.

6. The method for managing rights of internal enterprise software according to claim 5, characterized in that: When a user requests to access a software resource, user authentication is performed based on the user key provided by the user and the public parameters stored in the public area to obtain an authentication result, and key derivation is performed based on the authentication result and the system key stored in the system management end to obtain a resource access key, including: When a user requests to access a software resource, the user request is parsed to obtain the security level information of the target resource and the user key provided by the user, and the public parameters of the public area are retrieved according to the user key to obtain the encryption parameters and verification parameters corresponding to the user security level; Performing identity verification processing on the user according to the user key and the encryption parameter to obtain a user identity verification result, and performing authority verification processing on the user according to the user identity verification result and the verification parameter to obtain a user authentication result; Access processing is performed on the system key of the system management end according to the user authentication result to obtain a system master key and a system subkey, and the Chebyshev chaotic mapping algorithm is used to perform key derivation calculation according to the system master key, the system subkey and the security level information of the target resource to obtain a private key of the target resource; The private key of the target resource and the user authentication result are combined to obtain a resource access key.

7. The method for managing rights of internal enterprise software according to claim 3, characterized in that: After the security level classification and attribute definition processing of the enterprise users are performed to obtain a hierarchical structure, and the relationship mapping processing of the hierarchical structure is performed to obtain a security level system, the method further includes: When the enterprise organizational structure changes, the multiple security levels are dynamically adjusted according to the changes to obtain an updated security level structure; updating the system key according to the updated security level structure, the system master key and the preset cryptographic algorithm to obtain an updated system key system; updating the public parameters according to the updated system key system to obtain updated public parameters; The updated security level structure, the updated system key system and the updated public parameters are distributed and processed to complete the dynamic update of the system.

8. A rights management device for internal enterprise software, characterized in that: The rights management device for the enterprise internal software includes: A grading module is used to perform security grading and attribute definition processing on enterprise users to obtain a grading structure, and to perform relationship mapping processing on the grading structure to obtain a security grading system; A key generation module is used to generate a master key and a subkey for the system of the enterprise's internal software according to a preset algorithm to obtain a system key, and to generate a key for each security level in the security level system according to the system key to obtain a multi-level key set; A key processing module, used for performing parameter generation processing on each security level according to the multi-level key set to obtain a level parameter set, and performing publishing processing on the level parameter set to obtain a public parameter; A resource encryption module, used to classify the resources of the enterprise's internal software to obtain a resource set corresponding to the security level, and encrypt each resource set according to the corresponding key in the multi-level key set to obtain the encrypted software resources; A key distribution module, used to distribute keys to enterprise users according to the multi-level key set, obtain user keys, and distribute the user keys to corresponding enterprise users, store the public parameters in a public area, and store the system keys in a system management terminal; The resource key generation module is used to perform user authentication processing according to the user key provided by the user and the public parameters stored in the public area when the user requests to access the software resource, obtain the authentication result, and perform key derivation processing according to the authentication result and the system key stored in the system management end to obtain the resource access key; The decryption module is used to decrypt the software resource according to the resource access key to obtain the decrypted software resource, and provide the decrypted software resource to the authenticated user to implement permission-based resource access management.

9. A rights management device for enterprise internal software, characterized in that: The rights management device for enterprise internal software includes: a memory and at least one processor, wherein instructions are stored in the memory; The at least one processor calls the instructions in the memory to enable the rights management device of the internal enterprise software to execute the steps of the rights management method of the internal enterprise software as described in any one of claims 1-7.

10. A computer-readable storage medium having instructions stored thereon, characterized in that: When the instructions are executed by the processor, the steps of the method for managing rights of internal enterprise software as described in any one of claims 1 to 7 are implemented.

Citation Information

Cited By

  • Encryption access control method and platform for industrial security data

    CN120880809A

  • Industrial safety data encryption access control method and platform

    CN120880809B

  • Nerve detection data encryption storage and authority control method and system based on block chain

    CN121145256A