Graphical verification method, apparatus, non-transitory storage medium, and electronic device

By detecting click events on the human-computer interaction interface and generating diffused graphic elements to cover the closed graphic, the problem of poor security of existing digital verification codes is solved, and protection against machine cracking and a user-friendly verification process are achieved.

CN115906044BActive Publication Date: 2026-05-19CHINA TELECOM CORP LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
CHINA TELECOM CORP LTD
Filing Date
2022-12-22
Publication Date
2026-05-19

AI Technical Summary

Technical Problem

Existing digital verification codes have poor security, are easily cracked by machines, and are not suitable for verification in all programs.

Method used

By detecting click events on the human-computer interaction interface, target graphic elements are generated and diffused until they cover the target closed graphic, thus confirming successful graphic verification.

Benefits of technology

It improves the security of CAPTCHAs, prevents brute-force attacks by machines, simplifies user operations, and enhances the security and reliability of CAPTCHAs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115906044B_ABST
    Figure CN115906044B_ABST
Patent Text Reader

Abstract

The application discloses a kind of graphic verification method, device, nonvolatile storage medium and electronic equipment.Therein, the method includes: detecting the click event in the target closed figure shown in human-computer interaction interface;With the landing point of click event on human-computer interaction interface as starting point, generate target graphic element in target closed figure, and according to the duration of click event, the target graphic element is diffused in the area where target closed figure is located;In the case where target graphic element covers target closed figure, it is determined that graphic verification succeeds.The present application solves the technical problem that the security of existing digital verification code is poor.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computers, and more specifically, to a graphical verification method, apparatus, non-volatile storage medium, and electronic device. Background Technology

[0002] With the development of the internet, a wave of internet technology has swept across all industries. Numerous user-service programs have emerged. When users use these programs, the client submits data to the program's server. If this process is manually operated, the speed will not be fast, and the server can easily handle it. However, if someone uses a machine to impersonate a human to perform brute-force attacks, allowing the machine to automatically execute various services, the volume of data sent per second becomes incalculable. This not only results in a large amount of spam registration information and massive collection and aggregation of user information, but in severe cases, it could even cripple or destroy the entire program.

[0003] Given the above, CAPTCHAs have become indispensable. However, as machines become increasingly intelligent, simple numeric CAPTCHAs may no longer be immune to being cracked. Programs may use OCR to recognize and read text from images, resulting in modern random numeric CAPTCHAs being often distorted and using various confusing colors. Such CAPTCHAs are readable by humans but difficult for machines to recognize.

[0004] However, simple numeric CAPTCHAs still carry the risk of being cracked, and not all programs are suitable for verifying random numeric CAPTCHAs.

[0005] There is currently no effective solution to the problem of poor security in existing digital CAPTCHAs.

[0006] Application content

[0007] This application provides a graphical verification method, apparatus, non-volatile storage medium, and electronic device to at least solve the technical problem of poor security of existing digital verification codes.

[0008] According to one aspect of the embodiments of this application, a graphic verification method is provided, comprising: detecting a click event within a target closed graphic displayed on a human-computer interaction interface; generating a target graphic element within the target closed graphic, starting from the point where the click event lands on the human-computer interaction interface; spreading the target graphic element within the area where the target closed graphic is located according to the duration of the click event; and determining that the graphic verification is successful when the target graphic element covers the target closed graphic.

[0009] Optionally, detecting click events within a target closed shape displayed on the human-computer interaction interface includes: listening to click events on the human-computer interaction interface; determining whether the landing point of the click event is located within the target closed shape; and if the landing point of the click event is located within the target closed shape, determining that the click event is a click event within the target closed shape.

[0010] Optionally, determining whether the landing point of the click event is located within the target closed shape includes: obtaining the landing point position of the click event, wherein the landing point position is used to represent the position information of the landing point on the human-computer interaction interface; obtaining the graphic position of the target closed shape, wherein the graphic position is used to represent the position information of the outline of the target closed shape on the human-computer interaction interface; and determining whether the landing point position is within the range of the graphic position.

[0011] Optionally, spreading the target graphic element within the area where the target closed graphic is located according to the duration of the click event includes: detecting the duration of the click event; if the click event remains continuous, spreading the target graphic element within the area where the target closed graphic is located according to the duration of the click event; if the click event does not remain continuous, determining whether the target graphic element covers the target closed graphic; and if the target graphic element does not cover the target closed graphic, clearing the target graphic element.

[0012] Optionally, when the target graphic element covers the target closed graphic, determining that the graphic verification is successful includes: obtaining the target identifier of the target closed graphic; querying the target area of ​​the target closed graphic in a preset database based on the target identifier, wherein the preset database stores preset identifiers of multiple preset closed graphics and preset areas corresponding to each preset identifier; verifying whether the element area of ​​the target graphic element matches the target area; and determining that the graphic verification is successful if the element area matches the target area.

[0013] Optionally, when the target graphic element covers the target closed graphic, determining that the graphic verification is successful includes: when the target graphic element covers the target closed graphic, detecting whether the click event is disconnected within a preset time; and when the click event is disconnected within the preset time, determining that the graphic verification is successful.

[0014] Optionally, before detecting a click event within the target closed graphic displayed on the human-computer interaction interface, the method further includes: obtaining graphic information of the target closed graphic, wherein the graphic information includes at least: the target area and target identifier of the target closed graphic; displaying the target closed graphic on the human-computer interaction interface based on the target area, and adding the target identifier to the target closed graphic.

[0015] According to another aspect of the embodiments of this application, a graphic verification device is also provided, comprising: a detection module for detecting click events within a target closed graphic displayed on a human-computer interaction interface; a generation module for generating a target graphic element within the target closed graphic, starting from the point where the click event lands on the human-computer interaction interface; a diffusion module for diffusion of the target graphic element within the area where the target closed graphic is located according to the duration of the click event; and a determination module for determining that the graphic verification is successful when the target graphic element covers the target closed graphic.

[0016] According to another aspect of the embodiments of this application, a non-volatile storage medium is also provided, wherein a program is stored in the non-volatile storage medium, wherein the program controls the device where the non-volatile storage medium is located to execute the above-described graphic verification method when it is running.

[0017] According to another aspect of the embodiments of this application, an electronic device is also provided, including: a memory and a processor, the processor being configured to run a program stored in the memory, wherein the program, when running, executes the graphical verification method described above.

[0018] In this embodiment, a click event is detected within a target closed graphic displayed on the human-computer interaction interface; a target graphic element is generated within the target closed graphic, starting from the point where the click event lands on the human-computer interaction interface; the target graphic element is diffused within the area where the target closed graphic is located according to the duration of the click event; if the target graphic element covers the target closed graphic, the graphic verification is determined to be successful, thus achieving the purpose of security code verification based on graphics. By causing the target graphic element to diffuse through the click event until it covers the target closed graphic, the verification method is not only convenient but also has a good countermeasure against brute-force attacks by machines, thereby achieving the technical effect of improving the security of the verification code and solving the technical problem of poor security of existing digital verification codes. Attached Figure Description

[0019] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:

[0020] Figure 1 This is a flowchart of a graphical verification method according to an embodiment of this application;

[0021] Figure 2a This is a schematic diagram of a graphical verification method according to an embodiment of this application. Figure 1 ;

[0022] Figure 2b This is a schematic diagram two of a graphical verification method according to an embodiment of this application;

[0023] Figure 2c This is a schematic diagram of a graphical verification method according to an embodiment of this application. Figure 3 ;

[0024] Figure 3 This is a schematic diagram of a graphic verification device according to an embodiment of this application;

[0025] Figure 4 This is a structural block diagram of a computer terminal according to an embodiment of this application. Detailed Implementation

[0026] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.

[0027] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0028] According to an embodiment of this application, a graphical verification method embodiment is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.

[0029] Figure 1 This is a flowchart of a graphical verification method according to an embodiment of this application, such as... Figure 1 As shown, the method includes the following steps:

[0030] Step S102: Detect click events within the target closed graphic displayed on the human-computer interaction interface;

[0031] Step S104: Starting from the point where the click event lands on the human-computer interaction interface, generate the target graphic element within the target closed graphic;

[0032] Step S106: Based on the duration of the click event, diffuse the target graphic element within the area where the target closed graphic is located;

[0033] Step S108: If the target graphic element covers the target closed graphic, the graphic verification is confirmed to be successful.

[0034] In this embodiment, a click event is detected within a target closed graphic displayed on the human-computer interaction interface; a target graphic element is generated within the target closed graphic, starting from the point where the click event lands on the human-computer interaction interface; the target graphic element is diffused within the area where the target closed graphic is located according to the duration of the click event; if the target graphic element covers the target closed graphic, the graphic verification is determined to be successful, thus achieving the purpose of security code verification based on graphics. By causing the target graphic element to diffuse through the click event until it covers the target closed graphic, the verification method is not only convenient but also has a good countermeasure against brute-force attacks by machines, thereby achieving the technical effect of improving the security of the verification code and solving the technical problem of poor security of existing digital verification codes.

[0035] In step S102 above, the human-computer interaction interface can be a verification code interface for third-party links, browser logins, or frequent user accesses, used to receive user click events and perform graphical verification.

[0036] In step S102 above, the target closed graphic can be a verification code provided in a graphic format.

[0037] In step S102 above, the click event can be a touch operation performed on a touch terminal or a click operation performed by a mouse on a computer terminal.

[0038] In step S102 above, the states of the click event include: click-triggered state, click-continuous state, and click-terminal state. The click-triggered state indicates the start of the click event and is used to determine the landing point of the click event; the click-continuous state indicates that the click event remains in the triggered state for a period of time; and the click-continuous state indicates the end of the click event.

[0039] In step S104 above, the landing point used to generate the target graphic element can be any position within the area where the target closed graphic is located.

[0040] In step S106 above, the target graphic element can spread according to the duration of the click event. The spread speed is random, but as the duration of the click event increases, the proportion of the target graphic element in the target closed graphic continues to increase.

[0041] As an optional embodiment, detecting click events within a target closed shape displayed on the human-computer interaction interface includes: listening to click events on the human-computer interaction interface; determining whether the landing point of the click event is located within the target closed shape; and if the landing point of the click event is located within the target closed shape, determining that the click event is a click event within the target closed shape.

[0042] In the above embodiments of the present invention, the initial conditions for target closed graphic verification can only be met when the landing point of the click event is located within the target closed graphic. Then, the graphic verification process is executed based on the click event landing point within the target closed graphic, making the manual verification operation more convenient and able to cope with brute-force attacks by machines.

[0043] As an optional embodiment, determining whether the landing point of the click event is located within the target closed shape includes: obtaining the landing point position of the click event, wherein the landing point position is used to represent the position information of the landing point on the human-computer interaction interface; obtaining the graphic position of the target closed shape, wherein the graphic position is used to represent the position information of the outline of the target closed shape on the human-computer interaction interface; and determining whether the landing point position is within the range of the graphic position.

[0044] Optionally, location information can be represented by pixel coordinates on the human-computer interaction interface.

[0045] In the above embodiments of the present invention, when determining whether the landing point of a click event is located within the target closed shape, the landing point position on the human-computer interaction interface and the shape position of the outline of the target closed shape on the human-computer interaction interface can be obtained respectively. Then, based on the position information of the outline of the target closed shape, the closed area indicated by the shape position can be determined. If the position information of the landing point is within the closed area, it means that the landing point is within the range of the shape position; otherwise, the landing point is not within the range of the shape position. This realizes the determination of the relative position between the landing point of the click event and the target closed shape.

[0046] As an optional embodiment, spreading the target graphic element within the area where the target closed graphic is located based on the duration of the click event includes: detecting the duration of the click event; if the click event remains continuous, spreading the target graphic element within the area where the target closed graphic is located based on the duration of the click event; if the click event does not remain continuous, determining whether the target graphic element covers the target closed graphic; if the target graphic element does not cover the target closed graphic, clearing the target graphic element.

[0047] In the above embodiments of the present invention, when the click event remains in a continuous state, the target graphic element can spread within the target closed graphic. If the click event is interrupted during the spreading phase of the target graphic element, the target graphic element is cleared, and the verification starts again from the next click event. This makes the manual verification operation more convenient and can cope with brute-force attacks by machines.

[0048] It should be noted that if the target graphic element has already covered the target closed graphic when the click event is interrupted, it means that the target graphic element has already met the verification conditions of the target closed graphic. Even if the click event is interrupted, it will not affect the subsequent graphic verification.

[0049] Optionally, to determine whether a target graphic element covers a target closed graphic, it can be determined whether the target graphic element covers the outline of the target closed graphic.

[0050] As an optional embodiment, when the target graphic element covers the target closed graphic, determining that the graphic verification is successful includes: obtaining the target identifier of the target closed graphic; querying the target area of ​​the target closed graphic in a preset database based on the target identifier, wherein the preset database stores preset identifiers of multiple preset closed graphics and preset areas corresponding to each preset identifier; verifying whether the element area of ​​the target graphic element matches the target area; and determining that the graphic verification is successful if the element area matches the target area.

[0051] Alternatively, the area can be represented by the number of pixels.

[0052] In the above embodiments of the present invention, each preset closed shape is pre-configured with a corresponding preset identifier, and the correspondence between the preset area of ​​each preset closed shape and the preset identifier is stored in a preset database. When it is determined that the target graphic element covers the target closed shape, the target area of ​​the target closed shape can be queried in the preset database, and it can be determined whether the element area of ​​the target graphic element meets the target area. Then, if the element area meets the target area, the graphic verification is determined to be successful. By comparing the element area of ​​the target graphic element with the target area of ​​the target closed shape, it is possible to accurately determine whether the target graphic element covers the target closed shape.

[0053] As an optional embodiment, determining successful graphic verification when the target graphic element covers the target closed graphic includes: detecting whether the click event is disconnected within a preset time when the target graphic element covers the target closed graphic; and determining successful graphic verification when the click event is disconnected within the preset time.

[0054] In the above embodiments of the present invention, when the target graphic element covers the target closed graphic, it is also necessary to determine whether the click event can be disconnected within a preset time. If the click event fails to disconnect within the preset time, it indicates that the click event is likely a brute-force attack performed by a machine. Therefore, when the target graphic element covers the target closed graphic, detecting whether the click event disconnects within a preset time can make the operation of human verification more convenient and can cope with brute-force attacks by machines.

[0055] Optionally, if the target graphic element covers the target closed graphic, a prompt message can be generated to remind the user to interrupt the click event.

[0056] As an optional embodiment, before detecting click events within the target closed graphic displayed on the human-computer interaction interface, the method further includes: obtaining graphic information of the target closed graphic, wherein the graphic information includes at least: the target area and target identifier of the target closed graphic; displaying the target closed graphic on the human-computer interaction interface based on the target area, and adding a target identifier to the target closed graphic.

[0057] The above embodiments of the present invention can pre-set the graphic information of the target closed graphic, determine the target area and target identifier of the target closed graphic, and then display the target closed graphic according to the target area in the human-computer interaction interface, and add the target identifier to the target closed graphic, thereby realizing the generation of the target closed graphic.

[0058] Optionally, displaying the target closed shape on the human-computer interaction interface based on the target area includes: randomly generating an initial closed shape of arbitrary shape on the human-computer interaction interface; adjusting the size of the initial closed shape according to the target area so that the area of ​​the initial closed shape matches the target area, and then determining that the initial closed shape is the target closed shape.

[0059] The above embodiments of the present invention can randomly generate target closed graphics of any shape based on the target area. The target closed graphics displayed are not limited by shape, and can generate target closed graphics more flexibly. Without changing the difficulty of graphic verification, it can further limit the brute-force cracking behavior of machines.

[0060] This application also provides an optional embodiment, which provides a verification code method based on shadow diffusion overlay graphic verification, which can verify whether it is a human operation and has a good way to deal with malicious access that is not a human operation.

[0061] Figure 2a This is a schematic diagram of a graphical verification method according to an embodiment of this application. Figure 1 , Figure 2b This is a schematic diagram two of a graphical verification method according to an embodiment of this application. Figure 2c This is a schematic diagram of a graphical verification method according to an embodiment of this application. Figure 3 ,like Figure 2a , Figure 2b and Figure 2c As shown, by continuously clicking any point within the target closed shape, a shadow color is applied to the clicked point (i.e., a target graphic element is generated), and this shadow color spreads outwards. When the target closed shape is completely covered from blank space to the shadow color (i.e., the target graphic element), it means the CAPTCHA verification is successful. A pixel background is used here for demonstration, and the covered shape changes color to show full coverage.

[0062] As an optional embodiment, the CAPTCHA method based on shadow diffusion overlay graphic verification is implemented through the following steps:

[0063] S11. The backend will store the pixel size information of the generated canvas into the database (such as the preset database) and record the identifier ID.

[0064] S12. Generate a controllable number of random pixels based on the size of the canvas pixels, and send this number of pixels and its ID to the front end.

[0065] S13. The front-end page (such as the human-computer interaction interface) generates a closed shape (such as the target closed shape) on the canvas based on these points. The number of pixels in the closed shape and the number of pixels in the back-end response can be within 1-2 pixels.

[0066] S14. Obtain the pixel coordinates of the generated graphic lines and listen for user clicks (such as click events) to verify whether the pixel coordinates of the landing point on the canvas (i.e., the landing point position) are within the closed graphic (such as within the range of the target closed graphic's graphic position).

[0067] S15. The front end monitors in real time whether the generated shadow (such as the target graphic element) fully covers the graphic lines (such as the outline of the target closed graphic), and returns the number of pixels within the closed lines, the graphic coverage indicator, and the canvas indicator to the back end.

[0068] S16. The backend first checks whether the graphic lines are fully covered. If they are fully covered, it retrieves the relevant information of the canvas from the database based on the canvas identifier ID, verifies the returned pixels to determine whether the user has successfully verified, and sends the status response to the frontend.

[0069] S17. After obtaining the success status, the front end determines whether the user is still in the click event.

[0070] S18. If the user fails to release the click within the specified time after successful image verification, the verification will fail; otherwise, the verification will succeed.

[0071] As another optional embodiment, the CAPTCHA method based on shadow diffusion overlay graphics verification can also be implemented through the following steps:

[0072] S21. When a user logs in, a graphical verification code (such as a closed target graphic) pops up.

[0073] S22. Prompt the user to click inside the graphic (such as the target closed graphic) until the shadow (such as the target graphic element) spreads and covers the entire graphic (such as the target closed graphic).

[0074] S23. After a user randomly clicks on a graphic (such as a target closed graphic), the shadow at the clicked point (such as a target graphic element) begins to spread.

[0075] S24. When the spread reaches full coverage, a display icon will be shown on the page to remind the user that they can release the click.

[0076] S25. After a series of verifications, the front-end and back-end notify the user that the verification was successful.

[0077] S26. If the user releases the click and the spread is cleared, but the click is not released after full coverage for more than the specified time, the verification fails.

[0078] The verification method provided in this application offers high security. The user's click diffusion position, diffusion rate, and diffusion coverage area are all randomized, greatly increasing the difficulty for machines to crack it. While improving security, it reduces the complexity of user verification, providing a better user experience and demonstrating excellent novelty. The verification success is highly intuitive, not only convenient for users but also providing a good countermeasure against brute-force attacks by machines.

[0079] The technical solution provided in this application verifies user actions by expanding the coverage of the shadow of a graphic (i.e., the target graphic element). It can be displayed and added in scenarios such as redirecting to third-party links, browser login, and frequent user visits. It is not only easy to operate, but also has more room for maneuver in terms of style.

[0080] According to the embodiments of this application, an embodiment of a graphic verification device is also provided. It should be noted that the graphic verification device can be used to execute the graphic verification method in the embodiments of this application, and the graphic verification method in the embodiments of this application can be executed in the graphic verification device.

[0081] Figure 3 This is a schematic diagram of a graphic verification device according to an embodiment of this application, such as... Figure 3 As shown, the device may include: a detection module 32 for detecting click events within a target closed graphic displayed on a human-computer interaction interface; a generation module 34 for generating a target graphic element within the target closed graphic, starting from the point where the click event lands on the human-computer interaction interface; a diffusion module 36 for diffusion of the target graphic element within the area where the target closed graphic is located, based on the duration of the click event; and a determination module 38 for determining that the graphic verification is successful when the target graphic element covers the target closed graphic.

[0082] It should be noted that the detection module 32 in this embodiment can be used to execute step S102 in this application embodiment, the generation module 34 in this embodiment can be used to execute step S104 in this application embodiment, the diffusion module 36 in this embodiment can be used to execute step S106 in this application embodiment, and the determination module 38 in this embodiment can be used to execute step S108 in this application embodiment. The examples and application scenarios implemented by the above modules and corresponding steps are the same, but are not limited to the content disclosed in the above embodiments.

[0083] In this embodiment, a click event is detected within a target closed graphic displayed on the human-computer interaction interface; a target graphic element is generated within the target closed graphic, starting from the point where the click event lands on the human-computer interaction interface; the target graphic element is diffused within the area where the target closed graphic is located according to the duration of the click event; if the target graphic element covers the target closed graphic, the graphic verification is determined to be successful, thus achieving the purpose of security code verification based on graphics. By causing the target graphic element to diffuse through the click event until it covers the target closed graphic, the verification method is not only convenient but also has a good countermeasure against brute-force attacks by machines, thereby achieving the technical effect of improving the security of the verification code and solving the technical problem of poor security of existing digital verification codes.

[0084] As an optional embodiment, the detection module includes: a listening unit for listening to click events on the human-computer interaction interface; a first judging unit for judging whether the landing point of the click event is located within the target closed shape; and a first determining unit for determining that the click event is a click event within the target closed shape if the landing point of the click event is located within the target closed shape.

[0085] As an optional embodiment, the determination unit includes: a first acquisition subunit, used to acquire the landing point position of the click event, wherein the landing point position is used to represent the position information of the landing point on the human-computer interaction interface; a second acquisition subunit, used to acquire the graphic position of the target closed graphic, wherein the graphic position is used to represent the position information of the outline of the target closed graphic on the human-computer interaction interface; and a determination subunit, used to determine whether the landing point position is within the range of the graphic position.

[0086] As an optional embodiment, the diffusion module includes: a first detection unit for detecting the duration of a click event; a diffusion unit for diffusion of the target graphic element within the area where the target closed graphic is located, based on the duration of the click event, while the click event remains continuous; a second judgment unit for determining whether the target graphic element covers the target closed graphic when the click event does not remain continuous; and a clearing unit for clearing the target graphic element when the target graphic element does not cover the target closed graphic.

[0087] As an optional embodiment, the determining module includes: an acquisition unit for acquiring a target identifier of a target closed shape; a query unit for querying the target area of ​​a target closed shape in a preset database based on the target identifier, wherein the preset database stores preset identifiers of multiple preset closed shapes and preset areas corresponding to each preset identifier; a verification unit for verifying whether the element areas of the target shape elements conform to the target area; and a second determining unit for determining that the shape verification is successful if the element areas conform to the target area.

[0088] As an optional embodiment, the determining module includes: a second detection unit, used to detect whether the click event is disconnected within a preset time when the target graphic element covers the target closed graphic; and a third determining unit, used to determine that the graphic verification is successful when the click event is disconnected within the preset time.

[0089] As an optional embodiment, the device further includes: an acquisition submodule, configured to acquire graphic information of the target closed graphic before detecting a click event within the target closed graphic displayed on the human-computer interaction interface, wherein the graphic information includes at least: the target area and target identifier of the target closed graphic; and a display submodule, configured to display the target closed graphic on the human-computer interaction interface based on the target area and add a target identifier to the target closed graphic.

[0090] Embodiments of this application may provide a computer terminal, which may be any computer terminal device in a group of computer terminals. Optionally, in this embodiment, the aforementioned computer terminal may also be replaced by a mobile terminal or other terminal device.

[0091] Optionally, in this embodiment, the computer terminal may be located in at least one of a plurality of network devices in a computer network.

[0092] In this embodiment, the computer terminal described above can execute the program code for the following steps in the graphic verification method: detecting a click event within a target closed graphic displayed on the human-computer interaction interface; generating a target graphic element within the target closed graphic, starting from the point where the click event lands on the human-computer interaction interface; spreading the target graphic element within the area where the target closed graphic is located according to the duration of the click event; and determining that the graphic verification is successful when the target graphic element covers the target closed graphic.

[0093] Optionally, Figure 4 This is a structural block diagram of a computer terminal according to an embodiment of this application. Figure 4 As shown, the computer terminal 40 may include one or more (only one is shown in the figure) processors 42 and memory 44.

[0094] The memory can be used to store software programs and modules, such as the program instructions / modules corresponding to the graphic verification method and apparatus in this application embodiment. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory, thereby realizing the aforementioned graphic verification method. The memory may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include memory remotely located relative to the processor, and these remote memories can be connected to the terminal 40 via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.

[0095] The processor can access information and applications stored in memory via a transmission device to perform the following steps: detect a click event within a target closed graphic displayed on the human-computer interaction interface; generate a target graphic element within the target closed graphic, starting from the point where the click event lands on the human-computer interaction interface; expand the target graphic element within the area where the target closed graphic is located according to the duration of the click event; and determine that the graphic verification is successful if the target graphic element covers the target closed graphic.

[0096] Optionally, the processor may also execute program code that performs the following steps: listens for click events on the human-computer interaction interface; determines whether the landing point of the click event is within the target closed shape; and if the landing point of the click event is within the target closed shape, determines that the click event is a click event within the target closed shape.

[0097] Optionally, the processor may also execute program code that performs the following steps: obtaining the landing point position of the click event, wherein the landing point position is used to represent the position information of the landing point on the human-computer interaction interface; obtaining the graphic position of the target closed graphic, wherein the graphic position is used to represent the position information of the outline of the target closed graphic on the human-computer interaction interface; and determining whether the landing point position is within the range of the graphic position.

[0098] Optionally, the processor may also execute program code that performs the following steps: detects the duration of the click event; if the click event is ongoing, expands the target graphic element within the area where the target closed graphic is located based on the duration of the click event; if the click event is not ongoing, determines whether the target graphic element covers the target closed graphic; if the target graphic element does not cover the target closed graphic, clears the target graphic element.

[0099] Optionally, the processor may also execute program code for the following steps: obtaining the target identifier of the target closed shape; querying the target area of ​​the target closed shape in a preset database based on the target identifier, wherein the preset database stores preset identifiers of multiple preset closed shapes and preset areas corresponding to each preset identifier; verifying whether the element areas of the target shape elements conform to the target area; and determining that the shape verification is successful if the element areas conform to the target area.

[0100] Optionally, the processor may also execute program code that performs the following steps: when the target graphic element covers the target closed graphic, detect whether the click event is disconnected within a preset time; if the click event is disconnected within the preset time, determine that the graphic verification is successful.

[0101] Optionally, the processor may also execute program code that performs the following steps: before detecting a click event within the target closed graphic displayed on the human-computer interaction interface, obtain graphic information of the target closed graphic, wherein the graphic information includes at least: the target area and target identifier of the target closed graphic; display the target closed graphic on the human-computer interaction interface based on the target area, and add a target identifier to the target closed graphic.

[0102] This application provides a graphical verification scheme. It detects click events within a closed target graphic displayed on a human-computer interaction interface; generates a target graphic element within the closed target graphic, starting from the point where the click event occurs on the interface; expands the target graphic element within the area of ​​the closed target graphic based on the duration of the click event; and determines successful graphical verification when the target graphic element covers the closed target graphic. This achieves the goal of graphical security code verification. By expanding the target graphic element through click events until it covers the closed target graphic, this verification method is not only convenient but also provides effective countermeasures against brute-force attacks by machines, thereby improving the security of verification codes and solving the problem of poor security in existing digital verification codes.

[0103] Those skilled in the art will understand that Figure 4 The structure shown is for illustrative purposes only. The computer terminal can also be a smartphone (such as an Android phone, an iOS phone, etc.), a tablet computer, a mobile internet device (MID), a PAD, and other terminal devices. Figure 4 This does not limit the structure of the aforementioned electronic device. For example, computer terminal 4 may also include components that are more... Figure 4 The more or fewer components shown (such as network interfaces, display devices, etc.), or having the same Figure 4 The different configurations shown.

[0104] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing the hardware related to the terminal device. The program can be stored in a computer-readable storage medium, which may include: flash drive, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.

[0105] Embodiments of this application also provide a non-volatile storage medium. Optionally, in this embodiment, the storage medium can be used to store the program code executed by the graphical verification method provided in the above embodiments.

[0106] Optionally, in this embodiment, the non-volatile storage medium may be located in any computer terminal in a group of computer terminals in a computer network, or in any mobile terminal in a group of mobile terminals.

[0107] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for performing the following steps: detecting a click event within a target closed graphic displayed on the human-computer interaction interface; generating a target graphic element within the target closed graphic, starting from the point where the click event lands on the human-computer interaction interface; spreading the target graphic element within the area where the target closed graphic is located according to the duration of the click event; and determining that the graphic verification is successful when the target graphic element covers the target closed graphic.

[0108] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for performing the following steps: listening to click events on the human-computer interaction interface; determining whether the landing point of the click event is within the target closed shape; and if the landing point of the click event is within the target closed shape, determining that the click event is a click event within the target closed shape.

[0109] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for performing the following steps: obtaining the landing point position of the click event, wherein the landing point position is used to represent the position information of the landing point on the human-computer interaction interface; obtaining the graphic position of the target closed graphic, wherein the graphic position is used to represent the position information of the outline of the target closed graphic on the human-computer interaction interface; and determining whether the landing point position is within the range of the graphic position.

[0110] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for performing the following steps: detecting the duration of a click event; if the click event remains continuous, spreading the target graphic element within the area where the target closed graphic is located according to the duration of the click event; if the click event does not remain continuous, determining whether the target graphic element covers the target closed graphic; if the target graphic element does not cover the target closed graphic, clearing the target graphic element.

[0111] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for performing the following steps: obtaining the target identifier of the target closed shape; querying the target area of ​​the target closed shape in a preset database based on the target identifier, wherein the preset database stores preset identifiers of multiple preset closed shapes and preset areas corresponding to each preset identifier; verifying whether the element area of ​​the target shape element matches the target area; and determining that the shape verification is successful if the element area matches the target area.

[0112] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for performing the following steps: when the target graphic element covers the target closed graphic, detecting whether the click event is disconnected within a preset time; when the click event is disconnected within the preset time, determining that the graphic verification is successful.

[0113] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for performing the following steps: before detecting a click event within the target closed graphic displayed on the human-computer interaction interface, obtaining graphic information of the target closed graphic, wherein the graphic information includes at least: the target area and target identifier of the target closed graphic; displaying the target closed graphic on the human-computer interaction interface based on the target area, and adding a target identifier to the target closed graphic.

[0114] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0115] In the above embodiments of this application, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0116] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units can be a logical functional division, and in actual implementation, there may be other division methods. For instance, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual coupling, direct coupling, or communication connection may be through some interfaces; the indirect coupling or communication connection between units or modules may be electrical or other forms.

[0117] 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 units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0118] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0119] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or 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 this application. The aforementioned storage medium includes various media capable of storing program code, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard drive, magnetic disk, or optical disk.

[0120] The above description is only a preferred embodiment of this application. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of this application, and these improvements and modifications should also be considered within the scope of protection of this application.

Claims

1. A graphical verification method, characterized in that, include: Detect click events within a closed graphic of a target displayed on a human-computer interaction interface; Starting from the point where the click event lands on the human-computer interaction interface, a target graphic element is generated within the target closed graphic. The target graphic element is diffused within the area where the target closed graphic is located, based on the duration of the click event; If the target graphic element covers the target closed graphic, the graphic verification is determined to be successful; The process of spreading the target graphic element within the area where the target closed graphic is located, based on the duration of the click event, includes: Detect the duration of the click event; While the click event continues, the target graphic element is diffused within the area where the target closed graphic is located, according to the duration of the click event. If the click event does not persist, determine whether the target graphic element covers the target closed graphic. If the target graphic element does not cover the target closed graphic, clear the target graphic element.

2. The method according to claim 1, characterized in that, Detecting click events within a closed graphic of a target displayed on a human-computer interaction interface includes: Listen for click events on the human-computer interaction interface; Determine whether the point of impact of the click event is located within the target closed shape; If the point of the click event is located within the target closed shape, the click event is determined to be a click event within the target closed shape.

3. The method according to claim 2, characterized in that, Determining whether the landing point of the click event is located within the target closed shape includes: Obtain the landing point position of the click event, wherein the landing point position is used to represent the position information of the landing point on the human-computer interaction interface; Obtain the graphic position of the target closed shape, wherein the graphic position is used to represent the position information of the outline of the target closed shape on the human-computer interaction interface; Determine whether the landing point is within the range of the graphic position.

4. The method according to claim 1, characterized in that, Determining successful graphic verification when the target graphic element covers the target closed graphic includes: Obtain the target identifier of the target closed shape; The target area of ​​the target closed shape is queried in a preset database based on the target identifier. The preset database contains preset identifiers of multiple preset closed shapes and a preset area corresponding to each preset identifier. Verify whether the area of ​​the target graphic element matches the target area; If the area of ​​the element matches the target area, the graphic verification is considered successful.

5. The method according to claim 1, characterized in that, Determining successful graphic verification when the target graphic element covers the target closed graphic includes: If the target graphic element covers the target closed graphic, detect whether the click event is disconnected within a preset time. If the click event is interrupted within the preset time, the graphic verification is deemed successful.

6. The method according to any one of claims 1-5, characterized in that, Before detecting click events within a closed target graphic displayed on the human-computer interaction interface, the method further includes: Obtain graphic information of a target closed shape, wherein the graphic information includes at least: the target area and target identifier of the target closed shape; Based on the target area, the target closed shape is displayed on the human-computer interaction interface, and the target identifier is added to the target closed shape.

7. A graphic verification device, characterized in that, include: The detection module is used to detect click events within the closed graphic of the target displayed on the human-computer interaction interface; The generation module is used to generate target graphic elements within the target closed graphic, starting from the point where the click event lands on the human-computer interaction interface. A diffusion module is used to diffuse the target graphic element within the area where the target closed graphic is located, based on the duration of the click event; The determination module is used to determine that the graphic verification is successful when the target graphic element covers the target closed graphic. The diffusion module includes: The first detection unit is used to detect the duration of the click event; A diffusion unit is used to diffuse the target graphic element within the area where the target closed graphic is located, based on the duration of the click event, while the click event remains in a continuous state. The second judgment unit is used to determine whether the target graphic element covers the target closed graphic when the click event does not remain in a continuous state. The clear unit is used to clear the target graphic element when the target graphic element does not cover the target closed graphic.

8. A non-volatile storage medium, characterized in that, The non-volatile storage medium stores a program, wherein when the program is executed, it controls the device where the non-volatile storage medium is located to execute the graphic verification method according to any one of claims 1 to 7.

9. An electronic device, characterized in that, include: A memory and a processor, the processor being configured to run a program stored in the memory, wherein the program, when running, performs the graphical verification method according to any one of claims 1 to 7.