Method and device for logging in target terminal
By displaying automatically updated string groups on the terminal and logging in to the terminal when preset conditions are met, the problem of heavy workload in terminal password management is solved, and higher password security and management uniformity is achieved, ensuring that passwords can be obtained quickly and accurately in emergency situations.
Patent Information
- Application Number
- CN202411706845.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-26
- Publication Date
- 2025-03-04
AI Technical Summary
In operation and maintenance work, terminal password management has problems such as large workload, scattered management rights, and inconsistent password update rules, which leads to the inability to obtain passwords quickly and accurately during emergency response.
In response to touch operations on virtual buttons, display automatically updated string groups and log in to the target terminal when preset conditions are met (such as strings arranged in preset order or contain preset strings or current dates) in the login password. In addition, a password-free mode is provided to log in to the terminal without entering a password, and to cancel the password-free mode after a preset duration.
It reduces the workload of terminal password management, improves password security and management uniformity, and ensures that passwords can be obtained quickly and accurately in emergency situations.
Smart Images

Figure CN119557869A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the computer field, and in particular, to a method and device for logging into a target terminal. Background Art
[0002] In the operation and maintenance work, there are the following problems in password management: First, due to the large number of terminals, the workload of changing passwords is large and it is easy to forget; second, the terminal management rights in the computer room are decentralized. Decentralized management rights mean that one terminal may usually be used by multiple operation and maintenance personnel, and all of them can modify the terminal password. After any operation and maintenance personnel changes the password, it is difficult to guarantee the timeliness of actively notifying other users of the terminal and whether the password information is synchronized and accurate. At the same time, there are no strict and unified regulations on the rules for password updates, which makes it impossible to quickly and accurately obtain passwords during emergency situations.
[0003] There is currently no effective solution to the above problems. Summary of the invention
[0004] The embodiment of the present invention provides a method and device for logging into a target terminal, so as to at least solve the problem of heavy workload of terminal password management in the related art.
[0005] According to one embodiment of the present invention, a method is provided, comprising: in response to a first touch operation on a first virtual button, displaying a first group of strings, wherein the first group of strings includes at least one string, the string is automatically updated once every first preset time period, and the length of the string is preset; obtaining a login password input by a target object, and logging into a target terminal if the login password meets a preset condition, wherein the preset condition includes that the first group of strings in the login password are arranged in a preset order.
[0006] In an exemplary embodiment, logging into the target terminal when the login password satisfies a preset condition includes: logging into the target terminal when the first group of strings in the login password are arranged in a preset order; or logging into the target terminal when the first group of strings in the login password are arranged in a preset order and the login password includes a preset string; or logging into the target terminal when the first group of strings in the login password are arranged in a preset order and the login password includes the current date.
[0007] In an exemplary embodiment, the method further includes: in response to a touch operation on a second virtual button, sending a verification code to a target account; obtaining the verification code, and setting the target terminal to a password-free mode, wherein the password-free mode means allowing login to the target terminal without entering a login password.
[0008] In an exemplary embodiment, after the target terminal is set to the password-free mode, the method further comprises: canceling the password-free mode when a second preset time duration is reached, wherein the second preset time duration is a pre-set time duration.
[0009] In an exemplary embodiment, before responding to a first touch operation on a first virtual button, the method further includes: acquiring configuration information, wherein the configuration information includes: the first preset duration for automatically updating the character string, the length of the character string, and the preset condition.
[0010] In an exemplary embodiment, the method further includes: when the first preset time period is reached, updating the first group of character strings to a second group of character strings, wherein at least one character string of the first group of character strings is different from that of the second group of character strings.
[0011] According to another embodiment of the present invention, a password verification device is provided, including: a receiving module for receiving password verification information, wherein the password verification information includes password-free status information, a system-generated password, a user-entered password, and an SMS verification code; a determination module for determining whether the password verification information matches.
[0012] According to yet another embodiment of the present invention, a computer-readable storage medium is provided, wherein a computer program is stored in the computer-readable storage medium, wherein the computer program implements the steps of any of the above methods when executed by a processor.
[0013] According to yet another embodiment of the present invention, there is provided an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0014] According to yet another embodiment of the present invention, a computer program product is provided, comprising a computer program, wherein when the computer program is executed by a processor, the steps of any of the above methods are implemented.
[0015] According to yet another embodiment of the present invention, a computer program product is provided, comprising computer instructions, wherein when the computer instructions are executed by a processor, the steps of any of the above methods are implemented.
[0016] Through the present invention, in response to the first touch operation on the first virtual button, a first group of automatically updated and pre-set length strings are displayed, and the login password input by the target object is obtained. When the login password meets the preset conditions, wherein the preset conditions include the first group of strings in the login password being arranged in a preset order, or the first group of strings in the login password being arranged in a preset order and the login password including the preset strings, or the first group of strings in the login password being arranged in a preset order and the login password including the current date, the target terminal is logged in. Therefore, the problem of large workload of terminal password management in the related art can be solved, and the effect of reducing the workload of terminal password management can be achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 It is a hardware structure block diagram of a mobile terminal of a method for logging into a target terminal according to an embodiment of the present invention;
[0018] Figure 2 is a flowchart of logging into a target terminal according to an embodiment of the present invention;
[0019] Figure 3 is an example diagram of a lock screen page according to an embodiment of the present invention;
[0020] Figure 4 is a schematic diagram of a module interaction structure according to an embodiment of the present invention;
[0021] Figure 5 is a flow chart according to an embodiment of the present invention;
[0022] Figure 6 4 is a structural block diagram of a password verification device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0023] Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings and in combination with the embodiments.
[0024] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0025] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 1 is a hardware structure block diagram of a mobile terminal of a method for logging into a target terminal according to an embodiment of the present invention. Figure 1 As shown, the mobile terminal may include one or more ( Figure 1Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the mobile terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.
[0026] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the method for logging into the target terminal in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the mobile terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0027] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (Radio Frequency, referred to as RF) module, which is used to communicate with the Internet wirelessly.
[0028] In this embodiment, a method running on the above mobile terminal or network architecture is provided. Figure 2 is a flow chart of logging into a target terminal according to an embodiment of the present invention, such as Figure 2 As shown, the process includes the following steps:
[0029] Step S202, in response to a first touch operation on a first virtual button, displaying a first group of character strings, wherein the first group of character strings includes at least one character string, the character string is automatically updated once every first preset time period, and the length of the character string is preset;
[0030] Figure 3 is an example diagram of a lock screen page according to an embodiment of the present invention, such as Figure 3 As shown, the first virtual button is the first button in the lower left corner of the lock screen page, and the first touch operation is to click the first virtual button. Before responding to the first touch operation on the first virtual button, the system needs to obtain configuration information in advance, wherein the configuration information includes: the first preset time for automatically updating the character string, the length of the character string, and the preset condition.
[0031] The first set of strings mentioned above are the strings in the lock screen page, such as Figure 3 The "8ud3", "0zk" shown on the lock screen page, the above-mentioned at least one string can be a group of strings, such as "8ud3", or two groups of strings, such as Figure 3 The "8ud3" and "0zk" shown may also be more than two groups of character strings. The first preset time length is the interval time for updating the above character strings set in advance by the user, which may be 1min, 2min, etc. The length of the above character strings is set in advance by the user, which may be 3 digits, 4 digits, 5 digits, etc.
[0032] When the first preset time period is reached, the first group of character strings is updated to a second group of character strings, wherein at least one character string of the first group of character strings is different from that of the second group of character strings.
[0033] For example, if Figure 3 Taking the character string "8ud3" displayed on the lock screen page as an example, when the first preset time is reached, each character of the above character string can be updated, such as updated to "9ie4", or only one character in the above character string can be updated, such as updated to "8id3".
[0034] Step S204, obtaining a login password input by the target object, and logging into the target terminal if the login password meets a preset condition, wherein the preset condition includes that the first group of character strings in the login password are arranged in a preset order;
[0035] The above-mentioned target object is the user who operates the lock screen page, and the above-mentioned preset condition may be that the preset condition includes that the first group of strings in the login password are arranged in a preset order, or, the first group of strings in the login password are arranged in a preset order and the login password includes a preset string, or, the first group of strings in the login password are arranged in a preset order and the login password includes the current date.
[0036] For example, the user can configure the password to consist of N parts on the configuration page. In view of the actual situation and for the convenience of memorization, it is not recommended to set N too large. In this example, N=3.
[0037] The user configures attributes and additional rules for each part of the password:
[0038] The first part is a string of alphanumeric characters (4 digits), the original string;
[0039] The second part, a string of alphanumeric characters (3 digits), is reversed;
[0040] The third part, year, month and date, in the format of YYYYMM, original string.
[0041] According to the configuration rules, the first part of the password should be 8ud3, the second part of the password should be kz0, and the third part of the password should be 202409 based on the actual situation. Therefore, the end user enters the password 8ud3kz0202409 to unlock the terminal.
[0042] As an optional implementation, the method further includes: in response to a touch operation on a second virtual button, sending a verification code to a target account; obtaining the verification code, and setting the target terminal to a password-free mode, wherein the password-free mode means allowing login to the target terminal without entering a login password.
[0043] The second virtual button is Figure 3 The emergency unlock button in the lower left corner of the lock screen page, the target account is the mobile phone number of the emergency administrator, the verification code is a randomly generated 6-digit number, and the password-free mode is a special login mode that allows login without entering a login password in an emergency state.
[0044] "Allowing the terminal user to log in to the target terminal without entering a password" depends on the specific implementation of the present invention, that is, the specific code design of the computer program product: it can be implemented by modifying the configuration at the operating system level under program control, in which case there can be "no login password"; but it can also be implemented by the implementation program of the present invention itself, where the program automatically fills in the password (this password is generated), eliminating the need for the terminal operator to enter it himself. In the case of the latter implementation, there is a password, but it does not need to be manually entered.
[0045] As an optional implementation, after setting the target terminal to the password-free mode, the method further includes: canceling the password-free mode when a second preset time duration is reached, wherein the second preset time duration is a pre-set time duration.
[0046] The second preset time length is the time length set by the terminal to be in the password-free mode. If the second preset time length is reached, the password-free mode will be cancelled.
[0047] Optionally, the executor of the above steps may be a background processor, or other devices with similar processing capabilities, or a machine that integrates at least an image acquisition device and a data processing device, wherein the image acquisition device may include a graphics acquisition module such as a camera, and the data processing device may include a computer, a mobile phone or other terminal, but is not limited thereto.
[0048] Through the above steps, in response to the first touch operation on the first virtual button, a first group of strings is displayed, wherein the first group of strings includes at least one string, the string is automatically updated once every first preset time, and the length of the string is preset; the login password entered by the target object is obtained, and when the login password meets the preset conditions, the target terminal is logged in, wherein the preset conditions include the first group of strings in the login password being arranged in a preset order. The problem of large workload of terminal password management in the related art is solved, and the security of the terminal password is improved.
[0049] Figure 4 Schematic diagram of the module interaction structure according to an embodiment of the present invention. Figure 4 As shown, this embodiment includes the following modules:
[0050] 1. Human-computer interaction module: includes two parts of interaction: configuration page and lock screen page.
[0051] (1) The configuration page is used for configuration settings. When entering the configuration page for the first time, you need to enter the administrator account password. The configuration content includes password generation rules and emergency information.
[0052] a. Password generation rule configuration: Provides multiple strategies for users to customize password rules.
[0053] b. Emergency information configuration: ① Configure terminal groups, obtain a unique number EPCode for each terminal, and when batch passwords are exempted in an emergency, the terminal group is used as a unit for password exemption. ② Configure one or more emergency administrator mobile phone numbers for the terminal group to receive SMS verification codes to authorize password exemption. ③ Configure the emergency automatic unlocking time. If this time is exceeded, the password-free state will be automatically cancelled (manual cancellation is also supported).
[0054] (2) The lock screen page guides the user to unlock the screen in the following two scenarios according to the preset rule configuration, and receives the verification result of the verification module and feeds it back to the user.
[0055] a. In normal scenarios, users will obtain information on the lock screen page, and then calculate and enter the password based on the configured rules (for example, if the configured rule is string transposition, the user needs to enter the string displayed on the lock screen in reverse order).
[0056] b. In an emergency scenario, click the "Emergency Unlock" button on the lock screen to trigger the SMS module to send a SMS verification code to the emergency administrator. After entering the verification code, the terminal will be unlocked without a password within the set time.
[0057] 2. Storage module: stores terminal group configuration, password rule configuration, emergency configuration information, etc.
[0058] 3. Password generation module: reads the password generation rules from the storage module, combines the random function Rand(), the reverse function Reverse(), etc. to generate a password, and sends it to the verification module.
[0059] 4. Verification module: When the verification module performs verification, it first reads the password-free status information from the storage module. If the status is "not password-free", the password sent by the password generation module and the password entered by the user are compared, and the verification result is returned to the human-computer interaction module. If the password-free status is in "password-free authorization", the verification module is responsible for verifying the SMS verification code entered by the user. If "password-free", the password is currently free, no verification is performed, and the "verification passed" signal is directly returned.
[0060] 5. SMS module: According to the terminal number EPCode, read the emergency person in charge's mobile phone number from the storage module, randomly generate a 6-digit verification code, send a text message, and send the verification code to the verification module.
[0061] Figure 5 is a flow chart according to an embodiment of the present invention, such as Figure 5 As shown, the process includes the following steps:
[0062] S501: The operation and maintenance personnel switches to the lock screen interface and prepares to log in;
[0063] S502: Determine whether the terminal is in emergency, if so, jump to S509, if not, jump to S503;
[0064] S503: Determine whether the current situation is an emergency situation. If so, jump to S504; if not, jump to S510;
[0065] S504: The operation and maintenance personnel clicks the “emergency unlock button” on the lock screen;
[0066] S506: Determine whether the emergency contact has received the verification code, if so, jump to S507; if not, retry S504;
[0067] S507: Enter the verification code;
[0068] S508: The verification module verifies that the verification code is correct. If correct, the process jumps to S509;
[0069] S509: Login without password, jump to S513;
[0070] S510: deriving a password according to the information displayed on the lock screen interface;
[0071] S511: Enter password;
[0072] S512: The verification module verifies that the password is correct. If so, the process jumps to S513; if not, the process jumps to S504 for subsequent steps.
[0073] S513: Login successful, successfully entered the desktop.
[0074] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0075] In the present embodiment, a password verification device is also provided, which is used to implement the above-mentioned embodiments and preferred embodiments, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware is also possible and conceived.
[0076] Figure 6 is a structural block diagram of a password verification device according to an embodiment of the present invention. Figure 6 As shown, the device includes a receiving module 602 for receiving password verification information, wherein the password verification information includes password-free status information, a system-generated password, a user-entered password, and an SMS verification code; a determining module 604 for determining whether the password verification information matches.
[0077] In an exemplary embodiment, the device is also used to log in to the target terminal when the login password meets a preset condition, including: logging in to the target terminal when the first group of strings in the login password are arranged in a preset order; or logging in to the target terminal when the first group of strings in the login password are arranged in a preset order and the login password includes a preset string; or logging in to the target terminal when the first group of strings in the login password are arranged in a preset order and the login password includes the current date.
[0078] In an exemplary embodiment, the device is also used to send a verification code to the target account in response to a touch operation on a second virtual button; obtain the verification code, and set the target terminal to a password-free mode, wherein the password-free mode means allowing login to the target terminal without entering a login password.
[0079] In an exemplary embodiment, the apparatus is further configured to, after setting the target terminal to the password-free mode, the method further comprises: canceling the password-free mode when a second preset time duration is reached, wherein the second preset time duration is a pre-set time duration.
[0080] In an exemplary embodiment, the device is also used to, before responding to a first touch operation on a first virtual button, the method also includes: obtaining configuration information, wherein the configuration information includes: the first preset duration for automatically updating the character string, the length of the character string, and the preset condition.
[0081] In an exemplary embodiment, the device is further configured to update the first group of character strings to a second group of character strings when the first preset time period is reached, wherein at least one character string of the first group of character strings is different from that of the second group of character strings.
[0082] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.
[0083] An embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above methods are implemented.
[0084] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.
[0085] An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0086] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0087] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.
[0088] An embodiment of the present invention further provides a computer program product, including a computer program, which implements the steps of the method described in each embodiment of the present application when executed by a processor.
[0089] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
[0090] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for logging into a target terminal, characterized in that: include: In response to a first touch operation on the first virtual button, a first group of character strings is displayed, wherein the first group of character strings includes at least one character string, the character string is automatically updated once every first preset time period, and the length of the character string is preset; Obtain a login password input by a target object, and log in to a target terminal if the login password meets a preset condition, wherein the preset condition includes that the first group of character strings in the login password are arranged in a preset order.
2. The method according to claim 1, characterized in that: When the login password meets the preset condition, logging into the target terminal includes: Logging into the target terminal when the first group of character strings in the login password are arranged in a preset order; or When the first group of character strings in the login password is arranged in a preset order and the login password includes a preset character string, logging into the target terminal; or, When the first group of character strings in the login password is arranged in a preset order and the login password includes a current date, the target terminal is logged in.
3. The method according to claim 1 or 2, characterized in that: The method further comprises: In response to a touch operation on the second virtual button, sending a verification code to the target account; The verification code is obtained, and the target terminal is set to a password-free mode, wherein the password-free mode refers to allowing the target terminal to be logged in without entering a login password.
4. The method according to claim 3, characterized in that After setting the target terminal to the password-free mode, the method further includes: The password-free mode is canceled when a second preset time period is reached, wherein the second preset time period is a pre-set time period.
5. The method according to claim 1, characterized in that: Before responding to the first touch operation on the first virtual button, the method further includes: Acquire configuration information, wherein the configuration information includes: the first preset duration for automatically updating the character string, the length of the character string, and the preset condition.
6. The method according to claim 1, characterized in that The method further comprises: When the first preset time period is reached, the first group of character strings is updated to a second group of character strings, wherein at least one character string of the first group of character strings is different from that of the second group of character strings.
7. A password verification device, characterized in that: include: A receiving module, used to receive password verification information, wherein the password verification information includes password-free status information, a system-generated password, a user-entered password, and a SMS verification code; The determination module is used to determine whether the password verification information matches.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program implements the steps of the method described in any one of claims 1 to 6 when executed by a processor.
9. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to run the computer program to perform the method according to any one of claims 1 to 6.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method described in any one of claims 1 to 6 are implemented.
11. A computer program product comprising computer instructions, characterized in that: When the computer instructions are executed by a processor, the steps of the method described in any one of claims 1 to 6 are implemented.