Skip to content

Gurukiran20/Captcha-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Captcha-generator

CAPTCHA Generator : This is a simple CAPTCHA generator built using Python. It generates random CAPTCHA images that can be used to prevent automated bots from accessing the web applications.

Random CAPTCHA Generator

This Python script generates random CAPTCHA images. It uses the PIL (Pillow) library for image manipulation.

Features

  • Generates CAPTCHA text with a configurable length.
  • Creates a gradient background.
  • Adds soft shadows to the text.
  • Includes geometric noise (lines and circles) for added complexity.
  • Applies a slight Gaussian blur for a more realistic look.

Requirements

  • Python 3.x
  • Pillow (PIL) library: Install with pip install Pillow

Usage

  1. Save the code as a .py file (e.g., captcha_generator.py).
  2. Run the script: python captcha_generator.py

The script will display the generated CAPTCHA image and print the CAPTCHA text to the console.

Output

Screenshot 2025-03-06 233357 Screenshot 2025-03-06 233957

conclusion

This Python script offers a basic, customizable CAPTCHA generator using PIL, suitable for educational purposes. It is not intended for production environments due to its susceptibility to automated attacks. Further development with advanced techniques and libraries is required for secure CAPTCHA implementation.

About

CAPTCHA Generator : This is a simple CAPTCHA generator built using Python. It generates random CAPTCHA images that can be used to prevent automated bots from accessing your web applications.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages