Verification code generation method and device, equipment, medium and product
By generating verification codes on the client side of the Vue framework, the problem of high server pressure and poor user experience caused by traditional server generation verification codes is solved, and an efficient, flexible, secure and user-friendly verification code generation mechanism is achieved.
CN119834963APending Publication Date: 2025-04-15ZHONGDIAN DATA IND CO LTD +1
Patent Information
- Application Number
- CN202411873850.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-19
- Publication Date
- 2025-04-15
AI Technical Summary
Technical Problem
The traditional verification code generation method relies on the server side, which leads to high pressure on the server and may affect the user experience due to network delay.
Method used
By implementing the verification code generation method on the Vue framework-based client, the Canvas API is used to generate and draw verification codes on the client side to reduce interaction with the server.
Benefits of technology
The front-end generation of verification codes is realized, which reduces the server's processing requests and user waiting time, improves the user experience and reduces the server's burden.
✦ Generated by Eureka AI based on patent content.
Smart Images

Figure CN119834963A_ABST
Abstract
The invention discloses a verification code generation method and device, equipment, a medium and a product, which are applied to a client based on a Vue framework. The method comprises the steps that configuration information is obtained through a preset interface, and the configuration information at least comprises a character set, length and an interference element type; generating a random character sequence according to the character set and the length; drawing verification code characters on the Canvas according to the random character sequence, randomly generating target interference elements matched with the interference element types, and combining the target interference elements to obtain a verification code component; and displaying a target graph corresponding to the verification code component on the target page. According to the embodiment of the invention, an efficient, flexible, safe and user-friendly verification code generation mechanism is realized, the verification code generation and verification processes are completely completed at the client, the processing requests of the server are reduced, and the burden of the server is reduced; the verification code is generated immediately without waiting for response of the server, so that the waiting time of the user is reduced, and the user experience can be improved.
Need to check novelty before this filing date? Find Prior Art
Citation Information
Cited By
Graphic verification code generation and verification method and system
CN120470576A
Code scanning authenticity verification method, system and device and storage medium
CN120542454A
A code scanning authenticity verification method, system, device and storage medium
CN120542454B