Terminal screen unlocking method and system based on time period change

By adopting an unlocking method based on time period changes in the mobile terminal, and presetting different passwords correspond to different time periods, the problem of low security in password unlocking in the prior art is solved, and higher security and convenience are achieved.

CN119557858AInactive Publication Date: 2025-03-04RIVOTEK TECH (JIANGSU) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411619514.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-13
Publication Date
2025-03-04
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The password unlocking method of existing mobile terminals is relatively low in security, easy to be cracked, and the user's unlocking convenience and flexibility are insufficient.

Method used

The terminal screen unlocking method based on time period changes is adopted. By presetting different time periods, the current time and the preset time period are compared, the corresponding verification password or default password are obtained, and the corresponding verification password or default password is obtained, and the comparison and unlocking is performed.

Benefits of technology

Improves the security of password unlocking, avoids the risk of a single fixed password being cracked, and increases the user's unlocking convenience and flexibility.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119557858A_ABST
    Figure CN119557858A_ABST
Patent Text Reader

Abstract

The invention discloses a time period change-based terminal screen unlocking method and system, and relates to the technical field of terminals, and the method comprises the following steps: a user side enters an unlocking page of a terminal screen; in the unlocking interface, acquiring the current time of the mobile terminal by calling a system API (Application Program Interface); comparing the current time with a plurality of preset time periods, and judging whether the current time has a corresponding preset time period or not; if the current time has the corresponding preset time period, obtaining a verification password corresponding to the preset time period; if the current time does not have the corresponding preset time period, acquiring a default password; an input password of the user side is obtained by calling the system API and compared with the verification password or the default password, and if the passwords are the same, the terminal screen is successfully unlocked; otherwise, unlocking of the terminal screen fails, and the user side is prompted to input the password again through the terminal screen. According to the method, the password unlocking safety can be improved, the unlocking convenience of a user is improved, and the unlocking flexibility is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of terminal technology, and in particular to a terminal screen unlocking method and system based on time period changes. Background Art

[0002] In recent years, the mobile terminal industry has developed rapidly. For users, the data in mobile terminals is very important. Therefore, with the popularization of mobile terminals, users pay more and more attention to data security. In order to protect the data in mobile terminals, most of them currently use screen locking to prevent others from viewing or using the mobile terminal, and only users who unlock the screen can use the mobile terminal.

[0003] In the prior art, the screen unlocking methods of mobile terminals mainly include password unlocking, fingerprint unlocking, face recognition, etc. Among them, password unlocking is simply to set an initial password, and the user only needs to enter a password that matches the set password to unlock. Although this unlocking method can protect the data of the mobile terminal to a certain extent, its security is relatively low. In addition, a single fixed password is easy to be remembered in terms of key sequence and position, so that others can further crack the password and obtain the data in the mobile terminal.

[0004] Therefore, how to improve the security of password unlocking, increase the convenience of unlocking for users, and improve the flexibility of unlocking has become a problem that needs to be solved urgently. Summary of the invention

[0005] In order to solve the above problems, the present invention proposes a terminal screen unlocking method and system based on time period changes. By presetting the terminal screen unlocking method with different passwords corresponding to different time periods, the security of password unlocking can be greatly improved, the user's unlocking convenience can be increased, and the unlocking flexibility can be improved.

[0006] In order to achieve the above object, the present invention is implemented by the following technical solutions:

[0007] A terminal screen unlocking method based on time period change of the present invention comprises:

[0008] When the user needs to unlock the terminal screen, first enter the unlocking page of the terminal screen;

[0009] In the unlocking interface, the current time of the mobile terminal is obtained by calling the system API;

[0010] Compare the current time with a plurality of preset time periods to determine whether the current time has a corresponding preset time period;

[0011] If the current time has a corresponding preset time period, then obtain the verification password corresponding to the preset time period; if the current time does not have a corresponding preset time period, then obtain the default password;

[0012] The system API is called to obtain the input password of the user terminal, and compared with the verification password or the default password. If the passwords are the same, the terminal screen is unlocked successfully; otherwise, the terminal screen is unlocked but fails, and the user terminal is prompted to re-enter the password through the terminal screen.

[0013] A further improvement of the present invention is that when the user terminal needs to unlock the terminal screen, the unlocking page of the terminal screen is first entered, which specifically includes:

[0014] The user terminal triggers an unlocking action of the terminal screen by pressing a physical button or touching an unlocking icon on the terminal screen;

[0015] The terminal screen includes a password input box, a confirmation button, a time display area, and an error prompt area;

[0016] The user terminal performs a password input operation through the password input box, the password input box is located at the center of the unlocking page, and preset prompt information is set in the box;

[0017] After the user enters the password, the user needs to click the confirmation button to confirm the password, and the confirmation button is located below the password input box;

[0018] The time display area is used to display the current time of the mobile terminal;

[0019] The error prompt area is used to display a prompt message for re-entering the password when the terminal screen unlocking fails.

[0020] A further improvement of the present invention is that in the unlocking interface, after the current time of the mobile terminal is obtained by calling the system API, the obtained current time is converted into a format based on a format conversion function, and the corresponding mathematical formula is:

[0021] T=GSZH(t(Y,M,D,H,Min))

[0022] In the formula, T represents the current time after format conversion; GSZH() represents the format conversion function; t(Y,M,D,H,Min) represents the current time; Y represents the year of the current time; M represents the month of the current time; D represents the day of the current time; H represents the hour of the current time; Min represents the minute of the current time.

[0023] A further improvement of the present invention is that the process of setting the preset time period, verification password and default password is as follows:

[0024] The user terminal enters the password setting interface of the terminal device and first sets the default password;

[0025] Then the user terminal increases the preset time period, selects the start time and end time corresponding to the preset time period, and sets the corresponding verification password for the time period.

[0026] A further improvement of the present invention is that the comparing the current time with a plurality of preset time periods to determine whether the current time has a corresponding preset time period specifically includes:

[0027] Set the start time and end time corresponding to the preset time period to S respectively i and E i , the current time and the start time of the preset time period S i and end time E i For comparison, the corresponding mathematical formula is:

[0028] like

[0029] S i ≤T≤E i

[0030] It is determined that the current time has a corresponding preset time period and belongs to the i-th preset time period;

[0031] If the above conditions are not met, it is determined that there is no corresponding preset time period for the current time.

[0032] A further improvement of the present invention is that: if the current time has a corresponding preset time period and belongs to the i-th preset time period, then the verification password Q corresponding to the i-th preset time period is obtained. i ; If the current time does not correspond to the preset time period, obtain the default password

[0033] A further improvement of the present invention is that: the method of obtaining the input password of the user terminal by calling the system API and comparing it with the verification password or the default password, if the passwords are the same, unlocking the terminal screen is successful; otherwise, unlocking the terminal screen fails, and prompting the user terminal to re-enter the password through the terminal screen, specifically includes:

[0034] After the user terminal enters the password in the password input box, the system API is called again to obtain the input password of the user terminal;

[0035] The input password is compared with the verification password. First, the Euclidean distance between the input password and the verification password is calculated. The corresponding calculation formula is:

[0036]

[0037] In the formula, d(Q SR ,Q i ) means enter password Q SR With verification password Q i The Euclidean distance between SR Indicates password input; Q i represents the verification password; m represents the total number of features; Q SR,j Indicates entering password Q SR The value of the jth feature; Q i,j Indicates verification password Q i The value of the jth feature; Σ represents the summation symbol;

[0038] The anomaly score between the input password and the verification password is calculated based on the Gaussian distribution method, and the corresponding calculation formula is:

[0039]

[0040] Where YCFS represents the anomaly score between the input password and the verification password; exp() represents an exponential function with the natural constant e as the base; d(Q SR ,Q i ) means enter password Q SR With verification password Q i The Euclidean distance between SR Indicates password input; Q i represents the verification password; σ represents the standard deviation parameter corresponding to the anomaly score between the input password and the verification password;

[0041] Obtain a preset abnormality threshold F0, compare the abnormality score YCFS with the preset abnormality threshold F0, and determine whether the input password is the same as the verification password;

[0042] If the abnormal score YCFS is less than or equal to the preset abnormal threshold F0, it is determined that the input password is the same as the verification password, and the terminal screen is unlocked successfully;

[0043] Otherwise, if the abnormal score YCFS is greater than the preset abnormal threshold F0, it is determined that the input password is different from the verification password, unlocking the terminal screen fails, and the user terminal is prompted to re-enter the password through the terminal screen;

[0044] The steps of comparing the input password with the default password are the same as above.

[0045] A further improvement of the present invention is that if the number of failed attempts to unlock the terminal screen exceeds a maximum number of password inputs after the user terminal has re-entered the password for multiple times, the terminal screen is locked or prompted to enter a backup password for unlocking.

[0046] The present invention discloses an unlocking system for a terminal screen unlocking method based on time period changes, the system comprising:

[0047] An entry module, used to first enter the unlocking page of the terminal screen when the user terminal needs to unlock the terminal screen;

[0048] An acquisition module, used to acquire the current time of the mobile terminal by calling a system API in the unlocking interface;

[0049] A determination module, used to compare the current time with a plurality of preset time periods to determine whether there is a corresponding preset time period for the current time;

[0050] A determination module, configured to obtain a verification password corresponding to a preset time period if there is a corresponding preset time period for the current time; and obtain a default password if there is no corresponding preset time period for the current time;

[0051] The unlocking module is used to obtain the input password of the user terminal by calling the system API and compare it with the verification password or the default password. If the passwords are the same, the terminal screen is unlocked successfully; otherwise, the terminal screen is unlocked but fails, and the user terminal is prompted to re-enter the password through the terminal screen.

[0052] The beneficial effects of the present invention are as follows: the present invention proposes a terminal screen unlocking method and system based on time period changes. When a user terminal needs to unlock the terminal screen, the user terminal first enters the unlocking page of the terminal screen; in the unlocking interface, the current time of the mobile terminal is obtained by calling a system API; the current time is compared with multiple preset time periods to determine whether there is a corresponding preset time period for the current time; if the current time has a corresponding preset time period, the verification password corresponding to the preset time period is obtained; if the current time does not have a corresponding preset time period, the default password is obtained; the user terminal's input password is obtained by calling a system API, and compared with the verification password or the default password. If the passwords are the same, the terminal screen is unlocked successfully; otherwise, the terminal screen is unlocked but fails, and the user terminal is prompted to re-enter the password through the terminal screen, thereby improving the security of password unlocking, and by presetting different time periods to correspond to different passwords, the risk of a single fixed password being easily cracked is avoided; at the same time, the user can set multiple time periods and corresponding passwords according to their own habits and needs, which increases the user's unlocking convenience and improves the unlocking flexibility. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] Figure 1 A schematic diagram of a process flow of a terminal screen unlocking method based on time period changes provided by an embodiment of the present invention;

[0054] Figure 2 A schematic diagram of a password setting interface provided by an embodiment of the present invention;

[0055] Figure 3 A schematic diagram of the structure of a terminal screen unlocking system based on time period changes provided by an embodiment of the present invention;

[0056] Figure 4 A schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0057] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0058] See also Figure 1 , is a flow chart of a terminal screen unlocking method based on time period changes provided by an embodiment of the present invention, Figure 1 The execution subject of the method shown may be a software and / or hardware device. The execution subject of the present application may include but is not limited to at least one of the following: user equipment, network equipment, etc. Among them, user equipment may include but is not limited to computers, smart phones, personal digital assistants (Personal Digital Assistant, referred to as: PDA) and the electronic devices mentioned above. Network equipment may include but is not limited to a single network server, a server group consisting of multiple network servers, or a cloud based on cloud computing consisting of a large number of computers or network servers, wherein cloud computing is a type of distributed computing, a super virtual computer composed of a group of loosely coupled computers. This embodiment does not limit this. It includes steps S1 to S5, as follows:

[0059] S1, when the user terminal needs to unlock the terminal screen, first enter the unlocking page of the terminal screen;

[0060] S2, in the unlocking interface, obtaining the current time of the mobile terminal by calling a system API;

[0061] S3, comparing the current time with a plurality of preset time periods to determine whether the current time has a corresponding preset time period;

[0062] S4, if the current time has a corresponding preset time period, obtaining a verification password corresponding to the preset time period; if the current time does not have a corresponding preset time period, obtaining a default password;

[0063] S5, obtaining the input password of the user terminal by calling the system API, and comparing it with the verification password or the default password. If the passwords are the same, unlocking the terminal screen is successful; otherwise, unlocking the terminal screen fails, and the user terminal is prompted to re-enter the password through the terminal screen.

[0064] It is understandable that the user terminal refers to the user of the mobile terminal, and the mobile terminal may be a smart phone, tablet computer, etc. When the user terminal needs to access or operate the screen content of the mobile terminal, it may first navigate to the screen unlocking interface of the mobile terminal.

[0065] In the unlocking interface, the current system time of the mobile terminal can be obtained through the calling mechanism within the program, that is, using the application programming interface (API) provided by the operating system, thereby ensuring the accuracy and timeliness of the time data and facilitating subsequent time-sensitive operations.

[0066] Next, the acquired current time can be compared with a plurality of preset specific time periods to confirm whether the current time falls within any preset time period. These preset time periods are usually set based on user preferences or security policies to achieve differentiated access control in different time periods.

[0067] If the current time is determined to match a preset time period, the specific verification password associated with the time period is automatically retrieved and loaded. The verification password is usually set by the user to reflect a personalized security policy. On the contrary, if the current time does not match any preset time period, the preset default password is obtained and applied.

[0068] Subsequently, the system API can be called again to capture the password entered by the user on the current unlocking interface, and then the entered password can be compared with the verification password or the default password. If the password comparison result shows that the two are consistent, it indicates that the user's identity authentication is successful, and then the terminal screen is unlocked, allowing the user to freely access all functions and services within the authority. On the contrary, if the passwords do not match, it means that the identity authentication has failed, the unlocking request is rejected, and the user is immediately notified through a prompt message on the terminal screen, requiring it to re-enter the password to try to authenticate again.

[0069] Through the above method, a secure access control mechanism based on time condition differentiation and user password verification can be implemented, effectively improving the security and flexibility of device use.

[0070] When the user terminal needs to unlock the terminal screen, the unlocking page of the terminal screen is first entered, which specifically includes:

[0071] The user terminal triggers an unlocking action of the terminal screen by pressing a physical button or touching an unlocking icon on the terminal screen;

[0072] The terminal screen includes a password input box, a confirmation button, a time display area, and an error prompt area;

[0073] The user terminal performs a password input operation through the password input box, the password input box is located at the center of the unlocking page, and preset prompt information is set in the box;

[0074] After the user enters the password, the user needs to click the confirmation button to confirm the password, and the confirmation button is located below the password input box;

[0075] The time display area is used to display the current time of the mobile terminal;

[0076] The error prompt area is used to display a prompt message for re-entering the password when the terminal screen unlocking fails.

[0077] In the unlocking interface, after the current time of the mobile terminal is obtained by calling the system API, the obtained current time is converted into a format based on a format conversion function. The corresponding mathematical formula is:

[0078] T=GSZH(t(Y,M,D,H,Min))

[0079] In the formula, T represents the current time after format conversion; GSZH() represents the format conversion function; t(Y,M,D,H,Min) represents the current time; Y represents the year of the current time; M represents the month of the current time; D represents the day of the current time; H represents the hour of the current time; Min represents the minute of the current time.

[0080] The process of setting the preset time period, verification password and default password is as follows:

[0081] The user terminal enters the password setting interface of the terminal device and first sets the default password;

[0082] Then the user terminal increases the preset time period, selects the start time and end time corresponding to the preset time period, and sets the corresponding verification password for the time period.

[0083] In practical applications, see Figure 2, when the user successfully logs in and navigates to the password configuration interface of the terminal device, the default password can be set first. Then, the user can further refine the access control policy and set a specific time window by adding a preset time period. And the user needs to clearly specify the start time and end time of the preset time period. These two time points together define the effective range of the password verification policy.

[0084] Subsequently, for the preset time period, the user needs to select and set an independent verification password, which is effective during the specified time period and is used to enhance the security and flexibility of device access, thereby improving the security level of the system and implementing a dynamic password management strategy based on time conditions.

[0085] The comparing the current time with a plurality of preset time periods to determine whether the current time has a corresponding preset time period specifically includes:

[0086] Set the start time and end time corresponding to the preset time period to S respectively i and E i , the current time and the start time of the preset time period S i and end time E i For comparison, the corresponding mathematical formula is:

[0087] like

[0088] S i ≤T≤E i

[0089] It is determined that the current time has a corresponding preset time period and belongs to the i-th preset time period;

[0090] If the above conditions are not met, it is determined that there is no corresponding preset time period for the current time.

[0091] It is understandable that.

[0092] If the current time has a corresponding preset time period and belongs to the i-th preset time period, then obtain the verification password Q corresponding to the i-th preset time period i ; If the current time does not correspond to the preset time period, obtain the default password

[0093] The method of obtaining the input password of the user terminal by calling the system API and comparing it with the verification password or the default password, if the passwords are the same, unlocking the terminal screen is successful; otherwise, unlocking the terminal screen fails, and prompting the user terminal to re-enter the password through the terminal screen, specifically includes:

[0094] After the user terminal enters the password in the password input box, the system API is called again to obtain the input password of the user terminal;

[0095] The input password is compared with the verification password. First, the Euclidean distance between the input password and the verification password is calculated. The corresponding calculation formula is:

[0096]

[0097] In the formula, d(Q SR ,Q i ) means enter password Q SR With verification password Q i The Euclidean distance between SR Indicates password input; Q i represents the verification password; m represents the total number of features; Q SR,j Indicates entering password Q SR The value of the jth feature; Q i,j Indicates verification password Q i The value on the jth feature; Σ represents the summation symbol;

[0098] The anomaly score between the input password and the verification password is calculated based on the Gaussian distribution method, and the corresponding calculation formula is:

[0099]

[0100] Where YCFS represents the anomaly score between the input password and the verification password; exp() represents an exponential function with the natural constant e as the base; d(Q SR ,Q i ) means enter password Q SR With verification password Q i The Euclidean distance between SR Indicates password input; Q i represents the verification password; σ represents the standard deviation parameter corresponding to the anomaly score between the input password and the verification password;

[0101] Obtain a preset abnormality threshold F0, compare the abnormality score YCFS with the preset abnormality threshold F0, and determine whether the input password is the same as the verification password;

[0102] If the abnormal score YCFS is less than or equal to the preset abnormal threshold F0, it is determined that the input password is the same as the verification password, and the terminal screen is unlocked successfully;

[0103] Otherwise, if the abnormal score YCFS is greater than the preset abnormal threshold F0, it is determined that the input password is different from the verification password, unlocking the terminal screen fails, and the user terminal is prompted to re-enter the password through the terminal screen;

[0104] The steps of comparing the input password with the default password are the same as above.

[0105] If the number of failed attempts to unlock the terminal screen exceeds the maximum number of password input times after the user terminal has re-entered the password for multiple times, the terminal screen will be locked or prompted to enter a backup password to unlock.

[0106] See also Figure 3 , is a terminal screen unlocking system based on time period changes provided by an embodiment of the present invention, the unlocking system comprising:

[0107] An entry module, used to first enter the unlocking page of the terminal screen when the user terminal needs to unlock the terminal screen;

[0108] An acquisition module, used to acquire the current time of the mobile terminal by calling a system API in the unlocking interface;

[0109] A determination module, used to compare the current time with a plurality of preset time periods to determine whether there is a corresponding preset time period for the current time;

[0110] A determination module, configured to obtain a verification password corresponding to a preset time period if there is a corresponding preset time period for the current time; and obtain a default password if there is no corresponding preset time period for the current time;

[0111] The unlocking module is used to obtain the input password of the user terminal by calling the system API and compare it with the verification password or the default password. If the passwords are the same, the terminal screen is unlocked successfully; otherwise, the terminal screen is unlocked but fails, and the user terminal is prompted to re-enter the password through the terminal screen.

[0112] Figure 3 The apparatus of the embodiment shown can be used to perform Figure 1 The implementation principles and technical effects of the steps in the method embodiment shown are similar and will not be repeated here.

[0113] See also Figure 4 , is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present invention, the electronic device 40 includes: a processor 41, a memory 42 and a computer program; wherein

[0114] The memory 42 is used to store the computer program, and the memory may also be a flash memory. The computer program is, for example, an application program, a functional module, etc. for implementing the above method.

[0115] The processor 41 is used to execute the computer program stored in the memory to implement each step performed by the device in the above method. For details, please refer to the relevant description in the above method embodiment.

[0116] Optionally, the memory 42 may be independent or integrated with the processor 41 .

[0117] When the memory 42 is a device independent of the processor 41, the device may further include:

[0118] The bus 43 is used to connect the memory 42 and the processor 41 .

[0119] The present invention also provides a readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, it is used to implement the methods provided by the various embodiments described above.

[0120] Among them, the readable storage medium can be a computer storage medium or a communication medium. The communication medium includes any medium that facilitates the transmission of a computer program from one place to another. The computer storage medium can be any available medium that can be accessed by a general-purpose or special-purpose computer. For example, a readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an application-specific integrated circuit (Application Specific Integrated Circuits, abbreviated as: ASIC). In addition, the ASIC can be located in a user device. Of course, the processor and the readable storage medium can also exist in a communication device as discrete components. The readable storage medium can be a read-only memory (ROM), a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device, etc.

[0121] The present invention also provides a program product, which includes an execution instruction, which is stored in a readable storage medium. At least one processor of a device can read the execution instruction from the readable storage medium, and at least one processor executes the execution instruction so that the device implements the methods provided in the above various embodiments.

[0122] In the embodiments of the above-mentioned devices, it should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the present invention may be directly implemented as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.

[0123] Through the introduction of the above embodiments, the present invention uses a terminal screen unlocking method and system based on time period changes. When a user terminal needs to unlock the terminal screen, it first enters the unlocking page of the terminal screen; in the unlocking interface, the current time of the mobile terminal is obtained by calling a system API; the current time is compared with multiple preset time periods to determine whether the current time has a corresponding preset time period; if the current time has a corresponding preset time period, the verification password corresponding to the preset time period is obtained; if the current time does not have a corresponding preset time period, the default password is obtained; the user terminal's input password is obtained by calling a system API, and compared with the verification password or the default password. If the passwords are the same, the terminal screen is unlocked successfully; otherwise, the terminal screen fails to be unlocked, and the user terminal is prompted to re-enter the password through the terminal screen, thereby improving the security of password unlocking, and by presetting different time periods to correspond to different passwords, the risk of a single fixed password being easily cracked is avoided; at the same time, the user can set multiple time periods and corresponding passwords according to their own habits and needs, which increases the user's unlocking convenience and improves the flexibility of unlocking.

[0124] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A terminal screen unlocking method based on time period changes, characterized in that: The method comprises: When the user needs to unlock the terminal screen, first enter the unlocking page of the terminal screen; In the unlocking interface, the current time of the mobile terminal is obtained by calling the system API; Compare the current time with a plurality of preset time periods to determine whether the current time has a corresponding preset time period; If the current time has a corresponding preset time period, then obtain the verification password corresponding to the preset time period; if the current time does not have a corresponding preset time period, then obtain the default password; The system API is called to obtain the input password of the user terminal, and compared with the verification password or the default password. If the passwords are the same, the terminal screen is unlocked successfully; otherwise, the terminal screen is unlocked but fails, and the user terminal is prompted to re-enter the password through the terminal screen.

2. A terminal screen unlocking method based on time period change according to claim 1, characterized in that: When the user terminal needs to unlock the terminal screen, the unlocking page of the terminal screen is first entered, which specifically includes: The user terminal triggers an unlocking action of the terminal screen by pressing a physical button or touching an unlocking icon on the terminal screen; The terminal screen includes a password input box, a confirmation button, a time display area, and an error prompt area; The user terminal performs a password input operation through the password input box, the password input box is located at the center of the unlocking page, and preset prompt information is set in the box; After the user enters the password, the user needs to click the confirmation button to confirm the password, and the confirmation button is located below the password input box; The time display area is used to display the current time of the mobile terminal; The error prompt area is used to display a prompt message for re-entering the password when the terminal screen unlocking fails.

3. A terminal screen unlocking method based on time period change according to claim 1, characterized in that: In the unlocking interface, after the current time of the mobile terminal is obtained by calling the system API, the obtained current time is converted into a format based on a format conversion function. The corresponding mathematical formula is: T=GSZH(t(Y,M,D,H,Min)) In the formula, T represents the current time after format conversion; GSZH() represents the format conversion function; t(Y,M,D,H,Min) represents the current time; Y represents the year of the current time; M represents the month of the current time; D represents the day of the current time; H represents the hour of the current time; Min represents the minute of the current time.

4. The method for unlocking a terminal screen based on time period changes according to claim 1, characterized in that: The process of setting the preset time period, verification password and default password is as follows: The user terminal enters the password setting interface of the terminal device and first sets the default password; Then the user terminal increases the preset time period, selects the start time and end time corresponding to the preset time period, and sets the corresponding verification password for the time period.

5. The method for unlocking a terminal screen based on time period changes according to claim 1, characterized in that: The comparing the current time with a plurality of preset time periods to determine whether the current time has a corresponding preset time period specifically includes: Set the start time and end time corresponding to the preset time period to S respectively i and E i , the current time and the start time of the preset time period S i and end time E i For comparison, the corresponding mathematical formula is: S i ≤T≤E i It is determined that the current time has a corresponding preset time period and belongs to the i-th preset time period; If the above conditions are not met, it is determined that there is no corresponding preset time period for the current time.

6. A terminal screen unlocking method based on time period change according to claim 5, characterized in that: If the current time has a corresponding preset time period and belongs to the i-th preset time period, then obtain the verification password Q corresponding to the i-th preset time period i ; If the current time does not have a corresponding preset time period, obtain the default password 7. The method for unlocking a terminal screen based on time period changes according to claim 1, characterized in that: The system API is called to obtain the input password of the user terminal, and the password is compared with the verification password or the default password. If the passwords are the same, the terminal screen is unlocked successfully. Otherwise, unlocking the terminal screen fails, and prompting the user terminal to re-enter the password through the terminal screen, specifically including: After the user terminal enters the password in the password input box, the system API is called again to obtain the input password of the user terminal; The input password is compared with the verification password. First, the Euclidean distance between the input password and the verification password is calculated. The corresponding calculation formula is: In the formula, d(Q SR ,Q i ) means enter password Q SR With verification password Q i The Euclidean distance between SR Indicates password input; Q i represents the verification password; m represents the total number of features; Q SR,j Indicates entering password Q SR The value of the jth feature; Q i,j Indicates verification password Q i The value of the jth feature; Σ represents the summation symbol; The anomaly score between the input password and the verification password is calculated based on the Gaussian distribution method, and the corresponding calculation formula is: Where YCFS represents the anomaly score between the input password and the verification password; exp() represents an exponential function with the natural constant e as the base; d(Q SR ,Q i ) means enter password Q SR With verification password Q i The Euclidean distance between SR Indicates password input; Q i represents the verification password; σ represents the standard deviation parameter corresponding to the anomaly score between the input password and the verification password; Obtain a preset abnormality threshold F0, compare the abnormality score YCFS with the preset abnormality threshold F0, and determine whether the input password is the same as the verification password; If the abnormal score YCFS is less than or equal to the preset abnormal threshold F0, it is determined that the input password is the same as the verification password, and the terminal screen is unlocked successfully; Otherwise, if the abnormal score YCFS is greater than the preset abnormal threshold F0, it is determined that the input password is different from the verification password, unlocking the terminal screen fails, and the user terminal is prompted to re-enter the password through the terminal screen; The steps of comparing the input password with the default password are the same as above.

8. The method for unlocking a terminal screen based on time period changes according to claim 1, characterized in that: If the number of failed attempts to unlock the terminal screen exceeds the maximum number of password input times after the user terminal has re-entered the password for multiple times, the terminal screen will be locked or prompted to enter a backup password to unlock.

9. An unlocking system for a terminal screen unlocking method based on time period changes according to any one of claims 1 to 8, characterized in that: The system comprises: An entry module, used to first enter the unlocking page of the terminal screen when the user terminal needs to unlock the terminal screen; An acquisition module, used to acquire the current time of the mobile terminal by calling a system API in the unlocking interface; A determination module, used to compare the current time with a plurality of preset time periods to determine whether there is a corresponding preset time period for the current time; A determination module, configured to obtain a verification password corresponding to a preset time period if the current time has a corresponding preset time period; and obtain a default password if the current time has no corresponding preset time period; The unlocking module is used to obtain the input password of the user terminal by calling the system API and compare it with the verification password or the default password. If the passwords are the same, the terminal screen is unlocked successfully; otherwise, the terminal screen is unlocked but fails, and the user terminal is prompted to re-enter the password through the terminal screen.

Citation Information

Patent Citations

  • Screen unlocking processing method and device applied to intelligent terminal and intelligent terminal

    CN107480487A

  • Application unlocking method and device, equipment and storage medium

    CN113360880A