Welcome to Dream.In.Code
Become a PHP Expert!

Join 149,729 PHP Programmers for FREE! Get instant access to thousands of PHP experts, tutorials, code snippets, and more! There are 2,322 people online right now. Registration is fast and FREE... Join Now!




CAPTCHA question

 
Reply to this topicStart new topic

CAPTCHA question

grimpirate
20 Feb, 2007 - 11:51 PM
Post #1

D.I.C Head
Group Icon

Joined: 3 Aug, 2006
Posts: 226



Thanked: 6 times
Dream Kudos: 375
My Contributions
I've included a small flash file as the attachment. Basically what it does is generate a hexadecimal value ranging from 0 to 4294967295. If you take a look at the attached file you should be able to see that the generated value does two things. Randomly orients the characters of the string in clockwise/counter-clockwise rotations and randomly blurs/sharpens the image. I'll be trying to use this in order to prevent illegal registration for the forum software I'm working on. So I've completed the first step (or at least what I think is the first step), which is generating a random verification stamp.

Now the "obstacle" I've come across is the following:
Given that I know how to pass this string to a php using a POST method. Would this somehow reveal the string publically and thus make the efforts of generating the stamp useless? In other words, how can I get this string to compare with the one input in the text field by the user, without giving it away?

Note: I would like to avoid the usage of sessions.


Attached File(s)
Attached File  test.zip ( 15.69k ) Number of downloads: 36
User is offlineProfile CardPM
+Quote Post

snoj
RE: CAPTCHA Question
21 Feb, 2007 - 07:12 AM
Post #2

Fell off the face of the earth
Group Icon

Joined: 31 Mar, 2003
Posts: 3,325



Thanked: 9 times
Dream Kudos: 750
My Contributions
Well you need to have something to know if the number generated and the number given by the user are the same, otherwise there's no point. Cookies could work if you generate a unique ID and keep track of it. However Sessions work better as everything is there already for you.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/8/09 05:10AM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live PHP Help!

PHP Tutorials

Reference Sheets

PHP Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month