Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Java game linking to a perl script

by exussum0 (Vicar)
on Jul 14, 2005 at 16:00 UTC ( [id://474927]=note: print w/replies, xml ) Need Help??


in reply to Java game linking to a perl script

Something more secure, eh? Have your applet register w/ the server using a random number, something 1 out of very large. The server would generate a unique key that when presented, will show the answer only to the person that presents the same large number and unique key.

The large number represents a who-am-i. You can use IPs, but you then have to worry about people who nat, or are on load balancers. Acts like a cookie to present to the server.

They key would act much like your key. Something that's one time use, and only hackable if you hack the client. Nothing that would be easily guessable by checking urls. (Imagine if your key=answer).

Update: Collisions should be rare if you append say, the ip to the random number.

----
Give me strength for today.. I will not talk it away..
Just for a moment.. It will burn through the clouds.. and shine down on me.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://474927]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (5)
As of 2024-04-23 06:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found