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

Through real-time detection and multi-mode random switching password verification methods, combined with the analysis of dynamic password trajectory and verification of dynamic restrictions, the problems of low security and poor user experience in traditional electronic devices are solved, and powerful anti-attack capabilities and efficient user interaction experience are achieved.

CN120030519AActive Publication Date: 2025-05-23DESSMANN CHINA MACHINERY & ELECTRONICS +1
View PDF 10 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Traditional electronic devices to be unlocked have problems such as low security in static password mode, difficulty in memory of special users, and single dynamic verification mechanisms, weak attack resistance and poor user experience.

Method used

By real-time detection of the unlocking operation of the display screen, an instant association between user intention and the verification process is established, a password verification interface with random switching of multi-modes is adopted to obtain dynamic password trajectories to determine contact interaction information and path information, and verify based on dynamic restrictions, and finally control the electronic device to perform unlocking operation.

Benefits of technology

It significantly improves the defense capabilities of side-view attacks and brute-force cracking, lowers the memory threshold of special user groups, and realizes an invisible verification layer based on user biological behavior characteristics, effectively resists playback attacks and trajectory simulation attacks, and achieves a dynamic balance between security protection strength and user operation-friendlyness.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120030519A_ABST
    Figure CN120030519A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of intelligent locks, and discloses an electronic equipment password verification unlocking method and device, computer equipment and a medium, and the method comprises the following steps: detecting an unlocking operation for a display screen on to-be-unlocked electronic equipment; a password verification interface is displayed on a display screen according to the unlocking operation, and the password verification interface can be randomly switched into a plurality of password modes; obtaining a dynamic password track input in the password verification interface, and determining contact interaction information and path information based on the dynamic password track; and verifying the contact interaction information and the path information based on a dynamic limiting condition corresponding to the current password mode to obtain a verification result, and controlling the to-be-unlocked electronic equipment to execute an unlocking operation according to the verification result. According to the method and the device, the problems of weak attack resistance and poor user experience caused by low security of a static password mode, difficulty in memorizing complex passwords by special users and single dynamic verification mechanism of the traditional electronic equipment to be unlocked are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of smart locks, and in particular to a method, device, computer equipment and medium for password verification and unlocking of an electronic device. Background Art

[0002] Take electronic devices such as electronic devices to be unlocked as an example. As key equipment for protecting valuables, high-strength structures and password verification mechanisms are usually used to ensure safety. Traditional unlocking methods are mainly mechanical keys and fixed digital passwords. The former relies on physical keys, and the latter requires users to remember specific digital combinations. With technological advances, smart verification methods such as fingerprint recognition and radio frequency cards have gradually been applied, improving convenience. However, current technology is still limited to static verification modes (such as fixed passwords or single biometrics), and there are security risks such as password leakage and brute force cracking. In addition, the problem of difficulty in remembering complex passwords for users such as the elderly or children has not been solved for a long time, affecting the scope of application of electronic devices to be unlocked.

[0003] The current method of unlocking electronic devices with password verification has significant limitations: first, static password modes (such as fixed digital sequences or preset patterns) are easily peeped, guessed, or cracked through trace residues, and are not secure enough; second, existing dynamic verification schemes are mostly limited to switching between single modes, lack a multi-dimensional dynamic fusion mechanism, and are 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 devices to be unlocked. Summary of the invention

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

[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: Detecting an unlocking operation on a display screen of an 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; Acquire a dynamic password track inputted in the password verification interface, and determine contact interaction information and path information based on the dynamic password track; The contact interaction information and the path information are verified based on the dynamic restriction conditions corresponding to the current password mode to obtain a verification result, and the electronic device to be unlocked is controlled to perform an unlocking operation according to the verification result.

[0006] Furthermore, before detecting an unlocking operation on the display screen of the electronic device to be unlocked, the method further includes: Detecting a password setting operation for a display screen on an electronic device to be unlocked; 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; Acquire the contact verification rule and the path verification rule input by the user in the password configuration interface, wherein 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 lap number setting mode; The contact verification rule and the path verification rule are integrated to obtain the dynamic restriction condition corresponding to the preset password mode.

[0007] Furthermore, the step of determining the contact interaction information and the path information based on the dynamic password track includes: When the dynamic password track is in a continuous state, extracting a first coordinate position of a starting contact in the dynamic password track, and matching a corresponding starting element in the password verification interface according to the first coordinate position; Extracting a second coordinate position of the terminating contact in the dynamic password track, and matching a corresponding terminating element in the password verification interface according to the second coordinate position; Recording the dwell time of the starting contact and the ending contact, and constructing contact interaction information based on the starting element, the ending element and the dwell time; The sliding direction and the actual number of turns of the dynamic password track are identified, and path information is constructed based on the sliding direction and the actual number of turns.

[0008] Furthermore, the contact interaction information and the path information are verified based on the dynamic restriction condition corresponding to the current password mode to obtain a verification result, including: Obtain the current password mode corresponding to the password verification interface; Querying the contact verification rules and path verification rules corresponding to the dynamic restriction conditions of 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; A verification result is determined according to the first verification result and the second verification result.

[0009] Further, the verifying the contact interaction information based on the contact verification rule to obtain a first verification result includes: Respectively 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 to obtain a matching result; If the matching result is a successful match, detecting whether the dwell time in the contact interaction information reaches a preset time threshold in the contact verification rule; When the preset time threshold is reached, the first verification result is determined to be verification success.

[0010] Further, the verifying the path information based on the path verification rule to obtain a second verification result includes: Detecting 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, identifying the circle number setting mode in the path verification rule; The actual number of laps in the path information is verified according to the lap number setting mode to obtain a verification result.

[0011] Further, the actual number of laps in the path information is verified according to the lap number setting mode to obtain a verification result, including: If the lap number setting mode is the time-related mode, the corresponding target lap number is determined according to the current time, and the actual lap number is compared with the target lap number. When the actual lap number is consistent with the target lap number, the verification result is determined to be successful. If the number of turns setting mode is a fixed mode, verifying whether the actual number of turns is equal to a preset fixed number of turns in the path verification rule, and determining that the verification result is successful when the actual number of turns is equal to the preset fixed number of turns; If the lap number setting mode is the disabled mode, it is detected whether the path information is in a continuous state, and when the path information is in a continuous state, it is determined that the verification result is a successful verification.

[0012] In a second aspect, an embodiment of the present invention provides a device for password verification and unlocking of an electronic device, the device comprising: A detection module, used to detect an unlocking operation on a display screen of an electronic device to be unlocked; A display module, wherein the user displays 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; An acquisition module, used to acquire a dynamic password track inputted in the password verification interface, and determine contact interaction information and path information based on the dynamic password track; The verification module is used to verify the contact interaction information and the 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.

[0013] In a third aspect, an embodiment of the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the method of the first aspect or any corresponding embodiment thereof by executing the computer instructions.

[0014] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the method of the first aspect or any corresponding embodiment thereof.

[0015] The method provided in the embodiment of the present application has the following beneficial effects: The method provided in the embodiment of the present application establishes an instant association between the user's intention and the verification process by real-time detection of the unlocking operation on the display screen, avoids ineffective power consumption and prevents tentative triggering by unauthorized users, and provides a precise interaction starting point for subsequent verification links; the password verification interface randomly switches between multiple modes such as numbers, patterns, and custom expressions, breaking the fixed input logic of traditional static passwords, so that the password presentation form changes dynamically each time it is verified, significantly improving the defense capability against side-spying attacks and brute force cracking, and at the same time reducing the memory threshold of special user groups through diversified interaction methods; through the multi-dimensional collection and analysis of the contact interaction information and path information of the dynamic password trajectory, an invisible verification layer based on the user's biological behavior characteristics is constructed, even if the password is Even if the code 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 real-time matching and adaptive adjustment of verification information through dynamic restriction conditions (such as mode-specific contact pressure thresholds, path complexity rules, and input time windows), an intelligent risk control mechanism of "one mode, one strategy" is implemented, which can not only automatically strengthen verification conditions in high-risk scenarios (such as switching to high-security mode when encountering continuous erroneous attempts), but also simplify the operation process for special users (such as reducing path accuracy requirements when the elderly use expression mode), achieving a dynamic balance between security protection strength and user-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

[0016] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0017] Figure 1 is a flow chart of a method for password verification and unlocking of an electronic device according to an embodiment of the present invention; Figure 2 is a schematic structural diagram of an electronic device based on pattern control according to an embodiment of the present invention; Figure 3 is a schematic diagram of a process of unlocking mechanism on an electronic device according to an embodiment of the present invention; Figure 4 is a structural block diagram of a device for verifying and unlocking a password of an electronic device according to an embodiment of the present invention; Figure 5 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0018] 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 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 those skilled in the art without creative work are within the scope of protection of the present invention.

[0019] According to an embodiment of the present invention, a method, apparatus, computer device and medium for password verification and unlocking of an electronic device are provided, 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 a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0020] In this embodiment, a method for password verification and unlocking of an electronic device is provided. Figure 1 is a flow chart of a method for password verification and unlocking of an electronic device according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps: Step S11, detecting an unlocking operation on a display screen of the electronic device to be unlocked.

[0021] It should be noted that Figure 2What is shown is an electronic device to be unlocked based on pattern control, and its password verification method is applicable to the electronic device to be unlocked. The structure of the 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 to be unlocked. The specific connection method is: the display screen 1 is embedded in the protective shell by an internal groove and an interference fit, and is tightly connected to the surface of the protective shell; the USB power interface 2 is also embedded in the lower side of the display screen 1 by an internal groove and an interference fit, and is tightly fitted to the surface of the protective shell; the handle 3 is connected to the protective shell with a fixing nut; the keyhole 4 is connected to the protective shell by an interference fit, and is located at the bottom just below the handle 3, and is tightly connected to the surface of the protective shell.

[0022] In the embodiment 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 is to perceive the user's interaction intention in real time through the built-in multimodal sensor of the display screen (such as capacitive touch layer, pressure sensing module). When the user's finger touches the screen surface, the touch sensor will capture the touch point coordinates and the initial pressure value. If the pressure value exceeds the preset threshold (such as 50g-force) and the touch point is located in the effective interaction area (such as the digital / pattern drawing area), it is determined to be a valid unlocking operation trigger. The system filters short-term false touches (such as clothing scratches) through an anti-shake algorithm, and combines low-power monitoring technology in the screen sleep state to ensure that the verification process is awakened only when the real user operates. This step also integrates security protection logic: if continuous invalid triggers are detected (such as 5 non-verification operations within 30 seconds), the screen lock will be automatically activated and the alarm will be triggered. By accurately distinguishing normal operations from abnormal interference, a reliable interaction starting point is provided for subsequent dynamic password verification, and the first line of defense is built.

[0023] In the embodiment 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: Step A1, detecting a password setting operation for a display screen on an electronic device to be unlocked.

[0024] Specifically, the touch sensor of the display screen works in conjunction with the permission verification module to detect the password setting operation initiated by the administrator. The administrator needs to complete identity authentication through fingerprint recognition (located in the center area of ​​the electronic screen) or inserting a mechanical key. After activating the administrator mode, the system will monitor the long press operation of the touch area (such as continuous pressing for ≥2 seconds) or specific gestures (such as three-finger swipe) in real time as the password setting entry signal. This step integrates an anti-mistouch 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 the abnormal log; if the permission verification passes, a command is sent to the main control module to start the password configuration process. This step ensures the permission isolation of password settings to prevent unauthorized users from tampering with security rules.

[0025] 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.

[0026] Specifically, based on the type of operation triggered by the administrator (such as selecting numbers, patterns or expression modes), the corresponding password configuration interface is dynamically loaded. For example, if the administrator selects the "number + time association" mode, the interface will display the numeric keyboard and time parameter configuration panel (such as lap calculation rules, operation time limit); if the "custom expression" mode is selected, it will switch to the expression library selection panel and path complexity setting options. The interface design adopts a layered guidance strategy: the first layer is the password type selection, the second layer is the dynamic rule configuration (such as pressing duration, rotation direction), and the last layer provides a real-time preview function (such as simulated trajectory drawing feedback). Through visual highlights and voice prompts (such as "Please set the starting element"), the administrator is guided to gradually complete the rule definition and reduce the configuration error rate.

[0027] Step A3, obtaining the contact verification rules and path verification rules input by the user in the password configuration interface, wherein the contact verification rules include a preset starting element, a preset ending element and a preset time threshold, and the path verification rules include a preset direction and a lap setting mode.

[0028] Specifically, by analyzing the administrator's input behavior on the password configuration interface, two types of core rules are extracted: Touch point verification rules: including preset starting elements (such as the number 1, smiling face) and ending elements (such as the number 3, crying face), as well as the pressing time threshold (such as the starting and ending points must be ≥ 3 seconds). The system uses the touch coordinate mapping algorithm to match the screen touch point position with the interface element coordinate library to determine the logical binding relationship between the starting / ending elements.

[0029] Path verification rules: including preset sliding direction (clockwise / counterclockwise) and lap setting mode (time-related, fixed laps, disabled laps). For example, when "time-related mode" is selected, the system converts the current time (such as 15:33) to the target laps (15 laps) and compares it with the actual laps of the path trajectory; when "disabled mode" is selected, only the path continuity is verified and the intermediate laps are ignored. The rule data is temporarily stored in the cache in a structured format (such as JSON) for subsequent integration.

[0030] Step A4, integrating the contact verification rules and the path verification rules to obtain dynamic restriction conditions corresponding to the preset password mode.

[0031] Specifically, the extracted contact verification rules and path verification rules are integrated in multiple dimensions to generate an encrypted dynamic restriction template. Specifically, it includes: associating the starting element and the ending element with the time threshold to construct the spatiotemporal constraints of the contact interaction (such as "starting with a smiley face press for 3 seconds → path sliding → ending with a crying face press for 3 seconds"); differentially encapsulating the rules according to the password mode type (number / pattern / expression). For example, the digital mode needs to be additionally bound to the time calculation algorithm (such as mapping the number of circles to the hour value), and 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 the leakage of rules caused by physical disassembly. The dynamic restriction finally generated will serve as the core criterion for the subsequent verification process to achieve personalized security protection of "one password, one strategy".

[0032] Step S12, 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.

[0033] In the embodiment of the present application, after detecting a valid unlocking operation, the current verification interface type is randomly selected from three modes: digital, pattern, and custom expression based on a preset algorithm (such as a timestamp hash value or environmental sensor data) (for example, triggering the digital mode at 8 am and switching to the expression mode at 8 pm), and the layout of the interface elements is reset at the same time (such as random exchange of the key positions of the numeric keyboard and dynamic adjustment of the display order of the pattern library). The interface switching process adopts an anti-snooping design: at the moment of screen wake-up, the transition is covered by full-screen noise to prevent bystanders from speculating the password mode through the screen afterimage; for each mode, an independent coordinate mapping table is loaded (such as the digital mode uses a nine-square grid coordinate system, and the expression mode uses a polar coordinate system) to ensure the logical isolation of the contact positions between different modes. In addition, the interface randomization is intelligently linked with dynamic constraints (such as time-related laps). For example, in the time calculation lap mode, if the current time is 15:33, the system gives priority to the digital mode to adapt to the lap mapping rules, and disables the display logic conflict of the expression mode. Through the synergy of dynamic interface and dynamic rules, the unpredictability of password input is achieved (to defend against side-spying attacks), and the compatibility of verification conditions with user preset rules is ensured (such as automatically disabling the time-related lap function in expression mode), thus achieving the unity of security and operational logic.

[0034] Step S13, obtaining a dynamic password track input in the password verification interface, and determining contact interaction information and path information based on the dynamic password track.

[0035] In the embodiment of the present application, the coordinate sequence of the dynamic password trajectory is collected in real time by the touch sensor (sampling frequency ≥ 100Hz), and the sliding window algorithm is used to detect the continuity of the trajectory (such as the standard deviation of the displacement of the coordinate point within 500ms is considered to be a stable touch point). When it is determined to be a continuous slide, the following data processing flow is triggered: First, in combination with the current dynamic layout of the interface (such as the random arrangement of the digital / pattern / expression matrix), a touch hot zone range database is established. The touch area of ​​each element expands the actual display area by 20% (such as 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. Secondly, the Kalman filter algorithm is used to eliminate the touch signal noise and smooth the trajectory coordinate sequence, especially for the coordinate jitter caused 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 acceleration at the beginning, uniform speed in the middle, and deceleration at the end), and a personalized operation feature template is established. When abnormal behavior is detected (such as sliding at a constant speed throughout the process, and the deviation from the preset model is >30%), the anti-robot verification mechanism is triggered (such as popping up a random verification code). In addition, sensitive data such as touch point coordinates and timestamps are encrypted in real time using AES-256 during transmission, and the previous and subsequent operation records are associated with hash chain technology during storage (such as embedding the hash value of this trajectory into the header of the next operation data) to prevent data tampering.

[0036] In the embodiment of the present application, determining the contact interaction information and the path information based on the dynamic password track includes the following steps B1-B4: Step B1, when the dynamic password track is in a continuous state, extract the first coordinate position of the starting contact in the dynamic password track, and match the corresponding starting element in the password verification interface according to the first coordinate position.

[0037] Specifically, when it is detected that the dynamic password track entered by the user on the electronic screen is in a continuous sliding state (without the interruption operation of lifting the finger in the middle), the precise coordinates of the starting point of the track are first captured by the touch sensor, such as pixel coordinates. The coordinates are mapped to the element layout grid of the current password verification interface (such as a matrix arrangement of numbers, patterns, or expressions), and the starting element is determined by the coordinate range matching algorithm. For example, if the interface is a digital panel and the starting coordinates fall within the touch hotspot range of the number "1", the system determines that the starting element is "1". This process needs to be combined with the dynamic randomization characteristics of the interface elements (all-digital / pattern / expression mode) to ensure the real-time accuracy of the coordinate-element mapping.

[0038] Step B2, extracting the second coordinate position of the terminating touch point in the dynamic password track, and matching the corresponding terminating element in the password verification interface according to the second coordinate position.

[0039] 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.

[0040] 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.

[0041] 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.

[0042] 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.

[0043] 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.

[0044] 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.

[0045] It should be noted that if Figure 3As shown in the figure, the unlocking mechanism on the electronic device to be unlocked is: the display screen randomly displays numbers, patterns or custom expressions, and matches the displayed content with the input conditions. If the matching degree reaches 100%, the verification is successful, and the unlocking operation is performed; if the matching degree is less than 100%, the verification fails, the unlocking operation is refused, and you need to try again later.

[0046] In the embodiment of the present application, step S14 includes the following steps C1-C4: Step C1, obtaining the current password mode corresponding to the password verification interface.

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

[0048] Step C2, querying the contact verification rules and path verification rules corresponding to the dynamic restriction conditions of the current password mode.

[0049] Specifically, based on the determined current password mode, the corresponding contact verification rules and path verification rules are queried from the encrypted and stored configuration file. The contact verification rules include the preset starting element (such as the number 1), the ending element (such as the number 3), and the start and end point pressing time threshold (such as 3 seconds); the path verification rules cover the preset sliding direction (clockwise / counterclockwise) and the lap setting mode (time-related / fixed / disabled). For example, if the current mode is digital and the lap setting mode is time-related, the target laps will be dynamically calculated (such as 8 laps at 8 o'clock at the current time). During the rule retrieval process, multi-condition combination logic needs to be processed: if the administrator enables both the non-calculation of intermediate laps and the time-related laps, the time-related rule is executed first, and the actual laps are forced to match the time, and the non-calculation of intermediate laps is only an additional condition for the continuity of the path (sliding without interruption is required). All rules are stored in encrypted data structures to prevent external tampering, and the security of the query process is guaranteed by the hardware security module.

[0050] Step C3, 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.

[0051] In the embodiment of the present application, the contact interaction information is verified based on the contact verification rule to obtain a first verification result, including the following steps C31-C33: Step C31 , respectively matching the start element and the end element in the touch interaction information with the preset start element and the preset end element in the touch verification rule to obtain a matching result.

[0052] Specifically, the starting element (such as the number 1) and the ending element (such as the number 3) in the touch interaction information input by the user are accurately compared with the touch verification rules preset by the administrator. Through the touch coordinate mapping algorithm, the system maps the starting point coordinates of the dynamic password track to the and the end point coordinates They are mapped to the element distribution matrix of the current password verification interface to determine the element identifier that is actually triggered. For example, if the interface is a digital panel, the system determines that the starting element is number 1 and the ending element is number 3 through coordinate range matching. A tolerance mechanism (such as ±5 pixel offset compensation) is used in the matching process to accommodate user operation errors, but the absolute consistency of the element identifier must be ensured. If the starting or ending element does not match the preset (such as accidentally touching the adjacent number 2), the match failure is directly triggered.

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

[0054] Specifically, after the element is successfully matched, the high-precision timing module is called to check whether the pressing and holding time of the start and end contacts reaches a preset threshold (such as 3 seconds). The calculation starts from when the contact coordinates are stable (such as no displacement for 50ms) and ends when the sliding track starts; the end time The time starts when the coordinates of the end point of the trajectory are stable and ends when the finger leaves the screen. The time data is recorded with millisecond accuracy (such as , ) and compare it with the preset threshold value. ), the touch point verification is considered to have failed. This mechanism resists violent sliding cracking by forcing a delay operation, and combines the anti-shake algorithm to filter short-term false touches (such as a finger swiping over the starting point).

[0055] Step C33: when the preset time threshold is reached, determining the first verification result is verification success.

[0056] Specifically, if and only if the start / end elements are completely matched and the stay time meets the threshold, the first verification result is generated as "successful". With preset rules If the contact verification passes, the contact verification is successful. If any condition is not met (such as element error or insufficient time), it is marked as "failed" and the error type (element mismatch E1, insufficient time E2) is recorded. The verification result is temporarily stored in an encrypted state for subsequent comprehensive judgment logic to call, and a voice prompt (such as "starting point verification failed") is triggered to assist the user in correcting the operation.

[0057] In the embodiment of the present application, the path information is verified based on the path verification rule to obtain a second verification result, including the following steps C34-C36: Step C34, detecting whether the sliding direction in the path information is consistent with the preset direction in the path verification rule.

[0058] Specifically, the sliding direction is analyzed through the trajectory coordinate sequence, and the vector angle accumulation method is used to determine whether the direction meets the preset rules (clockwise / counterclockwise). The continuous trajectory points are converted into displacement vectors, and the sum of the angle changes of adjacent vectors is calculated: when sliding clockwise, the accumulated angle value approaches × turns, counterclockwise is close to - × number of turns. For example, when the preset direction is clockwise, if the actual trajectory analysis result is counterclockwise, the path verification is directly judged to have failed. The direction verification tolerance is This process is combined with the inertial sliding compensation algorithm to eliminate the interference of trajectory drift before the finger is lifted.

[0059] Step C35: if the sliding direction is consistent with the preset direction, the circle number setting mode in the path verification rule is identified.

[0060] Specifically, after the direction verification is passed, the current lap setting mode (time-related / fixed / disabled) is identified according to the path verification rules configured by the administrator. For example, if the rule is "time calculation laps", it enters the time-related mode; if it is "do not calculate intermediate laps", it enters the disabled mode. The mode identifier and associated parameters (such as a fixed lap of 5 laps, time-lap conversion formula) are extracted from the encrypted storage configuration file. When multiple modes coexist (such as enabling time association and disabling intermediate laps at the same time), they are processed according to the preset priority: the time-related mode forces lap matching, and the disabled mode is only an additional condition for path continuity.

[0061] Step C36, verifying the actual number of laps in the path information according to the lap number setting mode to obtain a verification result.

[0062] In an embodiment of the present application, step C36 includes the following steps: if the lap setting mode is a time-associated mode, the corresponding target laps are determined according to the current time, and the actual laps are compared with the target laps. When the actual laps are consistent with the target laps, the verification result is determined to be successful verification; if the lap setting mode is a fixed mode, it is verified whether the actual laps are equal to the preset fixed laps in the path verification rule. When the actual laps are equal to the preset fixed laps, the verification result is determined to be successful verification; if the lap setting mode is a disabled mode, it is detected whether the path information is in a continuous state. When the path information is in a continuous state, the verification result is determined to be successful verification.

[0063] Specifically, differentiated verification is performed according to the lap setting mode: Time-related mode: parse the current time (such as 8:15), calculate the target number of laps of 8 according to the preset algorithm (such as taking the hour as 8), and compare the actual number of laps (through trajectory loop counting). If the actual number of laps = 8, the verification passes. Fixed mode: directly compare the actual number of laps with the preset fixed value (such as 5 laps), and strictly match the equal value. Disabled mode: ignore the actual number of laps and only detect the continuity of the path (no interruption in the trajectory). For example, the user rotates from a smiley face expression to a crying face expression in any circle, and then stops at the crying face expression. As long as the path is continuous, it passes. During the verification process, the number of laps is counted using a closed loop detection algorithm: each complete circle around the center of the interface (passing through the starting element coordinates) is counted as 1 circle. If the actual number of laps deviates by more than If the number of turns is 8 (e.g., 7.3 turns is actually set but 8 turns is set), the number of turns is determined to be inconsistent. The verification result is logically ANDed with the direction verification result to generate the second verification result.

[0064] Step C4, determining a verification result according to the first verification result and the second verification result.

[0065] Specifically, 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 laps compliance) are logically "AND" operated to generate the final verification result. If both are successful (such as the contact verification is passed and the number of laps meets the time association rule), the overall verification is judged to be successful, triggering the electronic lock to release the mechanical lock and voice prompting "door opening successful"; if any verification fails (such as element matching error or sliding direction mismatch), the verification is judged to be failed, the security lock mechanism is started (the screen is locked for 3 seconds) and a voice alarm is given. This process implements atomic operations through an encrypted state machine to ensure that the verification result cannot be tampered with. For example, if the user input meets the contact rule (1→3, stay for 3 seconds) but the number of laps is insufficient (actual 7 laps ≠ time-associated 8 laps), the second verification will be marked as failed, and the final result is failure. Multi-condition combination scenarios (such as enabling time laps at the same time and not calculating intermediate laps) need to meet two conditions: mandatory verification of time-associated laps and path continuity as an additional condition. The verification results are written to the log in encrypted form and logically superimposed with biometrics (optional fingerprint) to achieve multi-level security protection.

[0066] In an embodiment of the present application, a method for dynamic calibration of behavioral entropy is also provided, the method comprising: continuously analyzing historical user operation data (such as sliding speed distribution, pressure intensity curve) through a machine learning model to build a personalized behavioral entropy model. Dynamically adjust the verification strictness according to the deviation between the real-time operation and the entropy model: low-risk scenarios (entropy deviation ≤ 15%): allow the path verification tolerance to be expanded by 20% to be compatible with user operation fluctuations; high-risk scenarios (entropy deviation > 30%): force enhanced verification (such as fingerprint + path two-factor authentication) and shorten the verification timeout threshold to 5 seconds. The model is updated using a federated learning framework to ensure that user privacy data does not leave the local device.

[0067] In the embodiment of the present application, a space-time folding algorithm can also be introduced in the path information encoding stage to map the actual sliding trajectory to a virtual space-time coordinate system: a dynamic coordinate transformation matrix is ​​generated based on fractal geometry to make the physical screen coordinates nonlinearly associated with the logical verification coordinates (such as the actual sliding straight line is mapped to a spiral path); a chaotic sequence is generated using the operation timestamp to dynamically encrypt the time interval of the trajectory points. This algorithm makes it impossible to reversely analyze the intercepted original trajectory data. Even if the physical sensor is eavesdropped, the attacker can only obtain encrypted invalid noise data.

[0068] In this embodiment, a device for password verification and unlocking of an electronic device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0069] This embodiment provides a device for password verification and unlocking of an electronic device, such as Figure 4 As shown, including: A detection module 41, used to detect an unlocking operation on a display screen of an electronic device to be unlocked; Display module 42, the user displays the 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; An acquisition module 43 is used to acquire a dynamic password track inputted in the password verification interface, and determine contact interaction information and path information based on the dynamic password track; The verification module 44 is used to verify the contact interaction information and the 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.

[0070] Furthermore, the device also includes: a configuration module, used to detect a password setting operation on a display screen on an electronic device to be unlocked; 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; obtain contact verification rules and path verification rules entered by the user in the password configuration interface, wherein the contact verification rules include a preset starting element, a preset ending element, and a preset time threshold, and the path verification rules include a preset direction and a number of laps setting mode; integrate the contact verification rules and the path verification rules to obtain dynamic restriction conditions corresponding to the preset password mode.

[0071] Furthermore, the acquisition module 43 is used to extract the first coordinate position of the starting contact in the dynamic password trajectory when the dynamic password trajectory is in a continuous state, 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 circles of the dynamic password trajectory, and construct path information based on the sliding direction and the actual number of circles.

[0072] Furthermore, the verification module 44 is used to obtain the current password mode corresponding to the password verification interface; query the contact verification rules and path verification rules of the dynamic restriction conditions corresponding to the current password mode; verify the contact interaction information based on the contact verification rules to obtain a first verification result, and verify the path information based on the path verification rules to obtain a second verification result; determine the verification result based on the first verification result and the second verification result.

[0073] Furthermore, the verification module 44 includes a matching unit and an identification unit; A matching unit is used to 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; if the matching result is a successful match, it is detected whether the dwell time in the contact interaction information reaches the preset time threshold in the contact verification rule; when the preset time threshold is reached, the first verification result is determined to be a successful verification.

[0074] The identification unit is used 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, the number of circles setting mode in the path verification rule is identified; the actual number of circles in the path information is verified according to the number of circles setting mode to obtain a verification result.

[0075] Further, the identification unit also includes a first determination submodule, a second determination submodule and a third determination submodule; The first determination submodule is used to determine the corresponding target number of laps according to the current time if the lap number setting mode is the time-related mode, and compare the actual number of laps with the target number of laps. When the actual number of laps is consistent with the target number of laps, determine that the verification result is successful. The second determination submodule is used to verify whether the actual number of laps is equal to the preset fixed number of laps in the path verification rule if the lap number setting mode is the fixed mode, and when the actual number of laps is equal to the preset fixed number of laps, determine that the verification result is successful; The third determination submodule is used to detect whether the path information is in a continuous state if the lap number setting mode is the disabled mode, and determine that the verification result is successful when the path information is in a continuous state.

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

[0077] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.

[0078] 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 embodiment.

[0079] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created by the use of a computer device based on the presentation of a small program landing page, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

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

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

[0082] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing 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 storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above 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. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.

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

Claims

1. A method for password verification and unlocking of an electronic device, characterized in that: The method comprises: Detecting an unlocking operation on a display screen of an 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; Acquire a dynamic password track inputted in the password verification interface, and determine contact interaction information and path information based on the dynamic password track; The contact interaction information and the path information are verified based on the dynamic restriction conditions corresponding to the current password mode to obtain a verification result, and the electronic device to be unlocked is controlled to perform an unlocking operation according to the verification result.

2. The method according to claim 1, characterized in that: Before detecting an unlocking operation on a display screen of the electronic device to be unlocked, the method further includes: Detecting a password setting operation for a display screen on an electronic device to be unlocked; 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; Acquire the contact verification rule and the path verification rule input by the user in the password configuration interface, wherein 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 lap number setting mode; The contact verification rule and the path verification rule are integrated to obtain the dynamic restriction condition corresponding to the preset password mode.

3. The method according to claim 1, characterized in that The determining of contact interaction information and path information based on the dynamic password track includes: When the dynamic password track is in a continuous state, extracting a first coordinate position of a starting contact in the dynamic password track, and matching a corresponding starting element in the password verification interface according to the first coordinate position; Extracting a second coordinate position of the terminating contact in the dynamic password track, and matching a corresponding terminating element in the password verification interface according to the second coordinate position; Recording the dwell time of the starting contact and the ending contact, and constructing contact interaction information based on the starting element, the ending element and the dwell time; The sliding direction and the actual number of turns of the dynamic password track are identified, and path information is constructed based on the sliding direction and the actual number of turns.

4. The method according to claim 1, characterized in that: The step of verifying the contact interaction information and the path information based on the dynamic restriction condition corresponding to the current password mode to obtain a verification result includes: Obtain the current password mode corresponding to the password verification interface; Querying the contact verification rules and path verification rules corresponding to the dynamic restriction conditions of 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; A verification result is determined according to the first verification result and the second verification result.

5. The method according to claim 4, characterized in that The verifying the contact interaction information based on the contact verification rule to obtain a first verification result includes: Respectively 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 to obtain a matching result; If the matching result is a successful match, detecting whether the dwell time in the contact interaction information reaches a preset time threshold in the contact verification rule; When the preset time threshold is reached, the first verification result is determined to be verification success.

6. The method according to claim 4, characterized in that The verifying the path information based on the path verification rule to obtain a second verification result includes: Detecting 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, identifying the circle number setting mode in the path verification rule; The actual number of laps in the path information is verified according to the lap number setting mode to obtain a verification result.

7. The method according to claim 6, characterized in that The verifying the actual number of laps in the path information according to the lap number setting mode to obtain a verification result includes: If the lap number setting mode is the time-related mode, the corresponding target lap number is determined according to the current time, and the actual lap number is compared with the target lap number. When the actual lap number is consistent with the target lap number, the verification result is determined to be successful. If the number of turns setting mode is a fixed mode, verifying whether the actual number of turns is equal to a preset fixed number of turns in the path verification rule, and when the actual number of turns is equal to the preset fixed number of turns, determining that the verification result is successful; If the lap number setting mode is the disabled mode, it is detected whether the path information is in a continuous state, and when the path information is in a continuous state, it is determined that the verification result is a successful verification.

8. An electronic device password verification and unlocking device, characterized in that: The device comprises: A detection module, used to detect an unlocking operation on a display screen of an electronic device to be unlocked; A display module, wherein the user displays 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; An acquisition module, used to acquire a dynamic password track inputted in the password verification interface, and determine contact interaction information and path information based on the dynamic password track; The verification module is used to verify the contact interaction information and the 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.

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

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable 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

  • Terminal unlocking system and method based on pressure touch control

    CN105808146A

  • Method and device for screen unlocking

    CN106156594A

  • Intelligent equipment screen free gesture vector unlocking method

    CN106503536A

  • Unlocking method and electronic equipment

    CN111176522A