CN112651010A - Method and device for verifying sliding verification code, computer equipment and medium - Google Patents

Method and device for verifying sliding verification code, computer equipment and medium Download PDF

Info

Publication number
CN112651010A
CN112651010A CN202011584171.5A CN202011584171A CN112651010A CN 112651010 A CN112651010 A CN 112651010A CN 202011584171 A CN202011584171 A CN 202011584171A CN 112651010 A CN112651010 A CN 112651010A
Authority
CN
China
Prior art keywords
sliding
coordinate information
information
picture
verification
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011584171.5A
Other languages
Chinese (zh)
Inventor
胡玉明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Saiante Technology Service Co Ltd
Original Assignee
Shenzhen Saiante Technology Service Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Saiante Technology Service Co Ltd filed Critical Shenzhen Saiante Technology Service Co Ltd
Priority to CN202011584171.5A priority Critical patent/CN112651010A/en
Publication of CN112651010A publication Critical patent/CN112651010A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/36User authentication by graphic or iconic representation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/11Region-based segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/194Segmentation; Edge detection involving foreground-background segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/20Analysis of motion
    • G06T7/246Analysis of motion using feature-based methods, e.g. the tracking of corners or segments
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Computer Security & Cryptography (AREA)
  • Multimedia (AREA)
  • Geometry (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention relates to the technical field of artificial intelligence, and discloses a method and a device for verifying a sliding verification code, computer equipment and a medium. The verification method comprises the following steps: segmenting the randomly selected picture to be verified to obtain a background picture and a slidable picture; reading sliding track information of the slidable picture meeting the first screening condition to extract coordinate information; in the process of transmitting the coordinate information, the coordinate information meeting the second screening condition is forwarded; and comparing the received coordinate information with preset standard information to judge whether the verification is successful or failed. The invention can effectively identify the brute force cracking behavior of the sliding verification code, screen out malicious verification requests by means of neglecting or preventing and the like, and protect the verification request process of the medical APP registration used by the user normally, thereby greatly improving the verification safety of the sliding verification code. Furthermore, this disclosure may also relate to block chain techniques.

Description

Method and device for verifying sliding verification code, computer equipment and medium
Technical Field
The invention relates to the technical field of artificial intelligence, can be applied to the field of sliding verification codes, and particularly provides a verification method and device of a sliding verification code, computer equipment and a medium; in addition, the invention also relates to a block chain technology.
Background
With the continuous development of artificial intelligence technology, the specific application field is more and more extensive. In the field of sliding verification code verification, a sliding verification code based on deep learning is proposed, and although the scheme can effectively improve the safety and reliability of verification, the problems of high cost investment, difficulty in control strength and the like exist. Taking a medical registration platform as an example, a user logs in the online medical registration platform at a mobile terminal or a computer terminal, and then selects a corresponding department and a doctor to register according to actual symptoms; however, the existing login verification method cannot prevent malicious users from breaking the online medical registration platform verification code by software violence, so that malicious users can sell the online medical registration platform after seeing a doctor. Therefore, the method for effectively verifying the verification code is very important, so that a normal user can be satisfied to log in the medical registration platform, and a malicious user can be prevented from logging in the medical registration platform abnormally.
Therefore, it is desirable to provide a new verification method for sliding verification codes, so as to effectively reduce the investment cost while improving the security and reliability of verification.
Disclosure of Invention
In order to solve the problems that man-machine distinguishing is difficult, implementation cost is high and the like in the existing verification method of the sliding verification code, the invention innovatively provides a verification method and device of the sliding verification code, computer equipment and a medium, and at least one problem in the prior art can be effectively solved.
In order to achieve the above technical object, the present invention discloses a method for verifying a sliding verification code, which may include, but is not limited to, the following steps.
And carrying out segmentation processing on the randomly selected picture to be verified so as to segment the picture to be verified into a background picture and a slidable picture.
And reading sliding track information of the slidable picture meeting the first screening condition, and extracting coordinate information for representing the slidable picture at a set stopping position from the sliding track information.
And transmitting the coordinate information, and forwarding the coordinate information meeting the second screening condition in the transmission process.
And comparing the received coordinate information with preset standard information to judge whether the verification is successful or failed according to a comparison result.
Further, the step of reading the sliding track information of the slidable picture meeting the first filtering condition includes:
judging whether a detection target meets a first screening condition when the sliding of the slidable picture is monitored; the first screening condition comprises that the moving speed of a moving target is within a first threshold value range, and the detection target comprises at least one of a cursor and a slidable picture.
And reading sliding track information generated by the slidable picture in the sliding process under the condition that the detection target meets the first screening condition.
Further, the first filtering condition further includes that a rate of change of the moving speed of the moving object is within a second threshold range.
Further, the step of reading the sliding track information of the slidable picture meeting the first filtering condition includes:
the method comprises the steps of obtaining moving track information of a cursor, and judging whether the cursor meets a first screening condition, wherein the first screening condition comprises that the moving track of the cursor is distributed in a set area range.
And reading sliding track information generated in the sliding process of the slidable picture under the condition that the cursor meets the first screening condition.
Further, the step of forwarding the coordinate information meeting the second filtering condition includes:
the number of the coordinate information transmitted by utilizing the gateway discovery in the preset time period is more than one.
Forwarding coordinate information meeting the second screening condition through the gateway; the second filtering condition includes coordinate information that appears earliest in the plurality of pieces of coordinate information representing the same request within the preset time period.
Further, the plurality of pieces of coordinate information representing the same request have two or more same request characteristics; the request characteristics include at least three of a uniform resource identifier, a header, a tag, a text cache, and a sequence number.
Further, the step of transmitting the coordinate information includes: and transmitting the encrypted coordinate information.
The step of comparing the received coordinate information with preset standard information includes: and comparing the decrypted coordinate information with preset standard information.
In order to achieve the above technical objects, the present invention can also provide a verification apparatus for a sliding verification code, which may include, but is not limited to, a picture segmentation module, a coordinate extraction module, an information transmission module, and a comparison and verification module.
And the picture segmentation module is used for segmenting the randomly selected picture to be verified so as to segment the picture to be verified into a background picture and a slidable picture.
And the coordinate extraction module is used for reading the sliding track information of the slidable picture meeting the first screening condition and extracting the coordinate information for indicating the stopping position of the slidable picture in the set stopping position from the sliding track information.
And the information transmission module is used for transmitting the coordinate information and forwarding the coordinate information meeting the second screening condition in the transmission process.
And the comparison and verification module is used for comparing the received coordinate information with preset standard information so as to judge the success or failure of verification according to the comparison result.
To achieve the above technical object, the present invention can also provide a computer device, which may include a memory and a processor, wherein the memory stores computer readable instructions, and the computer readable instructions, when executed by the processor, cause the processor to execute the steps of the method for verifying a sliding verification code according to any embodiment of the present invention.
To achieve the above technical objects, the present invention can also provide a storage medium that can store computer readable instructions, which when executed by one or more processors, cause the one or more processors to perform the steps of the method of verifying a sliding verification code as in any embodiment of the present invention.
The invention has the beneficial effects that:
the method can effectively identify the violent cracking behaviors of the sliding verification code, screen out malicious verification requests by means of neglecting or preventing and the like, avoid malicious attacks, protect the normal verification request process of a user, greatly improve the safety of the sliding verification code while improving the user experience, and protect the normal operation of a background server. The invention can protect the network environment of the online medical registration platform, effectively inhibit the behavior of software from violently cracking the verification code of the medical registration platform, greatly reduce the occurrence of abnormal registration conditions, maintain the network security environment for online medical treatment and improve the satisfaction degree of vast users.
The invention can also integrate the function of screening the coordinate information on the gateway of the verification request transmission path, and has the outstanding advantages of better reliability, low implementation cost and the like. In addition, the invention has less change on the whole verification process of the sliding verification code, and can reduce the cost and simultaneously have wider application range.
Drawings
FIG. 1 is a flow chart illustrating a method for verifying a sliding verification code according to some embodiments of the invention.
Fig. 2 is a schematic workflow diagram illustrating a verification method of a sliding verification code according to another embodiment of the present invention.
Fig. 3 is a diagram illustrating a movement trajectory of a cursor on a sliding verification code interface provided in some embodiments of the present invention.
FIG. 4 shows a block diagram of the internal structure of a computer device in one or more embodiments of the invention.
Detailed Description
The method and apparatus, computer device, and medium for verifying a sliding verification code according to the present invention are explained and explained in detail below with reference to the drawings of the specification.
As shown in fig. 1 and 2, in one or more embodiments of the present invention, a method for verifying a sliding verification code can be provided, and the method for verifying a sliding verification code may specifically include, but is not limited to, one or more of the following steps.
Step S10, the randomly selected picture to be verified is segmented to divide the picture to be verified into a background picture and a slidable picture. The background picture of this embodiment has a notch, the notch may be formed at a position on the edge or in the middle of the background picture, the slidable picture is divided or cut from the notch, the center of the notch may have a first coordinate in a two-dimensional coordinate system or a one-dimensional coordinate system, that is, the first coordinate may be a two-dimensional coordinate (x, y) or a one-dimensional coordinate x or y, and the two-dimensional coordinate system or the one-dimensional coordinate system may be formed on the background picture. In the embodiment, at least one picture is preferably randomly selected from the picture database for the sliding verification code to serve as the picture to be verified, and the random selection mode can also be helpful for improving the difficulty of cracking the sliding verification code. The picture database in one or more embodiments of the present invention may adopt a preset picture database dedicated to verification of the sliding verification code or may be selected from a commonly used picture database.
As an improved technical solution, the step of the segmentation processing in some embodiments of the present invention may include: providing a template database, and selecting a contour module with the same size and shape as the picture to be verified from the template database, wherein the contour template is provided with a pattern; based on the pattern on the contour template, some embodiments of the present invention cut out a slidable image that completely corresponds to the shape and size of the pattern from the image to be verified during the segmentation process, and use the cut-out image to be verified with a gap as a background image, where the cutting precision may be, for example, pixel-level precision. The shapes of the picture to be verified and the slidable picture in one or more embodiments of the invention may include, but are not limited to, a rectangle, a square, a circle, a parallelogram, a triangle, a pentagram, and the like; the shape of the slidable picture is completely the same as that of the pattern on the outline template, and the slidable picture can be any pattern.
In step S20, the slide trace information of the slidable picture satisfying the first filtering condition is read, and the coordinate information indicating the set stop position of the slidable picture is extracted from the slide trace information. In this embodiment, the extracted coordinates at the set stopping position are represented by the second coordinates, and the dimension of the second coordinates is the same as the dimension of the first coordinates. The sliding track information includes, but is not limited to, information formed during the movement of the slidable image in the window and after the movement is stopped, and the set stopping position is a stopping position selected according to the actual situation in the embodiment under a certain condition so as to meet the requirements of the actual application scene. The set stopping position in some embodiments of the invention is the final stopping position of the slidable picture or the position with the longest stopping time of the slidable picture, and the selection of the corresponding set stopping position according to the actual application scene can also play a role in information screening to a certain extent.
As shown in fig. 2, the step of reading the sliding track information of the slidable picture satisfying the first filtering condition in step S20 may include, but is not limited to, step S21 and step S22.
Step S21, when the slidable picture is monitored to slide, judging whether the detection target meets a first screening condition; the first filtering condition includes that the moving speed of the moving target is within a first threshold range: that is, when the moving speed of the moving object is within the first threshold range, it means that the first filtering condition can be satisfied, and when the moving speed of the moving object is not within the first threshold range, it means that the first filtering condition is not satisfied. Detecting the target includesAt least one of a cursor and a slidable picture. In order to further improve the difficulty of brute force software cracking, as a preferable scheme, the first screening condition in some embodiments of the present invention further includes that the rate of change of the moving speed of the moving object is within a second threshold range: that is, when the rate of change in the moving speed of the moving object is within the second threshold range, it means that the first filtering condition can be satisfied, and when the rate of change in the moving speed of the moving object is not within the second threshold range, it means that the second filtering condition is not satisfied. Wherein the first threshold range is, for example, 5m/s to 10m/s, and the second threshold range is, for example, 0.01m/s2~0.1m/s2. Therefore, the invention can effectively prevent the software cracking behavior of a third party according to the difference of the speeds of moving objects in manual operation and software cracking operation, thereby greatly improving the safety of the verification of the sliding verification code. For example, when the user uses the medical registration platform, the moving speed of the moving target is detected in real time, if the software cracking behavior is judged, the login or the account login is prohibited, the normal registration behavior of manual login of other users is ensured, and a fair medical environment is maintained.
And step S22, reading the sliding track information generated by the slidable picture in the sliding process under the condition that the detection target meets the first screening condition. Otherwise, the sliding track information generated by the slidable picture in the sliding process is ignored. Therefore, the method can effectively ignore the sliding track information generated by software cracking.
In other embodiments of the present invention, the step of reading the sliding track information of the slidable picture that meets the first filtering condition includes: acquiring the moving track information of the cursor, and judging whether the cursor meets a first screening condition, wherein the first screening condition can comprise that the moving track of the cursor is distributed in a set area range; and reading sliding track information generated by the slidable picture in the sliding process under the condition that the cursor meets the first screening condition, otherwise, ignoring the sliding track information. The embodiment can start to detect and compare the moving track of the cursor after the verification code interface is opened, and the set area range can be obtained based on historical operation data of a large number of users, as shown in figure 3, for example, after opening the slide validation code interface, the cursor will in most cases move directly from the home position to the slide validation code position, or move to the position of the sliding verification code after clicking a few times at other places, which is the case of general manual operation, but if the situation occurs where the slideable picture is moving while the cursor is not moving or staying in another position, in the invention, the current sliding track information is ignored when the sliding verification code is judged to be cracked by software under the current condition, and the invention can also refuse the verification for the next period of time according to the actual condition, for example, the sliding track information is ignored within 20 minutes, so as to further inhibit the cracking behavior.
It should be understood that for the three ways of first screening conditions provided in one or more embodiments of the present invention: (1) the moving speed of the moving target is within a first threshold range, (2) the change rate of the moving speed of the moving target is within a second threshold range, (3) the moving track of the cursor is distributed within a set area range; in specific implementation, the invention can select one or two or three modes according to actual conditions.
And step S30, transmitting the coordinate information, and forwarding the coordinate information meeting the second screening condition in the transmission process. Therefore, even if the multiple first screening conditions provided by the invention are identified by a software cracking means under certain conditions, the invention can also carry out secondary screening in the second coordinate transmission process, realize screening type coordinate information transmission, transmit the coordinate information meeting the requirements to the background, and prevent the coordinate information not meeting the requirements, so as to protect the verification process of the sliding verification code and further improve the safety and reliability of the verification process of the sliding verification code. Step S30 may include, but is not limited to, the following steps S31 and S32.
Step S31, coordinate information is transmitted. To further improve security, some embodiments of the present invention may include, but are not limited to: and transmitting the encrypted coordinate information. The invention can adopt a symmetric encryption method or an asymmetric encryption method or a method combining symmetric encryption and asymmetric encryption, both using parts of the symmetric encryption method adopt the same secret key for encryption or decryption, the asymmetric encryption method uses a public key and a private key, the public key and the private key are in a pair, if the public key is used for encrypting data, corresponding data can be decrypted only by using the corresponding private key, and the method is called as an asymmetric encryption method because the secret keys used for encryption and decryption are different.
Step S32, finding a plurality of coordinate information transmitted by the gateway in a preset time period; forwarding coordinate information meeting the second screening condition through the gateway; the second filtering condition includes coordinate information that appears earliest among a plurality of pieces of coordinate information representing the same request within a preset time period. The plurality of coordinate information representing the same request in some embodiments of the present invention has more than two same request characteristics; the request characteristics include at least three of a Uniform Resource Identifier (URI), a header, a label, a text cache (cookie), and a serial number (ID). The preset time period in this embodiment may be set according to actual needs, for example, the number of the coordinate information reaching the gateway within 1s is 20, and the 20 coordinate information have the same resource identifier, header, and label, where 1s represents the preset time period, and this embodiment can only allow the first coordinate information to be forwarded to the backend server. Therefore, the invention provides a gateway duplicate removal mechanism for coordinate information, which can realize that only the earliest coordinate information is forwarded in a preset time period based on the gateway duplicate removal processing mechanism, so as to further improve the safety and stability of the verification of the sliding verification code through screening transmission. It should be understood that, based on the content provided by the present invention, as an alternative, the second filtering condition includes coordinate information spaced from adjacent coordinate information by the longest time among a plurality of coordinate information representing the same request within a preset time period.
And step S40, comparing the received coordinate information with preset standard information to judge whether the verification is successful or failed according to the comparison result. Some embodiments of the present invention compare the received coordinate information with preset standard information, including: and comparing the decrypted coordinate information with preset standard information. More specifically, the end that receives the gateway forwarding may be a background server, so the present invention may perform decryption at the background server through a secret key or a private key, that is, the background server may correspondingly select a decryption mode according to an encryption mode adopted by the client that is the source of the coordinate information, and may specifically include symmetric or asymmetric decryption.
The process of comparing the received coordinate information with the preset standard information comprises the following steps: and comparing the second coordinate with the first coordinate, wherein a specific comparison result is, for example, a difference value between the second coordinate and the first coordinate, if the difference value is within an acceptable range, the verification is judged to be successful, and if not, the verification fails. If the first coordinate and the second coordinate are both one-dimensional coordinates, the acceptable range is, for example, less than or equal to 5% of the length of the sliding authentication code; if the first coordinate and the second coordinate are both two-dimensional coordinates, the acceptable range includes, for example: less than or equal to 0.5% of the sliding verification code width and less than or equal to 3% of the sliding verification code length. The invention can reduce the data volume of encryption and decryption by adopting a one-dimensional coordinate mode, reduce the data volume of transmission and further improve the verification speed of the sliding verification code. The one-dimensional coordinates may be, for example, X coordinates, but may also be Y coordinates, or coordinates in any direction.
After the verification is completed, the background server side can return 1 under the condition that the verification is successful or 0 under the condition that the verification is failed, the client side receives 1 to indicate that the verification is passed and enters a verified interface, and the client side receives 0 to indicate that the verification is not passed and can regenerate a new sliding verification code.
The verification method of the sliding verification code provided by the invention is applied to the user terminal, the user terminal can comprise but is not limited to a desktop computer, a notebook computer, a smart phone, a tablet computer, an intelligent bracelet, intelligent glasses, an intelligent helmet and the like, the application scenes of the verification method of the sliding verification code provided by the invention can comprise but is not limited to account login, operation confirmation, verification after page repeated refreshing and the like, and the technical scheme provided by the invention has wide market prospect, can be integrated into almost all the verification schemes of the sliding verification code at present, and is suitable for wide popularization and application.
Other embodiments of the present invention can also provide a verification apparatus for a sliding verification code, which may include, but is not limited to, a picture segmentation module, a coordinate extraction module, an information transmission module, and a comparison and verification module.
And the picture segmentation module is used for segmenting the randomly selected picture to be verified so as to segment the picture to be verified into a background picture and a slidable picture.
And the coordinate extraction module is used for reading the sliding track information of the slidable picture meeting the first screening condition and extracting the coordinate information for indicating the stopping position of the slidable picture in the set stopping position from the sliding track information. The coordinate extraction module can be specifically used for judging whether the detection target meets a first screening condition when the sliding of the slidable picture is monitored; the first screening condition comprises that the moving speed of the moving target is within a first threshold range, and the detection target comprises at least one of a cursor and a slidable picture; the coordinate extraction module is further specifically configured to read sliding track information generated in the sliding process of the slidable picture when the detection target meets the first screening condition. Wherein the first filtering condition may further include that a rate of change of the moving speed of the moving object is within a second threshold range. In other embodiments of the present invention, the coordinate extraction module may be configured to obtain movement track information of the cursor, and determine whether the cursor meets a first filtering condition, where the first filtering condition includes that the movement track of the cursor is distributed in a set area range, and read sliding track information generated in the sliding process of the slidable image when the cursor meets the first filtering condition.
And the information transmission module is used for transmitting the coordinate information and forwarding the coordinate information meeting the second screening condition in the transmission process. The information transmission module is specifically used for discovering that the number of the transmitted coordinate information is multiple by using the gateway in a preset time period, and forwarding the coordinate information meeting a second screening condition through the gateway; the second filtering condition includes coordinate information that appears earliest among a plurality of pieces of coordinate information representing the same request within a preset time period. Wherein the plurality of pieces of coordinate information representing the same request have two or more same request characteristics; the request characteristics include at least three of a uniform resource identifier, a header, a tag, a text cache, and a sequence number. In addition, the information transmission module in some embodiments of the present invention is configured to transmit the encrypted coordinate information. Namely, the verification device of the sliding verification code also comprises an encryption module.
And the comparison and verification module is used for comparing the received coordinate information with preset standard information so as to judge the success or failure of verification according to the comparison result. In some embodiments of the present invention, the comparison and verification module compares the decrypted coordinate information with the predetermined standard information. Namely the verification device of the sliding verification code, and also comprises a decryption module.
As shown in fig. 4, further embodiments of the present invention can provide a computer device including a memory and a processor, the memory having stored therein computer-readable instructions which, when executed by the processor, cause the processor to perform the steps of the method of verifying a sliding verification code as in any of the embodiments of the present invention. The steps of the verification method of the sliding verification code may include, but are not limited to: step S10, the randomly selected picture to be verified is segmented to divide the picture to be verified into a background picture and a slidable picture. In step S20, the slide trace information of the slidable picture satisfying the first filtering condition is read, and the coordinate information indicating the set stop position of the slidable picture is extracted from the slide trace information. As shown in fig. 2, the step of reading the sliding track information of the slidable picture satisfying the first filtering condition in step S20 may include, but is not limited to, step S21 and step S22. Step S21, when the slidable picture is monitored to slide, judging whether the detection target meets a first screening condition; the first screening condition comprises that the moving speed of the moving target is within a first threshold value range, and the detection target comprises at least one of a cursor and a slidable picture. As a preferable aspect, the first filtering condition in some embodiments of the present invention may further include that a rate of change of the moving speed of the moving object is within a second threshold range. And step S22, reading the sliding track information generated by the slidable picture in the sliding process under the condition that the detection target meets the first screening condition. In other embodiments of the present invention, the step of reading the sliding track information of the slidable picture that meets the first filtering condition includes: acquiring the moving track information of a cursor, and judging whether the cursor meets a first screening condition, wherein the first screening condition comprises that the moving track of the cursor is distributed in a set area range; and reading sliding track information generated in the sliding process of the slidable picture under the condition that the cursor meets the first screening condition. And step S30, transmitting the coordinate information, and forwarding the coordinate information meeting the second screening condition in the transmission process. Step S30 may include, but is not limited to, steps S31 and S32. Step S31, coordinate information is transmitted. To improve security, some embodiments of the invention transmit the coordinate information, including: and transmitting the encrypted coordinate information. Step S32, finding a plurality of coordinate information transmitted by the gateway in a preset time period; forwarding coordinate information meeting the second screening condition through the gateway; the second filtering condition includes coordinate information that appears earliest among a plurality of pieces of coordinate information representing the same request within a preset time period. In some embodiments of the invention, the plurality of coordinate information representing the same request has more than two same request characteristics; the request characteristics include at least three of a Uniform Resource Identifier (URI), a header, a label, a text cache (cookie), and a serial number (ID). And step S40, comparing the received coordinate information with preset standard information to judge whether the verification is successful or failed according to the comparison result. Some embodiments of the present invention compare the received coordinate information with preset standard information, including: and comparing the decrypted coordinate information with preset standard information.
The present invention can also provide, in other embodiments, a storage medium having computer-readable instructions stored thereon, which, when executed by one or more processors, cause the one or more processors to perform the steps of the method of validating a sliding validation code as in any of the embodiments of the present invention. The steps of the verification method of the sliding verification code may include, but are not limited to: step S10, the randomly selected picture to be verified is segmented to divide the picture to be verified into a background picture and a slidable picture. In step S20, the slide trace information of the slidable picture satisfying the first filtering condition is read, and the coordinate information indicating the set stop position of the slidable picture is extracted from the slide trace information. As shown in fig. 2, the step of reading the sliding track information of the slidable picture satisfying the first filtering condition in step S20 may include, but is not limited to, step S21 and step S22. Step S21, when the slidable picture is monitored to slide, judging whether the detection target meets a first screening condition; the first screening condition comprises that the moving speed of the moving target is within a first threshold value range, and the detection target comprises at least one of a cursor and a slidable picture. As a preferable aspect, the first filtering condition in some embodiments of the present invention may further include that a rate of change of the moving speed of the moving object is within a second threshold range. And step S22, reading the sliding track information generated by the slidable picture in the sliding process under the condition that the detection target meets the first screening condition. In other embodiments of the present invention, the step of reading the sliding track information of the slidable picture that meets the first filtering condition includes: acquiring the moving track information of a cursor, and judging whether the cursor meets a first screening condition, wherein the first screening condition comprises that the moving track of the cursor is distributed in a set area range; and reading sliding track information generated in the sliding process of the slidable picture under the condition that the cursor meets the first screening condition. And step S30, transmitting the coordinate information, and forwarding the coordinate information meeting the second screening condition in the transmission process. Step S30 may include, but is not limited to, steps S31 and S32. Step S31, coordinate information is transmitted. To improve security, some embodiments of the invention transmit the coordinate information, including: and transmitting the encrypted coordinate information. Step S32, finding a plurality of coordinate information transmitted by the gateway in a preset time period; forwarding coordinate information meeting the second screening condition through the gateway; the second filtering condition includes coordinate information that appears earliest among a plurality of pieces of coordinate information representing the same request within a preset time period. In some embodiments of the invention, the plurality of coordinate information representing the same request has more than two same request characteristics; the request characteristics include at least three of a Uniform Resource Identifier (URI), a header, a label, a text cache (cookie), and a serial number (ID). And step S40, comparing the received coordinate information with preset standard information to judge whether the verification is successful or failed according to the comparison result. Some embodiments of the present invention compare the received coordinate information with preset standard information, including: and comparing the decrypted coordinate information with preset standard information.
It should be emphasized that, in order to further ensure the privacy and security of the data in the embodiments of the present invention, the data such as the sliding track information, the coordinate information, and the preset standard information in some embodiments of the present invention may also be stored in a node of a block chain.
The block chain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
The logic and/or steps represented in the flowcharts or otherwise described herein, such as an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable storage medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable storage medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. The computer readable storage medium may be non-volatile or volatile. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer cartridge (magnetic device), a Random Access Memory (RAM), a Read-Only Memory (ROM), an Erasable Programmable Read-Only Memory (EPROM-Only Memory, or flash Memory), an optical fiber device, and a portable Compact Disc Read-Only Memory (CDROM). Additionally, the computer-readable storage medium may even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic Gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic Gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
In the description herein, references to the description of the term "the present embodiment," "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and simplifications made in the spirit of the present invention are intended to be included in the scope of the present invention.

Claims (10)

1. A method for verifying a sliding verification code, comprising:
the method comprises the steps that a randomly selected picture to be verified is divided into a background picture and a slidable picture;
reading sliding track information of a slidable picture meeting a first screening condition, and extracting coordinate information for representing the slidable picture at a set stopping position from the sliding track information;
transmitting the coordinate information, and forwarding the coordinate information meeting a second screening condition in the transmission process;
and comparing the received coordinate information with preset standard information to judge whether the verification is successful or failed according to a comparison result.
2. The method for verifying the slide validation code according to claim 1, wherein the step of reading the slide track information of the slidable image satisfying the first filtering condition comprises:
judging whether a detection target meets a first screening condition when the sliding of the slidable picture is monitored; the first screening condition comprises that the moving speed of a moving target is within a first threshold value range, and the detection target comprises at least one of a cursor and a slidable picture;
and reading sliding track information generated by the slidable picture in the sliding process under the condition that the detection target meets the first screening condition.
3. The method of claim 2, wherein the sliding authentication code is a sliding authentication code,
the first filtering condition further includes that a rate of change of the moving speed of the moving object is within a second threshold range.
4. The method for verifying the slide validation code according to claim 1 or 3, wherein the step of reading the slide track information of the slidable picture satisfying the first filtering condition comprises:
acquiring the moving track information of a cursor, and judging whether the cursor meets a first screening condition, wherein the first screening condition comprises that the moving track of the cursor is distributed in a set area range;
and reading sliding track information generated in the sliding process of the slidable picture under the condition that the cursor meets the first screening condition.
5. The method for verifying the sliding authentication code according to claim 1, wherein the step of forwarding the coordinate information meeting the second filtering condition comprises:
the method comprises the steps that a plurality of coordinate information are discovered and transmitted by a gateway within a preset time period;
forwarding coordinate information meeting the second screening condition through the gateway; the second filtering condition includes coordinate information that appears earliest in the plurality of pieces of coordinate information representing the same request within the preset time period.
6. The method of claim 5, wherein the sliding authentication code is a sliding authentication code,
the plurality of pieces of coordinate information representing the same request have two or more same request characteristics; the request characteristics include at least three of a uniform resource identifier, a header, a tag, a text cache, and a sequence number.
7. The method of claim 1, wherein the sliding authentication code is a sliding authentication code,
the step of transmitting the coordinate information includes: transmitting the encrypted coordinate information;
the step of comparing the received coordinate information with preset standard information includes: and comparing the decrypted coordinate information with preset standard information.
8. An apparatus for verifying a slide validation code, comprising:
the image segmentation module is used for segmenting the randomly selected image to be verified so as to segment the image to be verified into a background image and a slidable image;
the coordinate extraction module is used for reading sliding track information of the slidable picture meeting the first screening condition and extracting coordinate information for representing the slidable picture at a set stopping position from the sliding track information;
the information transmission module is used for transmitting the coordinate information and forwarding the coordinate information meeting the second screening condition in the transmission process;
and the comparison and verification module is used for comparing the received coordinate information with preset standard information so as to judge the success or failure of verification according to the comparison result.
9. A computer device comprising a memory and a processor, the memory having stored therein computer readable instructions which, when executed by the processor, cause the processor to perform the steps of the method of validating a sliding validation code according to any of claims 1 to 7.
10. A storage medium having stored thereon computer-readable instructions which, when executed by one or more processors, cause the one or more processors to perform the steps of the method of authenticating a sliding authentication code according to any one of claims 1 to 7.
CN202011584171.5A 2020-12-28 2020-12-28 Method and device for verifying sliding verification code, computer equipment and medium Pending CN112651010A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011584171.5A CN112651010A (en) 2020-12-28 2020-12-28 Method and device for verifying sliding verification code, computer equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011584171.5A CN112651010A (en) 2020-12-28 2020-12-28 Method and device for verifying sliding verification code, computer equipment and medium

Publications (1)

Publication Number Publication Date
CN112651010A true CN112651010A (en) 2021-04-13

Family

ID=75363878

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011584171.5A Pending CN112651010A (en) 2020-12-28 2020-12-28 Method and device for verifying sliding verification code, computer equipment and medium

Country Status (1)

Country Link
CN (1) CN112651010A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112819693A (en) * 2021-04-19 2021-05-18 北京每日优鲜电子商务有限公司 Sliding verification code generation method and device, electronic equipment and computer readable medium
CN113468492A (en) * 2021-07-13 2021-10-01 京东科技控股股份有限公司 Verification method and device for verification information and readable storage medium
WO2024031282A1 (en) * 2022-08-08 2024-02-15 广州酷狗计算机科技有限公司 Slide verification method and apparatus, image generation method and apparatus, device, and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112819693A (en) * 2021-04-19 2021-05-18 北京每日优鲜电子商务有限公司 Sliding verification code generation method and device, electronic equipment and computer readable medium
CN113468492A (en) * 2021-07-13 2021-10-01 京东科技控股股份有限公司 Verification method and device for verification information and readable storage medium
WO2024031282A1 (en) * 2022-08-08 2024-02-15 广州酷狗计算机科技有限公司 Slide verification method and apparatus, image generation method and apparatus, device, and storage medium

Similar Documents

Publication Publication Date Title
CN112651010A (en) Method and device for verifying sliding verification code, computer equipment and medium
US9990507B2 (en) Adapting decoy data present in a network
CN113574838A (en) System and method for filtering internet traffic through client fingerprints
CN104239758B (en) A kind of man-machine recognition methods and corresponding man-machine identifying system
CN109413000B (en) Anti-stealing-link method and anti-stealing-link network relation system
CN110086608A (en) User authen method, device, computer equipment and computer readable storage medium
CN111415163A (en) Service processing and verifying method, system and verifying node based on block chain
CN110740128B (en) Offline data encryption method and device
CN108737110B (en) Data encryption transmission method and device for preventing replay attack
CN110912855A (en) Block chain architecture security assessment method and system based on permeability test case set
US20170171188A1 (en) Non-transitory computer-readable recording medium, access monitoring method, and access monitoring apparatus
Patil et al. Network traffic anomaly detection using PCA and BiGAN
CN107979467A (en) Verification method and device
CN112905965B (en) Financial big data processing system based on block chain
CN112367338A (en) Malicious request detection method and device
CN105208045A (en) Identity authentication method, equipment and system
CN109831782B (en) Safety transmission verification method for electronic card information
CN111585995A (en) Method and device for transmitting and processing safety wind control information, computer equipment and storage medium
CN106295384B (en) Big data platform access control method and device and authentication server
CN112149068A (en) Access-based authorization verification method, information generation method and device, and server
CN114124453B (en) Processing method and device of network security information, electronic equipment and storage medium
KR102133902B1 (en) Secure input device
CN112417424A (en) Authentication method and system for power terminal
CN111209552A (en) Identity authentication method and device based on user behaviors
KR20090034246A (en) Security method in rfid environment, recording medium and system using by the same

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination