![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Newbie
Join Date: Oct 2005
Posts: 2
Rep Power: 0
![]() |
Hello
We are a little group of IRC-friends who have made a keycounting program a channel project. Our test program counts how many times the user are pushing his/hers buttons, and notifies our server once in a while with an URL like this http://ourserver.com/update.php?user...2&keycount=542 . It's not so hard to make the user check secure, but what about the keycount? Every fool out there who knows something about networking can make our programs request by themselves and can give themselves an unfair amount of keypresses. How do we make this a little more secure? Thank you. |
|
|
|
|
|
#2 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
Depends upon what you consider secure, but why use GET if you don't want it readily seen.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#3 |
|
Newbie
Join Date: Oct 2005
Posts: 2
Rep Power: 0
![]() |
Secure as in, dont set your own keycode, our program will be opensource and available for view to everyone, so i really doubt that using POST will be a wall to cheaters.
I am aware that i should use some kind of encryption but how can i make it secure if everyone can see our implementation and algorithm? |
|
|
|
|
|
#4 |
|
Troll
Join Date: Apr 2005
Location: Texas
Posts: 732
Rep Power: 4
![]() |
You can't trust clients. They can come up with whatever data that they wish. The job of the developer is to make relevant checks to be relatively sure that the data isn't nefarious as well as limiting the amount of data from the client in the first place. There's an open source multiplayer game that I sometimes play that happens to not perform enough checks on position updates. For that reason, I often choose to teleport around and cheat. Physics are entirely client side, so I decided to turn off gravity too. So on and so on. Good fun, really. In this case, there are no relevant checks. Encryption you say? Certainly not. What stops a client from encrypting any invented value? You can either trust the clients to not lie (yeah right) or put a bot in the IRC channel to count the characters sent by every user.
__________________
MD5(sig) = bcef75433db02e9ad9bf81d6f7c5c270 |
|
|
|
|
|
#5 | |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
Quote:
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
|
#6 | |
|
Troll
Join Date: Apr 2005
Location: Texas
Posts: 732
Rep Power: 4
![]() |
Quote:
__________________
MD5(sig) = bcef75433db02e9ad9bf81d6f7c5c270 |
|
|
|
|
|
|
#7 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
Here he comes to save the dayyyyyyyyy....
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#8 |
|
Expert Programmer
|
DaWei's found his figure of fun: but who's the sidekick?
It must be the medication... |
|
|
|
|
|
#9 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
I'm not making fun of Dameon. I found his post truly amusing and responded in my inimitable way. I didn't provide a sidekick because a super hero with a member of the fair sex under his arm has absolutely no use (at least at the moment) for an intrusive sidekick.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#10 |
|
Troll
Join Date: Apr 2005
Location: Texas
Posts: 732
Rep Power: 4
![]() |
But...I implore, of what species?
__________________
MD5(sig) = bcef75433db02e9ad9bf81d6f7c5c270 |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|