CN112241522B - Picture verification code generation method and verification system - Google Patents

Picture verification code generation method and verification system Download PDF

Info

Publication number
CN112241522B
CN112241522B CN202011045817.2A CN202011045817A CN112241522B CN 112241522 B CN112241522 B CN 112241522B CN 202011045817 A CN202011045817 A CN 202011045817A CN 112241522 B CN112241522 B CN 112241522B
Authority
CN
China
Prior art keywords
sliding
picture
pictures
blank
numbers
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.)
Active
Application number
CN202011045817.2A
Other languages
Chinese (zh)
Other versions
CN112241522A (en
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.)
Quantong Jinxin Holdings Guangdong Co ltd
Original Assignee
Quantong Jinxin Holdings Guangdong 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 Quantong Jinxin Holdings Guangdong Co ltd filed Critical Quantong Jinxin Holdings Guangdong Co ltd
Priority to CN202011045817.2A priority Critical patent/CN112241522B/en
Publication of CN112241522A publication Critical patent/CN112241522A/en
Application granted granted Critical
Publication of CN112241522B publication Critical patent/CN112241522B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

The invention provides a picture verification code generation method and a verification system, wherein the picture verification code generation method is characterized by comprising the following steps of: the method comprises the following steps: acquiring a reference picture, selecting a plurality of target areas with the same size and shape from left to right in the reference picture, extracting the picture content of the target areas, and forming a plurality of sliding pictures and blank areas; acquiring a mobile phone number registered or bound by the user, extracting a plurality of continuous digits of the mobile phone number and obtaining an original number; the sliding pictures are randomly and one-to-one filled with the digits, so that picture verification codes are generated, the problems that various rare and odd character combinations are required to be input, the user is easy to see and input errors are easy to see in the conventional picture verification process, and meanwhile, the problem that a user identity cannot be verified and confirmed by only carrying out simple system or manual operation verification in a verification mode by sliding a local image to a designated position is solved.

Description

Picture verification code generation method and verification system
Technical Field
The invention relates to a network verification technology, in particular to a picture verification code generation method and a verification system.
Background
The verification code technology is used for preventing malicious password cracking, ticket brushing and automatic system operation, and can effectively prevent a certain hacker from continuously attempting login of a certain specific registered user in a specific program brute force cracking mode. At present, the verification code technology is applied to mobile internet terminal equipment, and common implementation modes are as follows: 1. displaying the corresponding text verification code, and inputting the same text content by a user for verification; 2. moving the local image on the picture to a designated position for verification; 3. displaying a curve on the graph, and copying the curve by a user;
the existing sliding partial image is verified to a designated position, and only a simple system or manual operation verification can be performed, and user identity cannot be verified and confirmed; in addition, the existing method for inputting the same text content for verification is often various rare and odd character combinations, often has unclear observation, wrong input, troublesome and time-consuming actual operation and poor user experience.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provides a picture verification code generation method and a verification system;
the method for generating the picture verification code is characterized by comprising the following steps of: the method comprises the following steps:
acquiring a reference picture, selecting a plurality of target areas with the same size and shape from left to right in the reference picture, extracting the picture content of the target areas, and forming a plurality of sliding pictures and blank areas;
acquiring a mobile phone number registered or bound by the user, extracting a plurality of continuous digits of the mobile phone number and obtaining an original number;
filling the plurality of bit numbers into the sliding pictures randomly one to one, and further generating picture verification codes;
a verification system, comprising:
the reference picture processing module is used for acquiring a reference picture, selecting a plurality of target areas with the same size and shape from left to right in the reference picture, extracting the picture content of the target areas, and forming a plurality of sliding pictures and blank areas; filling the plurality of bit numbers into the sliding pictures randomly one by one, and further generating picture verification codes;
the digital processing module is used for acquiring the mobile phone number registered or bound by the user, extracting a plurality of continuous digits of the mobile phone number and obtaining an original number; extracting numbers on the sliding pictures filled in the blank area, and combining the numbers into a complete number to be verified according to the left and right sequences of the numbers on the blank area;
the sliding module is used for sliding the sliding pictures to the corresponding blank areas one by one, detecting the position points of the sliding pictures in real time in the process of filling the blank areas from left to right in sequence according to the sequence of numbers in the mobile phone numbers on the sliding pictures, judging whether the distance between the positions of the sliding pictures and the blank areas is smaller than a preset threshold value when a user releases sliding, if so, directly overlapping and filling the sliding pictures to the blank positions, otherwise, automatically returning the sliding pictures to the original positions;
and the comparison module is used for comparing whether the original number is equal to the number to be verified, and if so, the authentication is passed.
Drawings
For a clearer description of embodiments of the invention or of the solutions of the prior art, the drawings that are required to be used in the description of the embodiments or of the prior art will be briefly described, it being obvious that the drawings in the description below are only some embodiments of the invention, and that other drawings can be obtained, without the inventive effort, from the structures shown in these drawings, for a person skilled in the art;
fig. 1 is an application scenario diagram of a picture verification code generation method in a preferred embodiment;
FIG. 2 is a process base flow diagram in a preferred embodiment;
FIG. 3 is a block diagram of the authentication system in a preferred embodiment;
FIG. 4 is a diagram of one of the software interfaces of the method for generating a picture verification code in a preferred embodiment;
FIG. 5 is a second software interface of a method for generating a picture verification code according to a preferred embodiment;
the achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present specification. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present description as detailed in the accompanying claims;
the terminology used in the description presented herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the description. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will also be understood that the term "and/or" as used herein refers to and encompasses any or all possible combinations of one or more of the associated listed items;
it should be understood that although the terms first, second, third, etc. may be used in this specification to describe various information, these information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present description. Depending on the context, the word "if" as used herein may be interpreted as "at … …" or "at … …" or "in response to a determination";
the method for generating the picture verification code provided by the application with reference to fig. 1 can be applied to an application environment shown in fig. 1. Wherein the terminal 110 communicates with the server 120 through a network, and the user 100 operates the terminal 110 through an input device. The terminal 110 may be, but not limited to, various personal computers, notebook computers, smartphones, tablet computers and portable wearable devices, and the server 120 may be implemented by a stand-alone server or a server cluster formed by a plurality of servers;
in one embodiment, as shown in fig. 2, 4 and 5, a method for generating a picture verification code is provided, and the method is described by taking an example that the method is applied to the terminal in fig. 1 as an example, but the method is not limited to being implemented on the terminal only, and specifically includes the following steps: s01, processing the reference picture to form a plurality of sliding pictures and blank areas
And acquiring a reference picture and a mobile phone number registered or bound by the user from a local or server, wherein the reference picture is used as a basic picture for generating a picture verification code, and a sliding picture and the reference picture in the picture verification code can be generated based on the reference picture. In a preferred embodiment, the reference picture is a solid-color picture;
after a reference picture is acquired, a plurality of target areas with the same size and shape are selected from left to right in the reference picture, and picture contents of the target areas are extracted to form a plurality of sliding pictures and blank areas. For convenience of description, the following description will be made taking 4 target areas as an example, and the number of implementations may be changed to 5, 6, etc. according to actual. After the reference picture is acquired, 4 target areas with the same size and shape are selected from left to right in the reference picture, and the picture content of the target areas is extracted to form 4 sliding pictures and 4 blank areas. In an alternative implementation, the target region may be four regions randomly selected from left to right in the reference picture. An optional implementation manner of extracting the picture content of the target area as a sliding picture may be to extract the picture content of the target area in the reference picture (for example, by extracting the picture content of the target area in a mode of extracting the picture), so that the extracted picture content of the target area is used as the sliding picture, the picture content of the target area in the reference picture is not reserved, and four blank areas are formed;
in an alternative implementation, S01, before a plurality of sliding pictures and blank areas are formed, when an accessible object terminal requests to a server for access to a page, if the server determines that a preset wind control rule is hit, the server needs to generate a picture verification code to distinguish whether a crawler or a user is accessing an object based on the picture verification code, so that the accessible object terminal needs to display the picture verification code after acquiring the picture verification code fed back by the server, so that the access object can perform verification operation;
s02, extracting a plurality of continuous digits of the mobile phone number to obtain an original number
And acquiring the mobile phone number registered or bound by the user, extracting a plurality of continuous digits of the mobile phone number and obtaining an original number. For example 1373453446X, extracting four consecutive digits from the phone number to obtain four original digits such as "3453";
s03, randomly filling a plurality of digits into the sliding picture one by one
Filling the plurality of bit numbers into the sliding pictures randomly one to one, and further generating picture verification codes;
in a preferred embodiment, four consecutive digits are first extracted from the phone number to generate a random four-digit number, e.g., "4533". And then sequentially filling the numbers corresponding to thousands, hundreds, tens and units of random four-bit numbers into the corresponding four sliding pictures, wherein the filling method can completely cover or stack the pictures (namely, displaying the sliding pictures and the numbers at the same time). And finishing the generation of the verification code. Preferably, the server sends the picture verification code to the terminal of the access object, and the terminal displays the reference picture and the sliding picture on the reference picture on the current page;
s04, sliding detection and filling of blank area
And sliding the sliding pictures to the corresponding blank areas one by one, and sequentially filling the sliding pictures into the blank areas from left to right according to the sequence of the numbers on the sliding pictures in the mobile phone numbers. Specifically, a sliding instruction of the sliding picture is detected, and the sliding picture is slid. The user can respectively slide and control the 4 sliding pictures through an operation body (finger, touch pen, mouse or the like), in the alternative implementation, the user can click the sliding picture by using the operation body and drag the sliding picture under the condition of maintaining clicking so as to slide the sliding picture;
and determining the sliding data of the sliding picture when the instruction for releasing the sliding is detected. The instruction to release the slide may, for example, be that the user no longer maintains clicking on the slide picture, but releases the click on the slide picture; and the terminal detects a command for releasing the sliding, and the sliding of the sliding picture by the user is completed. Optionally, the embodiment of the invention can establish a coordinate system by taking one corner point of the reference picture as an origin, so that the position of the sliding picture is determined by determining the position of the center point of the sliding picture;
in a preferred embodiment, the terminal can detect the position point where the sliding picture is located in real time, so that when the user releases the sliding, whether the distance between the position of the sliding picture and the blank area is smaller than a preset threshold value is judged, if yes, the sliding picture is directly overlapped and filled into the blank position, and if not, the sliding picture automatically returns to the original position. Preferably, the blank position state which is overlapped and filled by the sliding picture is marked as filled, otherwise, the blank position state is marked as unfilled; when the user releases the sliding, judging whether the distance between the position of the sliding picture and the first left blank area marked as unfilled is smaller than a preset threshold value, and if so, directly overlapping and filling the sliding picture into the blank position. Therefore, each sliding can be ensured to be filled from left to right in sequence, misoperation is prevented, prompt is not needed, and a user can perform correct operation;
s05, extracting and recombining to obtain the number to be verified
And extracting numbers on the sliding pictures filled in the blank area, and combining the numbers into a complete number to be verified according to the left and right sequences of the numbers on the blank area. Specifically, when the four blank positions are marked as filled, the numbers on the four sliding pictures are extracted, and the numbers are reconverted into four digits to be verified according to the left-right sequence of the sliding pictures;
s06, comparing the original number with the number to be verified to obtain a verification result
Comparing whether the original number is equal to the number to be verified, if so, passing the authentication, otherwise, not passing the authentication;
in summary, the method for generating the picture verification code combines sliding verification and mobile phone number verification, avoids the problems that various rare and odd character combinations need to be input, are easy to see and are easy to input errors in the existing picture verification process, and solves the problems that a simple system or manual operation verification can only be performed in a mode of sliding a partial image to a designated position to verify, and user identity cannot be verified and confirmed. The user only needs to slide a plurality of corresponding sliding pictures on the verification code to corresponding positions, and generates numbers in the sequence corresponding to the mobile phone number of the user, so that the user can verify, the operation is simple and accurate, and the accuracy and the convenience of the operation are improved through the processing of the sliding positions and the filling means;
in one embodiment, as shown in FIG. 3, there is provided a verification system comprising:
the reference picture processing module is used for acquiring a reference picture, selecting a plurality of target areas with the same size and shape from left to right in the reference picture, extracting the picture content of the target areas, and forming a plurality of sliding pictures and blank areas; filling the plurality of bit numbers into the sliding pictures randomly one by one, and further generating picture verification codes;
the digital processing module is used for acquiring the mobile phone number registered or bound by the user, extracting a plurality of continuous digits of the mobile phone number and obtaining an original number; extracting numbers on the sliding pictures filled in the blank area, and combining the numbers into a complete number to be verified according to the left and right sequences of the numbers on the blank area;
the sliding module is used for sliding the sliding pictures to the corresponding blank areas one by one, detecting the position points of the sliding pictures in real time in the process of filling the blank areas from left to right in sequence according to the sequence of numbers in the mobile phone numbers on the sliding pictures, judging whether the distance between the positions of the sliding pictures and the blank areas is smaller than a preset threshold value when a user releases sliding, if so, directly overlapping and filling the sliding pictures to the blank positions, otherwise, automatically returning the sliding pictures to the original positions;
and the comparison module is used for comparing whether the original number is equal to the number to be verified, and if so, the authentication is passed. For specific limitation of the verification system, reference may be made to the limitation of the method for generating the picture verification code, which is not described herein;
in this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. Since it is substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments in sections;
other embodiments of the present disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This specification is intended to cover any variations, uses, or adaptations of the specification following, in general, the principles of the specification and including such departures from the present disclosure as come within known or customary practice within the art to which the specification pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the specification being indicated by the following claims;
it is to be understood that the present description is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present description is limited only by the appended claims.

Claims (10)

1. A picture verification code generation method is characterized in that: the method comprises the following steps:
acquiring a reference picture, selecting a plurality of target areas with the same size and shape from left to right in the reference picture, extracting the picture content of the target areas, and forming a plurality of sliding pictures and blank areas;
acquiring a mobile phone number registered or bound by a user, extracting a plurality of continuous digits of the mobile phone number and obtaining an original number;
and randomly and one-to-one filling the plurality of bit numbers into the sliding picture to generate a picture verification code.
2. The picture authentication code generation method according to claim 1, wherein the method further comprises: and the terminal displays the reference picture and the sliding picture on the reference picture on the current page.
3. The picture authentication code generation method according to claim 2, wherein the method further comprises:
and sliding the sliding pictures to the corresponding blank areas one by one, and filling the sliding pictures into the blank areas from left to right in sequence according to the sequence of the numbers on the sliding pictures in the mobile phone numbers.
4. A picture verification code generation method according to claim 3, further comprising extracting numbers on the sliding pictures filled in the blank area, and combining the numbers into a complete number to be verified according to their left-right order on the blank area.
5. The picture verification code generation method according to claim 4, further comprising comparing whether the original number is equal to the number to be verified, and if so, passing authentication.
6. The method for generating a picture verification code according to claim 3, wherein the sliding pictures are slid to the corresponding blank areas one by one, and position points where the sliding pictures are located are detected in real time in the process of sequentially filling the sliding pictures to the blank areas from left to right according to the sequence of numbers in the mobile phone numbers on the sliding pictures, so that when a user releases sliding, whether the distance between the positions of the sliding pictures and the blank areas is smaller than a preset threshold value is judged, if yes, the sliding pictures are directly overlapped and filled to the blank positions, and otherwise, the sliding pictures automatically return to the original positions.
7. The method for generating a picture verification code according to claim 6, further comprising marking a state of a blank position overlapped and filled by the sliding picture as filled, otherwise marking as unfilled, judging whether a distance between the position of the sliding picture and a first blank region marked as unfilled on the left side is smaller than a preset threshold value when a user releases sliding, if so, directly overlapping and filling the sliding picture into the blank position, otherwise, automatically returning the sliding picture to an original position.
8. The picture verification code generation method as claimed in any one of claims 1 to 7, wherein the mobile phone number registered or bound by the user is obtained, 4 consecutive digits of the mobile phone number are extracted and the original number is obtained; and the reference pictures correspond to 4 sliding pictures and 4 blank areas.
9. The method for generating picture verification code according to claim 8, further comprising the steps of extracting 4 consecutive digits of a mobile phone number and obtaining an original number, generating random four digits by the 4 digits, and sequentially filling digits corresponding to kilobits, hundred bits, ten bits and units of the random four digits into the 4 sliding pictures from left to right.
10. A verification system, comprising
The reference picture processing module is used for acquiring a reference picture, selecting a plurality of target areas with the same size and shape from left to right in the reference picture, extracting the picture content of the target areas, and forming a plurality of sliding pictures and blank areas; filling a plurality of digits into the sliding picture randomly one by one, and further generating a picture verification code;
the digital processing module is used for acquiring the mobile phone number registered or bound by the user, extracting a plurality of continuous digits of the mobile phone number and obtaining an original number; extracting numbers on the sliding pictures filled in the blank area, and combining the numbers into a complete number to be verified according to the left and right sequences of the numbers on the blank area;
the sliding module is used for sliding the sliding pictures to the corresponding blank areas one by one, detecting the position points of the sliding pictures in real time in the process of filling the blank areas from left to right in sequence according to the sequence of numbers in the mobile phone numbers on the sliding pictures, judging whether the distance between the positions of the sliding pictures and the blank areas is smaller than a preset threshold value when a user releases sliding, if so, directly overlapping and filling the sliding pictures to the blank positions, otherwise, automatically returning the sliding pictures to the original positions;
and the comparison module is used for comparing whether the original number is equal to the number to be verified, and if so, the authentication is passed.
CN202011045817.2A 2020-09-29 2020-09-29 Picture verification code generation method and verification system Active CN112241522B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011045817.2A CN112241522B (en) 2020-09-29 2020-09-29 Picture verification code generation method and verification system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011045817.2A CN112241522B (en) 2020-09-29 2020-09-29 Picture verification code generation method and verification system

Publications (2)

Publication Number Publication Date
CN112241522A CN112241522A (en) 2021-01-19
CN112241522B true CN112241522B (en) 2024-02-09

Family

ID=74171914

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011045817.2A Active CN112241522B (en) 2020-09-29 2020-09-29 Picture verification code generation method and verification system

Country Status (1)

Country Link
CN (1) CN112241522B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104917724A (en) * 2014-03-11 2015-09-16 腾讯科技(深圳)有限公司 Identity verification method and apparatus
CN105450604A (en) * 2014-08-25 2016-03-30 苏宁云商集团股份有限公司 Safe verifying method and device based on graphic feature
CN108989269A (en) * 2017-06-02 2018-12-11 阿里巴巴集团控股有限公司 Obtain the methods, devices and systems of identifying code
CN111563941A (en) * 2020-05-08 2020-08-21 拉扎斯网络科技(上海)有限公司 Picture verification code generation method, verification method, device and related equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106156597A (en) * 2015-04-16 2016-11-23 深圳市腾讯计算机***有限公司 The implementation method of a kind of identifying code, and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104917724A (en) * 2014-03-11 2015-09-16 腾讯科技(深圳)有限公司 Identity verification method and apparatus
CN105450604A (en) * 2014-08-25 2016-03-30 苏宁云商集团股份有限公司 Safe verifying method and device based on graphic feature
CN108989269A (en) * 2017-06-02 2018-12-11 阿里巴巴集团控股有限公司 Obtain the methods, devices and systems of identifying code
CN111563941A (en) * 2020-05-08 2020-08-21 拉扎斯网络科技(上海)有限公司 Picture verification code generation method, verification method, device and related equipment

Also Published As

Publication number Publication date
CN112241522A (en) 2021-01-19

Similar Documents

Publication Publication Date Title
US10657243B2 (en) Variation analysis-based public turing test to tell computers and humans apart
US10176315B2 (en) Graphical authentication
US20230237141A1 (en) Security verification method and relevant device
US20120159616A1 (en) Pressure sensitive multi-layer passwords
CN107682368B (en) Verification method, client, server and system based on interactive operation
EP3114601B1 (en) Access control for a resource
US20120272311A1 (en) Method for authenticating a user on a computing unit
CN104796428A (en) Dynamic verification method, client side, server and system
US20140282973A1 (en) Systems and methods for securely transferring authentication information between a user and an electronic resource
US20110283346A1 (en) Overlay human interactive proof system and techniques
CN110113329B (en) Verification method and device for verification code
US20240214374A1 (en) Multi-factor authentication using symbols
US10581832B1 (en) Authentication / authorization without a password
CN112233749B (en) Health detection report acquisition method and device, computer equipment and storage medium
CN112241522B (en) Picture verification code generation method and verification system
US20180124034A1 (en) Image based method, system and computer program product to authenticate user identity
CN109753217B (en) Dynamic keyboard operation method and device, storage medium and electronic equipment
CN109525485B (en) Message leaving method and terminal equipment
TW202004545A (en) Password obtaining method, trading device and terminal
CN111625805B (en) Verification method, verification device, electronic equipment and storage medium
CN107566422B (en) Third-party user verification method
CA2760433C (en) Pressure sensitive multi-layer passwords
US9940407B2 (en) Method and apparatus for providing combined authentication service
US11526594B2 (en) Authentication control device, authentication control method, and authentication method
KR20170118635A (en) Authentication method and system using relative position of cross points

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
GR01 Patent grant
GR01 Patent grant