I want to generate my own CAPTCHA. I am using PIL library of Python to generate an image. I would like to know how should the image be (i.e. numbers with weird font style or some mathematical calculation shown in an image (for example: 5x8))
How can I validate it with the user input? - Can I store it in a variable to check it later with the user input, will it be safe or is this vulnerable to attack?