Generation method of image checking code
A technology of picture verification code and verification code request, which is applied in the field of designing computers, can solve the problems that the database cannot withstand violent attacks, lack of security, complex forms, etc., and achieve the effect of friendly interface, high security and convenient verification
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
specific Embodiment
[0078] Take N=30, X=8, Y=8 as an example to illustrate the workflow of the present invention.
[0079] Such as figure 1 As shown, the flow chart of generating the verification code:
[0080] Including the following steps:
[0081] (1) The client sends a long image request to the server.
[0082] (2) The server receives the "send long image request" request and performs the following processing:
[0083] Call Math.random() to generate four random characters (0-9, A-Z), and call java.awt.Graphics class to write random characters into the picture, and draw noise and interference lines; compress the picture into 64*64px size, and save this image as a base image.
[0084] Call Math.random() to generate a [0,29] random number T=20 as the reference picture number, and save it on the server side.
[0085] Copy 29 copies of the reference picture to generate copy pictures, and distort each copy picture as follows:
[0086] The copied picture is divided into squares by 8 rows and 8...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 