CN106940763A - Unlocking method and device - Google Patents
Unlocking method and device Download PDFInfo
- Publication number
- CN106940763A CN106940763A CN201610006954.2A CN201610006954A CN106940763A CN 106940763 A CN106940763 A CN 106940763A CN 201610006954 A CN201610006954 A CN 201610006954A CN 106940763 A CN106940763 A CN 106940763A
- Authority
- CN
- China
- Prior art keywords
- unlocking information
- interface
- target
- functional
- preset
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 30
- 238000012795 verification Methods 0.000 claims description 29
- 230000006870 function Effects 0.000 description 52
- 238000009434 installation Methods 0.000 description 3
- 239000003086 colorant Substances 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/30—Authentication, i.e. establishing the identity or authorisation of security principals
- G06F21/31—User authentication
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Telephone Function (AREA)
Abstract
The invention relates to a kind of unlocking method and device, including:The target unlocking information that user inputs in unlock interface is obtained, the target unlocking information is made up of one or more elements;According to the tail element of the header element of the target unlocking information, the header element of default unlocking information and/or the target unlocking information, it is determined that the interface type entered;And/or, according to the tail element of the header element of the target unlocking information, the tail element of the header element of default unlocking information and/or the target unlocking information and the default unlocking information, it is determined that the interface type entered;The target unlocking information is verified, if being verified, unblock is performed to the unlock interface, and enter the corresponding interface of interface type determined.Thereby, it is possible to save the unlocked time of user, so as to lift Consumer's Experience.
Description
Technical Field
The present application relates to the field of computer technologies, and in particular, to an unlocking method and apparatus.
Background
In the conventional technology, in order to ensure the safety of a mobile terminal or an application program on the mobile terminal, the mobile terminal or the application program is often in a locked state when not used, and when a user uses the application program on the mobile terminal, a power key or a main menu key of the mobile terminal is firstly pressed to light a screen; then inputting an unlocking password in the loaded unlocking interface; if the unlocking password passes the verification, entering a main interface of the mobile terminal; finally, clicking the icon of the application program to start the application program; or when the user uses the function option in the application program, firstly clicking the icon of the application program where the function option is located; then inputting an unlocking password in an unlocking interface of the loaded application program; if the unlocking password passes the verification, entering a main interface of the application program; finally, clicking the function option to enter a function interface; however, for some common applications or some common function options in the applications, in the prior art, the main interface of the mobile terminal or the application needs to be entered first each time, and then the common applications or the common function options are started by interaction, which may cause problems of complicated user operation and long unlocking time.
Disclosure of Invention
The embodiment of the application provides an unlocking method and device, which can save unlocking time of a user, so that user experience can be improved.
In a first aspect, an unlocking method is provided, and the method includes:
acquiring target unlocking information input by a user on an unlocking interface, wherein the target unlocking information consists of one or more elements;
determining the type of an entering interface according to the first element of the target unlocking information, the preset first element of the unlocking information and/or the tail element of the target unlocking information; and/or the presence of a gas in the gas,
determining an entering interface type according to the first element of the target unlocking information, the first element of preset unlocking information and/or the tail element of the target unlocking information and the tail element of the preset unlocking information;
and verifying the target unlocking information, if the target unlocking information passes the verification, unlocking the unlocking interface, and entering an interface corresponding to the determined interface type.
In a second aspect, there is provided an unlocking device, comprising: the device comprises an acquisition unit, a determination unit and an execution unit;
the acquisition unit is used for acquiring target unlocking information input by a user on an unlocking interface, and the target unlocking information consists of one or more elements;
the determining unit is used for determining the type of the entered interface according to the first element of the target unlocking information, the preset first element of the unlocking information and/or the tail element of the target unlocking information acquired by the acquiring unit; and/or the presence of a gas in the gas,
determining an entering interface type according to the first element of the target unlocking information, the first element of preset unlocking information and/or the tail element of the target unlocking information and the tail element of the preset unlocking information, which are acquired by the acquisition unit;
the execution unit is configured to verify the target unlocking information acquired by the acquisition unit, execute unlocking on the unlocking interface if the target unlocking information passes the verification, and enter the interface corresponding to the interface type determined by the determination unit.
According to the unlocking method and the device, target unlocking information input by a user on an unlocking interface is obtained, wherein the target unlocking information is composed of one or more elements; determining the type of an entering interface according to the first element of the target unlocking information, the preset first element of the unlocking information and/or the tail element of the target unlocking information; and/or determining the type of an entering interface according to the first element of the target unlocking information, the first element of preset unlocking information and/or the tail element of the target unlocking information and the tail element of the preset unlocking information; and verifying the target unlocking information, if the target unlocking information passes the verification, unlocking the unlocking interface, and entering an interface corresponding to the determined interface type. The method and the device can determine the type of the entered interface while unlocking, so that the unlocking time when the user intends to use the common application program or the common function options of the application program can be saved, and the experience of the user can be improved.
Drawings
Fig. 1 is a flowchart of an unlocking method according to an embodiment of the present application;
FIG. 2 is a schematic view of an unlock interface provided herein;
fig. 3 is a second schematic diagram of an unlocking interface provided in the present application;
fig. 4 is a flowchart of an unlocking method according to another embodiment of the present application;
fig. 5 is a schematic view of an unlocking device according to still another embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
For the purpose of facilitating understanding of the embodiments of the present application, the following description will be made in terms of specific embodiments with reference to the accompanying drawings, which are not intended to limit the embodiments of the present application.
The unlocking method and the unlocking device provided by the embodiment of the application are suitable for a scene of unlocking a mobile terminal with a screen locking function, wherein the mobile terminal comprises but is not limited to a mobile phone or a tablet computer and the like; in addition, the method is also applicable to a scenario of unlocking an application program with a locking function, wherein the application program includes, but is not limited to, a payment wallet, a WeChat payment and the like.
Before the unlocking method and the unlocking device provided by the embodiment of the application are executed, an installation package for unlocking/locking a plug-in or a component of a screen or an application of the mobile terminal is downloaded from a specified website (for example, a pacific software download center), and then the installation package is decompressed and installed. After installation, a setup page may be entered directly, which may contain a plurality of keys (or buttons), wherein each key may correspond to an element, which may include, but is not limited to, letters, numbers, graphics, colors, and the like. In the setting page, the user can also bind the application program or the function options of the application program for any one or more keys, and when a certain key is bound with the application program or the function options of the application program, the element corresponding to the key is the function element; further, since each key corresponds to one element, the application or the function option of the application bound to the key is also referred to as the application or the function option of the application bound to the element. Specifically, the plug-in or the component may directly enter a main interface or a function interface of a corresponding application program according to an application program or a function option corresponding to the function element. Taking binding of the keys and the function options of the application program as an example, a "set gesture password and function navigation" option may be added in a set page, when a click instruction for the option is received, a page corresponding to the above option may be popped up, and the page may be one or more key binding function options.
After the application program or the function options of the application program are bound for one or more keys, unlocking information can be set, and the preset unlocking information is used for indicating the plug-in or the component to unlock the mobile terminal or the application program. Specifically, when the mobile terminal is a touch terminal, the preset unlocking information may be composed of elements corresponding to keys through which a user performs a sliding operation or a pressing operation, that is, the preset unlocking information is composed of one or more elements. Here, when the key corresponding to any element is bound to the application program or the function option of the application program, the any element is a function element, that is, the preset unlocking information includes the function element.
Fig. 1 is a flowchart of an unlocking method according to an embodiment of the present application. The execution subject of the method may be the plug-in or the component for unlocking/locking the screen or the application program of the mobile terminal, as shown in fig. 1, the method specifically includes:
and step 110, acquiring target unlocking information input by a user on an unlocking interface, wherein the target unlocking information is composed of one or more elements.
Here, the elements may include, but are not limited to, letters, numbers, figures, colors, and the like, and the elements are exemplified as the numbers in this specification. Referring to fig. 2, which is a schematic diagram of an unlocking interface provided by the present application, in fig. 2, it is assumed that a key corresponding to an element "1" is already bound to an application or a function option of the application, that is, the element "1" is a function element. It should be noted that the key corresponding to the functional element may display an icon of the bound application program or functional option, or may display description information of the bound application program or functional option, or the like. In fig. 2, the keys corresponding to the functional elements are shown as icons, and the keys corresponding to the other elements are shown as numbers for example; when the mobile terminal is a touch terminal, the sliding track executed by the user on the unlocking interface shown in fig. 2 is shown in fig. 3, the obtained target unlocking information input by the user on the unlocking interface is "24789", that is, the target unlocking information is composed of 5 elements, wherein the element "2" arranged at the forefront is a head element, the element "9" arranged at the rearmost is a tail element, and both the head element and the tail element of the target unlocking information are non-functional elements because neither the head element nor the tail element is "1".
It should be noted that fig. 2 and fig. 3 are only examples showing an unlocking interface, and do not limit the scope of the claims, wherein the arrangement, shape, and the number of corresponding elements and functional elements of the keys may be changed.
Step 120, determining an entering interface type according to a first element of the target unlocking information, a preset first element of the unlocking information and/or a tail element of the target unlocking information; and/or the presence of a gas in the gas,
and determining the type of the entered interface according to the first element of the target unlocking information, the first element of the preset unlocking information and/or the tail element of the target unlocking information and the tail element of the preset unlocking information.
In step 120, determining an entering interface type according to the first element of the target unlocking information, the preset first element of the unlocking information, and/or the tail element of the target unlocking information, specifically:
if the first element of the target unlocking information is a functional element and the first element of the preset unlocking information is a non-functional element, determining that the type of the entered interface is a functional interface corresponding to the first element of the target unlocking information; or,
if the first element of the target unlocking information is a functional element, the first element of the preset unlocking information is a functional element, and the tail element of the target unlocking information is a non-functional element, determining that the type of the entered interface is a normal operation interface; or,
and if the first element of the target unlocking information is a non-functional element and the tail element of the target unlocking information is a non-functional element, determining that the type of the entered interface is a normal operation interface.
As in the foregoing example, it is assumed that the preset unlocking information is "25" in the setting page, that is, the preset unlocking information is composed of two elements, where the element "2" arranged at the forefront is a head element, and the element "5" arranged at the rearmost is a tail element, and since the head element is not "1", that is, the head element of the preset unlocking information is a non-functional element; when the target unlocking information received by the unlocking interface shown in fig. 2 or fig. 3 and input by the user is "125", because the first element of the target unlocking information is "1", that is, the first element of the target unlocking information is a function element, it may be determined that the interface type entering after the unlocking interface is unlocked is a function interface corresponding to the first element of the target unlocking information being "1". That is, under the condition that the first element of the target unlocking information is a functional element and the first element of the preset unlocking information is a non-functional element, the type of the entered interface can be directly determined without concerning the tail element of the target unlocking information and the tail element of the preset unlocking information.
It should be noted that, when the unlocking interface is an unlocking interface in a standby state of the mobile terminal, that is, when the key is bound to the application program, the functional interface whose first element is "1" is a main interface of the application program bound to the first element "1"; and when the unlocking interface is the unlocking interface of the application program, namely when the key is bound with the function option of the application program, the function interface corresponding to the first element "1" is the function interface of the function option bound with the first element "1".
As in the foregoing example, it is assumed that the preset unlocking information is "125", that is, the preset unlocking information is composed of three elements, and since the first element is "1", that is, the first element of the preset unlocking information is a functional element; when the target unlocking information received by the unlocking interface shown in fig. 2 or fig. 3 and input by the user is "125", because the first element of the target unlocking information is "1", that is, the first element of the target unlocking information is a functional element, and the last element of the target unlocking information is "5", that is, the last element of the target unlocking information is a non-functional element, it may be determined that the type of the interface entering after the unlocking interface is unlocked is a normal operation interface. That is, under the condition that the first element of the target unlocking information is a functional element, the first element of the preset unlocking information is a functional element, and the tail element of the target unlocking information is a non-functional element, the type of the entered interface can be directly determined without concerning the tail element of the preset unlocking information.
It should be noted that, when the unlocking interface is an unlocking interface in a standby state of the mobile terminal, that is, when the key is bound to the application program, the normal operation interface may be a main interface of the mobile terminal; and when the unlocking interface is the unlocking interface of the application program, namely the key is bound with the function options of the application program, the normal operation interface can be the main interface of the application program.
If the preset unlocking information is assumed to be "125", when the target unlocking information received by the unlocking interface shown in fig. 2 or 3 and input by the user is "25", because the first element of the target unlocking information is "2", that is, the first element of the target unlocking information is a non-functional element, and the tail element of the target unlocking information is "5", that is, the tail element of the target unlocking information is a non-functional element, it may be determined that the type of the interface entering after the unlocking interface is unlocked is a normal operation interface. The normal operation interface herein may be as described above. That is, under the condition that the head element of the target unlocking information is a non-functional element and the tail element of the target unlocking information is a non-functional element, the type of the entered interface can be directly determined without concerning the head element and the tail element of the preset unlocking information.
Returning to step 120, in step 120, determining an entered interface type according to the first element of the target unlocking information, a preset first element of the unlocking information and/or a preset last element of the target unlocking information and a preset last element of the unlocking information, specifically:
if the first element of the target unlocking information is a functional element and the first element of the preset unlocking information is a non-functional element, determining that the type of the entered interface is a functional interface corresponding to the first element of the target unlocking information; or,
if the first element of the target unlocking information is a functional element, the first element of the preset unlocking information is a functional element, the tail element of the target unlocking information is a functional element, and the tail element of the preset unlocking information is a non-functional element, determining that the type of an entered interface is a functional interface corresponding to the tail element of the target unlocking information; or,
if the first element of the target unlocking information is a functional element, the first element of the preset unlocking information is a functional element, the tail element of the target unlocking information is a functional element, and the tail element of the preset unlocking information is a functional element, determining that the type of the entered interface is a normal operation interface; or,
if the first element of the target unlocking information is a non-functional element, the tail element of the target unlocking information is a functional element, and the tail element of the preset unlocking information is a functional element, determining that the type of the entered interface is a normal operation interface; or,
if the first element of the target unlocking information is a non-functional element, the first element of the preset unlocking information is a non-functional element, the tail element of the target unlocking information is a functional element, and the tail element of the preset unlocking information is a non-functional element, determining that the type of an entered interface is a functional interface corresponding to the tail element of the target unlocking information; or,
and if the first element of the target unlocking information is a non-functional element, the first element of the preset unlocking information is a functional element, the tail element of the target unlocking information is a functional element, and the tail element of the preset unlocking information is a non-functional element, determining that the type of the entered interface is a normal operation interface.
As in the foregoing example, it is assumed that the preset unlocking information on the setting page is "25", that is, the first element of the preset unlocking information is a non-functional element; when the target unlocking information received by the unlocking interface shown in fig. 2 or fig. 3 and input by the user is "125", because the first element of the target unlocking information is "1", that is, the first element of the target unlocking information is a function element, it may be determined that the interface type entering after the unlocking interface is unlocked is a function interface corresponding to the first element of the target unlocking information being "1". The functional interface corresponding to the first element "1" is the same as described above. That is, under the condition that the first element of the target unlocking information is a functional element and the first element of the preset unlocking information is a non-functional element, the type of the entered interface can be directly determined without concerning the tail element of the target unlocking information and the tail element of the preset unlocking information.
As in the foregoing example, it is assumed that the preset unlocking information is "124", that is, the preset unlocking information is composed of three elements, and since the first element is "1", that is, the first element of the preset unlocking information is a functional element, and the last element is "4", that is, the last element of the preset unlocking information is a non-functional element; when the target unlocking information received by the unlocking interface shown in fig. 2 or fig. 3 and input by the user is "1251", because the head element and the tail element of the target unlocking information are both "1", that is, the head element and the tail element of the target unlocking information are both functional elements, it may be determined that the interface type entering after the unlocking interface is unlocked is the functional interface corresponding to the tail element "1" of the target unlocking information. The functional interface corresponding to the tail element of "1" is the same as the functional interface corresponding to the head element of "1".
As in the foregoing example, it is assumed that the preset unlocking information is "1251", that is, the preset unlocking information is composed of four elements, and since the head element and the tail element are both "1", that is, the head element and the tail element of the preset unlocking information are both functional elements; when the target unlocking information received by the unlocking interface shown in fig. 2 or fig. 3 and input by the user is "1251", because the head element and the tail element of the target unlocking information are both "1", that is, the head element and the tail element of the target unlocking information are both functional elements, it can be determined that the type of the interface entering after the unlocking interface is unlocked is a normal operation interface. The normal operation interface here is as described above.
As in the foregoing example, it is assumed that the preset unlocking information is "251", that is, the preset unlocking information is composed of three elements, and since the tail element is "1", that is, the tail element of the preset unlocking information is a function element; when the target unlocking information input by the user is "251" in the unlocking interface shown in fig. 2 or fig. 3, the first element of the target unlocking information is "2", that is, the first element of the target unlocking information is a non-functional element; the tail element of the target unlocking information is '1', that is, the tail element of the target unlocking information is a functional element; the interface type entered after the unlocking interface is unlocked can be determined to be a normal operation interface. The normal operation interface here is as described above. That is, under the condition that the first element of the target unlocking information is a non-functional element, the tail element of the target unlocking information is a functional element, and the tail element of the preset unlocking information is a functional element, the type of the entered interface can be directly determined without concerning the first element of the preset unlocking information.
As in the foregoing example, it is assumed that the preset unlocking information is "25", that is, the preset unlocking information is composed of two elements, and since the first element is "2", that is, the first element of the preset unlocking information is a non-functional element, and the last element is "5", that is, the last element of the preset unlocking information is a non-functional element; when the target unlocking information input by the user is "251" in the unlocking interface shown in fig. 2 or fig. 3, the first element of the target unlocking information is "2", that is, the first element of the target unlocking information is a non-functional element; the tail element of the target unlocking information is '1', that is, the tail element of the target unlocking information is a functional element; then, it can be determined that the interface type entered after unlocking the unlocking interface is the functional interface corresponding to the tail element "1" of the target unlocking information. The functional interface corresponding to the tail element of "1" is the same as the functional interface corresponding to the head element of "1".
As in the foregoing example, it is assumed that the preset unlocking information is "125", that is, the preset unlocking information is composed of three elements, and since the first element is "1", that is, the first element of the preset unlocking information is a functional element, and the last element is "5", that is, the last element of the preset unlocking information is a non-functional element; when the target unlocking information input by the user is "251" in the unlocking interface shown in fig. 2 or fig. 3, the first element of the target unlocking information is "2", that is, the first element of the target unlocking information is a non-functional element; the tail element of the target unlocking information is '1', that is, the tail element of the target unlocking information is a functional element; the interface type entered after the unlocking interface is unlocked can be determined to be a normal operation interface. The normal operation interface here is as described above.
It should be noted that, when determining the interface type entered after unlocking the unlocking interface, the present application may consider only the target unlocking information when verifying the target unlocking information according to the head element and the tail element of the target unlocking information and/or the preset head element and the preset tail element of the unlocking information, as for other elements between the head element and the tail element.
And step 130, verifying the target unlocking information, if the target unlocking information passes the verification, unlocking the unlocking interface, and entering an interface corresponding to the determined interface type.
Specifically, when it is determined that the type of the entered interface is the normal operation interface, step 130 may specifically be:
comparing the target unlocking information with the preset unlocking information;
and if the comparison is consistent, the verification is passed, and unlocking is performed on the unlocking interface.
If the preset unlocking information is '125' and the target unlocking information input by the user is '125', determining that the type of the entered interface is a normal operation interface; and comparing the two, wherein the comparison is consistent, namely the verification is passed, and the normal operation interface can be directly entered. Specifically, when the unlocking interface is in a standby state of the mobile terminal, namely when the key is bound with the application program, the unlocking interface is unlocked after the target unlocking information is verified, and the mobile terminal enters a main interface of the mobile terminal; and when the unlocking interface is the unlocking interface of the application program, namely the key is bound with the function option of the application program, after the target unlocking information is verified, unlocking the unlocking interface and entering the main interface of the application program.
In addition, when the preset unlocking information is '125' and the target unlocking information input by the user is '25', determining that the type of the entered interface is also a normal operation interface; however, when comparing "125" with "25", because the two are not consistent, the user stays in the unlock interface, that is, the lock state of the mobile terminal or the application program is maintained, and a password error prompt may be sent to the user. Wherein the password error prompt comprises an icon prompt and/or a voice prompt, such as a dialog box "password error" displayed on the unlocking interface; alternatively, the voice prompts "password error".
Or, when it is determined that the type of the entered interface is the functional interface, step 130 may also specifically be:
functional elements of the target unlocking information are removed, and functional elements of the preset unlocking information are removed;
comparing the target unlocking information after the functional elements are removed with the preset unlocking information after the functional elements are removed;
and if the comparison is consistent, the verification is passed, and unlocking is performed on the unlocking interface.
If the preset unlocking information is '25' and the target unlocking information input by the user is '125', determining that the type of the entered interface is a functional interface corresponding to the first element of the target unlocking information, namely '1'; then, functional elements in the preset unlocking information and the target unlocking information are respectively eliminated, and the preset unlocking information after the functional elements are eliminated is still '25' because the preset unlocking information does not contain the functional elements; and because the first element of the target unlocking information is the functional element, the target unlocking information after the functional element is removed is '25', and then the two are compared, and because the comparison is consistent, namely the verification is passed, the functional interface corresponding to the first element of the target unlocking information '1' can be directly accessed.
Specifically, when the unlocking interface is an unlocking interface in a standby state of the mobile terminal, that is, when the key is bound with the application program, after the target unlocking information is verified, unlocking the unlocking interface, and entering a main interface of the application program bound with the first element "1"; and when the unlocking interface is the unlocking interface of the application program, namely when the key is bound with the function option of the application program, after the target unlocking information is verified, unlocking the unlocking interface, and entering the function interface of the function option bound with the first element '1'. Therefore, the purpose of directly entering the main interface or the function interface of the function option of the application program after the mobile terminal or the application program is unlocked is achieved, and the problems that in the prior art, after the mobile terminal or the application program is unlocked, further interaction is needed to enter the main interface or the function interface of the function option of the application program, the unlocking time of a user is long, and the user experience is poor are solved.
In addition, when the preset unlocking information is "124" and the target unlocking information input by the user is "1251", determining that the type of the entered interface is a functional interface corresponding to the tail element "1" of the target unlocking information; however, the preset unlocking information after the functional elements are removed is '24', the target unlocking information after the functional elements are removed is '25', namely the target unlocking information and the target unlocking information are not consistent in comparison, the target unlocking information and the target unlocking information stay on an unlocking interface, namely the locking state of the mobile terminal or the application program is kept, and a password error prompt can be sent to a user. Wherein the password error prompt comprises an icon prompt and/or a voice prompt, such as a dialog box "password error" displayed on the unlocking interface; alternatively, the voice prompts "password error".
In summary, the unlocking method provided by the application obtains target unlocking information input by a user on an unlocking interface, wherein the target unlocking information is composed of one or more elements; determining the type of an entering interface according to the first element of the target unlocking information, the preset first element of the unlocking information and/or the tail element of the target unlocking information; and/or determining the type of an entering interface according to the first element of the target unlocking information, the first element of preset unlocking information and/or the tail element of the target unlocking information and the tail element of the preset unlocking information; and verifying the target unlocking information, if the target unlocking information passes the verification, unlocking the unlocking interface, and entering an interface corresponding to the determined interface type. Therefore, the unlocking time when the user intends to use the common application program or the common functions of the application program can be saved, and the user experience can be improved.
Fig. 4 is a flowchart of an unlocking method according to another embodiment of the present application, where the unlocking method is applied to unlock an application having a locking function, where the application may be an application having a high security requirement, such as a pay wallet or a wechat payment, and the function option may pay a "pay as you go" function in the wallet, or the like.
And step 410, acquiring target unlocking information input by a user on an unlocking interface.
It should be noted that, before step 410 is executed, one or more keys may be bound to the function options of the application program on the setting page as described above, and the unlocking information may be preset. Here, the preset unlocking information may be the same as described above, and details of the present application are not repeated herein.
Here, it is assumed that the target unlock information is composed of a plurality of elements, and the element that is arranged at the forefront among the plurality of elements is taken as the head element, and the element that is arranged at the rearmost among the plurality of elements is taken as the tail element. It is to be understood that, when the target unlock information is composed of one element, the leading element and the trailing element are the same element.
Step 420, judging whether the first element of the target unlocking information is a functional element; if yes, go to step 430; otherwise, step 470 is performed.
Step 430, judging whether a first element of preset unlocking information is a functional element; if not, go to step 440; if yes, go to step 470.
And step 440, verifying the target unlocking information, and if the target unlocking information passes the verification, executing step 450, otherwise, executing step 460.
Here, the verifying the target unlocking information specifically includes:
functional elements of target unlocking information are removed, and preset functional elements of the unlocking information are removed;
comparing the target unlocking information after the functional elements are removed with preset unlocking information after the functional elements are removed;
if the comparison is consistent, the verification is passed; otherwise, the verification is not passed.
And step 450, unlocking the unlocking interface, and entering a function interface corresponding to the first element of the target unlocking information.
Step 460, staying at the unlocking interface and outputting the first error prompt message.
Step 470, determining whether the tail element of the target unlocking information is a functional element, if not, executing step 480; if yes, go to step 4110.
And 480, verifying the target unlocking information, if the target unlocking information passes the verification, executing 490, and otherwise executing 4100.
Here, the verifying the target unlocking information specifically includes:
comparing the target unlocking information with preset unlocking information;
if the comparison is consistent, the verification is passed; otherwise, the verification is not passed.
And step 490, unlocking the unlocking interface and entering a normal operation interface.
And step 4100, stopping on the unlocking interface, and outputting second error prompt information.
Step 4110, judging whether a tail element of preset target unlocking information is a functional element, and if not, executing step 4120; if yes, go to step 480.
Step 4120, determining whether a first element of the preset target unlocking information is a functional element, if yes, executing step 480; if not, go to step 440.
The flowchart shown in fig. 4 is not described in detail, and reference may be made to the related description of fig. 1.
Correspondingly to the unlocking method, an unlocking device provided in an embodiment of the present application further includes, as shown in fig. 5: an acquisition unit 501, a determination unit 502, and an execution unit 503.
The obtaining unit 501 is configured to obtain target unlocking information input by a user on an unlocking interface, where the target unlocking information is composed of one or more elements.
A determining unit 502, configured to determine an entered interface type according to the first element of the target unlocking information, the first element of preset unlocking information, and/or the last element of the target unlocking information acquired by the acquiring unit 501; and/or the presence of a gas in the gas,
determining the type of the entered interface according to the first element of the target unlocking information, the first element of the preset unlocking information and/or the tail element of the target unlocking information and the tail element of the preset unlocking information, which are acquired by the acquisition unit 501.
An executing unit 503, configured to verify the target unlocking information acquired by the acquiring unit 501, if the target unlocking information passes the verification, unlock the unlocking interface, and enter the interface corresponding to the interface type determined by the determining unit 502.
The determining unit 502 is specifically configured to:
if the first element of the target unlocking information is a functional element and the first element of the preset unlocking information is a non-functional element, determining that the type of the entered interface is a functional interface corresponding to the first element of the target unlocking information; or,
if the first element of the target unlocking information is a functional element, the first element of the preset unlocking information is a functional element, and the tail element of the target unlocking information is a non-functional element, determining that the type of the entered interface is a normal operation interface; or,
and if the first element of the target unlocking information is a non-functional element and the tail element of the target unlocking information is a non-functional element, determining that the type of the entered interface is a normal operation interface.
The determining unit 502 is further specifically configured to:
if the first element of the target unlocking information is a functional element and the first element of the preset unlocking information is a non-functional element, determining that the type of the entered interface is a functional interface corresponding to the first element of the target unlocking information; or,
if the first element of the target unlocking information is a functional element, the first element of the preset unlocking information is a functional element, the tail element of the target unlocking information is a functional element, and the tail element of the preset unlocking information is a non-functional element, determining that the type of an entered interface is a functional interface corresponding to the tail element of the target unlocking information; or,
if the first element of the target unlocking information is a functional element, the first element of the preset unlocking information is a functional element, the tail element of the target unlocking information is a functional element, and the tail element of the preset unlocking information is a functional element, determining that the type of the entered interface is a normal operation interface; or,
if the first element of the target unlocking information is a non-functional element, the tail element of the target unlocking information is a functional element, and the tail element of the preset unlocking information is a functional element, determining that the type of the entered interface is a normal operation interface; or,
if the first element of the target unlocking information is a non-functional element, the first element of the preset unlocking information is a non-functional element, the tail element of the target unlocking information is a functional element, and the tail element of the preset unlocking information is a non-functional element, determining that the type of an entered interface is a functional interface corresponding to the tail element of the target unlocking information; or,
and if the first element of the target unlocking information is a non-functional element, the first element of the preset unlocking information is a functional element, the tail element of the target unlocking information is a functional element, and the tail element of the preset unlocking information is a non-functional element, determining that the type of the entered interface is a normal operation interface.
Optionally, the execution unit 503 may further include: a first comparing unit 504 and a first unlocking unit 505.
A first comparing unit 504, configured to compare the target unlocking information with the preset unlocking information.
And the first unlocking unit 505 is configured to, if the comparison is consistent, pass the verification and unlock the unlocking interface.
Optionally, the execution unit 503 may further include: a rejecting unit 506, a second comparing unit 507 and a second unlocking unit 508.
A removing unit 506, configured to remove the functional element of the target unlocking information and remove the functional element of the preset unlocking information.
The second comparing unit 507 is configured to compare the target unlocking information from which the functional elements are removed by the removing unit 506 with the preset unlocking information from which the functional elements are removed by the removing unit 506.
And the second unlocking unit 508 is configured to, if the comparison is consistent, pass the verification and unlock the unlocking interface.
The functions of the functional modules of the device in the embodiment of the present application may be implemented through the steps in the method embodiment described above, and therefore, the specific working process of the device provided in the present application is not repeated herein.
In the unlocking device provided by the embodiment of the application, the obtaining unit 501 obtains target unlocking information input by a user on an unlocking interface, wherein the target unlocking information is composed of one or more elements; the determining unit 502 determines the type of an entering interface according to a first element of the target unlocking information, a preset first element of the unlocking information and/or a preset tail element of the target unlocking information; and/or determining the type of an entering interface according to the first element of the target unlocking information, the first element of preset unlocking information and/or the tail element of the target unlocking information and the tail element of the preset unlocking information; the execution unit 503 verifies the target unlocking information, and if the target unlocking information passes the verification, the unlocking interface is unlocked, and an interface corresponding to the determined interface type is entered. Therefore, the unlocking time when the user intends to use the common application program or the common functions of the application program can be saved, and the user experience can be improved.
Those of skill would further appreciate that the various illustrative objects and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied in hardware, a software module executed by a processor, or a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The above-mentioned embodiments, objects, technical solutions and advantages of the present application are described in further detail, it should be understood that the above-mentioned embodiments are merely exemplary embodiments of the present application, and are not intended to limit the scope of the present application, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present application should be included in the scope of the present application.
Claims (10)
1. An unlocking method, characterized in that the method comprises:
acquiring target unlocking information input by a user on an unlocking interface, wherein the target unlocking information consists of one or more elements;
determining the type of an entering interface according to the first element of the target unlocking information, the preset first element of the unlocking information and/or the tail element of the target unlocking information; and/or the presence of a gas in the gas,
determining an entering interface type according to the first element of the target unlocking information, the first element of preset unlocking information and/or the tail element of the target unlocking information and the tail element of the preset unlocking information;
and verifying the target unlocking information, if the target unlocking information passes the verification, unlocking the unlocking interface, and entering an interface corresponding to the determined interface type.
2. The method according to claim 1, wherein the determining of the type of the interface to enter according to the first element of the target unlocking information, the first element of preset unlocking information, and/or the last element of the target unlocking information specifically comprises:
if the first element of the target unlocking information is a functional element and the first element of the preset unlocking information is a non-functional element, determining that the type of the entered interface is a functional interface corresponding to the first element of the target unlocking information; or,
if the first element of the target unlocking information is a functional element, the first element of the preset unlocking information is a functional element, and the tail element of the target unlocking information is a non-functional element, determining that the type of the entered interface is a normal operation interface; or,
and if the first element of the target unlocking information is a non-functional element and the tail element of the target unlocking information is a non-functional element, determining that the type of the entered interface is a normal operation interface.
3. The method according to claim 1, wherein the determining a type of the entered operation interface according to the first element of the target unlocking information, a preset first element of the unlocking information and/or a preset last element of the target unlocking information and a preset last element of the unlocking information specifically comprises:
if the first element of the target unlocking information is a functional element and the first element of the preset unlocking information is a non-functional element, determining that the type of the entered interface is a functional interface corresponding to the first element of the target unlocking information; or,
if the first element of the target unlocking information is a functional element, the first element of the preset unlocking information is a functional element, the tail element of the target unlocking information is a functional element, and the tail element of the preset unlocking information is a non-functional element, determining that the type of an entered interface is a functional interface corresponding to the tail element of the target unlocking information; or,
if the first element of the target unlocking information is a functional element, the first element of the preset unlocking information is a functional element, the tail element of the target unlocking information is a functional element, and the tail element of the preset unlocking information is a functional element, determining that the type of the entered interface is a normal operation interface; or,
if the first element of the target unlocking information is a non-functional element, the tail element of the target unlocking information is a functional element, and the tail element of the preset unlocking information is a functional element, determining that the type of the entered interface is a normal operation interface; or,
if the first element of the target unlocking information is a non-functional element, the first element of the preset unlocking information is a non-functional element, the tail element of the target unlocking information is a functional element, and the tail element of the preset unlocking information is a non-functional element, determining that the type of an entered interface is a functional interface corresponding to the tail element of the target unlocking information; or,
and if the first element of the target unlocking information is a non-functional element, the first element of the preset unlocking information is a functional element, the tail element of the target unlocking information is a functional element, and the tail element of the preset unlocking information is a non-functional element, determining that the type of the entered interface is a normal operation interface.
4. The method according to claim 2 or 3, wherein when it is determined that the type of the entered interface is the normal operation interface, the target unlocking information is verified, and if the verification is passed, the unlocking is performed on the unlocking interface, specifically:
comparing the target unlocking information with the preset unlocking information;
and if the comparison is consistent, the verification is passed, and unlocking is performed on the unlocking interface.
5. The method according to claim 2 or 3, wherein when it is determined that the type of the entered interface is the function interface, the target unlocking information is verified, and if the verification is passed, unlocking is performed on the unlocking interface, specifically:
functional elements of the target unlocking information are removed, and functional elements of the preset unlocking information are removed;
comparing the target unlocking information after the functional elements are removed with the preset unlocking information after the functional elements are removed;
and if the comparison is consistent, the verification is passed, and unlocking is performed on the unlocking interface.
6. An unlocking device, characterized in that the device comprises: the device comprises an acquisition unit, a determination unit and an execution unit;
the acquisition unit is used for acquiring target unlocking information input by a user on an unlocking interface, and the target unlocking information consists of one or more elements;
the determining unit is used for determining the type of the entered interface according to the first element of the target unlocking information, the preset first element of the unlocking information and/or the tail element of the target unlocking information acquired by the acquiring unit; and/or the presence of a gas in the gas,
determining an entering interface type according to the first element of the target unlocking information, the first element of preset unlocking information and/or the tail element of the target unlocking information and the tail element of the preset unlocking information, which are acquired by the acquisition unit;
the execution unit is configured to verify the target unlocking information acquired by the acquisition unit, execute unlocking on the unlocking interface if the target unlocking information passes the verification, and enter the interface corresponding to the interface type determined by the determination unit.
7. The apparatus according to claim 6, wherein the determining unit is specifically configured to:
if the first element of the target unlocking information is a functional element and the first element of the preset unlocking information is a non-functional element, determining that the type of the entered interface is a functional interface corresponding to the first element of the target unlocking information; or,
if the first element of the target unlocking information is a functional element, the first element of the preset unlocking information is a functional element, and the tail element of the target unlocking information is a non-functional element, determining that the type of the entered interface is a normal operation interface; or,
and if the first element of the target unlocking information is a non-functional element and the tail element of the target unlocking information is a non-functional element, determining that the type of the entered interface is a normal operation interface.
8. The apparatus according to claim 6, wherein the determining unit is further specifically configured to:
if the first element of the target unlocking information is a functional element and the first element of the preset unlocking information is a non-functional element, determining that the type of the entered interface is a functional interface corresponding to the first element of the target unlocking information; or,
if the first element of the target unlocking information is a functional element, the first element of the preset unlocking information is a functional element, the tail element of the target unlocking information is a functional element, and the tail element of the preset unlocking information is a non-functional element, determining that the type of an entered interface is a functional interface corresponding to the tail element of the target unlocking information; or,
if the first element of the target unlocking information is a functional element, the first element of the preset unlocking information is a functional element, the tail element of the target unlocking information is a functional element, and the tail element of the preset unlocking information is a functional element, determining that the type of the entered interface is a normal operation interface; or,
if the first element of the target unlocking information is a non-functional element, the tail element of the target unlocking information is a functional element, and the tail element of the preset unlocking information is a functional element, determining that the type of the entered interface is a normal operation interface; or,
if the first element of the target unlocking information is a non-functional element, the first element of the preset unlocking information is a non-functional element, the tail element of the target unlocking information is a functional element, and the tail element of the preset unlocking information is a non-functional element, determining that the type of an entered interface is a functional interface corresponding to the tail element of the target unlocking information; or,
and if the first element of the target unlocking information is a non-functional element, the first element of the preset unlocking information is a functional element, the tail element of the target unlocking information is a functional element, and the tail element of the preset unlocking information is a non-functional element, determining that the type of the entered interface is a normal operation interface.
9. The apparatus according to claim 7 or 8, wherein the execution unit comprises: a first comparing unit and a first unlocking unit;
the first comparison unit is used for comparing the target unlocking information with the preset unlocking information;
and the first unlocking unit is used for executing unlocking on the unlocking interface after verification is passed if the comparison is consistent.
10. The apparatus according to claim 7 or 8, wherein the execution unit comprises: the rejecting unit, the second comparing unit and the second unlocking unit are used for rejecting the second unlocking signal;
the eliminating unit is used for eliminating the functional elements of the target unlocking information and eliminating the functional elements of the preset unlocking information;
the second comparing unit is used for comparing the target unlocking information of the rejecting unit after the functional elements are rejected with the preset unlocking information of the rejecting unit after the functional elements are rejected;
and the second unlocking unit is used for executing unlocking on the unlocking interface after verification is passed if the comparison is consistent.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610006954.2A CN106940763A (en) | 2016-01-05 | 2016-01-05 | Unlocking method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610006954.2A CN106940763A (en) | 2016-01-05 | 2016-01-05 | Unlocking method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106940763A true CN106940763A (en) | 2017-07-11 |
Family
ID=59468430
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610006954.2A Pending CN106940763A (en) | 2016-01-05 | 2016-01-05 | Unlocking method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106940763A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102510429A (en) * | 2011-12-26 | 2012-06-20 | 惠州Tcl移动通信有限公司 | Method for unlocking touch-screen mobile phone, and touch-screen mobile phone |
CN103729134A (en) * | 2012-10-12 | 2014-04-16 | 三星电子株式会社 | Apparatus and method for unlocking screen and executing operation in a portable terminal |
CN104123164A (en) * | 2014-07-31 | 2014-10-29 | 广东欧珀移动通信有限公司 | Application program starting method and device |
CN104657031A (en) * | 2013-11-21 | 2015-05-27 | 北京三星通信技术研究有限公司 | Touch operation method and touch operation device |
CN105094561A (en) * | 2012-06-14 | 2015-11-25 | 北京奇虎科技有限公司 | User interface activation method for terminal equipment and terminal equipment |
-
2016
- 2016-01-05 CN CN201610006954.2A patent/CN106940763A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102510429A (en) * | 2011-12-26 | 2012-06-20 | 惠州Tcl移动通信有限公司 | Method for unlocking touch-screen mobile phone, and touch-screen mobile phone |
CN105094561A (en) * | 2012-06-14 | 2015-11-25 | 北京奇虎科技有限公司 | User interface activation method for terminal equipment and terminal equipment |
CN103729134A (en) * | 2012-10-12 | 2014-04-16 | 三星电子株式会社 | Apparatus and method for unlocking screen and executing operation in a portable terminal |
CN104657031A (en) * | 2013-11-21 | 2015-05-27 | 北京三星通信技术研究有限公司 | Touch operation method and touch operation device |
CN104123164A (en) * | 2014-07-31 | 2014-10-29 | 广东欧珀移动通信有限公司 | Application program starting method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105825382B (en) | Mobile payment method and electronic equipment | |
EP3147768B1 (en) | Screen interface unlocking method and screen interface unlocking device | |
CN104978109B (en) | A kind of Application Program Interface display methods and terminal | |
KR101556599B1 (en) | Pattern Inputting Apparatus and Method, and Recording Medium Using the Same | |
KR101622300B1 (en) | Limiting the functionality of a software program based on a security model | |
CN105354455B (en) | State switching method and electronic equipment | |
WO2019047148A1 (en) | Password verification method, terminal, and computer readable storage medium | |
CN106354399A (en) | Method, device, and electronic device for assignment of application permission | |
CN105929974A (en) | Password input management method and mobile terminal | |
CN106022148A (en) | File encryption method and device | |
CN111176543A (en) | Method, device, computer equipment and storage medium for realizing electronic signature | |
CN104636660A (en) | Application starting method and mobile terminal | |
CN110099167B (en) | Unlocking method and device, terminal equipment and storage medium | |
EP3037997A1 (en) | Apparatus, login processing method, and program | |
CN106685945B (en) | Service request processing method, service handling number verification method and terminal thereof | |
CN108885654B (en) | Method and terminal for entering target application | |
CN106778160A (en) | Data item display methods and device | |
WO2017166359A1 (en) | User domain access method, access device, and mobile terminal | |
US20140181958A1 (en) | Secure and convenient authentication | |
CN106940763A (en) | Unlocking method and device | |
CN106066960A (en) | A kind of replacement cryptographic methods and replacement encryption apparatus | |
CN113935008B (en) | User authentication method, device, electronic equipment and computer readable storage medium | |
CN110795710B (en) | Unlocking method of electronic device, electronic device and computer-readable storage medium | |
CN110909344B (en) | Control method and device | |
CN108846272B (en) | Application security management method and device and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170711 |