Electronic device password verification and unlocking method, device, computer device and medium

Through the electronic device password verification method of multi-mode random switching and dynamic verification, the security and user experience problems of traditional electronic devices are solved, and the defense against side-view attacks and brute-force cracking is realized, which reduces the memory difficulty of special users, and improves the universality and attack resistance of the device.

CN120030519BActive Publication Date: 2025-07-11DESSMANN CHINA MACHINERY & ELECTRONICS +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510504702.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-04-22
Publication Date
2025-07-11
Estimated Expiration
2045-04-22

AI Technical Summary

Technical Problem

The password verification methods of traditional electronic devices have problems such as low security, difficulty in remembering special users with complex passwords, weak attack resistance and poor user experience due to the single dynamic verification mechanism.

Method used

By real-time detection of display unlocking operations, a password verification interface for multiple modes is established, contact interaction information and path information of dynamic password tracks are collected, and multi-dimensional dynamic restrictions are combined for verification, so as to achieve diversified interaction methods and personalized security protection.

Benefits of technology

It improves the defense capabilities of side-view attacks and brute-force cracking, lowers the memory threshold for special user groups, achieves a dynamic balance between security protection strength and user operations, and solves the security and user experience problems of traditional electronic devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120030519B_ABST
    Figure CN120030519B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of intelligent locks, and discloses a method, device, computer device and medium for password verification and unlocking of an electronic device. The method includes: detecting an unlocking operation on a display screen of the electronic device to be unlocked; displaying a password verification interface on the display screen according to the unlocking operation, wherein the password verification interface can be randomly switched to multiple password modes; obtaining a dynamic password trajectory input on the password verification interface, and determining contact interaction information and path information based on the dynamic password trajectory; verifying the contact interaction information and the path information based on dynamic restriction conditions corresponding to the current password mode to obtain a verification result, and controlling the electronic device to be unlocked to perform an unlocking operation according to the verification result. The present invention solves the problems of weak anti-attack ability and poor user experience caused by the low security of the static password mode, the difficulty for special users to remember complex passwords, and the single dynamic verification mechanism of traditional electronic devices to be unlocked.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of intelligent locks, and particularly to a method, device, computer device and medium for password verification and unlocking of electronic devices. Background Art

[0002] Taking electronic devices such as the electronic device to be unlocked as an example, as a key device for protecting valuable items, high-strength structures and password verification mechanisms are usually adopted to ensure security. Traditional unlocking methods mainly rely on mechanical keys and fixed digital passwords. The former depends on physical keys, and the latter requires users to remember specific digital combinations. With the progress of technology, intelligent verification methods such as fingerprint recognition and radio frequency cards have gradually been applied, improving convenience. However, current technologies are still limited to static verification modes (such as fixed passwords or single biometric recognition), and there are security risks such as password leakage and brute force cracking. In addition, the problem that users such as the elderly or children have difficulty remembering complex passwords has not been solved for a long time, affecting the scope of application of the electronic device to be unlocked.

[0003] The current method of using password verification to unlock electronic devices has significant limitations: First, the static password mode (such as a fixed digital sequence or a preset pattern) is easily peeked, guessed or cracked through trace residues, and the security is insufficient; Second, existing dynamic verification schemes are mostly limited to the switching of a single mode and lack a multi-dimensional dynamic fusion mechanism, making it difficult to resist high-level attacks; Third, the user interaction design is rigid, and special users need to rely on external auxiliary tools or frequently reset passwords, resulting in complex operations and poor experience. These problems directly affect the security and user-friendliness of the electronic device to be unlocked. Summary of the Invention

[0004] In view of this, embodiments of the present invention provide a method, device, computer device and medium for password verification and unlocking of electronic devices to solve the problems of low security of the traditional electronic device to be unlocked due to the static password mode, difficulty for special users to remember complex passwords, and weak anti-attack ability and poor user experience caused by a single dynamic verification mechanism.

[0005] In a first aspect, an embodiment of the present invention provides a method for password verification and unlocking of an electronic device, the method comprising:

[0006] Detect an unlocking operation on the display screen of the electronic device to be unlocked;

[0007] According to the unlocking operation, display a password verification interface on the display screen, wherein the password verification interface can be randomly switched to multiple password modes;

[0008] Obtain the dynamic password trajectory input on the password verification interface, and determine the contact interaction information and path information based on the dynamic password trajectory;

[0009] Verify the contact interaction information and the path information based on the dynamic restriction conditions corresponding to the current password mode to obtain a verification result, and control the electronic device to be unlocked to perform an unlocking operation according to the verification result.

[0010] Further, before detecting an unlocking operation on the display screen of the electronic device to be unlocked, the method further includes:

[0011] Detect a password setting operation on the display screen of the electronic device to be unlocked;

[0012] Determine a corresponding preset password mode according to the password setting operation, and display a password configuration interface of the preset password mode on the display screen;

[0013] Obtain a contact verification rule and a path verification rule input by a user in the password configuration interface, where the contact verification rule includes a preset start element, a preset end element, and a preset time threshold, and the path verification rule includes a preset direction and a number-of-turns setting mode;

[0014] Integrate the contact verification rule and the path verification rule to obtain dynamic restriction conditions corresponding to the preset password mode.

[0015] Further, the determining the contact interaction information and the path information based on the dynamic password trajectory includes:

[0016] When the dynamic password trajectory is in a continuous state, extract a first coordinate position of a start contact in the dynamic password trajectory, and match a corresponding start element in the password verification interface according to the first coordinate position;

[0017] Extract a second coordinate position of an end contact in the dynamic password trajectory, and match a corresponding end element in the password verification interface according to the second coordinate position;

[0018] Record a residence time of the start contact and the end contact, and construct contact interaction information based on the start element, the end element, and the residence time;

[0019] Identify a sliding direction and an actual number of turns of the dynamic password trajectory, and construct path information based on the sliding direction and the actual number of turns.

[0020] Further, the verifying the contact interaction information and the path information based on the dynamic restriction conditions corresponding to the current password mode to obtain a verification result includes:

[0021] Obtain the current password mode corresponding to the password verification interface;

[0022] Query the contact verification rule and path verification rule corresponding to the dynamic limit condition of the current password mode;

[0023] Verify the contact interaction information based on the contact verification rule to obtain a first verification result, and verify the path information based on the path verification rule to obtain a second verification result;

[0024] Determine the verification result according to the first verification result and the second verification result.

[0025] Further, the verifying the contact interaction information based on the contact verification rule to obtain a first verification result includes:

[0026] Match the starting element and the ending element in the contact interaction information with the preset starting element and the preset ending element in the contact verification rule respectively to obtain a matching result;

[0027] If the matching result is a successful match, detect whether the residence time in the contact interaction information reaches the preset time threshold in the contact verification rule;

[0028] When the preset time threshold is reached, determine that the first verification result is a successful verification.

[0029] Further, the verifying the path information based on the path verification rule to obtain a second verification result includes:

[0030] Detect whether the sliding direction in the path information is consistent with the preset direction in the path verification rule;

[0031] If the sliding direction is consistent with the preset direction, identify the number of turns setting mode in the path verification rule;

[0032] Verify the actual number of turns in the path information according to the number of turns setting mode to obtain a verification result.

[0033] Further, the verifying the actual number of turns in the path information according to the number of turns setting mode to obtain a verification result includes:

[0034] If the number of turns setting mode is a time-related mode, determine the corresponding target number of turns according to the current time, and compare the actual number of turns with the target number of turns. When the actual number of turns is consistent with the target number of turns, determine that the verification result is a successful verification;

[0035] If the number of turns setting mode is a fixed mode, verify whether the actual number of turns is equal to the preset fixed number of turns in the path verification rule. When the actual number of turns is equal to the preset fixed number of turns, determine that the verification result is a successful verification;

[0036] If the number of turns setting mode is the disabled mode, detect whether the path information is in a continuous state. When the path information is in a continuous state, determine that the verification result is a successful verification.

[0037] In a second aspect, an embodiment of the present invention provides an electronic device password verification and unlocking device, and the device includes:

[0038] A detection module, configured to detect an unlocking operation on a display screen of an electronic device to be unlocked;

[0039] A display module, configured to display a password verification interface on the display screen according to the unlocking operation, where the password verification interface can be randomly switched to multiple password modes;

[0040] An acquisition module, configured to acquire a dynamic password trajectory input in the password verification interface, and determine contact interaction information and path information based on the dynamic password trajectory;

[0041] A verification module, configured to verify the contact interaction information and the path information based on dynamic limit conditions corresponding to the current password mode, obtain a verification result, and control the electronic device to be unlocked to perform an unlocking operation according to the verification result.

[0042] In a third aspect, an embodiment of the present invention provides a computer device, including: a memory and a processor, the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the computer instructions to execute the method according to the first aspect or any corresponding embodiment thereof.

[0043] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which computer instructions are stored, and the computer instructions are used to cause a computer to execute the method according to the first aspect or any corresponding embodiment thereof.

[0044] The method provided by the embodiments of the present application has the following beneficial effects:

[0045] The method provided by the embodiments of the present application establishes an immediate association between the user's intention and the verification process by detecting the unlocking operation on the display screen in real time, avoiding invalid power consumption and preventing exploratory triggers by unauthorized users, and providing an accurate interaction starting point for the subsequent verification link; by randomly switching the password verification interface among multiple modes such as numbers, patterns, and custom emojis, it breaks the fixed input logic of traditional static passwords, makes the presentation form of the password for each verification change dynamically, significantly improves the defense capabilities against side-view attacks and brute-force cracking, and at the same time reduces the memory threshold for special user groups through diverse interaction methods; by multi-dimensionally collecting and analyzing the touch point interaction information and path information of the dynamic password trajectory, a stealth verification layer based on the user's biological behavior characteristics is constructed. Even if the password content is stolen, it is still difficult for attackers to reproduce the complete dynamic behavior characteristics, thereby effectively resisting replay attacks and trajectory simulation attacks; through the real-time matching and adaptive adjustment of the verification information by dynamic limiting conditions (such as mode-specific touch pressure thresholds, path complexity rules, input time windows), an intelligent risk control mechanism of "one mode, one strategy" is realized. It can automatically strengthen the verification conditions in high-risk scenarios (such as switching to a high-security mode when encountering continuous incorrect attempts), and can also simplify the operation process for special users (such as reducing the path accuracy requirements when the elderly use the emoji mode), achieving a dynamic balance between the security protection intensity and the user operation friendliness, and solving the systematic defects of traditional electronic devices to be unlocked in terms of universality, anti-attack capabilities, and human-computer interaction experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the drawings required for use in the description of the specific embodiments or the prior art. Obviously, the drawings in the following description are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0047] Figure 1 is a flowchart of the method for password verification and unlocking of an electronic device according to an embodiment of the present invention;

[0048] Figure 2 is a structural diagram of an electronic device based on pattern control according to an embodiment of the present invention;

[0049] Figure 3 is a flowchart of the unlocking mechanism on an electronic device according to an embodiment of the present invention;

[0050] Figure 4 is a block diagram of the structure of a password verification and unlocking device for an electronic device according to an embodiment of the present invention;

[0051] Figure 5 is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. Specific Embodiments

[0052] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Apparently, the described embodiments are some but not all of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.

[0053] According to the embodiments of the present invention, there are provided an electronic device password verification and unlocking method, apparatus, computer device, and medium taking an electronic device to be unlocked as an example. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions. And although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order than here.

[0054] In this embodiment, an electronic device password verification and unlocking method is provided. Figure 1 It is a flowchart of the electronic device password verification and unlocking method according to the embodiments of the present invention. As Figure 1 shown, the process includes the following steps:

[0055] Step S11, detect an unlocking operation on the display screen of the electronic device to be unlocked.

[0056] It should be noted that Figure 2 What is shown is an electronic device to be unlocked based on pattern control, and its password verification method is applicable to this electronic device to be unlocked. The structure of this electronic device to be unlocked includes a display screen 1, a USB power interface 2, a handle 3, a keyhole 4, and a door 5 of the electronic device box to be unlocked. The specific connection method is as follows: The display screen 1 is embedded in the protective case in an interference fit manner through internal grooving, and is closely connected to the surface of the protective case; The USB power interface 2 is also embedded in the lower side of the display screen 1 in an interference fit manner through internal grooving, and is closely attached to the surface of the protective case; The handle 3 is connected to the protective case by means of a fixing nut; The keyhole 4 is connected to the protective case in an interference fit manner, located at the bottom directly below the handle 3, and is closely connected to the surface of the protective case.

[0057] In the embodiments of the present application, detecting the unlocking operation on the display screen of the electronic device to be unlocked is the initial trigger mechanism of the password verification process. The core lies in real-time sensing of the user's interaction intention through multimodal sensors (such as capacitive touch layer, pressure sensing module) built into the display screen. When the user's finger touches the screen surface, the touch sensor captures the contact coordinates and the initial pressure value. If the pressure value exceeds the preset threshold (such as 50 g-force) and the contact point is located in the effective interaction area (such as the digital / pattern drawing area), it is determined that an effective unlocking operation is triggered. The system filters out short-term false touches (such as clothing scraping) through a debounce algorithm, and at the same time combines the low-power monitoring technology in the screen sleep state to ensure that the verification process is only awakened during real user operations. This step also integrates security protection logic: if continuous invalid triggers are detected (such as 5 non-verification operations within 30 seconds), the screen will be automatically locked and an alarm will be triggered. By accurately distinguishing normal operations from abnormal interferences, it provides a reliable interaction starting point for subsequent dynamic password verification and constructs the first line of security defense.

[0058] In the embodiments of the present application, before detecting the unlocking operation on the display screen of the electronic device to be unlocked, the method further includes the following steps A1 - A4:

[0059] Step A1, detecting the password setting operation on the display screen of the electronic device to be unlocked.

[0060] Specifically, through the cooperation of the touch sensor of the display screen and the permission verification module, the password setting operation initiated by the administrator is detected. The administrator needs to complete identity authentication through fingerprint recognition (located in the central area of the electronic screen) or inserting a mechanical key. After activating the administrator mode, the system will continuously monitor the long-press operation (such as continuous pressing ≥ 2 seconds) or specific gestures (such as three-finger swipe down) in the touch area as the password setting entry signal. This step integrates an anti-misoperation mechanism: if the identity authentication fails, even if the setting operation is triggered (such as accidentally touching the screen), the system will block the interface response and record an abnormal log; if the permission verification passes, an instruction will be sent to the main control module to start the password configuration process. This step ensures the permission isolation of password setting and prevents unauthorized users from tampering with security rules.

[0061] Step A2, determining the corresponding preset password mode according to the password setting operation, and displaying the password configuration interface of the preset password mode on the display screen.

[0062] Specifically, based on the operation type triggered by the administrator (such as selecting the number, pattern, or emoji mode), the corresponding password configuration interface is dynamically loaded. For example, if the administrator selects the "Number + Time Association" mode, the interface will display a numeric keypad and a time parameter configuration panel (such as the lap count calculation rule, operation time period limit); if the "Custom Emoji" mode is selected, it will switch to the emoji library selection panel and the path complexity setting option. The interface design adopts a hierarchical guidance strategy: the first layer is for password type selection, the second layer is for dynamic rule configuration (such as press duration, rotation direction), and the last layer provides a real-time preview function (such as simulated trajectory drawing feedback). Through visual highlighting and voice prompts (such as "Please set the starting element"), the administrator is guided to complete the rule definition step by step, reducing the configuration error rate.

[0063] Step A3: Obtain the touchpoint verification rule and the path verification rule entered by the user in the password configuration interface. Among them, the touchpoint verification rule includes a preset starting element, a preset ending element, and a preset time threshold, and the path verification rule includes a preset direction and a lap count setting mode.

[0064] Specifically, by analyzing the input behavior of the administrator in the password configuration interface, two types of core rules are extracted:

[0065] Touchpoint verification rule: It includes a preset starting element (such as the number 1, emoji smiley face) and an ending element (such as the number 3, emoji crying face), as well as a press time threshold (such as both the starting and ending points need to be ≥3 seconds). The system matches the screen touchpoint position with the interface element coordinate library through a touch coordinate mapping algorithm to determine the logical binding relationship of the starting / ending elements.

[0066] Path verification rule: It includes a preset sliding direction (clockwise / counterclockwise) and a lap count setting mode (time association, fixed lap count, disabled lap count). For example, when the "Time Association Mode" is selected, the system converts the current time (such as 15:33) into the target lap count (15 laps) and compares it with the actual lap count of the path trajectory; when the "Disabled Mode" is selected, only the path continuity is verified, and the intermediate lap counts are ignored. The rule data is temporarily stored in the buffer in a structured format (such as JSON) for subsequent integration use.

[0067] Step A4: Integrate the touchpoint verification rule and the path verification rule to obtain the dynamic restriction conditions corresponding to the preset password mode.

[0068] Specifically, the extracted contact verification rules and path verification rules are fused in multiple dimensions to generate an encrypted dynamic restriction condition template. Specifically, it includes: associating the start element, end element with the time threshold to construct the spatio-temporal constraint condition of contact interaction (such as "press the start smiling face for 3 seconds → path sliding → press the end crying face for 3 seconds"); differentiating and encapsulating the rules according to the password mode type (number / pattern / expression). For example, the number mode needs to be additionally bound with a time calculation algorithm (such as mapping the hour value to the number of circles), while the expression mode needs to load a custom expression coordinate library; the integrated rule data is encrypted using an asymmetric encryption algorithm (such as RSA-2048) to generate a digital fingerprint, which is stored in the embedded security chip of the electronic device to be unlocked to prevent rule leakage caused by physical disassembly. The finally generated dynamic restriction condition will be used as the core criterion for the subsequent verification process to achieve personalized security protection of "one password, one strategy".

[0069] Step S12, display the password verification interface on the display screen according to the unlocking operation, where the password verification interface can be randomly switched to multiple password modes.

[0070] In the embodiment of the present application, after detecting an effective unlocking operation, based on a preset algorithm (such as a timestamp hash value or environmental sensor data), randomly select the current verification interface type from the three modes of numbers, patterns, and custom expressions (for example: trigger the number mode at 8 am and switch to the expression mode at 8 pm), and at the same time reset the layout of the interface elements (such as randomly swapping the key positions of the numeric keypad and dynamically adjusting the display order of the pattern library). The interface switching process adopts an anti-peeping design: at the moment when the screen is awakened, it is covered with full-screen noise for transition to prevent bystanders from inferring the password mode through the screen afterimage; for each mode, an independent coordinate mapping table is loaded (such as using a nine-square grid coordinate system for the number mode and a polar coordinate system for the expression mode) to ensure logical isolation of the contact positions between different modes. In addition, the interface randomization and dynamic restriction conditions (such as time-associated number of circles) are intelligently linked. For example, in the time calculation number of circles mode, if the current time is 15:33, the system preferentially selects the number mode to adapt to the number of circles mapping rule, while disabling the display logic conflict of the expression mode. Through the coordinated action of the dynamic interface and dynamic rules, both the unpredictability of password input (defending against peeping attacks) and the compatibility of the verification conditions with the user's preset rules (such as automatically disabling the time-associated number of circles function in the expression mode) are achieved, achieving the unity of security and operation logic.

[0071] Step S13, obtain the dynamic password trajectory input on the password verification interface, and determine the contact interaction information and path information based on the dynamic password trajectory.

[0072] In the embodiment of the present application, the coordinate sequence of the dynamic password trajectory is collected in real time through a touch sensor (sampling frequency ≥ 100Hz), and the sliding window algorithm is used to detect the trajectory continuity (for example, if the standard deviation of the coordinate point displacement within 500ms is < 5 pixels, it is regarded as a stable contact point). When it is determined to be a continuous slide, the following data processing process is triggered: First, in combination with the dynamic layout of the current interface (such as the random arrangement of the number / pattern / expression matrix), a database of touch hot zone ranges is established. The touch area of each element extends 20% of the actual display area (for example, if the display area of the number "1" is 50×50 pixels, then the touch hot zone is 60×60 pixels), and the edge compensation algorithm is used to avoid matching failures caused by user operation errors. Second, the Kalman filter algorithm is used to eliminate the noise of the touch signal and smooth the trajectory coordinate sequence, especially for the coordinate jitter generated by fast sliding (such as dense sampling of more than 30 coordinate points per second). Finally, the user's sliding speed curve is recorded (such as accelerating in the starting stage, moving at a constant speed in the middle, and decelerating at the end), and a personalized operation feature template is established. When an abnormal behavior is detected (such as moving at a constant speed throughout the process, with a deviation from the preset model > 30%), an anti-robot verification mechanism is triggered (such as popping up a random verification code). In addition, sensitive data such as contact coordinates and timestamps are encrypted in real time using AES-256 during transmission, and the hash chain technology is used to associate the previous and subsequent operation records when storing (such as embedding the hash value of this trajectory into the packet header of the next operation data) to prevent data tampering.

[0073] In the embodiment of the present application, the contact interaction information and path information are determined based on the dynamic password trajectory, including the following steps B1 - B4:

[0074] Step B1, when the dynamic password trajectory is in a continuous state, extract the first coordinate position of the starting contact point in the dynamic password trajectory, and match the corresponding starting element in the password verification interface according to the first coordinate position.

[0075] Specifically, when it is detected that the dynamic password trajectory input by the user on the electronic screen is in a continuous sliding state (without an interruption operation of lifting the finger midway), first capture the accurate coordinates of the starting point of the trajectory through the touch sensor, such as pixel coordinates . This coordinate is mapped to the element layout grid of the current password verification interface (such as the matrix arrangement of numbers, patterns, or expressions), and the starting element is determined through the coordinate range matching algorithm. For example, if the interface is a digital panel and the starting coordinate falls within the touch hot zone range of the number "1", the system determines that the starting element is "1". This process needs to combine the dynamic randomization characteristics of the interface elements (full number / pattern / expression mode) to ensure the real-time accuracy of the coordinate - element mapping.

[0076] Step B2, extract the second coordinate position of the ending contact point in the dynamic password trajectory, and match the corresponding ending element in the password verification interface according to the second coordinate position.

[0077] Specifically, after the user finishes sliding, the coordinates of the end point of the track are extracted in the same way , and matches the corresponding end element according to the current interface mode. For example, if the end coordinate is within the touch area of ​​the number "3", the end element is marked as "3". To ensure the reliability of end point recognition, an anti-shake algorithm is used to filter the coordinate offset caused by sliding inertia (such as the slight displacement when the finger is lifted), and only the final coordinate when it stays steadily is retained. If the user does not explicitly stay and quickly moves out of the edge of the interface, it is considered invalid input and triggers an error prompt.

[0078] Step B3, recording the dwell time of the start touch point and the end touch point, and constructing touch interaction information based on the start element, the end element and the dwell time.

[0079] Specifically, a high-precision timer is used to record the duration of the press of the start contact and the end contact (such as the time from the contact coordinates being stable to the start of sliding). , and the time from when the endpoint coordinates stabilize to when the finger is lifted ) and compare it with the preset time threshold (such as 3 seconds). The contact interaction information consists of a triple of the starting element, the ending element, and the dwell time of the two (such as ). If the dwell time of any touch point does not reach the threshold, a touch point verification failure flag is generated. This mechanism can prevent simple sliding cracking and force users to perform delayed operations with clear intentions at the start and end points.

[0080] Step B4, identifying the sliding direction and actual number of turns of the dynamic password track, and constructing path information based on the sliding direction and the actual number of turns.

[0081] Specifically, by analyzing the coordinate sequence of the dynamic password trajectory, the vector angle accumulation algorithm is used to identify the sliding direction (clockwise / counterclockwise). For example, the coordinate increment of continuous lower right movement is judged to be clockwise. The actual number of laps is calculated based on the number of closed loops of the trajectory: each complete pass through the position of the starting element is counted as 1 lap (such as starting from the number 1 and rotating 360° around the center of the interface and passing through 1 again). If the administrator enables the time-related lap mode, the actual number of laps is compared with the current time (such as 8 laps corresponding to 8 o'clock); if the intermediate lap mode is enabled, only the path continuity (no hand-raising interruption) is verified and the actual number of laps is ignored. The path information is ultimately encoded as structured data of (direction, actual number of laps) or (direction, continuity status) for subsequent verification logic calls.

[0082] Step S14, verifying the contact interaction information and the path information based on the dynamic restriction conditions corresponding to the current password mode, obtaining a verification result, and controlling the electronic device to be unlocked to perform an unlocking operation according to the verification result.

[0083] It should be noted that ifFigure 3 As shown, the unlocking mechanism on the electronic device to be unlocked is as follows: the display screen randomly displays numbers, patterns, or custom emojis, and matches the displayed content with the input conditions. If the matching degree reaches 100%, the verification is successful, and then the unlocking operation is executed; if the matching degree is lower than 100%, the verification fails, and the unlocking operation is refused and needs to be tried again later.

[0084] In the embodiment of the present application, step S14 includes the following steps C1-C4:

[0085] Step C1, obtain the current password mode corresponding to the password verification interface.

[0086] Specifically, first identify the type of the currently activated password verification interface on the display screen (all-numeric, all-pattern, or all-custom emoji mode), which is generated by a dynamic randomization algorithm and associated with a preset password mode. For example, if the password type set by the administrator is a numeric combination (such as 1→3), and the current interface randomly displays an all-numeric panel, it is determined that the current password mode is a numeric verification mode; if the interface displays all emoji symbols, it is necessary to check whether the preset password is compatible with the emoji mode (such as setting double verification of numbers + emojis at the same time). The matching of the password mode needs to combine the preset password element type (number / pattern / emoji) of the user with the dynamic mapping relationship of the current interface elements to ensure that even if the interface randomly switches, the corresponding verification rule library can still be correctly called. If the interface mode conflicts with the preset password type (such as the preset is a pattern password but the current display is a numeric interface), an error prompt will be triggered and the screen needs to be woken up again.

[0087] Step C2, query the contact verification rule and the path verification rule corresponding to the current password mode for dynamic limit conditions.

[0088] Specifically, based on the determined current password mode, query the corresponding contact verification rule and path verification rule from the encrypted storage configuration file. The contact verification rule includes the preset start element (such as the number 1), the end element (such as the number 3), and the start and end point pressing time threshold (such as 3 seconds); the path verification rule covers the preset sliding direction (clockwise / counterclockwise) and the number of turns setting mode (time-related / fixed / disabled). For example, if the current is a numeric mode and the number of turns setting mode is time-related, the target number of turns (such as 8 turns corresponding to the current time 8 o'clock) will be dynamically calculated. During the rule retrieval process, it is necessary to process multi-condition combination logic: if the administrator enables both not calculating the intermediate number of turns and the time-related number of turns at the same time, the time-related rule will be preferentially executed, and the actual number of turns will be forced to match the time, and not calculating the intermediate number of turns only serves as an additional condition for the path continuity (it is necessary to slide without interruption). All rules are stored in an encrypted data structure to prevent external tampering, and the security of the query process is guaranteed by a hardware security module.

[0089] Step C3: Verify the contact interaction information based on the contact verification rule to obtain a first verification result, and verify the path information based on the path verification rule to obtain a second verification result.

[0090] In the embodiment of the present application, verifying the contact interaction information based on the contact verification rule to obtain a first verification result includes the following steps C31 - C33:

[0091] Step C31: Match the start element and the end element in the contact interaction information with the preset start element and the preset end element in the contact verification rule respectively to obtain a matching result.

[0092] Specifically, accurately compare the start element (such as the number 1) and the end element (such as the number 3) in the contact interaction information input by the user with the contact verification rule preset by the administrator. Through the touch coordinate mapping algorithm, the system maps the start point coordinates and the end point coordinates of the dynamic password trajectory to the element distribution matrix of the current password verification interface respectively to determine the actually triggered element identifier. For example, if the interface is a numeric panel, the system determines the start element as the number 1 and the end element as the number 3 through coordinate range matching. A tolerance mechanism (such as ±5 pixel offset compensation) is adopted during the matching process to accommodate user operation errors, but the absolute consistency of the element identifier needs to be ensured. If the start or end element does not match the preset (such as accidentally touching the adjacent number 2), the matching fails directly.

[0093] Step C32: If the matching result is successful, detect whether the dwell time in the contact interaction information reaches the preset time threshold in the contact verification rule.

[0094] Specifically, after the element matching is successful, call the high-precision timing module to check whether the press dwell time of the start contact and the end contact reaches the preset threshold (such as 3 seconds). The start time is calculated from the time when the contact coordinates are stable (such as no displacement for 50 ms) until the start of the sliding trajectory; the end time is calculated from the time when the coordinates at the end of the trajectory are stable until the finger leaves the screen. The time data is recorded with millisecond-level precision (such as , ), and compared with the preset threshold for a greater than or equal relationship. If the dwell time of any contact is insufficient (such as ), it is determined that the contact verification fails. This mechanism resists brute-force sliding cracking through forced delay operations and combines an anti-jitter algorithm to filter out short-term accidental touches (such as a finger lightly swiping over the start point).

[0095] Step C33: When the preset time threshold is reached, determine that the first verification result is successful verification.

[0096] Specifically, when and only when the start / end elements are exactly matched and the residence times all meet the thresholds, the first verification result is generated as "success". For example, when the user input matches the preset rule , the contact verification passes. If any condition is not met (such as incorrect elements or insufficient time), it is marked as "failed" and the error type is recorded (element mismatch E1, insufficient time E2). The verification result is temporarily stored in an encrypted state for subsequent comprehensive judgment logic to call, and at the same time, a voice prompt (such as "start point verification failed") is triggered to assist the user in correcting the operation.

[0097] In the embodiments of the present application, the path information is verified based on the path verification rule to obtain the second verification result, including the following steps C34 - C36:

[0098] Step C34, detect whether the sliding direction in the path information is consistent with the preset direction in the path verification rule.

[0099] Specifically, the sliding direction is analyzed through the trajectory coordinate sequence, and the vector angle accumulation method is used to determine whether the direction conforms to the preset rule (clockwise / counterclockwise). The continuous trajectory points are converted into displacement vectors, and the total change in the angle between adjacent vectors is calculated: when sliding clockwise, the angle accumulation value approaches × number of turns, and when counterclockwise, it approaches - × number of turns. For example, when the preset direction is clockwise, if the actual trajectory analysis result is counterclockwise, the path verification is directly determined to fail. The direction verification tolerance is , to avoid misjudgment caused by slight operation deviations. This process combines the inertial sliding compensation algorithm to exclude the trajectory drift interference before the finger is lifted.

[0100] Step C35, if the sliding direction is consistent with the preset direction, identify the number of turns setting mode in the path verification rule.

[0101] Specifically, after the direction verification passes, according to the path verification rule configured by the administrator, identify the current number of turns setting mode (time-related / fixed / disabled). For example, if the rule is "calculate the number of turns by time", enter the time-related mode; if it is "do not calculate the intermediate number of turns", enter the disabled mode. Extract the mode identifier and associated parameters (such as fixed number of turns 5 turns, time-turns conversion formula) from the encrypted configuration file. When multiple modes coexist (such as enabling both time-related and disabling intermediate turns at the same time), they are processed according to the preset priority: the time-related mode requires the number of turns to match, and the disabled mode is only used as an additional condition for path continuity.

[0102] Step C36, verify the actual number of turns in the path information according to the number of turns setting mode to obtain the verification result.

[0103] In the embodiment of the present application, step C36 includes the following steps: If the lap number setting mode is the time-correlated mode, determine the corresponding target lap number according to the current time, and compare the actual lap number with the target lap number. When the actual lap number is consistent with the target lap number, determine that the verification result is verification successful; if the lap number setting mode is the fixed mode, verify whether the actual lap number is equal to the preset fixed lap number in the path verification rule. When the actual lap number is equal to the preset fixed lap number, determine that the verification result is verification successful; if the lap number setting mode is the disabled mode, detect whether the path information is in a continuous state. When the path information is in a continuous state, determine that the verification result is verification successful.

[0104] Specifically, perform differential verification according to the lap number setting mode:

[0105] Time-correlated mode: Analyze the current time (such as 8:15), calculate the target lap number of 8 laps according to a preset algorithm (such as taking the hour number 8), and compare the actual lap number (through trajectory loop counting). If the actual lap number = 8, the verification passes. Fixed mode: Directly compare the actual lap number with the preset fixed value (such as 5 laps) for strict equal value matching. Disabled mode: Ignore the actual lap number and only detect the path continuity (no interruption of the trajectory). For example, if the user rotates any number of laps from the smiling face emoji and stops at the crying face emoji, as long as the path is continuous, it passes. During the verification process, the lap number counting adopts a closed-loop detection algorithm: Each complete revolution around the center of the interface (passing through the starting element coordinates) is counted as 1 lap. If the deviation of the actual lap number exceeds laps (such as 8 preset laps but actually 7.3 laps), it is determined that the lap number does not match. The verification result is logically ANDed with the direction verification result to finally generate the second verification result.

[0106] Step C4, determine the verification result according to the first verification result and the second verification result.

[0107] Specifically, a logical "AND" operation is performed on the first verification result of the contact interaction information (such as element matching and time compliance) and the second verification result of the path information (such as direction and number of turns compliance) to generate the final verification result. If both are successful (such as the contact verification passes and the number of turns complies with the time association rule), it is determined that the overall verification is successful, triggering the electronic lock to release the mechanical lock catch and giving a voice prompt of "door opening successful"; if any verification fails (such as incorrect element matching or inconsistent sliding direction), it is determined that the verification fails, and the security locking mechanism is activated (the screen is locked for 3 seconds) and a voice alarm is given. This process realizes atomic operation through an encrypted state machine to ensure that the verification result cannot be tampered with. For example, if the user input conforms to the contact rule (1→3, stay for 3 seconds) but the number of turns is insufficient (actual 7 turns ≠ 8 turns associated with time), the second verification will be marked as failed, and the final result will be failed. For multi-condition combination scenarios (such as enabling time turns and not counting intermediate turns simultaneously), dual satisfaction is required: mandatory verification of time-associated turns, and path continuity as an additional condition. The verification result is written into the log in an encrypted form and logically superimposed with biometrics (optional fingerprint) to achieve multi-level security protection.

[0108] In an embodiment of the present application, a method for dynamically calibrating the behavioral entropy value is further provided. The method includes: continuously analyzing the user's historical operation data (such as sliding speed distribution, pressing force curve) through a machine learning model to construct a personalized behavioral entropy value model. Dynamically adjusting the verification strictness according to the deviation degree between the real-time operation and the entropy value model: low-risk scenario (entropy value deviation ≤ 15%): allowing the path verification tolerance to be expanded by 20% to be compatible with the user operation fluctuations; high-risk scenario (entropy value deviation > 30%): forcibly enabling enhanced verification (such as fingerprint + path two-factor authentication), and shortening the verification timeout threshold to 5 seconds. The model is updated using the federated learning framework to ensure that the user's private data does not leave the local device.

[0109] In an embodiment of the present application, a spatio-temporal folding algorithm can also be introduced in the path information encoding stage to map the actual sliding trajectory to a virtual spatio-temporal coordinate system: generating a dynamic coordinate transformation matrix based on fractal geometry to non-linearly associate the physical screen coordinates with the logical verification coordinates (such as mapping the actual sliding straight line to a spiral path); using the operation timestamp to generate a chaotic sequence to dynamically stretch and encrypt the time interval of the trajectory points. This algorithm makes the intercepted original trajectory data unable to be reverse-analyzed. Even if the physical sensor is wiretapped, the attacker can only obtain the encrypted invalid noise data.

[0110] In this embodiment, an electronic device password verification and unlocking device is further provided. This device is used to implement the above-mentioned embodiment and preferred implementation manners, and those that have been described will not be repeated. As used hereinafter, the term "module" can be a combination of software and / or hardware that realizes a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware is also possible and contemplated.

[0111] This embodiment provides an electronic device password verification and unlocking device, as Figure 4 shown, including:

[0112] A detection module 41, configured to detect an unlocking operation on the display screen of the electronic device to be unlocked;

[0113] A display module 42, which displays a password verification interface on the display screen according to the unlocking operation. Among them, the password verification interface can be randomly switched to multiple password modes;

[0114] An acquisition module 43, configured to acquire the dynamic password trajectory input on the password verification interface, and determine contact interaction information and path information based on the dynamic password trajectory;

[0115] A verification module 44, configured to verify the contact interaction information and path information based on the dynamic restriction conditions corresponding to the current password mode, obtain a verification result, and control the electronic device to be unlocked to perform an unlocking operation according to the verification result.

[0116] Furthermore, the device further includes: a configuration module, configured to detect a password setting operation on the display screen of the electronic device to be unlocked; determine a corresponding preset password mode according to the password setting operation, and display the password configuration interface of the preset password mode on the display screen; acquire the contact verification rule and path verification rule input by the user on the password configuration interface, where the contact verification rule includes a preset starting element, a preset ending element, and a preset time threshold, and the path verification rule includes a preset direction and a loop number setting mode; integrate the contact verification rule and the path verification rule to obtain the dynamic restriction conditions corresponding to the preset password mode.

[0117] Furthermore, the acquisition module 43 is configured to, when the dynamic password trajectory is in a continuous state, extract the first coordinate position of the starting contact in the dynamic password trajectory, and match the corresponding starting element in the password verification interface according to the first coordinate position; extract the second coordinate position of the ending contact in the dynamic password trajectory, and match the corresponding ending element in the password verification interface according to the second coordinate position; record the residence time of the starting contact and the ending contact, and construct contact interaction information based on the starting element, the ending element, and the residence time; identify the sliding direction and the actual number of loops of the dynamic password trajectory, and construct path information based on the sliding direction and the actual number of loops.

[0118] Further, a verification module 44 is configured to obtain the current password mode corresponding to the password verification interface; query the contact verification rule and the path verification rule of the dynamic restriction condition corresponding to the current password mode; verify the contact interaction information based on the contact verification rule to obtain a first verification result, verify the path information based on the path verification rule to obtain a second verification result; and determine the verification result according to the first verification result and the second verification result.

[0119] Further, the verification module 44 includes a matching unit and an identification unit;

[0120] The matching unit is configured to respectively match the starting element and the ending element in the contact interaction information with the preset starting element and the preset ending element in the contact verification rule to obtain a matching result; if the matching result is successful, detect whether the residence time in the contact interaction information reaches the preset time threshold in the contact verification rule; when the preset time threshold is reached, determine that the first verification result is successful verification.

[0121] The identification unit is configured to detect whether the sliding direction in the path information is consistent with the preset direction in the path verification rule; if the sliding direction is consistent with the preset direction, identify the number-of-turns setting mode in the path verification rule; verify the actual number of turns in the path information according to the number-of-turns setting mode to obtain a verification result.

[0122] Further, the identification unit further includes a first determination sub-module, a second determination sub-module, and a third determination sub-module;

[0123] The first determination sub-module is configured to, if the number-of-turns setting mode is the time correlation mode, determine the corresponding target number of turns according to the current time, and compare the actual number of turns with the target number of turns. When the actual number of turns is consistent with the target number of turns, determine that the verification result is successful verification;

[0124] The second determination sub-module is configured to, if the number-of-turns setting mode is the fixed mode, verify whether the actual number of turns is equal to the preset fixed number of turns in the path verification rule. When the actual number of turns is equal to the preset fixed number of turns, determine that the verification result is successful verification;

[0125] The third determination sub-module is configured to, if the number-of-turns setting mode is the disabled mode, detect whether the path information is in a continuous state. When the path information is in a continuous state, determine that the verification result is successful verification.

[0126] Please refer to Figure 5 , Figure 5 which is a schematic structural diagram of a computer device provided by an alternative embodiment of the present invention, as Figure 5As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including a high-speed interface and a low-speed interface. Each component communicates with each other using different buses and can be installed on a common motherboard or in other ways as needed. The processor can process instructions executed within the computer device, including instructions stored in the memory or on the memory to display graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In some alternative embodiments, if needed, multiple processors and / or multiple buses can be used together with multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a set of blade servers, or a multi-processor system).

[0127] The processor 10 can be a central processing unit, a network processor, or a combination thereof. Among them, the processor 10 can further include a hardware chip. The above hardware chip can be an application-specific integrated circuit, a programmable logic device, or a combination thereof. The above programmable logic device can be a complex programmable logic device, a field-programmable gate array, a generic array logic, or any combination thereof.

[0128] Among them, the memory 20 stores instructions executable by at least one processor 10, so that at least one processor 10 executes the method shown in the above embodiments.

[0129] The memory 20 can include a program storage area and a data storage area. Among them, the program storage area can store an operating system and application programs required for at least one function; the data storage area can store data created according to the use of the computer device presented by a kind of landing page of a small program, etc. In addition, the memory 20 can include high-speed random access memory and can also include non-transitory memory, such as at least one magnetic disk storage device, a flash memory device, or other non-transitory solid-state storage devices. In some alternative embodiments, the memory 20 can optionally include a memory remotely set relative to the processor 10, and these remote memories can be connected to the computer device through a network. Examples of the above network include but are not limited to the Internet, an enterprise intranet, a local area network, a mobile communication network, and a combination thereof.

[0130] The memory 20 can include volatile memory, such as random access memory; the memory can also include non-volatile memory, such as flash memory, a hard disk, or a solid-state drive; the memory 20 can also include a combination of the above types of memory.

[0131] The computer device further includes a communication interface 30 for the computer device to communicate with other devices or a communication network.

[0132] Embodiments of the present invention also provide a computer-readable storage medium. The methods according to the embodiments of the present invention can be implemented in hardware, firmware, or be implemented as computer code that can be recorded on a storage medium, or be implemented by downloading over a network and originally stored in a remote storage medium or a non-transitory machine-readable storage medium and to be stored in a local storage medium, so that the methods described herein can be stored as such software processes on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only memory, a random access memory, a flash memory, a hard disk, or a solid-state drive, etc.; further, the storage medium can also include a combination of the above-mentioned types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code, and when the software or computer code is accessed and executed by the computer, the processor, or the hardware, the methods shown in the above embodiments are implemented.

[0133] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations all fall within the scope defined by the appended claims.

Claims

1. An electronic device password verification and unlocking method, characterized in that, The method includes: Detecting an unlocking operation for the display screen on the electronic device to be unlocked; Displaying a password verification interface on the display screen according to the unlocking operation, where the password verification interface can be randomly switched to multiple password modes; for each mode, an independent coordinate mapping table is loaded; Obtaining the dynamic password trajectory input on the password verification interface, and determining contact interaction information and path information based on the dynamic password trajectory; Verifying the contact interaction information and the path information based on the dynamic restriction conditions corresponding to the current password mode to obtain a verification result, and controlling the electronic device to be unlocked to perform an unlocking operation according to the verification result.

2. The method according to claim 1, wherein Before detecting an unlocking operation for the display screen on the electronic device to be unlocked, the method further includes: Detecting a password setting operation for the display screen on the electronic device to be unlocked; Determining a corresponding preset password mode according to the password setting operation, and displaying a password configuration interface of the preset password mode on the display screen; Obtaining the contact verification rule and the path verification rule input by the user on the password configuration interface, where the contact verification rule includes a preset starting element, a preset ending element, and a preset time threshold, and the path verification rule includes a preset direction and a loop number setting mode; Integrating the contact verification rule and the path verification rule to obtain the dynamic restriction conditions corresponding to the preset password mode.

3. The method according to claim 1, wherein The determining of the contact interaction information and the path information based on the dynamic password trajectory includes: When the dynamic password trajectory is in a continuous state, extracting the first coordinate position of the starting contact in the dynamic password trajectory, and matching the corresponding starting element in the password verification interface according to the first coordinate position; Extracting the second coordinate position of the ending contact in the dynamic password trajectory, and matching the corresponding ending element in the password verification interface according to the second coordinate position; Recording the residence time of the starting contact and the ending contact, and constructing contact interaction information based on the starting element, the ending element, and the residence time; Identifying the sliding direction and the actual number of loops of the dynamic password trajectory, and constructing path information based on the sliding direction and the actual number of loops.

4. The method according to claim 1, wherein The verifying of the contact interaction information and the path information based on the dynamic restriction conditions corresponding to the current password mode to obtain a verification result includes: Obtaining the current password mode corresponding to the password verification interface; Querying the contact verification rule and the path verification rule of the dynamic restriction conditions corresponding to the current password mode; Verifying the contact interaction information based on the contact verification rule to obtain a first verification result, and verifying the path information based on the path verification rule to obtain a second verification result; Determining the verification result according to the first verification result and the second verification result.

5. The method according to claim 4, wherein The verifying of the contact interaction information based on the contact verification rule to obtain a first verification result includes: Matching the starting element and the ending element in the contact interaction information with the preset starting element and the preset ending element in the contact verification rule respectively to obtain a matching result; If the matching result is a successful match, then detect whether the residence time in the contact interaction information reaches the preset time threshold in the contact verification rule; When the preset time threshold is reached, determine that the first verification result is a successful verification.

6. The method according to claim 4, wherein The verifying the path information based on the path verification rule to obtain a second verification result includes: Detect whether the sliding direction in the path information is consistent with the preset direction in the path verification rule; If the sliding direction is consistent with the preset direction, then identify the number-of-turns setting mode in the path verification rule; Verify the actual number of turns in the path information according to the number-of-turns setting mode to obtain a verification result.

7. The method according to claim 6, wherein The verifying the actual number of turns in the path information according to the number-of-turns setting mode to obtain a verification result includes: If the number-of-turns setting mode is a time-correlation mode, then determine the corresponding target number of turns according to the current time, and compare the actual number of turns with the target number of turns. When the actual number of turns is consistent with the target number of turns, determine that the verification result is a successful verification; If the number-of-turns setting mode is a fixed mode, then verify whether the actual number of turns is equal to the preset fixed number of turns in the path verification rule. When the actual number of turns is equal to the preset fixed number of turns, determine that the verification result is a successful verification; If the number-of-turns setting mode is a disabled mode, then detect whether the path information is in a continuous state. When the path information is in a continuous state, determine that the verification result is a successful verification.

8. An electronic device password verification and unlocking device, characterized in that, The device includes: A detection module, configured to detect an unlocking operation on a display screen of an electronic device to be unlocked; A display module, configured to display a password verification interface on the display screen according to the unlocking operation, where the password verification interface can be randomly switched to multiple password modes; An acquisition module, configured to acquire a dynamic password trajectory input in the password verification interface, and determine contact interaction information and path information based on the dynamic password trajectory; A verification module, configured to verify the contact interaction information and the path information based on dynamic restriction conditions corresponding to the current password mode to obtain a verification result, and control the electronic device to be unlocked to perform an unlocking operation according to the verification result.

9. A computer device, characterized in that, including: A memory and a processor, where the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the computer instructions to execute the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, Computer instructions are stored on a computer-readable storage medium, and the computer instructions are used to cause a computer to execute the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Screen unlocking method and touch screen terminal

    CN102968276A

  • Method and device for screen unlocking

    CN106156594A