Verification code generation method, system and device based on high-frequency dynamic transformation and medium

The high-frequency dynamic transformation method addresses vulnerabilities in existing verification codes by creating complex, unpredictable images that resist automated attacks and improve user interaction, enhancing security and usability.

CN119089424APending Publication Date: 2024-12-06HENAN ZHONGYUAN CONSUMER FINANCE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411285138.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-13
Publication Date
2024-12-06

AI Technical Summary

Technical Problem

Existing human-machine verification methods, such as SMS and image verification codes, are vulnerable to automated attacks and provide insufficient dynamics and interactivity, posing security risks and user inconvenience.

Method used

A verification code generation method based on high-frequency dynamic transformation, involving random generation, image segmentation, and regional frequency settings to create complex and unpredictable verification codes, combined with real-time user interaction and cache management.

Benefits of technology

Enhances security by resisting automated recognition and improving user experience through complex, unpredictable verification codes that are difficult for machines to capture and easy for humans to read.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119089424A_ABST
    Figure CN119089424A_ABST
Patent Text Reader

Abstract

The invention discloses a verification code generation method, system and device based on high-frequency dynamic transformation and a medium. The method comprises the steps that a verification code is generated, and a server randomly generates a verification code text containing numbers, letters or symbols; generating a unique identifier, and storing the unique identifier and the verification code text as a key value pair; segmenting the verification code picture; region frequency setting: setting different flicker frequencies higher than a set threshold value for each region; displaying the dynamic verification code; the user inputs and verifies, and if the unique identifier exists in the cache and the corresponding verification code text is consistent with the text input by the user, verification passes; and if not, re-verification is carried out. According to the method, the verification code image is dynamically converted at the frequency higher than the conventional screen refresh rate, so that the attack of a static image recognition technology is effectively resisted, an automatic script is difficult to capture a stable verification code image for analysis, and the security of the verification code is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of information security, and relates to a verification code generation method, system, device and medium based on high-frequency dynamic transformation. Background Art

[0002] In the current Internet environment, human-machine verification is an important means to ensure network security and prevent automated scripts and malware attacks. Traditional human-machine verification methods mainly rely on static or low-frequency updated verification codes, such as SMS verification codes, image verification codes, and drag-to-complete image verification codes. Although it has achieved effective distinction between users and machines to a certain extent, each has significant limitations and shortcomings.

[0003] As one of the earliest widely used verification methods, SMS verification codes verify the authenticity of users by sending a one-time verification code to the user's mobile phone. However, with its widespread use, the shortcomings of SMS verification codes have gradually emerged: first, SMS verification codes need to rely on mobile communication networks, which not only increases operating costs, but may also cause verification failures due to network delays or signal problems; second, SMS verification codes are easily intercepted or simulated, posing security risks; and the use scenarios of SMS verification codes are limited, which is not friendly to users without mobile phones or international users.

[0004] Image verification codes require users to identify images containing distorted characters and graphics. This has increased the difficulty of machine recognition to a certain extent, but with the rapid development of OCR (optical character recognition) technology, the cracking rate of image verification codes has become higher and higher, and the security has gradually decreased. In addition, for users with poor eyesight or weak image recognition ability, image verification codes may also cause usage obstacles.

[0005] Drag-and-fill image verification codes attempt to improve verification security by increasing user interaction, but in actual applications, they are often disliked by users due to complex operations and poor user experience. At the same time, some automated tools can also bypass this verification method by simulating user behavior.

[0006] In view of the above-mentioned deficiencies in the prior art, the present invention proposes a verification code generation method based on high-frequency dynamic transformation. The method aims to form a more efficient, secure and user-friendly human-machine verification method by dynamically generating and changing the verification code content in real time, combined with the user's real-time operation feedback. Summary of the invention

[0007] The purpose of the present invention is to solve the problem that the verification code in the prior art cannot effectively resist the attack of automatic recognition technology such as OCR, and the dynamics and interactivity in the verification process are insufficient, and to provide a verification code generation method, system, device and medium based on high-frequency dynamic transformation.

[0008] In order to achieve the above object, the present invention adopts the following technical solutions: A verification code generation method based on high-frequency dynamic transformation comprises the following steps: Verification code generation: after receiving the request for issuing the verification code, the server randomly generates a verification code text containing numbers, letters or symbols; generates a unique identifier, and stores the unique identifier and the verification code text as a key-value pair in the server's cache; Verification code image segmentation: convert the verification code text into a static image and segment the image into multiple areas; Regional frequency setting: set different flashing frequencies for each region that are higher than the set threshold. Flashing is achieved by controlling the rapid alternation of background color and text color. The overall flashing frequency is higher than the set threshold. Dynamic verification code display, sending the generated dynamic image verification code and the corresponding unique identifier to the client for display; User input and verification, the user identifies the verification code text in the dynamic image and enters it into the corresponding input box; after the user triggers the submit button, the input verification code text and the corresponding unique identifier are sent to the server, and the server searches for the corresponding verification code text in the cache based on the unique identifier; if the unique identifier exists in the cache and the corresponding verification code text is consistent with the text entered by the user, the verification is successful; if it does not exist or is inconsistent, the verification code is regenerated and sent to the client for re-verification.

[0009] The verification code generation specifically includes the following steps: Receive a verification code generation request, which is initiated by a client or application and includes user identification information; On the server side, a verification code text containing numbers, letters and / or symbols is randomly generated according to preset rules and character sets; Generate a unique identifier to identify the verification code generated this time; The verification code text and the unique identifier are stored as a key-value pair in a cache of the server, wherein the key is the unique identifier and the value is the verification code text; Set a custom validity period for the verification code text stored in the cache. The cache system manages the storage period of the verification code text according to the set validity period. If the validity period exceeds the set validity period, the verification code text is deleted from the cache.

[0010] The specific steps of the verification code image segmentation are: Preprocess the verification code image, including grayscale, binarization and denoising, to reduce color information, separate the verification code text from the background, and remove noise and interference lines in the image; The verification code image is segmented by using the equal division method, and the verification code image is segmented into multiple regions containing single characters; Verify the segmentation results to ensure that each region contains a complete character and that no characters are incorrectly segmented or missed.

[0011] The verification code image is segmented by the equal division method, specifically: Determine the total width or height of the verification code image and the number of characters contained in the verification code; Calculate the width or height that each character should occupy based on the total width or total height of the verification code image and the number of characters; Starting from the left border or the upper border of the verification code image, the image is divided into multiple rectangular areas of equal width or height according to the calculated width or height of each character.

[0012] The regional frequency settings are specifically: The lowest flicker frequency threshold is determined to be 50 Hz; a set of background color and text color is selected for each area, and the rapid alternation of the background color and text color is controlled to achieve flickering; a different flicker frequency is set for each area, and the flicker frequency of all areas is higher than the set threshold.

[0013] The method also includes a method for managing the validity period of the verification code, specifically: When a user requests a verification code, a unique verification code is generated and the time of its generation is recorded; Store the generated verification code and its validity period in the server cache to ensure the temporary validity of the verification code; When the user submits a verification code for verification, the verification code associated with the user request and its validity period are retrieved from the cache; Check the validity period of the verification code in the cache. If the verification code has not expired, that is, the current time does not exceed the verification code generation time plus the set validity period, then continue to compare it with the verification code entered by the user; if the verification code has expired, it is directly determined that the verification has failed, and any result entered by the user cannot pass the verification; Based on the verification code comparison result, a verification success or failure message is returned to the user.

[0014] A verification code generation system based on high-frequency dynamic transformation includes the following modules: A verification code generation module is used to receive a request for issuing a verification code, randomly generate a verification code text containing numbers, letters or symbols, and generate a unique identifier associated with the verification code text; the module stores the verification code text and the unique identifier as a key-value pair in the server's cache for subsequent verification; The verification code image conversion and segmentation module converts the generated verification code text into a static image and segments the image into multiple regions, each of which contains a part of the verification code text; The regional frequency setting module sets a different flickering frequency that is higher than the set threshold for each segmented area, and achieves the flickering effect by controlling the rapid alternation of the background color and the text color, ensuring that the overall flickering frequency is also higher than the set threshold; The dynamic verification code display module sends the dynamic image verification code and its corresponding unique identifier after the regional frequency setting to the client for display so that the user can identify it; The user input and verification module receives the verification code text and the corresponding unique identifier entered by the user, and compares the input verification code text with the verification code text retrieved from the server cache based on the unique identifier; if the two are consistent and the unique identifier is valid, the verification is successful; if they are inconsistent or the unique identifier is invalid, the user is prompted to re-enter or regenerate the verification code.

[0015] The system also includes a cache management module for periodically clearing out expired or invalid verification code cache items.

[0016] A device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method as described in any one of the preceding items when executing the computer program.

[0017] A computer-readable storage medium stores a computer program, wherein the computer program, when executed by a processor, implements the steps of the method described in any one of the preceding items.

[0018] Compared with the prior art, the present invention has the following beneficial effects: The verification code generation method based on high-frequency dynamic transformation in the present invention effectively resists attacks by static image recognition technologies such as OCR by making the verification code image dynamically transform at a frequency higher than the conventional screen refresh rate, making it difficult for automated scripts to capture stable verification code images for analysis, thereby greatly improving the security of the verification code. Each verification code area is set with a different flashing frequency, and combined with the rapid alternation of the background color and the text color, the verification code image presents a high degree of complexity and unpredictability, which not only increases the difficulty of manual recognition, but also greatly reduces the possibility of malicious users forging verification codes through image processing technology. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.

[0020] Figure 1 It is a flow chart of the verification code generation method based on high-frequency dynamic transformation in the present invention; Figure 2 A schematic diagram of a verification code text generated in an embodiment of the present invention; Figure 3 Schematic diagram of the verification code text intercepted in the embodiment of the present invention Figure 1 ; Figure 4 Schematic diagram of the verification code text intercepted in the embodiment of the present invention Figure 2 . DETAILED DESCRIPTION

[0021] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.

[0022] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0023] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.

[0024] The present invention is further described in detail below in conjunction with the accompanying drawings: See also Figure 1 , is a verification code generation method based on high-frequency dynamic transformation in the present invention, which specifically includes the following steps: S1, verification code generation. After receiving the request for issuing the verification code, the server randomly generates a verification code text containing numbers, letters or symbols; generates a unique identifier, and stores the unique identifier and the verification code text as a key-value pair in the server's cache.

[0025] S1.1, receiving a verification code generation request, the request is initiated by a client or an application and includes user identification information.

[0026] S1.2, on the server side, a verification code text containing numbers, letters and / or symbols is randomly generated according to preset rules and character sets.

[0027] S1.3, generate a unique identifier to identify the verification code generated this time.

[0028] S1.4, storing the verification code text and the unique identifier as a key-value pair in the cache of the server, wherein the key is the unique identifier and the value is the verification code text.

[0029] S1.5, set a custom validity period for the verification code text stored in the cache. The cache system manages the storage period of the verification code text according to the set validity period. If the validity period exceeds the set validity period, the verification code text is deleted from the cache.

[0030] S2, verification code image segmentation, converts the verification code text into a static image and divides the image into multiple regions.

[0031] S2.1, preprocessing the verification code image, including grayscale, binarization and denoising, to reduce color information, separate the verification code text from the background, and remove noise and interference lines in the image.

[0032] S2.2, the verification code image is segmented by using the equal division method, and the verification code image is segmented into multiple regions containing single characters.

[0033] S2.2.1, determine the total width or total height of the verification code image and the number of characters contained in the verification code.

[0034] S2.2.2, calculate the width or height that each character should occupy based on the total width or total height of the verification code image and the number of characters.

[0035] S2.2.3, starting from the left border or the top border of the verification code image, divide the image into multiple rectangular areas of equal width or height according to the calculated width or height of each character.

[0036] S2.3, verify the segmentation results to ensure that each region contains a complete character and no characters are incorrectly segmented or omitted.

[0037] S3, regional frequency setting, sets a different flashing frequency for each region that is higher than the set threshold, and achieves flashing by controlling the rapid alternation of background color and text color. The overall flashing frequency is higher than the set threshold.

[0038] The lowest flicker frequency threshold is determined to be 50 Hz; a set of background color and text color is selected for each area, and the rapid alternation of the background color and text color is controlled to achieve flickering; a different flicker frequency is set for each area, and the flicker frequency of all areas is higher than the set threshold.

[0039] S4, dynamic verification code display, the generated dynamic image verification code and the corresponding unique identifier are sent to the client for display.

[0040] S5, user input and verification, the user identifies the verification code text in the dynamic image and enters it into the corresponding input box; after the user triggers the submit button, the input verification code text and the corresponding unique identifier are sent to the server, and the server searches for the corresponding verification code text in the cache according to the unique identifier; if the unique identifier exists in the cache and the corresponding verification code text is consistent with the text entered by the user, the verification is successful; if it does not exist or is inconsistent, the verification code is regenerated and sent to the client for re-verification.

[0041] The method for managing the validity period of the verification code is as follows: When a user requests a verification code, a unique verification code is generated and the time of its generation is recorded; Store the generated verification code and its validity period in the server cache to ensure the temporary validity of the verification code; When the user submits a verification code for verification, the verification code associated with the user request and its validity period are retrieved from the cache; Check the validity period of the verification code in the cache. If the verification code has not expired, that is, the current time does not exceed the verification code generation time plus the set validity period, then continue to compare it with the verification code entered by the user; if the verification code has expired, it is directly determined that the verification has failed, and any result entered by the user cannot pass the verification; Based on the verification code comparison result, a verification success or failure message is returned to the user. Example

[0042] Verification code generation: After receiving the request to send the verification code, the server randomly generates a verification code text containing numbers, letters or symbols. And for this verification, a serial number in uuid format is generated. For example, the verification serial number generated this time is b646c8df66e61171b0dd52cd8ee37891, and the corresponding verification code is the text "1234". The verification code serial number and verification code are stored in the server cache in the form of key values. The cache can be customized to have a valid duration, such as 1 minute.

[0043] Dynamic image generation, first convert the verification code text "1234" into a normal static image verification code, see Figure 2. Then divide the image into multiple small squares along the dotted lines, set the flashing frequency of each small square, and control the program to change 50 times per second. The background color of the numbers is white. Controlling the flashing means controlling the exchange of the white background and the black digital colors. Set the frame switching frequency to be higher than 50Hz to ensure that the human eye cannot perceive the frame switching. If all the small squares are set to the same flashing frequency, then when taking a screenshot, you can capture the complete verification code or a blank. In order to prevent the verification code from being intercepted by the machine, set a different frequency for each small square, but the frequency of each small block must be higher than 50 frames per second. After the machine takes a screenshot, the pictures that may be captured are as follows: Figure 3 As shown, there are some incomplete pictures that cannot be recognized by OCR.

[0044] Dynamic verification code display, the generated dynamic image verification code will be returned to the customer, and the serial number corresponding to this verification code will also be returned to the customer.

[0045] User input and verification, the user identifies the text in the picture, fills it into the input box, and triggers the submit button. The program will submit the serial number and recognized text of this verification to the background server. The server receives the verification request. First, get the serial number and search for the serial number in the cache. If it is not found, it proves that the verification time has expired and reissues a new verification code to the customer. If the server finds the verification code corresponding to the serial number from the cache, then compare the verification code filled in by the user with the verification code text cached by the server. If they are consistent, the user verification is passed. If they are inconsistent, reissue a new verification picture and serial number back to the user for re-verification.

[0046] An embodiment of the present invention is a verification code generation system based on high-frequency dynamic transformation, comprising the following modules: The verification code generation module is used to receive a request for issuing a verification code, randomly generate a verification code text containing numbers, letters or symbols, and generate a unique identifier associated with the verification code text; the module stores the verification code text and the unique identifier as a key-value pair in the server's cache for subsequent verification.

[0047] The verification code image conversion and segmentation module converts the generated verification code text into a static image and segments the image into multiple areas, each of which contains a part of the verification code text.

[0048] The regional frequency setting module sets a different flickering frequency that is higher than the set threshold for each segmented area, and achieves the flickering effect by controlling the rapid alternation of the background color and the text color, ensuring that the overall flickering frequency is also higher than the set threshold.

[0049] The dynamic verification code display module sends the dynamic image verification code and its corresponding unique identifier after the regional frequency setting to the client for display so that the user can identify it.

[0050] The user input and verification module receives the verification code text and the corresponding unique identifier entered by the user, and compares the input verification code text with the verification code text retrieved from the server cache based on the unique identifier; if the two are consistent and the unique identifier is valid, the verification is successful; if they are inconsistent or the unique identifier is invalid, the user is prompted to re-enter or regenerate the verification code.

[0051] The cache management module is used to regularly clean up expired or invalid verification code cache items.

[0052] An embodiment of the present invention provides a terminal device. The terminal device of this embodiment includes: a processor, a memory, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps in the above-mentioned method embodiments are implemented. Alternatively, when the processor executes the computer program, the functions of the modules / units in the above-mentioned device embodiments are implemented.

[0053] The computer program may be divided into one or more modules / units, and the one or more modules / units are stored in the memory and executed by the processor to accomplish the present invention.

[0054] The device / terminal equipment may be a computing device such as a desktop computer, a notebook, a palm computer, a cloud server, etc. The device / terminal equipment may include, but is not limited to, a processor and a memory.

[0055] The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.

[0056] The memory may be used to store the computer programs and / or modules, and the processor implements various functions of the apparatus / terminal device by running or executing the computer programs and / or modules stored in the memory and calling the data stored in the memory.

[0057] If the module / unit integrated in the device / terminal equipment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above-mentioned various method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device that can carry the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0058] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A verification code generation method based on high-frequency dynamic transformation, characterized in that: The following steps are involved: Verification code generation: after receiving the request to send the verification code, the server randomly generates a verification code text containing numbers, letters or symbols; Generate a unique identifier and store the unique identifier and the verification code text as a key-value pair in the server's cache; Verification code image segmentation: convert the verification code text into a static image and segment the image into multiple areas; Regional frequency setting: set different flashing frequencies for each region that are higher than the set threshold. Flashing is achieved by controlling the rapid alternation of background color and text color. The overall flashing frequency is higher than the set threshold. Dynamic verification code display, sending the generated dynamic image verification code and the corresponding unique identifier to the client for display; User input and verification, the user recognizes the verification code text in the dynamic image and enters it into the corresponding input box; After the user triggers the submit button, the entered verification code text and the corresponding unique identifier are sent to the server. The server searches the cache for the corresponding verification code text based on the unique identifier. If the unique identifier exists in the cache and the corresponding verification code text is consistent with the text entered by the user, the verification is successful. If it does not exist or is inconsistent, the verification code is regenerated and sent to the client for re-verification.

2. A verification code generation method based on high frequency dynamic transformation as claimed in claim 1, characterized in that: The verification code generation specifically includes the following steps: Receive a verification code generation request, which is initiated by a client or application and includes user identification information; On the server side, a verification code text containing numbers, letters and / or symbols is randomly generated according to preset rules and character sets; Generate a unique identifier to identify the verification code generated this time; The verification code text and the unique identifier are stored as a key-value pair in a cache of the server, wherein the key is the unique identifier and the value is the verification code text; Set a custom validity period for the verification code text stored in the cache. The cache system manages the storage period of the verification code text according to the set validity period. If the validity period exceeds the set validity period, the verification code text is deleted from the cache.

3. A verification code generation method based on high frequency dynamic transformation as claimed in claim 1, characterized in that: The specific steps of the verification code image segmentation are: Preprocess the verification code image, including grayscale, binarization and denoising, to reduce color information, separate the verification code text from the background, and remove noise and interference lines in the image; The verification code image is segmented by using the equal division method, and the verification code image is segmented into multiple regions containing single characters; Verify the segmentation results to ensure that each region contains a complete character and that no characters are incorrectly segmented or missed.

4. A verification code generation method based on high frequency dynamic transformation as claimed in claim 3, characterized in that: The verification code image is segmented by the equal division method, specifically: Determine the total width or height of the verification code image and the number of characters contained in the verification code; Calculate the width or height that each character should occupy based on the total width or total height of the verification code image and the number of characters; Starting from the left border or the upper border of the verification code image, the image is divided into multiple rectangular areas of equal width or height according to the calculated width or height of each character.

5. A verification code generation method based on high frequency dynamic transformation as claimed in claim 1, characterized in that: The regional frequency settings are specifically as follows: The lowest flicker frequency threshold is determined to be 50 Hz; a set of background color and text color is selected for each area, and the rapid alternation of the background color and text color is controlled to achieve flickering; a different flicker frequency is set for each area, and the flicker frequency of all areas is higher than the set threshold.

6. A verification code generation method based on high frequency dynamic transformation as claimed in claim 1, characterized in that: The method also includes a method for managing the validity period of the verification code, specifically: When a user requests a verification code, a unique verification code is generated and the time of its generation is recorded; Store the generated verification code and its validity period in the server cache to ensure the temporary validity of the verification code; When the user submits a verification code for verification, the verification code associated with the user request and its validity period are retrieved from the cache; Check the validity period of the verification code in the cache. If the verification code has not expired, that is, the current time does not exceed the verification code generation time plus the set validity period, then continue to compare it with the verification code entered by the user; if the verification code has expired, it is directly determined that the verification has failed, and any result entered by the user cannot pass the verification; Based on the verification code comparison result, a verification success or failure message is returned to the user.

7. A verification code generation system based on high-frequency dynamic transformation, characterized in that: Includes the following modules: A verification code generation module is used to receive a request for issuing a verification code, randomly generate a verification code text containing numbers, letters or symbols, and generate a unique identifier associated with the verification code text; the module stores the verification code text and the unique identifier as a key-value pair in the server's cache for subsequent verification; The verification code image conversion and segmentation module converts the generated verification code text into a static image and segments the image into multiple regions, each of which contains a part of the verification code text; The regional frequency setting module sets a different flickering frequency that is higher than the set threshold for each segmented area, and achieves the flickering effect by controlling the rapid alternation of the background color and the text color, ensuring that the overall flickering frequency is also higher than the set threshold; The dynamic verification code display module sends the dynamic image verification code and its corresponding unique identifier after the regional frequency setting to the client for display so that the user can identify it; The user input and verification module receives the verification code text and the corresponding unique identifier input by the user, and compares the input verification code text with the verification code text retrieved from the server cache according to the unique identifier; If the two are consistent and the unique identifier is valid, the verification is successful; If there is inconsistency or the unique identifier is invalid, the user is prompted to re-enter or regenerate the verification code.

8. A verification code generation system based on high frequency dynamic transformation as claimed in claim 7, characterized in that: The system also includes a cache management module for periodically clearing out expired or invalid verification code cache items.

9. A device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.