1

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?

closed as too broad by Philipp, TildalWave, schroeder, Steve, AviD Apr 16 '14 at 22:14

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • What have you tried? Where are you getting stuck? Essentially you are just asking us to do the work for you. – TruthOf42 Apr 16 '14 at 19:59
  • Have you reviewed the design of established CAPTCHA APIs? – schroeder Apr 16 '14 at 20:34
  • Why would you want to? Research the topic, beginning with some of the posts here, and you'll see that CAPTCHA has been proven, for most scenarios, to be of little value. Also, there are plenty of existing libraries and services - so, considering that you're asking how to do it, I would assume that you don't necessarily have a better idea than they do. On the other hand, if you're doing it solely for education, then still - there are better ways to do so. – AviD Apr 16 '14 at 22:13
  • @AviD My aim is just to get some knowledge about captcha. I will research on the topic and will ask any of my doubts here. Thank You. – Manan Dhawan Apr 17 '14 at 7:30

Browse other questions tagged or ask your own question.