Dynamic Image Verification Code Generation for Server Security

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Conventional verification code mechanisms are vulnerable to repeated submissions exploiting the lifetime of verification codes, compromising server security and requiring improvements for speed, security, and low overhead.

Innovation Solution

A verification method that randomly selects an image group associated with a verification question, merges images in a preset manner, performs image processing, and generates a verification code, which is then segmented and verified by the terminal, with the server performing final verification based on the result, thereby preventing repeated submissions and enhancing security.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Speed

If the server stores and pre-selects verification codes with position information for multiple requests, then the verification speed is improved, but the server becomes vulnerable to repeated submission attacks exploiting verification code lifetime

Engineering Contradiction:
Improveverification speedVSAvoidserver security
Core Design Contradiction:
SpeedVSReliability

Solution Approach 1:

The verification code generation is made dynamic by merging multiple images into a single composite image that is processed and displayed as one unified verification code. This dynamic merging prevents attackers from exploiting pre-stored position information across multiple requests, as each merged image creates a unique verification instance that cannot be reused.

Inventive Principle:
Principle #15Dynamics

2Ease of operation

If the server sends multiple images for verification code drawing requests, then the verification code can be displayed, but the server load increases due to multiple image requests

Engineering Contradiction:
Improveverification code displayVSAvoidserver load
Core Design Contradiction:
Ease of operationVSLoss of energy

Solution Approach 1:

Multiple separate image files are merged into a single composite image that contains all verification code elements. This merging reduces the number of image requests from multiple to one, significantly decreasing server load and network traffic while maintaining the full functionality of displaying all verification code images to the user.

Inventive Principle:
Principle #5Merging (Combining)

3Productivity

If verification codes are generated with fixed position information stored in advance, then the verification process is fast, but the uniqueness of verification codes decreases making them vulnerable to attacks

Engineering Contradiction:
Improveverification processing efficiencyVSAvoidverification code uniqueness
Core Design Contradiction:
ProductivityVSReliability

Solution Approach 1:

The verification code structure is made dynamic through image merging, where the final verification code appearance and internal structure vary with each generation. This dynamic approach ensures high uniqueness for each verification code while maintaining fast processing, as the merging operation is computationally efficient and does not require complex pre-computation or storage of position information.

Inventive Principle:
Principle #15Dynamics

Data Source

PatentUS9690923B2Method, apparatus and system for verifying terminal
Publication Date: 2017.06.27 TENCENT TECHNOLOGY (SHENZHEN) CO LTD
  • US9690923B2 patent drawing
  • US9690923B2 patent drawing
  • US9690923B2 patent drawing

AI summary

The present invention relates to the technical field of computer technologies. Disclosed are a verification method, apparatus and system. The method comprises: responding to a verification request sent by a terminal, and randomly selecting an image combination from pre-generated multiple image combinations; merging images in the image combination according to a preset merging mode, processing a merged image according to a second processing mode, and generating a verification code; sending the verification code and a verification question associated with the image combination to the terminal; and receiving a verification result returned by the terminal, and performing verification according to the verification result, the terminal performing image cutting on the verification code, the verification result being generated by the terminal according to a received verification answer, and the verification answer being selected from the cut verification code. The present invention improves the security.