Disclosure of Invention
In view of the above, it is desirable to provide a method, an apparatus, a terminal and a storage medium for managing software rights of a terminal, which can improve security of software encryption.
A terminal software authority management method comprises the following steps:
acquiring unique identification information of a terminal; the terminal unique identification information is a unique identity of the terminal;
extracting software permission information corresponding to the acquired terminal unique identification information from the stored data; the storage data is stored with software permission information and terminal unique identification information in advance, and the software permission information and the terminal unique identification information have a preset binding relationship;
and setting software permission according to the extracted software permission information.
According to the terminal software permission management method, the permission management is carried out on the software in the terminal according to the unique identification information of the terminal, the operation is simple, convenient and reliable, the third party encryption software is not needed, the software cannot be easily cracked, and the software encryption safety is improved.
In one embodiment, the terminal unique identification information includes a Media Access Control (MAC) address of the terminal, or the terminal unique identification information includes a Central Processing Unit (CPU) information and a MAC address of the terminal.
And the software permission information is bound according to the unique MAC address of the terminal or the combination of the MAC address of the terminal and the CPU information, so that the software permission management corresponding to different terminals is realized, and the operation reliability is high.
In one embodiment, after the obtaining of the unique terminal identification information, before extracting the software permission information corresponding to the obtained unique terminal identification information from the stored data of the software permission information and the unique terminal identification information, the method further includes:
detecting whether the acquired unique terminal identification information exists in the stored data;
and if so, extracting the software permission information corresponding to the acquired unique terminal identification information from the stored data of the software permission information and the unique terminal identification information.
If the terminal unique identification information is detected to be stored and acquired, the terminal is indicated to have the software use right, and corresponding software permission information is extracted according to the terminal unique identification information. When the terminal is determined to have the software use right, corresponding software permission information is extracted to set the software permission, and if the terminal does not have the software use right, information extraction is not needed, so that the operation convenience is improved.
In an embodiment, if there is no acquired unique terminal identification information in the stored data of the software permission information and the unique terminal identification information, the method may further include:
and outputting the software permission setting failure information.
When the acquired terminal unique identification information is not stored, the software permission setting failure information is output to inform the user, so that the operation convenience of software permission management is improved.
In one embodiment, before the obtaining of the terminal unique identification information, the method further includes the following steps:
receiving and storing software permission information and terminal unique identification information which are sent by permission management equipment and have a preset binding relationship; and the authority management equipment is used for establishing a binding relationship between the unique terminal identification information and the corresponding software authority information.
And receiving the terminal unique identification information with the preset binding relationship and the software permission information in advance for storage so as to perform software permission management operation in the following.
In an embodiment, before receiving and storing the software permission information and the terminal unique identification information with the preset binding relationship, which are sent by the permission management device, the method further includes:
and sending terminal unique identification information to the authority management equipment, wherein the terminal unique identification information is used for establishing a binding relationship between the authority management equipment and the software authority information and encrypting the binding relationship.
And sending the terminal unique identification information to the authority management equipment so that the authority management equipment can establish a binding relationship between the software authority information and the terminal unique identification information and encrypt the binding relationship, thereby reducing the risk of data leakage and improving the safety of software authority management.
In one embodiment, the software permission information includes software usage permission and a software usage validity period.
The use authority and the use validity period of the software in the terminal are managed simultaneously through the terminal unique identification information of the terminal, and the convenience of software authority management is improved.
A terminal software right management apparatus, comprising:
the information acquisition module is used for acquiring the unique identification information of the terminal; the terminal unique identification information is a unique identity of the terminal;
the information extraction module is used for extracting software permission information corresponding to the acquired terminal unique identification information from the stored data; the storage data is stored with software permission information and terminal unique identification information in advance, and the software permission information and the terminal unique identification information have a preset binding relationship;
and the permission setting module is used for setting the software permission according to the extracted software permission information.
According to the terminal software permission management device, the permission management is carried out on the software in the terminal according to the unique identification information of the terminal, the operation is simple, convenient and reliable, the third party encryption software is not needed, the software cannot be easily cracked, and the software encryption safety is improved.
A terminal comprising a memory and a processor, the memory storing a computer program, the processor when executing the computer program implementing the steps of: acquiring unique identification information of a terminal; the terminal unique identification information is a unique identity of the terminal; extracting software permission information corresponding to the acquired terminal unique identification information from the stored data; the software permission information and the terminal unique identification information are stored in the storage data in advance, and the software permission information and the terminal unique identification information have a preset binding relationship; and setting software permission according to the extracted software permission information.
According to the terminal, the authority management is carried out on the software in the terminal according to the unique identification information of the terminal, the operation is simple, convenient and reliable, the third party encryption software is not needed, the software is not easy to crack, and the software encryption safety is improved.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of: acquiring unique identification information of a terminal; the terminal unique identification information is a unique identity of the terminal; extracting software permission information corresponding to the acquired terminal unique identification information from the stored data; the storage data is stored with software permission information and terminal unique identification information in advance, and the software permission information and the terminal unique identification information have a preset binding relationship; and setting software permission according to the extracted software permission information.
The computer readable storage medium manages the authority of the software in the terminal according to the unique identification information of the terminal, is simple, convenient and reliable to operate, does not need to encrypt the software by a third party, is not easy to crack, and improves the encryption safety of the software.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
In one embodiment, a method for managing software permission of a terminal is provided, which is suitable for setting software permission of the terminal. As shown in fig. 1, the method includes:
step S130: and acquiring the unique identification information of the terminal.
The terminal unique identification information is the unique identity of the terminal. Specifically, the terminal may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, and when a user installs software in the terminal, the user needs to set the authority of the software. The unique terminal identification information may be acquired after the permission setting starting signal is detected, or the unique terminal identification information may be acquired when a user is detected to install new software or the user clicks and starts software to be used, and the unique terminal identification information is used as a basis for subsequent permission setting on the software. The method for obtaining the unique identification information of the terminal is not unique, and the unique identification information of the terminal can be obtained by directly detecting the identification information of the terminal or reading the stored identification information from a memory of the terminal.
The specific type of the terminal unique identification information is not unique, and in one embodiment, the terminal unique identification information includes a MAC address of the terminal, or the terminal unique identification information includes the MAC address of the terminal and CPU information. The CPU information may be a CPU model, etc. And the software permission information is bound according to the unique MAC address of the terminal or the combination of the MAC address of the terminal and the CPU information, so that the software permission management corresponding to different terminals is realized, and the operation reliability is high.
Step S150: and extracting software permission information corresponding to the acquired terminal unique identification information from the stored data.
The software permission information and the terminal unique identification information are stored in the storage data in advance, and the software permission information and the terminal unique identification information have a preset binding relationship. It can be understood that, if the terminal needs to set the permissions of a plurality of pieces of software, the terminal may pre-store the corresponding relationship between the unique identification information of the terminal and the software permission information for different pieces of software. For example, the terminal stores the corresponding relationship between the authority information of the software a and the unique terminal identification information, the corresponding relationship between the authority information of the software B and the unique terminal identification information, and the corresponding relationship between the authority information of the software C and the unique terminal identification information in advance, and when the authority of the software a, the software B, and the software C needs to be set, the corresponding authority information is found according to the corresponding relationship between the authority information of each software and the unique terminal identification information, so that the authority information is used as the terminal to perform authority management on the software a, the software B, and the software C respectively. If the terminal only needs to apply for the authority of one software, the terminal only stores the corresponding relation between the authority information of the software and the unique terminal identification information, and after the unique terminal identification information is obtained, the software authority information corresponding to the unique terminal identification information is directly found according to the stored corresponding relation.
Specifically, if the unique identification information of the terminal only includes the MAC address, the terminal stores the correspondence between the MAC address and the software permission information in the database in advance, and directly extracts the corresponding software permission information after knowing the MAC address of the terminal. If the unique terminal identification information includes the MAC address and the CPU information of the terminal, the terminal may store a correspondence between different combinations of the MAC address and the CPU information and the software permission information in the database. And after the MAC address and the CPU information of the terminal are known, finding out corresponding software permission information according to the combination relationship of the MAC address and the CPU information.
Step S160: and setting software permission according to the extracted software permission information.
And after the terminal extracts the software authority information corresponding to the unique identification information of the terminal, managing the software authority according to the software authority information. The specific type of the software permission information is not unique, and in one embodiment, the software permission information may specifically include software usage permission and a software usage validity period. The use authority and the use validity period of the software in the terminal are managed simultaneously through the terminal unique identification information of the terminal, and the convenience of software authority management is improved.
Taking computer use test software as an example, when software with certain authority needs to be encrypted and limited, corresponding use authority and use date are obtained according to the MAC address and the CPU information of the computer, and a computer user with the MAC address can only use the related functions of opening the authority. Such as: a certain test software can manually test the computer with the authority of 1, the computer with the authority of 2 can realize semi-automation, and the computer with the authority of 3 can realize full-automation; the terminal software permission management method ensures the functions of certain encryption of the software and different functions distributed according to the permission. Computers without the MAC address in the database cannot use the software, and certain application value is provided for software encryption and authority distribution.
In one embodiment, as shown in fig. 2, before step S130, the method may further include step S120.
Step S120: and receiving and storing the software permission information with the preset binding relationship and the unique terminal identification information which are sent by the permission management equipment.
And the authority management equipment is used for establishing a binding relationship between the unique terminal identification information and the corresponding software authority information. The right management device may be specifically a management terminal or a server, the management terminal may be a personal computer, a notebook computer, a smart phone, or a tablet computer, and the server may be implemented by an independent server or a server cluster formed by a plurality of servers. The management personnel can collect the unique identification information of different terminals through the authority management equipment, establish the binding relationship between the unique identification information of the terminals and the software authority information according to the software use authority allowed by each terminal and issue the binding relationship to the terminals for storage. The terminal receives and stores the terminal unique identification information and the software permission information with the preset binding relationship in advance so as to perform software permission management operation in the following.
Further, in one embodiment, before step S120, the method further comprises step S110.
Step S110: and sending the unique identification information of the terminal to the authority management equipment.
And the terminal unique identification information is used for establishing a binding relationship between the authority management equipment and the software authority information and encrypting the binding relationship. And the administrator collects the unique identification information of each terminal through the authority management equipment, binds the unique identification information with the software authority information, stores the unique identification information in the database file, encrypts the database file, and then issues the encrypted database file to a position appointed by the terminal for storage so that the terminal can set the authority of the installed software through the stored database file.
And sending the terminal unique identification information to the authority management equipment so that the authority management equipment can establish a binding relationship between the software authority information and the terminal unique identification information and encrypt the binding relationship, thereby reducing the risk of data leakage and improving the safety of software authority management. The encryption mode is not unique, and in this embodiment, the rights management device performs MD5(MD5Message-Digest Algorithm, MD5Message Digest Algorithm) encryption on the bound software rights information and the terminal unique identification information.
In one embodiment, with continued reference to fig. 2, after step S130, and before step S150, the method further includes step S140.
Step S140: and detecting whether the acquired unique terminal identification information exists in the stored data. If yes, go to step S150.
If the terminal detects that the terminal unique identification information is stored and acquired, the terminal is indicated to have the software use right, and corresponding software permission information is extracted according to the terminal unique identification information. When the terminal is determined to have the software use right, corresponding software permission information is extracted to set the software permission, and if the terminal does not have the software use right, information extraction is not needed, so that the operation convenience is improved.
Further, in an embodiment, if the acquired unique terminal identification information does not exist in the stored data, the method further includes step S170.
Step S170: and outputting the software permission setting failure information. If the terminal does not store the acquired terminal unique identification information, the terminal does not have the software use permission, and the software permission setting failure information is output to inform the user, for example, the user can be informed to perform terminal registration, so that the terminal has the permission to use the software.
When the acquired terminal unique identification information is not stored, the software permission setting failure information is output to inform the user, so that the operation convenience of software permission management is improved. The specific way of outputting the software permission setting failure information is not unique, and can be one or more of controlling a display screen to display preset information, controlling a loudspeaker to sound or controlling an alarm lamp to give an alarm.
In order to better understand the above terminal software permission management method, the following uses the terminal as a computer, and performs a detailed explanation of software permission setting according to the MAC address of the computer.
The user of the computer sends the MAC address of the computer to the authority management equipment, an administrator using the authority management equipment binds the MAC address and the related authority attributes one by one and stores the MAC address and the related authority attributes into the database file, the database file is encrypted by using the MD5 and is issued to the computer to be provided for the user, and the user places the database file at a designated computer position. After a user starts software on a computer, the software can automatically go to a designated path to inquire a database file and analyze the database file, if an MAC address of the computer is stored in the database file, the computer is authorized, and meanwhile, the use permission information corresponding to the computer with the MAC address is obtained, and the authorized computer can use the software and related permissions, so that the functions of encryption and permission allocation are achieved through the method.
According to the terminal software permission management method, the permission management is carried out on the software in different terminals according to the unique identification information of the terminals, the operation is simple, convenient and reliable, the third party encryption software is not needed, the software cannot be easily cracked, and the software encryption safety is improved.
It should be understood that although the various steps in the flow charts of fig. 1-2 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 1-2 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
In one embodiment, a terminal software rights management device is provided, as shown in fig. 3, including an information acquisition module 130, an information extraction module 150, and a rights setting module 160.
The information obtaining module 130 is configured to obtain the terminal unique identification information.
The terminal unique identification information is the unique identity of the terminal. The terminal may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices. When a user installs software in a terminal, the authority of the software needs to be set. The unique terminal identification information may be acquired after the permission setting starting signal is detected, or the unique terminal identification information may be acquired when a user is detected to install new software or the user clicks and starts software to be used, and the unique terminal identification information is used as a basis for subsequent permission setting on the software. The specific type of the terminal unique identification information is not unique, and in one embodiment, the terminal unique identification information includes a MAC address of the terminal, or the terminal unique identification information includes the MAC address of the terminal and CPU information.
The information extraction module 150 is configured to extract software permission information corresponding to the acquired terminal unique identification information from the stored data.
The software permission information and the terminal unique identification information are stored in the storage data in advance, and the software permission information and the terminal unique identification information have a preset binding relationship. It can be understood that, if the terminal needs to set the permissions of a plurality of pieces of software, the terminal may pre-store the corresponding relationship between the unique identification information of the terminal and the software permission information for different pieces of software. When the authority of different software needs to be set, corresponding authority information is found according to the corresponding relation between the authority information of each software and the unique identification information of the terminal, so that the authority information is used as the authority management of each software by the terminal. If the terminal only needs to apply for the authority of one software, the terminal only stores the corresponding relation between the authority information of the software and the unique terminal identification information, and after the unique terminal identification information is obtained, the software authority information corresponding to the unique terminal identification information is directly found according to the stored corresponding relation.
Specifically, if the terminal unique identification information only includes the MAC address, the corresponding relationship between the MAC address and the software permission information is established in advance for storage, and after the MAC address of the terminal is known, the information extraction module 150 directly extracts the corresponding software permission information. If the unique terminal identification information includes the MAC address and the CPU information of the terminal, the corresponding relationship between the combination of different MAC addresses and CPU information and the software permission information may be stored in the database. After the MAC address and the CPU information of the terminal are known, the information extraction module 150 finds corresponding software permission information according to a combination relationship of the MAC address and the CPU information.
The permission setting module 160 is configured to perform software permission setting according to the extracted software permission information.
After extracting the software permission information corresponding to the terminal unique identification information, the permission setting module 160 performs software permission setting according to the extracted software permission information. In one embodiment, the software permission information may specifically include software usage permission and a software usage validity period. The use authority and the use validity period of the software in the terminal are managed simultaneously through the terminal unique identification information of the terminal, and the convenience of software authority management is improved.
In one embodiment, as shown in FIG. 4, the apparatus may further include a data import module 120.
The data importing module 120 is configured to receive and store the software permission information and the terminal unique identification information with a preset binding relationship, which are sent by the permission management device, before the information obtaining module 130 obtains the terminal unique identification information. And the authority management equipment is used for establishing a binding relationship between the unique terminal identification information and the corresponding software authority information. The terminal receives and stores the terminal unique identification information and the software permission information with the preset binding relationship in advance so as to perform software permission management operation in the following.
Further, in one embodiment, the apparatus may also include an information upload module 110. The information uploading module 110 is configured to send the terminal unique identification information to the rights management device before the data importing module 120 receives and stores the software rights information and the terminal unique identification information that are sent by the rights management device and have a preset binding relationship.
And the terminal unique identification information is used for establishing a binding relationship between the authority management equipment and the software authority information and encrypting the binding relationship. And sending the terminal unique identification information to the authority management equipment so that the authority management equipment can establish a binding relationship between the software authority information and the terminal unique identification information and encrypt the binding relationship, thereby reducing the risk of data leakage and improving the safety of software authority management. In this embodiment, the rights management device performs MD5 encryption on the bound software rights information and the terminal unique identification information.
In one embodiment, with continued reference to fig. 4, the apparatus may further include an information detection module 140. The information detection module 140 is configured to detect whether the acquired unique terminal identification information exists in the stored data after the information acquisition module 130 acquires the unique terminal identification information and before the information extraction module 150 extracts the software permission information corresponding to the acquired unique terminal identification information from the stored data. If yes, the control information extraction module 150 extracts software permission information corresponding to the acquired terminal unique identification information from the stored data.
If the terminal unique identification information is detected to be stored and acquired, the terminal is indicated to have the software use right, and corresponding software permission information is extracted according to the terminal unique identification information. When the terminal is determined to have the software use right, corresponding software permission information is extracted to set the software permission, and if the terminal does not have the software use right, information extraction is not needed, so that the operation convenience is improved.
Further, in an embodiment, if the acquired unique terminal identification information does not exist in the stored data, the information detection module 140 further outputs the software permission setting failure information. When the acquired terminal unique identification information is not stored, the software permission setting failure information is output to inform the user, so that the operation convenience of software permission management is improved. The specific way of outputting the software permission setting failure information is not unique, and can be one or more of controlling a display screen to display preset information, controlling a loudspeaker to sound or controlling an alarm lamp to give an alarm.
According to the terminal software permission management device, the permission management is carried out on the software in different terminals according to the unique identification information of the terminals, the operation is simple, convenient and reliable, the third party encryption software is not needed, the software cannot be easily cracked, and the software encryption safety is improved.
For specific limitations of the terminal software right management device, reference may be made to the above limitations of the terminal software right management method, which is not described herein again. The modules in the terminal software right management device can be wholly or partially realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 5. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a terminal software rights management method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 5 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, there is provided a terminal comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program: acquiring unique identification information of a terminal; the terminal unique identification information is a unique identity of the terminal; extracting software permission information corresponding to the acquired terminal unique identification information from the stored data; the software permission information and the terminal unique identification information are stored in the storage data in advance, and the software permission information and the terminal unique identification information have a preset binding relationship; and setting software permission according to the extracted software permission information.
In one embodiment, the processor, when executing the computer program, further performs the steps of: and detecting whether the acquired unique terminal identification information exists in the stored data.
In one embodiment, the processor, when executing the computer program, further performs the steps of: and outputting the software permission setting failure information.
In one embodiment, the processor, when executing the computer program, further performs the steps of: receiving and storing software permission information and terminal unique identification information which are sent by permission management equipment and have a preset binding relationship; and the authority management equipment is used for establishing a binding relationship between the unique terminal identification information and the corresponding software authority information.
In one embodiment, the processor, when executing the computer program, further performs the steps of: and sending the terminal unique identification information to the authority management equipment, wherein the terminal unique identification information is used for establishing a binding relationship between the authority management equipment and the software authority information and encrypting the binding relationship.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of: acquiring unique identification information of a terminal; the terminal unique identification information is a unique identity of the terminal; extracting software permission information corresponding to the acquired terminal unique identification information from the stored data; the software permission information and the terminal unique identification information are stored in the storage data in advance, and the software permission information and the terminal unique identification information have a preset binding relationship; and setting software permission according to the extracted software permission information.
In one embodiment, the computer program when executed by the processor further performs the steps of: and detecting whether the acquired unique terminal identification information exists in the stored data.
In one embodiment, the computer program when executed by the processor further performs the steps of: and outputting the software permission setting failure information.
In one embodiment, the computer program when executed by the processor further performs the steps of: receiving and storing software permission information and terminal unique identification information which are sent by permission management equipment and have a preset binding relationship; and the authority management equipment is used for establishing a binding relationship between the unique terminal identification information and the corresponding software authority information.
In one embodiment, the computer program when executed by the processor further performs the steps of: and sending the terminal unique identification information to the authority management equipment, wherein the terminal unique identification information is used for establishing a binding relationship between the authority management equipment and the software authority information and encrypting the binding relationship.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.