Dynamic random code encryption method and system for unmanned aerial vehicle emergency mobile command equipment
Through the dynamic random code security method, the combination of time dynamic password and random password is used to solve the problem of inflexible user password fixation and management methods in traditional systems, and the security and reliability of the drone emergency mobile command equipment are improved. Ensure that only users with appropriate permissions can perform advanced operations.
Patent Information
- Application Number
- CN202411271922.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-11
- Publication Date
- 2024-12-13
AI Technical Summary
The user permission hierarchical management system of traditional drone emergency mobile command equipment has security risks such as fixed user passwords and unchangeable security methods, and lack flexibility in management methods, and cannot adapt to security needs in different scenarios.
Using dynamic random code password security method, the password is generated and refreshed through the combination of time dynamic password and random password. Users log in to verify according to permissions, and use QR code to display random passwords when advanced settings and modifying parameters, enhancing security and flexibility .
It effectively solves the problems of insufficient flexibility in fixed password security risks and management methods, improves the security and reliability of the drone emergency mobile command equipment, ensures that only users with appropriate permissions can perform advanced operations and prevent overprivileged operations.
Smart Images

Figure CN119128848A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of unmanned aerial vehicle emergency mobile command equipment, and in particular to a method, system, computer equipment and computer program product for dynamic random code security of unmanned aerial vehicle emergency mobile command equipment. Background Art
[0002] With the development of drone technology, drones are increasingly used in emergency rescue, disaster monitoring, and security patrols. As an important component of drone applications, drone emergency mobile command equipment plays a vital role. Traditional drone emergency mobile command equipment is usually operated and managed using industrial control screens, and the operating permissions of different users are controlled through a user permission hierarchical management system.
[0003] In the traditional hierarchical user authority management system, different levels of user login passwords are usually set. High-level users can access and operate all functions, while low-level users can only perform basic operations. Although this hierarchical management system guarantees the security of the equipment and the standardization of operations to a certain extent, it also has obvious shortcomings. First, the user password of the traditional system is fixed before the equipment leaves the factory and cannot be changed. As the use time increases, operators with lower authority may remember the passwords of high-level users, which makes the hierarchical authority management meaningless and poses a major security risk. Secondly, the management method of fixed passwords lacks flexibility and cannot adapt to the security needs in different scenarios. Summary of the invention
[0004] The present application provides a dynamic random code security method, system, computer device and storage medium for unmanned aerial vehicle emergency mobile command equipment, aiming to solve the problem that user passwords in traditional systems have great security risks, the management method of fixed passwords lacks flexibility and cannot adapt to security requirements in different scenarios.
[0005] In a first aspect, a dynamic random code security method for an unmanned aerial vehicle emergency mobile command device is provided, the method comprising:
[0006] In response to the user's login input, a login interface is displayed, and the login user authority is determined according to the login account and login password input by the user; wherein the users include a first user, a second user and a third user, corresponding to the first user authority, the second user authority and the third user authority respectively;
[0007] In response to the advanced setting input of the currently logged-in user, obtaining the currently logged-in user's authority, and if the currently logged-in user's authority is the first user authority, returning to the user login interface;
[0008] If the current logged-in user authority is the second user authority or the third user authority, a time dynamic password input window pops up to receive the time dynamic password input by the current logged-in user, and determines whether the time dynamic password is correct. If so, enter the advanced setting interface and perform basic debugging of advanced settings according to the input of the current logged-in user; if not, return to the user login interface;
[0009] In response to the modification parameter input of the currently logged-in user, a random password input window pops up to determine whether the currently logged-in user's authority is the third user authority. If so, a display password window is opened, and the user enters the random password displayed in the display password window into the random password input window to enter the modification parameter interface and perform the modification parameter operation according to the currently logged-in user input.
[0010] In the above solution, optionally, the first user, the second user and the third user are an operator, a technician and an administrator respectively;
[0011] The first user authority, the second user authority and the third user authority correspond to operator authority, technician authority and administrator authority respectively.
[0012] In the above scheme, optionally, the time dynamic password is generated by mathematical operation according to the current month, date and time value;
[0013] The random password is generated by a random number and has 8 digits.
[0014] The random password is displayed as a QR code, and the user obtains the random password by scanning the QR code.
[0015] In the above solution, optionally, the time dynamic password is obtained by reading the month, date, hour and minute in the system variables and performing mathematical operations;
[0016] The generation formula of the time dynamic password is: time dynamic password=(month+minute)*100+(date+hour).
[0017] In the above solution, optionally, the step of generating the random password includes:
[0018] Generate a random number between 0 and 1 through the random number generation instruction and multiply it by 10 8 , take the integer part to get an 8-digit random password.
[0019] In the above solution, optionally, the method further includes a silent logout step, specifically:
[0020] Perform a silent logout operation every 5 minutes, log out the current user and prompt them to log in again;
[0021] The refresh cycle of the time-based dynamic password is once every minute, and the refresh cycle of the random password is once every 5 minutes.
[0022] In the above solution, optionally, a user login prompt pops up before entering the operation page after the device is started, and the first user enters the basic operation interface and performs corresponding operations without a password.
[0023] In a second aspect, a dynamic random code security system for an unmanned aerial vehicle emergency mobile command device is provided, the system comprising:
[0024] User login module: used to respond to the user's login input, display the login interface, and determine the login user authority according to the login account and login password entered by the user; wherein the users include the first user, the second user and the third user, corresponding to the first user authority, the second user authority and the third user authority respectively;
[0025] Advanced settings module: used to respond to the advanced settings input of the currently logged-in user, obtain the permissions of the currently logged-in user, and return to the user login interface if the permissions of the currently logged-in user are the first user permissions; if the permissions of the currently logged-in user are the second user permissions or the third user permissions, a time dynamic password input window pops up to receive the time dynamic password input by the currently logged-in user, and determine whether the time dynamic password is correct. If so, enter the advanced settings interface and perform basic debugging of advanced settings according to the input of the currently logged-in user; if not, return to the user login interface;
[0026] Parameter modification module: used to respond to the modification parameter input of the currently logged-in user, pop up a random password input window, determine whether the currently logged-in user's authority is the third user authority, and if so, open the display password window, and the user enters the random password displayed in the display password window into the random password input window to enter the parameter modification interface and perform parameter modification operations according to the currently logged-in user input.
[0027] In a third aspect, a computer device includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0028] In response to the user's login input, a login interface is displayed, and the login user authority is determined according to the login account and login password input by the user; wherein the users include a first user, a second user and a third user, corresponding to the first user authority, the second user authority and the third user authority respectively;
[0029] In response to the advanced setting input of the currently logged-in user, obtaining the currently logged-in user's authority, and if the currently logged-in user's authority is the first user authority, returning to the user login interface;
[0030] If the current logged-in user authority is the second user authority or the third user authority, a time dynamic password input window pops up to receive the time dynamic password input by the current logged-in user, and determines whether the time dynamic password is correct. If so, enter the advanced setting interface and perform basic debugging of advanced settings according to the input of the current logged-in user; if not, return to the user login interface;
[0031] In response to the modification parameter input of the currently logged-in user, a random password input window pops up to determine whether the currently logged-in user's authority is the third user authority. If so, a display password window is opened, and the user enters the random password displayed in the display password window into the random password input window to enter the modification parameter interface and perform the modification parameter operation according to the currently logged-in user input.
[0032] In a fourth aspect, a computer program product comprises a computer program / instruction, wherein when the computer program / instruction is executed by a processor, the following steps are implemented:
[0033] In response to the user's login input, a login interface is displayed, and the login user authority is determined according to the login account and login password input by the user; wherein the users include a first user, a second user and a third user, corresponding to the first user authority, the second user authority and the third user authority respectively;
[0034] In response to the advanced setting input of the currently logged-in user, obtaining the currently logged-in user's authority, and if the currently logged-in user's authority is the first user authority, returning to the user login interface;
[0035] If the current logged-in user authority is the second user authority or the third user authority, a time dynamic password input window pops up to receive the time dynamic password input by the current logged-in user, and determines whether the time dynamic password is correct. If so, enter the advanced setting interface and perform basic debugging of advanced settings according to the input of the current logged-in user; if not, return to the user login interface;
[0036] In response to the modification parameter input of the currently logged-in user, a random password input window pops up to determine whether the currently logged-in user's authority is the third user authority. If so, a display password window is opened, and the user enters the random password displayed in the display password window into the random password input window to enter the modification parameter interface and perform the modification parameter operation according to the currently logged-in user input.
[0037] Compared with the prior art, this application has at least the following beneficial effects:
[0038] Based on further analysis and research on the existing technical problems, this application recognizes that the user passwords of the traditional system have great security risks, the management method of fixed passwords lacks flexibility, and cannot adapt to the security needs in different scenarios. The introduction of time-dynamic passwords and random passwords in this application makes the passwords no longer fixed. The time-dynamic password is generated according to the current time, while the random password is generated by a random number and refreshed at regular intervals. This makes it impossible for low-privilege users to remember or infer the passwords of high-privilege users even if they use the device for a long time. When the user logs in, the authority is verified according to the user group. Different user groups have different operating permissions, and unauthorized users cannot access advanced settings and modify parameters. This ensures that only users with appropriate permissions can perform corresponding operations, enhancing the security of the system. For operations that require parameter modification, the random password is displayed through a QR code, and the administrator group user obtains the random password by scanning the QR code. This increases the complexity of the operation and prevents low-privilege users from modifying parameters out of curiosity or malicious intent.
[0039] This application effectively solves the security risks and lack of flexibility of fixed passwords mentioned in the background technology through measures such as dynamic password generation, permission verification, QR code display of random passwords and silent logout, and improves the security and reliability of drone emergency mobile command equipment. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 A schematic flow chart of a dynamic random code security method for a drone emergency mobile command device provided by an embodiment of the present application;
[0041] Figure 2 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0042] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0043] In the description of this application: unless otherwise specified, the meaning of "plurality" is two or more. The terms "first", "second", "third", etc. in this application are intended to distinguish the objects referred to, and do not have special meanings in terms of technical connotations (for example, they should not be understood as emphasizing the importance or order, etc.). Expressions such as "including", "comprising", "having", etc. also mean "not limited to" (certain units, components, materials, steps, etc.).
[0044] In one embodiment, Figure 1 As shown, a dynamic random code security method for an unmanned aerial vehicle emergency mobile command device is provided, comprising the following steps:
[0045] In response to the user's login input, a login interface is displayed, and the login user authority is determined according to the login account and login password input by the user; wherein the users include a first user, a second user and a third user, corresponding to the first user authority, the second user authority and the third user authority respectively;
[0046] In response to the advanced setting input of the currently logged-in user, obtaining the currently logged-in user's authority, and if the currently logged-in user's authority is the first user authority, returning to the user login interface;
[0047] If the current logged-in user authority is the second user authority or the third user authority, a time dynamic password input window pops up to receive the time dynamic password input by the current logged-in user, and determines whether the time dynamic password is correct. If so, enter the advanced setting interface and perform basic debugging of advanced settings according to the input of the current logged-in user; if not, return to the user login interface;
[0048] In response to the modification parameter input of the currently logged-in user, a random password input window pops up to determine whether the currently logged-in user's authority is the third user authority. If so, a display password window is opened, and the user enters the random password displayed in the display password window into the random password input window to enter the modification parameter interface and perform the modification parameter operation according to the currently logged-in user input.
[0049] In this embodiment, the first user, the second user and the third user are an operator, a technician and an administrator respectively;
[0050] The first user authority, the second user authority and the third user authority correspond to operator authority, technician authority and administrator authority respectively.
[0051] In this embodiment, the time dynamic password is generated by mathematical operation based on the current month, date and time value;
[0052] The random password is generated by a random number and has 8 digits.
[0053] The random password is displayed as a QR code, and the user obtains the random password by scanning the QR code.
[0054] In this embodiment, the time dynamic password is obtained by reading the month, date, hour and minute in the system variables and performing mathematical operations;
[0055] The generation formula of the time dynamic password is: time dynamic password=(month+minute)*100+(date+hour).
[0056] In this embodiment, the step of generating the random password includes:
[0057] Generate a random number between 0 and 1 through the random number generation instruction and multiply it by 10 8 , take the integer part to get an 8-digit random password.
[0058] In this embodiment, the method further includes a silent logout step, specifically:
[0059] Perform a silent logout operation every 5 minutes, log out the current user and prompt them to log in again;
[0060] The refresh cycle of the time-based dynamic password is once every minute, and the refresh cycle of the random password is once every 5 minutes.
[0061] In this embodiment, a user login prompt pops up before entering the operation page after the device is started, and the first user enters the basic operation interface and performs corresponding operations without a password.
[0062] This embodiment ensures the operational security of users with different permissions by dynamically generating and managing passwords, preventing low-privilege users from obtaining high-privilege passwords through long-term use, thereby greatly improving the security and flexibility of the system. Obtaining random passwords through QR codes increases the security level, and the silent logout function further ensures the security of the system.
[0063] This embodiment uses the current time to generate a dynamic password, so that the password changes with time, effectively preventing the password from being remembered or guessed for a long time, and improving the security of the system. At the same time, using simple mathematical operations to generate the password ensures the efficiency and real-time nature of the generation process.
[0064] This embodiment converts the current time into a password through simple mathematical operations, ensuring the dynamic change and unpredictability of the password. The formula is simple and efficient, and can quickly generate a dynamic password to ensure efficient operation of the system.
[0065] This embodiment generates an 8-digit random password through a random number, so that the password is different each time it is refreshed, ensuring the high randomness and unpredictability of the password. This method is simple and efficient, can quickly generate a random password, and is suitable for security needs in various scenarios.
[0066] This embodiment displays a user login dialog box and a password input window, and allows access to corresponding pages and functions after verifying permissions according to the user group.
[0067] This embodiment ensures that only users with appropriate permissions can access corresponding pages and functions through permission verification of the user login dialog box and password input window, effectively preventing unauthorized users from exceeding their authority and improving the security of the system.
[0068] This embodiment uses a QR code to display a random password, making the password transmission process safer and preventing the password from being intercepted or leaked. At the same time, the QR code method is simple and easy to use, and the user can quickly obtain the random password, which improves the user experience.
[0069] This embodiment ensures that high-authority users automatically log out when not in use through regular silent logout operations, preventing low-authority users from performing unauthorized operations when high-authority users fail to log out in time. This measure further improves the security of the system.
[0070] This embodiment ensures timely updating of dynamic passwords and random passwords by setting a reasonable refresh cycle, thereby ensuring the security and effectiveness of the system. At the same time, a reasonable refresh cycle avoids the system burden caused by frequent refreshes, thereby ensuring efficient operation of the system.
[0071] This embodiment ensures that different user groups can only perform operations within their authority, effectively preventing unauthorized operations. The use of dynamic passwords and random passwords improves the security of the system, and the clear division of user groups improves the management efficiency of the system.
[0072] In one embodiment, a dynamic random code security system for an emergency mobile command device of a drone is provided, comprising the following program modules:
[0073] User login module: used to respond to the user's login input, display the login interface, and determine the login user authority according to the login account and login password entered by the user; wherein the users include the first user, the second user and the third user, corresponding to the first user authority, the second user authority and the third user authority respectively;
[0074] Advanced settings module: used to respond to the advanced settings input of the currently logged-in user, obtain the permissions of the currently logged-in user, and return to the user login interface if the permissions of the currently logged-in user are the first user permissions; if the permissions of the currently logged-in user are the second user permissions or the third user permissions, a time dynamic password input window pops up to receive the time dynamic password input by the currently logged-in user, and determine whether the time dynamic password is correct. If so, enter the advanced settings interface and perform basic debugging of advanced settings according to the input of the currently logged-in user; if not, return to the user login interface;
[0075] Parameter modification module: used to respond to the modification parameter input of the currently logged-in user, pop up a random password input window, determine whether the currently logged-in user's authority is the third user authority, and if so, open the display password window, and the user enters the random password displayed in the display password window into the random password input window to enter the parameter modification interface and perform parameter modification operations according to the currently logged-in user input.
[0076] The specific implementation content of each module can be found in the above-mentioned definition of the dynamic random code security method for the UAV emergency mobile command equipment, which will not be repeated here.
[0077] In one embodiment, a dynamic random code security system for an unmanned aerial vehicle emergency mobile command device is provided. Based on the unmanned aerial vehicle emergency mobile command device, the original industrial control screen is improved and upgraded on the basis that different users with different permissions can access different pages, and a dynamic random code security function is added.
[0078] The dynamic random code security is divided into two parts, the time dynamic password and the random password. The principle of the time dynamic password is to use the current month, date and time values in the industrial control panel system, arrange and combine them according to a certain rule, and perform simple mathematical operations to obtain a dynamic password. The principle of the random password is to use the script function in the industrial control panel system to generate a random number, multiply the random number by 10 8 , and then perform integer processing, and then format it into an 8-bit string to obtain an 8-bit random password. After the device is started, before entering the operation page, a user login prompt will pop up. The operator can only log in to the operator group without a password and perform basic operations. The content of the advanced settings cannot be viewed, and the parameters cannot be modified. The engineer can perform basic debugging operations within the advanced settings, but cannot change the parameters. The person in charge has full authority and can enter the advanced settings screen for debugging and parameter modification.
[0079] When the device is in normal use, log in as an operator and perform basic operations. When a general problem occurs in the device and you need to view the advanced settings interface for simple debugging, clicking the advanced settings button will check the user permissions, and the current user needs to be in the technician group or administrator group. When the user permissions do not match, clicking this button will pop up a dialog box for user login; when the user permissions match, a window for entering the time dynamic password will pop up, and you can enter the advanced settings interface to operate only after entering the password correctly; when a serious problem occurs in the device and the parameter content needs to be modified, clicking the parameter modification input box will pop up a window for entering a random password, and there is a button to view the random password in the window. User permissions are set on this button, and the current user needs to be in the administrator group. When the user permissions do not match, clicking this button will pop up a dialog box for user login; when the user permissions match, you will enter the password display screen, which will display the random password in the form of a QR code. After scanning the QR code to obtain the password, return to enter the correct password to modify the parameters. The dynamic password refresh time is set to refresh every half a minute, and the random password refresh time is set to refresh every 5 minutes. After the refresh time is up, there will be no prompt on the screen. When you enter the advanced settings screen or modify the parameters again, the password input box will still pop up. At this time, you can only log in to the corresponding user account, calculate the current password through the current time, or open the random code display screen, and scan and identify the QR code through the mobile phone, and it will not be displayed directly through other methods. It adds some complexity in operation, which can greatly prevent operators with low authority levels from changing parameters out of curiosity and causing damage to the equipment.
[0080] In this embodiment, the original user authority division system is retained in the industrial control panel, and the administrator group, technician group and operator group are set up respectively. Each group adds users, and the person in charge belongs to the administrator group, has all permissions, and the login password is a combination of 8 letters, numbers and symbols; the engineer belongs to the technician group, can enter the advanced setting interface, but can only operate, cannot change parameters, and the login password is a combination of 8 letters and numbers; the operator belongs to the operator group, can only perform routine operations, cannot enter the advanced setting interface, and cannot change parameters, and has no login password.
[0081] In addition to adding user rights management, a time-based dynamic password is set in the button for entering the advanced settings screen, and a random password is set in the input box for modifying parameters. The following is a detailed explanation of the generation logic of the time-based dynamic password and the random password.
[0082] The time dynamic password is to add a loop strategy to the overall configuration, read the current month, date, time and other values, and perform mathematical operations. The result is formatted as a string variable and assigned to the "time password" variable. The specific implementation plan is as follows:
[0083] Get the values of $Month, $Day, $Hour and $Minute in the system variables and attach them to the custom variables: month = $Month, day = $Day, hour = $Hour, minute = $Minute. Then perform the calculation: password 1 = month + minute, password 2 = day + hour, and then use password 1 as the first 2 digits and password 2 as the last 2 digits to calculate the current time password value = password 1*100+password 2.
[0084] For example, if the current time is "2024-6-1113:25", the current password value calculated is 3124. The current password 3124 is formatted into a string using the script! Format statement to get "3124", which is assigned to the "time password" variable. Since the time changes every minute, the variable also changes with time, but the engineer and the person in charge know the password pattern, so dynamic password decentralized access can be achieved.
[0085] The above calculation formula can be modified by the designer to obtain different dynamic passwords through different combination rules. For example, the simpler one is to directly summarize and sort the time to obtain 06111325, or to add some operations to obtain 132538, etc. Different degrees of encryption can be performed for different usage scenarios.
[0086] The random password is to add a loop strategy to the overall configuration, through the Rand random number instruction, to get a random number between 0 and 1. The characteristics of this number are infinite non-repeating decimals, and the integer bit is 0, and repeated refresh will not be the same as the current one. Multiply the random number by 10 8 , the integer part obtained is the first 8 digits of the decimal part of the original random number. Then take the integer part, discard the decimal place after data processing, and get an 8-bit floating point variable. Finally, use the !Formamt statement to format the floating point number into an 8-bit string and assign it to the "random password" string variable declared in the variable library. Each time the loop strategy is refreshed, the above logical operation will be executed once, so that a different random password will be obtained each time it is refreshed.
[0087] After obtaining the dynamic password and random password, "Enter password 1" and "Enter password 2" need to be compared with the corresponding "dynamic password" and "random password" (after the first power-on, "Enter password 1" and "Enter password 2" are both 0) to determine whether the entered password is correct. The following is a detailed description:
[0088] In the startup screen, add a user login script to the button that enters the main operation screen, and set the button action to open the main screen window. When the button is clicked, the LogOn statement is executed to open the user login dialog box, select the user and enter the login password (no login password is required when the login user is an operator). After logging in, enter the main screen, and then perform basic operations on the device.
[0089] In the button that opens the advanced settings screen, set the operation permissions for the technician group and the administrator group, and add a script. When the button is clicked, determine the group to which the current user belongs, and nest the IF statement! CheckUserGroup statement checks whether the current user belongs to the specified user group (technician group or administrator group). When the return value is 1, it means that the current user does not have the permission, and execute it at this time! LogOn statement opens the user login dialog box and prompts the operator to log in as a high-level user; when the return value is 0, it means that the current user group has the corresponding permission. At this time, a subwindow for entering the time dynamic password pops up. The dynamic password needs to be calculated based on the current system time to enter the advanced settings interface. The operator does not know the login password of the high-level user, nor does he know the calculation rule of the time dynamic password. Under double insurance, security is guaranteed to the greatest extent.
[0090] After entering the advanced interface, add a script in the input box for modifying parameters. When you click the input box, a subwindow for entering a random password pops up. There is no pattern in the random password, so you need to click the "View Password" button. Set the operation permissions of the administrator group in the "View Password" button. When you click the button, determine the group to which the current user belongs, and nest the IF statement! CheckUserGroup statement, check whether the current user belongs to the administrator group. When the return value is 1, it means that the current user does not have the permission, and execute it at this time! LogOn statement, open the user login dialog box, prompt the operator to log in to the responsible user; when the return value is 0, it means that the current user group has the corresponding permission, and execute it at this time! CloseAllWindow statement, close all windows except the "Show Password" window, a QR code component is added to this window, and the "Random Password" variable is associated. When the system is running, the QR code will change synchronously according to the change of the random password. After the person in charge scans the code to get the current random password, return to the subwindow for entering the random password, enter the password and click OK. At this time, use the IF statement to determine whether the input password is the same as the current password. If they are different, execute it! OpenSubWnd statement, open the subwindow with the wrong password, and pop up a prompt for the wrong password; if they are the same, execute it! CloseSubWnd statement closes the subwindow for password input and opens the keyboard for modifying parameters in the advanced settings interface to modify the parameters. If you do not enter a password, click Cancel directly to close the pop-up window and return to the advanced settings operation interface. This function can prevent advanced users (administrators) from accidentally touching the screen when they do not want to modify. Cancelling will not change the parameters.
[0091] Add two loop strategies in the device configuration. Strategy 1 sets the loop scanning cycle to half a minute, and Strategy 2 sets the loop scanning cycle to 5 minutes. The script program of the time dynamic password is placed in loop strategy 1 and executed every half a minute. However, since the fastest changing "minute" in the time variables used by the dynamic password only changes once a minute, the dynamic password also changes once a minute. The loop cycle is set to half a minute to ensure that the dynamic password is completely synchronized with the time, and to avoid frequent scanning and refreshing to waste CPU. The script program of the random password is placed in loop strategy 2, and the value of the random password changes every 5 minutes. It meets the needs of modifying parameters to the greatest extent, and will not increase the complexity of the operation because the password changes too quickly and changes before the parameters are modified. It is very reasonable and user-friendly.
[0092] In loop strategy 2, a silent logout script is also added. It is executed once every 5 minutes! SilentLogOff statement to silently log out the current user without any prompt. Within 5 minutes of the high-level user logging in, debugging and parameter modification operations can be performed multiple times. After the user actively logs out or logs out silently when the time is up, if he wants to continue the operation, the corresponding permission check script will detect that the user permission does not match, and execute! LogOn statement to pop up the user login dialog box. At this time, the high-level user needs to log in again. This function can prevent high-level users from failing to log out in time after logging in, resulting in low-level users being able to bypass the level of operation, thus ensuring system security and device stability to the greatest extent.
[0093] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 2 As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input system connected via a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities, and the communication interface is used to communicate with an external terminal in a wired or wireless manner. The wireless method can be achieved through WIFI, an operator network, NFC (near field communication) or other technologies. The computer device implements the above-mentioned dynamic random code security method for an unmanned aerial vehicle emergency mobile command device by loading and running a computer program. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input system of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.
[0094] Those skilled in the art will understand that Figure 2The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0095] In one embodiment, a computer program product is also provided, including a computer program / instruction, which, when executed by a processor, involves all or part of the process in the above-mentioned embodiment method.
[0096] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
Claims
1. A dynamic random code security method for an unmanned aerial vehicle emergency mobile command device, characterized in that: The method comprises: In response to the user's login input, a login interface is displayed, and the login user authority is determined according to the login account and login password input by the user; wherein the users include a first user, a second user and a third user, corresponding to the first user authority, the second user authority and the third user authority respectively; In response to the advanced setting input of the currently logged-in user, obtaining the currently logged-in user's authority, and if the currently logged-in user's authority is the first user authority, returning to the user login interface; If the current logged-in user authority is the second user authority or the third user authority, a time dynamic password input window pops up to receive the time dynamic password input by the current logged-in user, and determines whether the time dynamic password is correct. If so, enter the advanced setting interface and perform basic debugging of advanced settings according to the input of the current logged-in user; if not, return to the user login interface; In response to the modification parameter input of the currently logged-in user, a random password input window pops up to determine whether the currently logged-in user's authority is the third user authority. If so, a display password window is opened, and the user enters the random password displayed in the display password window into the random password input window to enter the modification parameter interface and perform the modification parameter operation according to the currently logged-in user input.
2. The method according to claim 1, characterized in that The first user, the second user and the third user are an operator, a technician and an administrator respectively; The first user authority, the second user authority and the third user authority correspond to operator authority, technician authority and administrator authority respectively.
3. The method according to claim 1, characterized in that The time dynamic password is generated by mathematical operation based on the current month, date and time value; The random password is generated by a random number and has 8 digits. The random password is displayed as a QR code, and the user obtains the random password by scanning the QR code.
4. The method according to claim 3, characterized in that The time dynamic password is obtained by reading the month, date, hour and minute in the system variables and performing mathematical operations; The generation formula of the time dynamic password is: time dynamic password=(month+minute)*100+(date+hour).
5. The method according to claim 1, characterized in that The steps of generating the random password include: Generate a random number between 0 and 1 through the random number generation instruction and multiply it by 10 8 , take the integer part to get an 8-digit random password.
6. The method according to claim 1, characterized in that The method further includes a silent logout step, specifically: Perform a silent logout operation every 5 minutes, log out the current user and prompt them to log in again; The refresh cycle of the time-based dynamic password is once every minute, and the refresh cycle of the random password is once every 5 minutes.
7. The method according to claim 1, characterized in that After the device is started, a user login prompt will pop up before entering the operation page. The first user can enter the basic operation interface and perform corresponding operations without a password.
8. A dynamic random code security system for unmanned aerial vehicle emergency mobile command equipment, characterized in that: include: User login module: used to respond to the user's login input, display the login interface, and determine the login user authority according to the login account and login password entered by the user; wherein the users include the first user, the second user and the third user, corresponding to the first user authority, the second user authority and the third user authority respectively; Advanced settings module: used to respond to the advanced settings input of the currently logged-in user, obtain the permissions of the currently logged-in user, and return to the user login interface if the permissions of the currently logged-in user are the first user permissions; if the permissions of the currently logged-in user are the second user permissions or the third user permissions, a time dynamic password input window pops up to receive the time dynamic password input by the currently logged-in user, and determine whether the time dynamic password is correct. If so, enter the advanced settings interface and perform basic debugging of advanced settings according to the input of the currently logged-in user; if not, return to the user login interface; Parameter modification module: used to respond to the modification parameter input of the currently logged-in user, pop up a random password input window, determine whether the currently logged-in user's authority is the third user authority, and if so, open the display password window, and the user enters the random password displayed in the display password window into the random password input window to enter the parameter modification interface and perform parameter modification operations according to the currently logged-in user input.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps of the method according to claims 1-7 are implemented.
