Verification method, verification device, electronic equipment and computer readable storage medium

By receiving verification configuration information on the terminal device and using the camera unit to detect changes in light for local verification, the problem of existing identity verification methods being greatly affected by network conditions and having low security is solved, thus achieving higher-security identity verification.

CN115643048BActive Publication Date: 2026-04-24WUBA
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
WUBA
Filing Date
2022-09-20
Publication Date
2026-04-24

AI Technical Summary

Technical Problem

Existing authentication methods are easily affected by network conditions and have low security, making them easy for machines to identify and tamper with.

Method used

By receiving verification configuration information sent by the server on the terminal device, outputting guidance information and acquiring light change information, local verification is performed based on the verification strategy to avoid network dependence, and identity verification is performed by using the camera unit to detect light changes.

Benefits of technology

It improves the security of identity verification, reduces the impact of network conditions on the verification process, and enhances the system's protection capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115643048B_ABST
    Figure CN115643048B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a verification method, a verification device, an electronic device and a computer readable storage medium. The verification method is applied to a terminal device and includes: in the case that a verification request is triggered, receiving verification configuration information sent by a server, the verification configuration information including a verification policy and guide information guiding a user to input according to the verification policy; outputting the guide information according to the verification policy; in the case that input of the user to the guide information is received, obtaining a light change condition of an environment in which the terminal device is located; and verifying the light change condition based on the verification policy to obtain a verification result. The verification result is obtained by performing verification and judgment locally on the terminal device, so that the influence of network conditions can be avoided. Meanwhile, the light of the environment in which the terminal device is located is changed based on the operation of the user, which is difficult to be realized by the terminal device itself, so that the security of the system is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of data security technology, and in particular to a verification method, verification device, electronic device, and computer-readable storage medium. Background Technology

[0002] With the development of internet technology, information security has become a crucial issue. This includes not only the security of users' personal information but also the security of system information. In particular, regarding system information security, defending against network attacks has become paramount. Identity verification is currently a commonly used method for defending against network attacks.

[0003] Currently, identity verification methods typically include slider verification and image / text verification. The front-end displays a verification interface to receive user input, and then sends verification information associated with that input to the back-end. The back-end then verifies and determines whether the object of the verification is a genuine user or an attack from the network.

[0004] However, existing verification methods are not only greatly affected by network conditions, but are also easily identified and tampered with by machines, resulting in low system security. Summary of the Invention

[0005] The purpose of this invention is to provide a verification method, verification device, electronic device, and computer-readable storage medium that can solve the problems in related technologies where verification methods are not only greatly affected by network conditions but also have low security.

[0006] In a first aspect, embodiments of the present invention provide a verification method applied to a terminal device, the method comprising:

[0007] When a verification request is triggered, the system receives verification configuration information sent by the server, wherein the verification configuration information includes: a verification strategy and guidance information to guide the user to input according to the verification strategy;

[0008] The guidance information is output according to the verification strategy;

[0009] Upon receiving user input regarding the guidance information, the system acquires information about changes in ambient light in the environment where the terminal device is located.

[0010] The light change was verified based on the verification strategy, and the verification results were obtained.

[0011] Optionally, the verification strategy includes: the duration of the light change;

[0012] The guidance information is output according to the verification strategy, including:

[0013] Output guidance information that instructs the user to block the camera unit of the terminal device and maintains the specified duration;

[0014] The step of acquiring the light changes in the environment where the terminal device is located includes:

[0015] The camera unit detects changes in the ambient light conditions of the terminal device.

[0016] Optionally, the terminal device is provided with multiple camera units, and the verification strategy further includes: indicating a camera identifier for any of the camera units;

[0017] The output guiding the user to block the camera unit of the terminal device, while maintaining the guidance information for the specified duration, includes:

[0018] Output guidance information that instructs the user to block the camera unit indicated by the camera icon, and maintains the guidance information for the specified duration;

[0019] The step of acquiring the light changes in the environment of the terminal device detected by the camera unit includes:

[0020] The camera unit, indicated by the camera identifier, detects changes in the ambient light of the terminal device.

[0021] Optionally, the number of camera identifiers and durations in the verification strategy are both multiple and correspond one-to-one;

[0022] The output guides the user to block the camera unit indicated by the camera icon, and maintains the guidance information for the specified duration, including:

[0023] For each of the aforementioned camera markers, output guidance information is provided to the user to block the camera unit indicated by the camera marker, while maintaining the duration corresponding to the camera marker.

[0024] The acquisition of the light changes in the environment of the terminal device detected by the camera unit indicated by the camera identifier includes:

[0025] Each time the guidance information is output for the camera identifier, the light changes in the environment where the terminal device is located are obtained by the camera unit indicated by the camera identifier.

[0026] Optionally, when user input regarding the guidance information is received, and the duration is greater than zero, the method further includes:

[0027] Display a countdown control on the current page that starts from the duration stated.

[0028] Optionally, when a verification request is triggered, the method further includes:

[0029] Adjust the current display page to a disabled state that prevents it from responding to user touch operations;

[0030] After verifying the light change based on the verification strategy and obtaining the verification result, the method further includes:

[0031] If the verification result indicates successful verification, the usage state will be adjusted to a permitted state that allows responses to user touch operations.

[0032] Secondly, embodiments of the present invention also provide a verification device applied to a terminal device, the device comprising:

[0033] The receiving module is used to receive verification configuration information sent by the server when a verification request is triggered, wherein the verification configuration information includes: a verification strategy and guidance information to guide the user to input according to the verification strategy;

[0034] The output module is used to output the guidance information according to the verification strategy;

[0035] The acquisition module is used to acquire the light changes in the environment where the terminal device is located when the user inputs the guidance information.

[0036] The verification module is used to verify the changes in light based on the verification strategy and obtain the verification result.

[0037] Optionally, the verification strategy includes: the duration of the light change;

[0038] The output module is specifically used to output guidance information that guides the user to block the camera unit of the terminal device and maintains the duration of the guidance.

[0039] The acquisition module is specifically used to acquire the changes in light in the environment where the terminal device is located, as detected by the camera unit.

[0040] Thirdly, embodiments of the present invention also provide an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps in the verification method described above.

[0041] Fourthly, embodiments of the present invention also provide a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps in the verification method described above.

[0042] In this embodiment of the invention, when a user triggers a verification request, verification configuration information sent by the server is received. This verification configuration information includes a verification strategy and guidance information to guide the user to input information according to the verification strategy. After outputting the guidance information according to the verification strategy, the user is guided to perform a verification operation. Then, the changes in ambient light conditions caused by the user's verification operation are obtained. Based on these changes in ambient light conditions and the verification strategy sent from the server to the terminal device, a verification judgment is performed locally on the terminal device to obtain the verification result. This verification process, after outputting the guidance information, avoids the influence of network conditions. Furthermore, since the changes in ambient light conditions are based on the user's operation, which is difficult to achieve solely through the terminal device itself, the system's security is improved. Attached Figure Description

[0043] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0044] Figure 1 A flowchart illustrating the steps of the verification method provided in this embodiment of the invention;

[0045] Figure 2 A flowchart illustrating the practical application of the verification method provided in this embodiment of the invention;

[0046] Figure 3 A structural block diagram of the verification device provided in the embodiments of the present invention;

[0047] Figure 4 This is a structural block diagram of an electronic device provided in an embodiment of the present invention. Detailed Implementation

[0048] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0049] It should be understood that the phrase "one embodiment" or "an embodiment" throughout the specification means that a specific feature, structure, or characteristic related to the embodiment is included in at least one embodiment of the invention. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification do not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments.

[0050] In various embodiments of the present invention, it should be understood that the sequence number of each process described below does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.

[0051] See Figure 1 This invention provides a verification method applied to a terminal device, which may include:

[0052] Step 101: If a verification request is triggered, receive the verification configuration information sent by the server.

[0053] It should be noted that the terminal device is a front-end electronic device, such as a mobile phone, desktop computer, tablet computer, laptop computer, etc., but not limited to these. The server is a back-end electronic device used to provide the data required for front-end access. Taking an information display platform as an example, the terminal device can be a mobile phone with the platform's client installed. The server carries the platform's business data. Users can access the platform and use the services provided by the platform through the client on their mobile phones.

[0054] Here, triggering a verification request refers to the operation of initiating a verification request from the terminal device to the server. This can be triggered by the user, such as when the user clicks a verification control, but is not limited to this. It can also be triggered automatically after detecting certain sensitive user actions. These sensitive actions are those involving user information security or system information security, such as frequently refreshing the page, but are not limited to this.

[0055] The verification configuration information is data pre-stored on the server for the verification process. Specifically, the verification configuration information includes: the verification strategy and guidance information to guide the user to input according to the verification strategy. The verification strategy is used for verification judgment, and the guidance information guides the user to perform the verification operation.

[0056] Step 102: Output guidance information according to the verification strategy.

[0057] In this step, the guidance information can be in any data format, and the output is based on its data format. For example, if the guidance information is in text format, it can be displayed when outputting; if it is in audio format, it can be played. It's understood that the guidance information guides the user to input according to the verification strategy, and the verification strategy verifies the user's verification operation; therefore, the two are related. For example, if the verification strategy verifies whether the verification code entered by the user is the same as the one issued by the server, the guidance information could be "Please enter the verification code," and the two are linked through the verification code. Of course, the relationship between the verification strategy and the guidance information is not limited to this. When the verification strategy includes multi-step verification, outputting guidance information according to the verification strategy includes outputting guidance information once for each verification step.

[0058] Step 103: Upon receiving user input regarding the guidance information, obtain the changes in ambient light in the environment where the terminal device is located.

[0059] It should be noted that the terminal device is equipped with a sensor capable of detecting light, such as a camera, but not limited to this. Here, the change in light in the environment in which the terminal device is located is the change in light detected by this sensor. This change in light is related to the user's input of guidance information; that is, the user's operation of the terminal device based on the guidance information will cause a change in the light in the environment in which the terminal device is located. For example, if the user blocks the sensor, causing the environment in which the terminal device is located to darken, the light detected by the sensor will decrease; this change in the environment or the change in light is the change in light.

[0060] Step 104: Verify the changes in light based on the verification strategy and obtain the verification results.

[0061] In this step, since the verification configuration information received by the terminal device includes a verification strategy, verification will be performed on the terminal device side. The verification process involves verifying whether the changes in light conditions conform to the verification strategy. If they do, a successful verification result is obtained; otherwise, a failed verification result is obtained. It can be understood that the verification strategy consists of one or more pre-set light change scenarios. Verifying whether the light changes in the terminal device's environment conform to the verification strategy means determining whether the light changes in the verification strategy are consistent with the light changes in the terminal device's environment.

[0062] In this embodiment of the invention, when a user triggers a verification request, verification configuration information sent by the server is received. This verification configuration information includes a verification strategy and guidance information to guide the user to input information according to the verification strategy. After outputting the guidance information according to the verification strategy, the user is guided to perform a verification operation. Then, the changes in ambient light conditions caused by the user's verification operation are obtained. Based on these changes in ambient light conditions and the verification strategy sent from the server to the terminal device, a verification judgment is performed locally on the terminal device to obtain the verification result. This verification process, after outputting the guidance information, avoids the influence of network conditions. Furthermore, since the changes in ambient light conditions are based on the user's operation, which is difficult to achieve solely through the terminal device itself, the system's security is improved.

[0063] Optionally, the verification strategy includes: the duration of the change in light.

[0064] The system outputs guidance information according to the verification strategy, including:

[0065] Output guidance information to the user to cover the camera unit of the terminal device and maintain this guidance for a continuous duration;

[0066] Acquire changes in ambient light conditions around the terminal device, including:

[0067] The camera unit acquires information about changes in ambient light in the environment where the terminal device is located, as detected by the camera unit.

[0068] It should be noted that the duration of the light change in the verification strategy can be a short duration in seconds, such as 0 seconds, 1 second, 2 seconds, 3 seconds, etc., but is not limited to this. Specifically, when the duration of the light change in the verification strategy is 0 seconds, the output guidance information can be "Please cover the camera"; when the duration of the light change in the verification strategy is N seconds (greater than 0 seconds), the output guidance information can be "Please cover the camera and keep it covered for N seconds".

[0069] Accordingly, when the verification strategy includes a duration of 0 seconds following a light change, if the user blocks the camera unit as instructed in the guidance information, the camera unit should detect a change in ambient light in the terminal device's environment from bright to dark. This satisfies the verification strategy, meaning the change in light from bright to dark satisfies the condition that the duration of the light change is 0 seconds. If the user does not block the camera unit as instructed in the guidance information, the camera unit should detect no change in ambient light in the terminal device's environment. This does not satisfy the verification strategy, meaning no change in light does not satisfy the condition that the duration of the light change is 0 seconds. Similarly, when the verification strategy includes a duration of N seconds following a light change, if the user blocks the camera unit as instructed in the guidance information for at least N seconds, the camera unit should detect a change in ambient light in the terminal device's environment from bright to dark, and this change should last for at least N seconds. This satisfies the verification strategy, meaning the change in light from bright to dark, and this change should last for at least N seconds, satisfying the condition that the duration of the light change is N seconds. If the user does not input the information as instructed, the camera unit may detect a change in ambient light in the terminal device's environment that changes from bright to dark, but the duration is less than N seconds. In this case, it does not meet the verification strategy, that is, the change in light from bright to dark, but the duration is less than N seconds, does not meet the condition that the duration of the light change is N seconds.

[0070] Preferably, when the verification process includes multi-step verification, the verification strategy includes multiple different durations, each duration corresponding to one verification step. Thus, for each duration, guidance information is output to instruct the user to cover the camera unit while maintaining the duration. Each time guidance information is output for a specific duration, the light changes in the environment where the terminal device is located, as detected by the camera unit, are obtained. Based on the verification strategy and the obtained light changes each time, three verification results are obtained, and the final verification result is generated based on these three results. For example, if the verification strategy includes 0 seconds, 3 seconds, and 0 seconds, the initial guidance information is: "Please cover the camera." If the user follows the guidance information, the obtained light change in the environment where the terminal device is located should be from bright to dark, indicating successful verification. The next guidance information is: "Please cover the camera for 3 seconds." If the user follows the guidance information, the obtained light change in the environment where the terminal device is located should be from bright to dark for 3 seconds, indicating successful verification. The next guidance information is: "Please cover the camera." If the user inputs the information as instructed, the ambient light level of the terminal device should change from bright to dark. This indicates a successful verification. Since all three verifications are successful, the final verification result is successful. If any verification fails, the final verification result is also unsuccessful. It's understandable that if any verification before the final verification fails, subsequent verifications are unnecessary, and the final verification result can be directly determined as unsuccessful.

[0071] In this embodiment of the invention, the verification strategy is set to the duration of the light change, which can guide the user to block the camera unit of the terminal device and verify the light change caused by the user blocking the camera unit, so as to realize the user's identity verification. This eliminates the need for the user to perform touch operation on the terminal device, thereby simplifying the user's operation.

[0072] Optionally, the terminal device is equipped with multiple camera units, and the verification strategy also includes: a camera identifier indicating any camera unit;

[0073] Output guidance information that guides the user to cover the camera unit of the terminal device and maintains this guidance for a continuous duration, including:

[0074] Output guidance information to the user indicating the camera unit to cover the camera, and maintain this guidance for a continuous duration;

[0075] The camera unit acquires information about changes in ambient light around the terminal device, including:

[0076] The camera unit, indicated by the camera identification, detects changes in the ambient light of the terminal device.

[0077] It should be noted that different camera units have different camera identifiers. When a terminal device has multiple camera units, these units can be distinguished by their camera identifiers. For example, if the terminal device is a mobile phone, it typically includes two camera units: a front-facing camera and a rear-facing camera. The camera identifier for the front-facing camera can be A, and the camera identifier for the rear-facing camera can be B. Specifically, when the verification strategy includes a duration of 0 seconds following a change in light and a camera identifier A indicating the front-facing camera, the output guidance information can be "Please cover the front-facing camera"; when the verification strategy includes a duration of N seconds (greater than 0 seconds) following a change in light and a camera identifier B indicating the rear-facing camera, the output guidance information can be "Please cover the rear-facing camera and hold for N seconds".

[0078] Accordingly, when the verification strategy includes a duration of 0 seconds following a light change and a camera identifier A indicating the front-facing camera, if the user covers the front-facing camera as instructed, the front-facing camera should detect a change in ambient light from bright to dark. In this case, the verification strategy is satisfied, meaning the change in light from bright to dark meets the condition of a duration of 0 seconds following the light change. If the user does not cover the front-facing camera as instructed, the front-facing camera should detect no change in ambient light. In this case, the verification strategy is not satisfied, meaning the lack of change in light does not meet the condition of a duration of 0 seconds following a light change. Similarly, when the verification strategy includes a duration of N seconds (greater than 0 seconds) following a change in light intensity and a camera identifier B indicating the rear camera, if the user follows the guidance and blocks the rear camera for at least N seconds, the light change detected by the rear camera should be a change from bright to dark, lasting at least N seconds. This satisfies the verification strategy, meaning the duration of the light change is N seconds. If the user does not follow the guidance, the light change detected by the rear camera might be a change from bright to dark, but lasting less than N seconds. This does not satisfy the verification strategy, meaning the duration of the light change is N seconds.

[0079] In this embodiment of the invention, the verification strategy includes not only the duration of the light change, but also a camera identifier indicating any camera unit. This can guide the user to block a specific camera unit on the terminal device and verify the light change caused by the user blocking the specific camera unit, thereby verifying the user's identity. By specifying the camera unit, the difficulty of machine recognition and tampering can be further increased, thereby further improving the security of the system.

[0080] Optionally, the number of camera identifiers and durations in the verification strategy are both multiple and correspond one-to-one;

[0081] Output guidance information to the user indicating the camera unit to block the camera, and maintain this guidance for a continuous duration, including:

[0082] For each camera icon, output guidance information that instructs the user to block the camera unit indicated by the camera icon, while maintaining the duration corresponding to the camera icon;

[0083] The system acquires the ambient light changes of the terminal device's environment detected by the camera unit indicated by the camera icon, including:

[0084] Each time guidance information is output for a camera marker, the changes in ambient light in the terminal device's environment, as detected by the camera unit indicated by the camera marker, are obtained.

[0085] It should be noted that when the verification process includes multiple verification steps, each camera identifier in the verification strategy corresponds to one verification step. For example, if the verification strategy includes two camera identifiers and two durations, the verification process includes two verification steps, and each verification step uses one camera identifier and its corresponding duration.

[0086] The following is a specific example illustrating the application process of the verification method, where the verification configuration information received by the terminal device is shown below:

[0087]

[0088]

[0089] The values ​​of the "timeLenth" and "frontOrNot" fields in the above verification configuration information are the specific content of the verification strategy; the value of the "tips" field is the specific content of the guidance information.

[0090] After receiving the above verification configuration information, the terminal device can determine that the verification process consists of three steps. Step 1: Obtain and output the first value in the "tips" field: "Please cover the front camera light source." Based on the first value in the "frontOrNot" field: 1, activate the front camera and wait for user input. If the user covers the front camera, the light change in the environment detected by the front camera should be from bright to dark. Based on the first value in the "timeLenth" field: "0," the verification can be considered successful. Step 2: Obtain and output the second value in the "tips" field: "Please cover the front camera light source for 1 second." Based on the second value in the "frontOrNot" field: 1, activate the front camera and wait for user input. If the user covers the front camera for at least 1 second, the light change in the environment detected by the front camera should be from bright to dark for at least 1 second. Based on the second value in the "timeLenth" field: "1," the verification can be considered successful. The third verification step: Obtain and output the third value in the "tips" field: "Please cover the rear camera light source". Based on the third value in the "frontOrNot" field: 0, turn on the rear camera and wait for user input. If the user covers the rear camera, the light change in the environment detected by the rear camera should be from bright to dark. Based on the third value in the "timeLenth" field: "0", it can be determined that this verification is successful. Since all three verification results are successful, the final verification result is successful. If any verification result is a failure, the final verification result is a failure. It can be understood that if any verification result before the last verification is a failure, there is no need to perform subsequent verifications, and the final verification result can be directly determined as a failure.

[0091] In this embodiment of the invention, the number of camera identifiers and durations in the verification strategy are both multiple, thereby enabling multi-step verification. Furthermore, different cameras and durations can be specified in each verification step, further increasing the difficulty for machines to identify and tamper with the data, thereby further enhancing the security of the system.

[0092] Optionally, when user input regarding guidance information is received and its duration is greater than zero, the method further includes:

[0093] Display a countdown control on the current page, starting from the duration.

[0094] In this step, the control can be displayed floating on the current page, but it is not limited to this. Here, the control can be displayed anywhere on the current page; preferably, it is displayed in the center of the current page. Preferably, the control can also be hidden when the countdown ends, or a reminder message can be displayed to remind the user that the countdown is over. It is understood that the countdown on the current page can be an animation, and the control is a control that loads the animation, but it is not limited to this.

[0095] In this embodiment of the invention, displaying a countdown control on the current page, starting from the duration of the countdown, not only increases the fun but also reminds the user to maintain the duration of the camera blockage, thus preventing verification failure due to insufficient duration of the camera blockage.

[0096] Optionally, when a verification request is triggered, the method further includes:

[0097] Adjust the current display page to a disabled state that prevents it from responding to user touch operations;

[0098] After verifying the changes in light based on the verification strategy and obtaining the verification results, the method further includes:

[0099] If the verification result indicates that the verification was successful, the usage status will be adjusted to a licensed status that allows responses to user touch operations.

[0100] It should be noted that when the currently displayed page is in a disabled state, the terminal device will not respond to user touch operations even if the user performs a touch operation. Preferably, adjusting the current displayed page to a disabled state that prevents response to user touch operations includes: displaying a preset blank page, wherein the blank page completely covers the original page, which is the page displayed when the verification request is triggered. When the currently displayed page is in a permitted state, the terminal device can respond normally to user touch operations even if the user performs a touch operation. Preferably, adjusting the state to a permitted state that allows response to user touch operations includes: deleting the preset blank page and displaying the original page.

[0101] In this embodiment of the invention, the usage status of the currently displayed page is adjusted to a disabled state during the verification process, which can block other operations by the user during the verification process and avoid affecting the verification process. Simultaneously, after successful verification, the usage status is adjusted to a permitted state, allowing the user to continue accessing the page.

[0102] like Figure 2 The diagram shown is a flowchart illustrating the practical application of the verification method provided in this embodiment of the invention, including:

[0103] Step 201: User triggers security verification conditions. That is, when the user's operation on the terminal device meets the security verification conditions, a verification request is triggered and sent to the backend (server).

[0104] Step 202: The backend issues a security verification configuration, which is equivalent to the verification configuration information in the above embodiments of the invention, and will not be described again here. The security verification configuration issued by the backend can be randomly adjusted to avoid fixed or regular configurations being cracked, increasing the difficulty for black market operators to crack it. The guidance information in the security verification configuration of this embodiment of the invention can be "Please cover the front camera", and the verification strategy can include: front camera, duration of 0 seconds. This is only an example, and the following steps are all described according to this example, but the invention is not limited thereto.

[0105] Step 203: Parse the security verification configuration and block user operations, so that the terminal device no longer responds to the user's touch operations.

[0106] Step 204: Begin security verification.

[0107] Step 205: Based on the data after parsing the security verification configuration, output "Please cover the front camera" and execute step 206: Turn on the front camera.

[0108] Step 207: User input (blocking the front camera), causing a change in the ambient light of the terminal device's environment.

[0109] Step 208: The front-facing camera detects a change in ambient light.

[0110] Step 209: The change in ambient light meets the configuration requirements, that is, the ambient light changes from bright to dark.

[0111] Step 210: Determine if the duration in the security verification configuration is greater than 0. If yes, proceed to step 212; otherwise, proceed to step 211.

[0112] Step 211: If the duration in the security verification configuration in this embodiment is not greater than 0, then the verification is successful.

[0113] Step 212: If the duration in the security verification configuration is greater than 0, for example, 3 seconds, then start the countdown, which will begin from 3.

[0114] Step 213: During the countdown, use the front-facing camera to monitor whether the ambient light changes again. If yes, proceed to step 214; otherwise, proceed to step 211.

[0115] Step 214: Verification failed. You can repeat step 204 to restart the security verification.

[0116] Step 215: After successful verification, the user can continue to use the service normally.

[0117] Step 216: Report the verification results to the backend.

[0118] In this embodiment of the invention, a security verification configuration is issued to guide the user to perform specific actions that cause changes in ambient light. A camera monitors these changes and determines whether they meet the configuration requirements, thus completing the security verification challenge. The verification process does not rely on third-party verification, making it simple and low-cost. Furthermore, the issued security verification configuration can be adjusted at any time, and the terminal device implements the verification logic. Once the security verification configuration is received, even if the network connection is subsequently lost, subsequent processes are not blocked, making it more secure and efficient. The verification behavior is simple; users can perform the verification operation based on the prompts, making user participation more engaging.

[0119] In another aspect, the present invention provides a verification method applied to a server, the method comprising:

[0120] Receive verification requests sent by terminal devices;

[0121] The pre-stored verification configuration information is sent to the terminal device so that the terminal device can perform verification operations based on the verification configuration information.

[0122] It should be noted that the process of verifying configuration information and the terminal device performing verification operations based on the verification configuration information is described above in the verification method applied to the terminal device, and will not be repeated here. Preferably, the server pre-stores a large number of different verification configuration information, so that after receiving a verification request, it randomly selects a set of verification configuration information and sends it to the terminal device.

[0123] In this embodiment of the invention, during the verification process of the terminal device, it is only necessary to send the verification configuration information to the terminal device, and the verification result is obtained by the terminal device side, thereby avoiding the influence of network conditions.

[0124] The verification method provided by the embodiments of the present invention has been described above. The verification device provided by the embodiments of the present invention will be described below with reference to the accompanying drawings.

[0125] like Figure 3 As shown, an embodiment of the present invention provides a verification device applied to a terminal device, the device comprising:

[0126] The receiving module 31 is used to receive verification configuration information sent by the server when a verification request is triggered. The verification configuration information includes: verification policy and guidance information to guide the user to input according to the verification policy.

[0127] Output module 32 is used to output guidance information according to the verification strategy;

[0128] The acquisition module 33 is used to acquire the changes in the ambient light of the terminal device when it receives input from the user regarding the guidance information.

[0129] The verification module 34 is used to verify the changes in light based on the verification strategy and obtain the verification results.

[0130] Optionally, the verification strategy includes: the duration of the change in light;

[0131] The output module 32 is specifically used to output guidance information that guides the user to cover the camera unit of the terminal device and maintains the guidance information for a continuous duration;

[0132] The acquisition module 33 is specifically used to acquire the changes in light in the environment where the terminal device is located, as detected by the camera unit.

[0133] Optionally, the terminal device is equipped with multiple camera units, and the verification strategy also includes: a camera identifier indicating any camera unit;

[0134] The output module 32 is specifically used to output guidance information that guides the user to cover the camera unit and maintains the guidance information for a continuous duration;

[0135] The acquisition module 33 is specifically used to acquire the changes in light in the environment of the terminal device detected by the camera unit indicated by the camera tag.

[0136] Optionally, the number of camera identifiers and durations in the verification strategy are both multiple and correspond one-to-one;

[0137] The output module 32 is specifically used to sequentially output guidance information for each camera marker, guiding the user to block the camera unit indicated by the camera marker, while maintaining the duration corresponding to the camera marker.

[0138] The acquisition module 33 is specifically used to acquire the changes in the ambient light of the terminal device detected by the camera unit indicated by the camera sign, each time guidance information is output for the camera sign.

[0139] Optionally, the device further includes a display module for displaying a countdown control on the current page, which starts counting down from the duration, when user input for guidance information is received and the duration is greater than zero.

[0140] Optionally, the device further includes:

[0141] The disable module is used to adjust the usage state of the currently displayed page to a disabled state that prevents it from responding to user touch operations when a verification request is triggered.

[0142] The licensing module is used to adjust the usage status to a licensed state that allows responding to user touch operations when the verification result indicates that the verification is successful.

[0143] In this embodiment of the invention, when a user triggers a verification request, verification configuration information sent by the server is received. This verification configuration information includes a verification strategy and guidance information to guide the user to input information according to the verification strategy. After outputting the guidance information according to the verification strategy, the user is guided to perform a verification operation. Then, the changes in ambient light conditions caused by the user's verification operation are obtained. Based on these changes in ambient light conditions and the verification strategy sent from the server to the terminal device, a verification judgment is performed locally on the terminal device to obtain the verification result. This verification process, after outputting the guidance information, avoids the influence of network conditions. Furthermore, since the changes in ambient light conditions are based on the user's operation, which is difficult to achieve solely through the terminal device itself, the system's security is improved.

[0144] The verification device provided in this application embodiment can achieve... Figure 1 The various processes implemented in the method embodiments achieve the same technical effect, and will not be described again here to avoid repetition.

[0145] On the other hand, embodiments of the present invention also provide an electronic device, including a memory, a processor, a bus, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the steps in the verification method described above.

[0146] For example, see below. Figure 4 A schematic diagram of the physical structure of an electronic device is shown.

[0147] like Figure 4 As shown, the electronic device may include a processor 410, a communications interface 420, a memory 430, and a communication bus 440, wherein the processor 410, the communications interface 420, and the memory 430 communicate with each other via the communication bus 440. The processor 410 can call logical instructions in the memory 430 to execute the following methods:

[0148] When a verification request is triggered, the system receives verification configuration information sent by the server. The verification configuration information includes: verification policy and guidance information to guide the user to input according to the verification policy.

[0149] Output guidance information according to the verification strategy;

[0150] Upon receiving user input regarding guidance information, the system obtains information about changes in ambient light around the terminal device.

[0151] The verification strategy was used to verify the changes in light, and the verification results were obtained.

[0152] Furthermore, the logical instructions in the aforementioned memory 430 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, essentially, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0153] Furthermore, embodiments of the present invention also provide a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, is implemented to perform the verification methods provided in the above embodiments, including, for example:

[0154] When a verification request is triggered, the system receives verification configuration information sent by the server. The verification configuration information includes: verification policy and guidance information to guide the user to input according to the verification policy.

[0155] Output guidance information according to the verification strategy;

[0156] Upon receiving user input regarding guidance information, the system obtains information about changes in ambient light around the terminal device.

[0157] The verification strategy was used to verify the changes in light, and the verification results were obtained.

[0158] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.

[0159] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.

[0160] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A verification method applied to a terminal device, characterized in that, The method includes: When a verification request is triggered, the system receives verification configuration information sent by the server, wherein the verification configuration information includes: a verification strategy and guidance information to guide the user to input according to the verification strategy; The guidance information is output according to the verification strategy; Upon receiving user input regarding the guidance information, the system acquires information about changes in ambient light in the environment where the terminal device is located. The light change was verified based on the verification strategy, and the verification results were obtained. When a verification request is triggered, the method further includes: Adjust the current display page to a disabled state that prevents it from responding to user touch operations; Adjusting the usage state of the currently displayed page to a disabled state that prevents it from responding to user touch operations includes: displaying a preset blank page, wherein the blank page completely covers the original page, which is the page displayed when a verification request is triggered.

2. The method according to claim 1, characterized in that, The verification strategy includes: the duration of the light change; The guidance information is output according to the verification strategy, including: Output guidance information that instructs the user to block the camera unit of the terminal device and maintains the specified duration; The step of acquiring the light changes in the environment where the terminal device is located includes: The camera unit detects changes in the ambient light conditions of the terminal device.

3. The method according to claim 2, characterized in that, The terminal device is equipped with multiple camera units, and the verification strategy further includes: a camera identifier indicating any of the camera units; The output guiding the user to block the camera unit of the terminal device, while maintaining the guidance information for the specified duration, includes: Output guidance information that instructs the user to block the camera unit indicated by the camera icon, and maintains the guidance information for the specified duration; The step of acquiring the light changes in the environment of the terminal device detected by the camera unit includes: The camera unit, indicated by the camera identifier, detects changes in the ambient light of the terminal device.

4. The method according to claim 3, characterized in that, The number of camera identifiers and durations in the verification strategy are both multiple, and they correspond one-to-one; The output guides the user to block the camera unit indicated by the camera icon, and maintains the guidance information for the specified duration, including: For each of the aforementioned camera markers, output guidance information is provided to the user to block the camera unit indicated by the camera marker, while maintaining the duration corresponding to the camera marker. The acquisition of the light changes in the environment of the terminal device detected by the camera unit indicated by the camera identifier includes: Each time the guidance information is output for the camera identifier, the light changes in the environment where the terminal device is located are obtained by the camera unit indicated by the camera identifier.

5. The method according to claim 2, characterized in that, If the user inputs the guidance information is received and the duration is greater than zero, the method further includes: Display a countdown control on the current page that starts from the duration stated.

6. The method according to claim 1, characterized in that, After verifying the light change based on the verification strategy and obtaining the verification result, the method further includes: If the verification result indicates successful verification, the usage state will be adjusted to a permitted state that allows responses to user touch operations.

7. A verification device, applied to a terminal device, characterized in that, The device includes: The receiving module is used to receive verification configuration information sent by the server when a verification request is triggered, wherein the verification configuration information includes: a verification strategy and guidance information to guide the user to input according to the verification strategy; The output module is used to output the guidance information according to the verification strategy; The acquisition module is used to acquire the light changes in the environment where the terminal device is located when the user inputs the guidance information. The verification module is used to verify the changes in light based on the verification strategy and obtain the verification result; The device further includes: The disable module is used to adjust the usage state of the currently displayed page to a disabled state that prevents it from responding to user touch operations when a verification request is triggered. The disabled module is specifically used to display a preset blank page, wherein the blank page completely covers the original page, which is the page displayed when the verification request is triggered.

8. The apparatus according to claim 7, characterized in that, The verification strategy includes: the duration of the light change; The output module is specifically used to output guidance information that guides the user to block the camera unit of the terminal device and maintains the duration of the guidance. The acquisition module is specifically used to acquire the changes in light in the environment where the terminal device is located, as detected by the camera unit.

9. An electronic device comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, characterized in that, When the computer program is executed by the processor, it implements the steps of the verification method as described in any one of claims 1 to 6.

10. A computer-readable storage medium, characterized in that, A computer program is stored on the computer-readable storage medium, which, when executed by a processor, implements the steps of the verification method as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Mobile terminal and unlocking operation processing method

    CN103365554A

  • Identity authentication method and mobile terminal

    CN106339620A

  • Online signed video recording device and recording method thereof

    CN111800575A