Device unlocking method, device, readable medium and electronic device

By displaying standard and random keyboard arrays on the graphical user interface of electronic devices, generating unlock passwords and performing unlocking operations according to password type, the problems of password leakage and face recognition unlocking in the prior art are solved, and a higher level of Equipment security.

CN114239092BActive Publication Date: 2025-02-18CHINA TELECOM CORP LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111571484.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-21
Publication Date
2025-02-18
Estimated Expiration
2041-12-21

AI Technical Summary

Technical Problem

Existing electronic devices unlocking methods are prone to password leakage, especially in public environments, and facial recognition unlocking cannot be used when wearing a face mask, etc.

Method used

Provides a method of unlocking a device, by displaying a standard keyboard array and a random keyboard array on the device's graphical user interface, generating a device unlocking password, and performing unlocking operations according to the password type. Random key numbers in the random keyboard array are generated randomly every time they are unlocked, ensuring that the password for each unlock is different.

Benefits of technology

Effectively prevent password leakage, improve the security of equipment use, and ensure that safe unlocking operations can be achieved under different circumstances.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114239092B_ABST
    Figure CN114239092B_ABST
Patent Text Reader

Abstract

The present application discloses a method, apparatus, readable medium and electronic device for unlocking a device, the method comprising: displaying a keyboard area in a graphical user interface of the device based on a device wake-up instruction, the keyboard area comprising a standard keyboard array and a random keyboard array; the standard keyboard array comprising a plurality of standard keys, the numbers corresponding to each standard key cannot be repeated; the random keyboard array comprising a plurality of random keys, the numbers corresponding to each random key are randomly generated and can be repeated; generating a device unlock password based on a user's input operation on the keyboard area, and determining the password type of the device unlock password according to the keyboard array corresponding to the input operation; and performing an unlock operation on the device according to the device unlock password and the password type of the device unlock password. The present application makes the device unlock password corresponding to each unlock also random, which can effectively prevent the misuse of the device caused by password leakage, and improve the safety of device use.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of device security technology, and specifically relates to a device unlocking method, device, readable medium and electronic device. Background Art

[0002] Electronic devices have become indispensable items in people's daily life and work. For the safety of electronic devices, people usually need to unlock the electronic devices before they can use them. At present, the commonly used electronic device unlocking methods are digital PIN (Personal Identification Number) code unlocking and face recognition unlocking. For the digital PIN code unlocking method, the user manually enters a fixed password to unlock. When the user is in a public environment, the password can be easily known by others and leaked. For face recognition unlocking, the user needs to ensure that the face is not obstructed before unlocking. For some special cases, such as when the user wears a mask, face recognition unlocking cannot be used. Therefore, the existing unlocking methods still need to be improved.

[0003] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present application, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0004] The purpose of the present application is to provide a method, apparatus, readable medium and electronic device for unlocking a device, so as to solve the problem of password leakage that easily occurs when unlocking a device in the related art.

[0005] Other features and advantages of the present application will become apparent from the following detailed description, or may be learned in part by the practice of the present application.

[0006] According to one aspect of an embodiment of the present application, a method for unlocking a device is provided, including:

[0007] Based on the device wake-up instruction, a keyboard area is displayed in the graphical user interface of the device, wherein the keyboard area includes a standard keyboard array and a random keyboard array; the standard keyboard array includes a plurality of standard keys, and the numbers corresponding to each standard key are not repeatable; the random keyboard array includes a plurality of random keys, and the numbers corresponding to each random key are randomly generated and can be repeated;

[0008] Generate a device unlock password based on a user's input operation on the keyboard area, and determine a password type of the device unlock password according to a keyboard array corresponding to the input operation;

[0009] The device is unlocked according to the device unlocking password and the password type.

[0010] According to one aspect of an embodiment of the present application, there is provided an unlocking device for a device, comprising:

[0011] A keyboard display module, used for displaying a keyboard area in a graphical user interface of a device based on a device wake-up instruction, wherein the keyboard area includes a standard keyboard array and a random keyboard array; the standard keyboard array includes a plurality of standard keys, and the numbers corresponding to each standard key are not repeatable; the random keyboard array includes a plurality of random keys, and the numbers corresponding to each random key are randomly generated and can be repeated;

[0012] An unlock password generating module, used to generate a device unlock password based on a user's input operation on the keyboard area, and determine a password type of the device unlock password according to a keyboard array corresponding to the input operation;

[0013] The unlocking module is used to unlock the device according to the device unlocking password and the password type.

[0014] In one embodiment of the present application, the unlocking password generation module is specifically used to:

[0015] If the user performs an input operation on the standard keyboard array, determining that the password type of the device unlock password is a standard unlock code;

[0016] If the user performs an input operation on the random keyboard array, determining that the password type of the device unlock password is a random unlock code;

[0017] If the user performs input operations on the standard keyboard array and the random keyboard array, it is determined that the password type of the device unlocking password is a mixed unlocking code.

[0018] In one embodiment of the present application, the device further includes:

[0019] A dynamic password generation module, used to generate a dynamic unlock password based on a user-preset key sequence and random numbers corresponding to each random key, wherein the user-preset key sequence indicates a click order of a plurality of pre-set random keys;

[0020] Accordingly, the unlocking module is used to:

[0021] If the password type is a random unlock code, determining whether the device unlock password and the dynamic unlock password are the same;

[0022] If the device unlock password and the dynamic unlock password are the same, unlocking the device;

[0023] If the device unlock password and the dynamic unlock password are different, it is determined that the device unlocking fails.

[0024] In one embodiment of the present application, the unlocking module is further used to:

[0025] If the password type of the device unlock password is a random unlock code, determining a key sequence corresponding to the device unlock password, the key sequence including key coordinates of a plurality of random keys corresponding to the device unlock password;

[0026] If the key sequence is the same as the user preset key sequence, unlocking the device;

[0027] If the key sequence is different from the user-preset key sequence, it is determined that the unlocking has failed.

[0028] In one embodiment of the present application, the device further includes:

[0029] A preset key sequence generation module is used to display the random keyboard array based on the password setting instruction and configure a non-repeatable character for each random key of the random keyboard array; and generate the user preset key sequence according to the user's click order for a preset number of random keys and the key coordinates of each random key.

[0030] In one embodiment of the present application, the unlocking module is further used to:

[0031] If the password type of the device unlock password is a standard unlock code or a mixed unlock code, determining whether the device unlock password is the same as the user preset unlock code;

[0032] If the device unlocking password is the same as the user preset unlocking code, unlocking the device;

[0033] If the device unlocking password is different from the user preset unlocking code, it is determined that the unlocking has failed.

[0034] In one embodiment of the present application, the device further includes:

[0035] A failure retry module is used to count the number of unlocking failures within a set time period when it is determined that the unlocking has failed; if the number of unlocking failures does not reach the set number, return to the step of generating a device unlocking password based on the user's input operation on the keyboard area; if the number of unlocking failures reaches the set number, lock the device.

[0036] According to one aspect of an embodiment of the present application, a computer-readable medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the method for unlocking a device in the above technical solution is implemented.

[0037] According to one aspect of an embodiment of the present application, an electronic device is provided, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor executes the executable instructions to enable the electronic device to execute an unlocking method for a device as in the above technical solution.

[0038] According to one aspect of the embodiments of the present application, a computer program product or a computer program is provided, the computer program product or the computer program including computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the unlocking method of the device in the above technical solution.

[0039] In the technical solution provided in the embodiment of the present application, a device unlock password is generated according to the user's input operation on a standard keyboard array or a random keyboard array, and the device is unlocked according to the password type of the device unlock password. Since the numbers of each random key in the random keyboard array are randomly generated each time an unlock operation is performed, the device unlock password corresponding to each unlocking is also random, which can effectively prevent the password from leaking and causing the device to be misused, thereby improving the security of device use.

[0040] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the specification are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0042] Figure 1 The exemplary system architecture block diagram applying the technical solution of the present application is schematically shown.

[0043] Figure 2 A flowchart of a method for unlocking a device provided by an embodiment of the present application is schematically shown.

[0044] Figure 3A A schematic diagram showing a random keyboard array displayed based on password setting instructions.

[0045] Figure 3B Schematically illustrates a random keyboard array displayed based on a device wake-up command.

[0046] Figure 4A flowchart of a method for unlocking a device provided by an embodiment of the present application is schematically shown.

[0047] Figure 5 The system architecture diagram corresponding to the device unlocking method is schematically shown.

[0048] Figure 6 The structural block diagram of the unlocking device of the device provided in the embodiment of the present application is schematically shown.

[0049] Figure 7 The structure block diagram of a computer system suitable for implementing an electronic device of an embodiment of the present application is schematically shown. DETAILED DESCRIPTION

[0050] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this application will be more comprehensive and complete and fully convey the concept of the example embodiments to those skilled in the art.

[0051] In addition, described feature, structure or characteristic can be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical scheme of the present application can be put into practice without one or more of the specific details, or other methods, components, devices, steps, etc. can be adopted. In other cases, known methods, devices, realizations or operations are not shown or described in detail to avoid blurring the various aspects of the application.

[0052] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0053] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.

[0054] Figure 1 The exemplary system architecture block diagram applying the technical solution of the present application is schematically shown.

[0055] like Figure 1As shown, the system architecture 100 may include a terminal device 110, a network 120, and a server 130. The terminal device 110 may include various electronic devices such as a smart phone, a tablet computer, a laptop computer, and a desktop computer. The server 130 may be an independent physical server, or a server cluster or a distributed system composed of multiple physical servers, or a cloud server providing cloud computing services. The network 120 may be a communication medium of various connection types that can provide a communication link between the terminal device 110 and the server 130, such as a wired communication link or a wireless communication link.

[0056] According to the implementation requirements, the system architecture in the embodiment of the present application can have any number of terminal devices, networks and servers. For example, the server 130 can be a server group composed of multiple server devices. In addition, the technical solution provided in the embodiment of the present application can be applied to the terminal device 110, can also be applied to the server 130, or can be implemented by the terminal device 110 and the server 130 together, and the present application does not make any special restrictions on this.

[0057] For example, the unlocking method of the device provided in the embodiment of the present application is executed by the terminal device 110. The terminal device 110 displays a keyboard area in the graphical user interface of the device based on the device wake-up instruction, and the keyboard area includes a standard keyboard array and a random keyboard array, wherein the standard keyboard array includes a plurality of standard keys, and the numbers corresponding to each standard key cannot be repeated; the random keyboard array includes a plurality of random keys, and the numbers corresponding to each random key are randomly generated and can be repeated. Then the terminal device 110 generates a device unlocking password based on the user's input operation on the keyboard area; the device unlocking password includes at least one of the numbers corresponding to the standard keys and the numbers corresponding to the random keys. Finally, the terminal device 110 unlocks the device according to the device unlocking password.

[0058] In one embodiment of the present application, the unlocking method of the device provided in the embodiment of the present application can also be jointly executed by the server 130 and the terminal device 110. For example, the terminal device 110 displays a keyboard area in the graphical user interface of the device based on the device wake-up instruction, and the keyboard area includes a standard keyboard array and a random keyboard array, wherein the standard keyboard array includes a plurality of standard keys, and the numbers corresponding to each standard key cannot be repeated; the random keyboard array includes a plurality of random keys, and the numbers corresponding to each random key are randomly generated and can be repeated. Then the terminal device 110 generates a device unlocking password based on the user's input operation on the keyboard area; the device unlocking password includes at least one of the numbers corresponding to the standard keys and the numbers corresponding to the random keys. The terminal device 110 sends the device unlocking password to the server 130, and the server 130 generates an unlocking instruction after performing corresponding processing on the device unlocking password, and sends the unlocking instruction to the terminal device 110, and finally the terminal device 110 performs an unlocking operation according to the unlocking instruction.

[0059] The unlocking method of the device provided by this application is described in detail below in conjunction with specific implementation methods.

[0060] Figure 2 A flowchart of a method for unlocking a device provided by an embodiment of the present application is schematically shown. The method can be executed by a terminal device, such as Figure 1 The terminal device 110 shown in FIG. Figure 2 As shown, the unlocking method of the device provided in the embodiment of the present application includes steps 210 to 230, which are as follows:

[0061] Step 210: Based on the device wake-up command, a keyboard area is displayed in the graphical user interface of the device, where the keyboard area includes a standard keyboard array and a random keyboard array; the standard keyboard array includes a plurality of standard keys, and the numbers corresponding to each standard key are not repeatable; the random keyboard array includes a plurality of random keys, and the numbers corresponding to each random key are randomly generated and can be repeated.

[0062] Specifically, the device wake-up command is generated when the user needs to turn on the device. It is generated by the user according to the preset opening method of the device, for example, the user presses the power button of the device, or the user double-clicks the display screen of the device. The graphical user interface refers to the user interface of the device operating environment displayed in a graphical manner, and the user can use and operate the device through the graphical user interface. When the device wake-up command is detected, the device displays the graphical user interface to the user through its display screen. The graphical user interface includes a keyboard area, which is a virtual keyboard that can be used by the user to perform input operations.

[0063] In one embodiment of the present application, the device is usually provided with a default unlocking method, for example, default face unlocking or fingerprint unlocking. Based on this, the process of displaying the keyboard area in the graphical user interface of the device based on the device wake-up instruction can be: first, the device is unlocked by the default unlocking method based on the device wake-up instruction. If the number of unlocking failures of the default unlocking method reaches a certain number within a certain period of time, the keyboard area is displayed in the graphical user interface of the device. For example, the default unlocking method of the device is face unlocking. If the number of face unlocking failures reaches 3 times within 30 seconds, the keyboard area is displayed in the graphical user interface to prompt the user to unlock by typing a password.

[0064] In the embodiment of the present application, the keyboard area includes a standard keyboard array and a random keyboard array, wherein the standard keyboard array refers to an array composed of multiple standard keys, which is a key array that general devices have, and the numbers corresponding to each standard key cannot be repeated, generally 0 to 9, so it can be seen that the standard keyboard array includes 10 standard keys. The random keyboard array is a key array composed of multiple random keys, and the random key means that the number corresponding to the key is randomly generated, and the numbers corresponding to each random key can be repeated.

[0065] In one embodiment of the present application, a plurality of random keys of the random keyboard array are arranged around a plurality of standard keys of the standard keyboard array, for example, Figure 3B As shown, the random keys 311 in the random keyboard array are arranged outside the plurality of standard keys 321 in the standard keyboard array, and the plurality of random keys 311 surround the outer sides of the plurality of standard keys 321 .

[0066] Step 220: Generate a device unlock password based on the user's input operation on the keyboard area, and determine the password type of the device unlock password according to the keyboard array corresponding to the input operation.

[0067] Specifically, after the keyboard area is displayed, the user performs input operations on the keyboard area, then an unlock password can be generated according to the preset number of keys clicked by the user in the keyboard area. Since the number corresponding to each random key in the random keyboard array is randomly generated, the password generated each time the user clicks a random key may be different, so the unlock password is the device unlock password. When the user performs input operations on the keyboard area, he or she either clicks a standard key or a random key, so the device unlock password should include at least one of the numbers corresponding to the standard keys and the numbers corresponding to the random keys.

[0068] The password type of the device unlock password depends on the keyboard array specifically involved in the user's input operation, that is, whether the user performs input operation on the standard keyboard array, the random keyboard array, or both.

[0069] In one embodiment of the present application, if the user only performs input operations on the standard keyboard array, then the device unlock password will only consist of the numbers corresponding to the standard keys. In this case, the user actually uses a universal digital PIN code unlocking method, and the device unlock password also becomes a PIN code, which is 4 or 6 digits long. At this time, the password type of the device unlock password can be marked as a standard unlock code.

[0070] In one embodiment of the present application, if the user only performs input operation on the random keyboard array, then the device unlock password will only consist of numbers corresponding to the random keys, and its length is the same as the PIN code. In this case, the password type of the device unlock password can be marked as a random unlock code.

[0071] In one embodiment of the present application, if the user performs input operations on the standard keyboard array and the random keyboard array, then the device unlock password will only consist of the numbers corresponding to the standard keys and the numbers corresponding to the random keys, and its length is the same as the PIN code. At this time, the password type of the device unlock password can be marked as a mixed unlock code.

[0072] Step 230: Unlock the device according to the device unlock password and the password type of the device unlock password.

[0073] Specifically, when the password type of the device unlock password is different, the generated device unlock password may be different, so the device needs to be unlocked according to the password type of the device unlock password.

[0074] In one embodiment of the present application, if the password type of the device unlock password is a standard unlock code or a mixed unlock code, only the content of the device unlock password itself needs to be considered at this time, which is equivalent to verifying the device unlock password as a digital PIN code, and comparing the device unlock password with the user preset unlock code. If the two are consistent, it means that the device unlock password is correct and the device is successfully unlocked; if the two are different, it means that the device unlock password is incorrect and the device fails to be unlocked. Among them, the user preset unlock code is a digital PIN code pre-set by the user, which is composed of a preset number of numbers (generally 4 or 6 digits) in sequence and is generated when the user sets the device lock screen password.

[0075] In one embodiment of the present application, before performing the unlocking operation, it also includes: generating a dynamic unlocking password based on a user-preset key sequence and random numbers corresponding to each random key. Among them, the user-preset key sequence indicates the click order of multiple preset random keys. Assuming that the unlocking password of the device is 6 digits long, the user-preset case sequence represents the click order of the 6-digit random keys. Generating a dynamic unlocking password according to the user-preset key sequence is to arrange the numbers corresponding to each random key in the user-preset key sequence according to the click order to generate a dynamic unlocking password. Each time the random keyboard array is displayed, the numbers corresponding to each random key are randomly generated, so the dynamic unlocking password generated based on the random keyboard array is changed each time.

[0076] In one embodiment of the present application, the dynamic unlock password may also be randomly generated first, and then filled into the corresponding random key according to the user's preset key sequence. At the same time, other random keys in the random keyboard array generate corresponding random numbers.

[0077] In one embodiment of the present application, if the password type of the device unlock password is a random unlock code, the unlock operation needs to be performed according to the dynamic unlock password. Specifically, the device unlock password is compared with the dynamic unlock password. If the two are the same, the device unlock password is considered correct and the device is unlocked. If the two are different, the device unlock password is considered incorrect and the device unlocking fails.

[0078] In one embodiment of the present application, the setting process of the user-preset key sequence is specifically as follows: displaying a random keyboard array based on the password setting instruction, and configuring a non-repeatable character for each random key of the random keyboard array; generating a user-preset key sequence according to the user's click order for a preset number of random keys and the key coordinates of each random key.

[0079] Specifically, the password setting instruction is used to call up a random keyboard array in the graphical user interface of the device. In order to ensure the uniqueness of the user preset key sequence, when setting the user preset key sequence, it is necessary to configure a non-repeatable character for each random key in the random keyboard array, that is, to configure a unique character for the random key, for example, to configure English letters for each random key in a clockwise direction. Then, the key coordinates of each random key are generated according to the user's click order for the preset number of random keys and the key coordinates of each random key.

[0080] For example, Figure 3AThe schematic diagram of the random keyboard array based on the password setting instruction display is shown. The random keyboard array includes multiple random keys 311. Taking one of the random keys 311 as the starting point (in this embodiment, the random key 311 above the standard key number 1 is used as the starting point), each random key 311 is sequentially configured with English letters a to o in a clockwise direction. The key coordinates of each random key 311 are represented by the letter corresponding to the random key 311, and the key coordinates of each random key 311 are unique. When setting the user preset key sequence, the length of the user preset key sequence is 6 bits. Assuming that the user clicks the random keys in the following order: Figure 3A As shown by the arrow in the middle, the user preset key sequence can be obtained: aminde.

[0081] For example, Figure 3B The random keyboard array displayed based on the device wake-up command is schematically shown. Figure 3B As shown, the random keyboard array includes a plurality of random keys 311, and the number corresponding to each random key 311 is randomly generated. Figure 3A The user preset key sequence aminde generated in corresponds to Figure 3B The numbers of the random keys 311 in the random keyboard array can be used to obtain the dynamic unlock password: 460264. If the device unlock password entered by the user through the random keyboard array is also 460264, it is determined that the device unlock password and the dynamic unlock password are consistent, and the device is unlocked successfully.

[0082] In one embodiment of the present application, if the password type of the device unlock password is a random unlock code, the unlock operation can also be performed through the key sequence corresponding to the device unlock password. The key sequence is the order in which the user clicks each random key and the key coordinates of each random key. The key coordinates are the positions of the random keys in the random keyboard array, which can be expressed in the form of array elements or numbers set according to certain rules. For example, each random key is numbered in a clockwise direction, and the number is the key coordinate of the random key.

[0083] When unlocking the device according to the device unlock password and key sequence, first compare the device unlock password with the user preset unlock code. If the device unlock password is the same as the user preset unlock code, it means that the generated device unlock password is the digital PIN code preset by the user, and the device can be unlocked at this time. If the device unlock password is not the same as the user preset unlock code, it means that the generated device unlock password is not the digital PIN code preset by the user. At this time, it is further determined whether the key sequence of the device unlock password is the same as the user preset key sequence. The user preset key sequence is equivalent to the unlock password preset by the user when unlocking through a random keyboard array. When the key sequence of the device unlock password is the same as the user preset key sequence, it means that the password entered by the user is correct, and the device can be unlocked. When the key sequence of the device unlock password is different from the user preset key sequence, it means that the password entered by the user is wrong, and the device unlocking fails.

[0084] For example, in Figure 3A In the random keyboard array shown, the key coordinates of each random key 311 can be represented by the array coordinates of the random key 311 in the random keyboard array. For example, the key coordinates of the random key 311 are A ij Indicates that the random key 311 is located in the i-th row and j-th column in the random keyboard array. Then, according to Figure 3A The sequence shown by the arrow in the middle can get the user-preset key sequence: A 12 A 31 A 54 A 21 A 15 A 25 (You can also directly use the corresponding numbers to represent the key sequence: aminde). Figure 3B In the random keyboard array shown, assume that the user clicks the random keys in the order shown in Figure 3B As shown by the arrow in the middle, you can get the device unlock password: 460264, and the corresponding key sequence is: A 12 A 31 A 54 A 21 A 15 A 25 (or expressed as aminde). Press the key sequence A corresponding to the device unlock password 460264 12 A 31 A 54 A 21 A 15 A 25 With user preset key sequence A 12 A 31 A 54 A 21 A 15 A 25By comparing, we can see that the two are consistent, so the device is unlocked successfully.

[0085] In one embodiment of the present application, when it is determined that the device unlocking fails, further operations can be performed based on the number of unlocking failures. For example, when it is determined that the unlocking fails, the number of unlocking failures within a set time period is counted; if the number of unlocking failures does not reach the set number, the step of generating a device unlocking password based on the user's input operation on the keyboard area is returned; if the number of unlocking failures reaches the set number, the device is locked.

[0086] Specifically, if the number of device unlocking failures does not reach the set number within the set time, the device unlocking password currently entered by the user can be cleared, the user can be prompted to re-enter the unlocking password, and the unlocking operation can be performed according to the unlocking password re-entered by the user. It should be noted that when it is determined that the device unlocking fails, not only the device unlocking password currently entered by the user is cleared, but also all the numbers corresponding to the random keys in the random keyboard array are regenerated to ensure that the device unlocking password generated next time is different from the device unlocking password generated last time.

[0087] If the number of times the device fails to unlock reaches the set number within the set time, it means that the user who unlocks the device does not know the correct unlock password of the device. In order to prevent the device from being misused by others, the device is locked. After the device is locked, it cannot be used or unlocked. After the device is locked, when the device lock time reaches a certain length, the unlock function can be enabled here.

[0088] In the technical solution provided in the embodiment of the present application, a device unlock password is generated according to the user's input operation on a standard keyboard array or a random keyboard array, and the device is unlocked according to the password type of the device unlock password. Since the numbers of each random key in the random keyboard array are randomly generated each time an unlock operation is performed, the device unlock password corresponding to each unlocking is also random, so that the real unlock password of the device is not leaked, which can effectively prevent the misuse of the device due to password leakage, thereby improving the security of device use.

[0089] Figure 4 A flowchart of a method for unlocking a device provided by an embodiment of the present application is schematically shown. Figure 4 As shown, the unlocking method of the device provided in the specific embodiment of the present application includes:

[0090] S401, set a fixed PIN code, that is, set a fixed numeric PIN code as a user preset unlock code.

[0091] S402, setting the click sequence of the array, that is, setting the user preset key sequence, recording the user's click sequence on the random keys in the random keyboard keys and the key coordinates of the corresponding random keys, and generating the user preset key sequence.

[0092] S403, simulation exercise: In order to strengthen the user's memory of the user preset key sequence, the user is made to perform the setting process of the user preset key sequence multiple times.

[0093] S404, setting is successful. That is, the user preset unlock code and the user preset key sequence are both set successfully.

[0094] S405, waking up the screen again, that is, waking up the display screen of the device according to the device waking up instruction to display the graphical user interface.

[0095] S406, randomly generate a dynamic password and a number array, and display the array. That is, display a keyboard area on the graphical user interface of the device, the keyboard area includes a standard keyboard array and a random keyboard array, generate a random number for each random key in the random keyboard array, and generate a dynamic unlock password according to the user preset key sequence and the random number corresponding to each random key.

[0096] S407: Enter a 6-digit number or a fixed PIN code according to the array, that is, obtain the device unlock password entered by the user and the key sequence corresponding to the device unlock password.

[0097] S408: Determine whether the password matches the fixed PIN code. If not, proceed to step S409 for further determination; if yes, proceed to step S410, and unlocking is successful.

[0098] S409, determine whether the password is consistent with the dynamic password. That is, determine whether the device unlock password is consistent with the dynamic unlock password. If they are consistent, proceed to step S410, and the unlocking is successful. If they are not consistent, proceed to step S411 for further determination.

[0099] S410: Unlocking is successful.

[0100] S411, determine whether the number of password errors reaches a certain number. That is, determine whether the number of unlocking failures reaches a certain number. If not, return to step S406 and ask the user to re-enter the password. If reached, go to step S412.

[0101] S412, only a fixed PIN code can be used to unlock. That is, the random building array can no longer be used to unlock, and only a fixed PIN code can be used to unlock.

[0102] Figure 5 The system architecture diagram corresponding to the device unlocking method is schematically shown. Figure 5As shown, the system architecture includes an identification array module 510 , a dynamic password generation module 520 , a key module 530 , an encryption module 540 and a decryption module 550 .

[0103] The identification array module 510 generates a letter identification array when the lock screen system is set up to help users understand the password input logic. It also generates corresponding array spaces each time the screen wakes up for the encryption module 540 to fill in with numbers.

[0104] The dynamic password generation module 520 will generate a dynamic password (ie, a dynamic unlock password) after the screen wakes up or unlocking fails.

[0105] The key module 530 is used to store the keying order of the identification array as the logical form of the dynamic password. In this embodiment, the key module 530 will store 6 key positions in the identification array, and it can be repeated. For example, Figure 3B The typing order in aminde.

[0106] When the user wakes up the screen, the dynamic password generation module 520 will randomly generate a 6-digit password. With the participation of the key module 530 and the identification array module 510, the encryption module 540 fills the 6-digit password in the corresponding position of the identification array according to the preset key, and randomly fills the remaining spaces with numbers. Figure 3B As shown, after the user wakes up the screen, the unlocking interface displays the keyboard area, which includes a random keyboard array and a standard keyboard array.

[0107] Users need to follow the preset key (keying strategy), such as Figure 3B Enter the numbers on the corresponding keys in the order aminde, and a 6-digit device unlock password 460264 will be generated.

[0108] After the user enters the device unlock password, the decryption module 550 checks the PIN code. If it is correct, the screen is unlocked; if it is incorrect, it is checked with the dynamic password. If it is correct, the screen is unlocked; if it fails to match the dynamic password, the unlocking fails this time, and the dynamic unlock password and the digital array are all changed.

[0109] When the password error reaches a certain number of times, the unlocking system is temporarily shut down, and only the fixed PIN code unlocking method is retained (that is, the unlocking method of the standard keyboard array is retained). When the unlocking is successful, the random keyboard array wakes up again.

[0110] It should be noted that although the steps of the method in the present application are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.

[0111] The following introduces an apparatus embodiment of the present application, which can be used to execute the unlocking method of the device in the above-mentioned embodiment of the present application. Figure 6 The structural block diagram of the unlocking device of the device provided in the embodiment of the present application is schematically shown. Figure 6 As shown, the device comprises:

[0112] The keyboard display module 610 is used to display a keyboard area in the graphical user interface of the device based on the device wake-up instruction, wherein the keyboard area includes a standard keyboard array and a random keyboard array; the standard keyboard array includes a plurality of standard keys, and the numbers corresponding to each standard key are not repeatable; the random keyboard array includes a plurality of random keys, and the numbers corresponding to each random key are randomly generated and can be repeated;

[0113] The unlock password generation module 620 is used to generate a device unlock password based on the user's input operation on the keyboard area, and determine the password type of the device unlock password according to the keyboard array corresponding to the input operation;

[0114] The unlocking module 630 is used to unlock the device according to the device unlocking password and the password type.

[0115] In one embodiment of the present application, the unlocking password generation module 620 is specifically used to:

[0116] If the user performs an input operation on the standard keyboard array, determining that the password type of the device unlock password is a standard unlock code;

[0117] If the user performs an input operation on the random keyboard array, determining that the password type of the device unlock password is a random unlock code;

[0118] If the user performs input operations on the standard keyboard array and the random keyboard array, it is determined that the password type of the device unlocking password is a mixed unlocking code.

[0119] In one embodiment of the present application, the device further includes:

[0120] A dynamic password generation module, used to generate a dynamic unlock password based on a user-preset key sequence and random numbers corresponding to each random key, wherein the user-preset key sequence indicates a click order of a plurality of pre-set random keys;

[0121] Accordingly, the unlocking module 630 is used to:

[0122] If the password type is a random unlock code, determining whether the device unlock password and the dynamic unlock password are the same;

[0123] If the device unlock password and the dynamic unlock password are the same, unlocking the device;

[0124] If the device unlock password and the dynamic unlock password are different, it is determined that the device unlocking fails.

[0125] In one embodiment of the present application, the unlocking module 630 is further used to:

[0126] If the password type of the device unlock password is a random unlock code, determining a key sequence corresponding to the device unlock password, the key sequence including key coordinates of a plurality of random keys corresponding to the device unlock password;

[0127] If the key sequence is the same as the user preset key sequence, unlocking the device;

[0128] If the key sequence is different from the user-preset key sequence, it is determined that the unlocking has failed.

[0129] In one embodiment of the present application, the device further includes:

[0130] A preset key sequence generation module is used to display the random keyboard array based on the password setting instruction and configure a non-repeatable character for each random key of the random keyboard array; and generate the user preset key sequence according to the user's click order for a preset number of random keys and the key coordinates of each random key.

[0131] In one embodiment of the present application, the unlocking module 630 is further used to:

[0132] If the password type of the device unlock password is a standard unlock code or a mixed unlock code, determining whether the device unlock password is the same as the user preset unlock code;

[0133] If the device unlocking password is the same as the user preset unlocking code, unlocking the device;

[0134] If the device unlocking password is different from the user preset unlocking code, it is determined that the unlocking has failed.

[0135] In one embodiment of the present application, the device further includes:

[0136] A failure retry module is used to count the number of unlocking failures within a set time period when it is determined that the unlocking has failed; if the number of unlocking failures does not reach the set number, return to the step of generating a device unlocking password based on the user's input operation on the keyboard area; if the number of unlocking failures reaches the set number, lock the device.

[0137] The specific details of the unlocking device of the device provided in each embodiment of the present application have been described in detail in the corresponding method embodiment and will not be repeated here.

[0138] Figure 7 The structure block diagram of a computer system for implementing an electronic device according to an embodiment of the present application is schematically shown.

[0139] It should be noted that Figure 7 The computer system 700 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0140] like Figure 7 As shown, the computer system 700 includes a central processing unit 701 (CPU), which can perform various appropriate actions and processes according to the program stored in the read-only memory 702 (ROM) or the program loaded from the storage part 708 to the random access memory 703 (RAM). Various programs and data required for system operation are also stored in the random access memory 703. The central processing unit 701, the read-only memory 702 and the random access memory 703 are connected to each other through a bus 704. An input / output interface 705 (Input / Output interface, i.e., I / O interface) is also connected to the bus 704.

[0141] The following components are connected to the input / output interface 705: an input section 706 including a keyboard, a mouse, etc.; an output section 707 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage section 708 including a hard disk, etc.; and a communication section 709 including a network interface card such as a LAN card, a modem, etc. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the input / output interface 705 as needed. A removable medium 711, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 710 as needed so that a computer program read therefrom is installed into the storage section 708 as needed.

[0142] In particular, according to an embodiment of the present application, the process described in each method flow chart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer readable medium, and the computer program contains a program code for executing the method shown in the flow chart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 709, and / or installed from the removable medium 711. When the computer program is executed by the central processor 701, various functions defined in the system of the present application are executed.

[0143] It should be noted that the computer-readable medium shown in the embodiment of the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by an instruction execution system, device or device or used in combination with it. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a computer-readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer readable signal media may also be any computer readable medium other than computer readable storage media, which may send, propagate, or process programs for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer readable medium may be processed using any suitable medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0144] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the above-mentioned module, program segment or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0145] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.

[0146] Through the description of the above implementation methods, it is easy for those skilled in the art to understand that the example implementation methods described here can be implemented by software or by combining software with necessary hardware. Therefore, the technical solution according to the implementation methods of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the implementation methods of the present application.

[0147] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary technical means in the art that are not disclosed in the present application.

[0148] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A method for unlocking a device, characterized in that: include: Displaying a keyboard area in a graphical user interface of the device based on a device wake-up instruction, wherein the keyboard area includes a standard keyboard array and a random keyboard array; The standard keyboard array includes a plurality of standard keys, and the numbers corresponding to each standard key cannot be repeated, and each standard key corresponds to numbers 0 to 9; the random keyboard array includes a plurality of random keys, and the numbers corresponding to each random key are randomly generated and can be repeated; A device unlock password is generated based on an input operation of the user on the keyboard area, and a password type of the device unlock password is determined according to the keyboard array corresponding to the input operation; wherein: if the user performs an input operation on the standard keyboard array, the password type of the device unlock password is determined to be a standard unlock code; if the user performs an input operation on the random keyboard array, the password type of the device unlock password is determined to be a random unlock code; if the user performs an input operation on both the standard keyboard array and the random keyboard array, the password type of the device unlock password is determined to be a mixed unlock code; If the password type is a random unlock code, a user preset key sequence is obtained, wherein the user preset key sequence indicates the click order of a plurality of preset random keys; and the user preset key sequence is compared with the device unlock password to unlock the device; or a dynamic unlock password is generated based on the user preset key sequence and the random numbers corresponding to each random key, and the dynamic unlock password is compared with the device unlock password to unlock the device; If the password type is a standard unlock code or a mixed unlock code, a user preset unlock code is obtained, and the user preset unlock code is compared with the device unlock password to unlock the device.

2. The method for unlocking a device according to claim 1, characterized in that: Comparing the dynamic unlock password with the device unlock password to unlock the device includes: If the device unlock password and the dynamic unlock password are the same, unlocking the device; If the device unlock password and the dynamic unlock password are different, it is determined that the device unlocking fails.

3. The method for unlocking a device according to claim 1, characterized in that: Comparing the user preset key sequence with the device unlocking password to unlock the device, including: Determine a key sequence corresponding to the device unlock password, wherein the key sequence includes key coordinates of a plurality of random keys corresponding to the device unlock password; If the key sequence is the same as the user preset key sequence, unlocking the device; If the key sequence is different from the user-preset key sequence, it is determined that the device unlocking fails.

4. The method for unlocking a device according to claim 1, characterized in that: Before obtaining the user preset key sequence, the method further includes: Displaying the random keyboard array based on the password setting instruction, and configuring a non-repeatable character for each random key of the random keyboard array; The user preset key sequence is generated according to the user's click order on a preset number of random keys and the key coordinates of each random key.

5. The method for unlocking a device according to claim 1, characterized in that: Comparing the user preset key sequence with the device unlocking password to unlock the device, including: If the device unlocking password is the same as the user preset unlocking code, unlocking the device; If the device unlocking password is different from the user preset unlocking code, it is determined that the device unlocking fails.

6. The method for unlocking a device according to claim 1, characterized in that: The method further comprises: When it is determined that the unlocking fails, the number of unlocking failures within the set time period is counted; If the number of unlock failures does not reach the set number, returning to the step of generating a device unlock password based on the user's input operation on the keyboard area; If the number of unlocking failures reaches a set number, the device is locked.

7. An unlocking device for a device, characterized in that: include: A keyboard display module, used to display a keyboard area on a graphical user interface of a device based on a device wake-up instruction, wherein the keyboard area includes a standard keyboard array and a random keyboard array; The standard keyboard array includes a plurality of standard keys, the numbers corresponding to each standard key cannot be repeated, and each standard key corresponds to a number 0 to 9; the random keyboard array includes a plurality of random keys, the numbers corresponding to each random key are randomly generated and can be repeated; an unlock password generating module, configured to generate a device unlock password based on an input operation of a user on the keyboard area, and determine a password type of the device unlock password according to a keyboard array corresponding to the input operation; wherein: if the user performs an input operation on the standard keyboard array, the password type of the device unlock password is determined to be a standard unlock code; if the user performs an input operation on the random keyboard array, the password type of the device unlock password is determined to be a random unlock code; if the user performs an input operation on both the standard keyboard array and the random keyboard array, the password type of the device unlock password is determined to be a mixed unlock code; An unlocking module is used to obtain a user preset key sequence if the password type is a random unlocking code, wherein the user preset key sequence indicates the clicking order of multiple preset random keys; and compare the user preset key sequence with the device unlocking password to unlock the device; or, generate a dynamic unlocking password based on the user preset key sequence and the random numbers corresponding to each random key, and compare the dynamic unlocking password with the device unlocking password to unlock the device; if the password type is a standard unlocking code or a mixed unlocking code, obtain the user preset unlocking code, and compare the user preset unlocking code with the device unlocking password to unlock the device.

8. A computer readable medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the unlocking method of the device described in any one of claims 1 to 6 is implemented.

9. An electronic device, characterized in that: include: processor; as well as A memory, configured to store executable instructions of the processor; The processor executes the executable instructions to enable the electronic device to execute the device unlocking method described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Unlocking method and system for smart mobile terminal

    CN103677644A

  • Screen unlocking method and device

    CN104536686A