1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Protecting data sent over GET

Discussion in 'PHP' started by qscomputing, Jan 2, 2006.

  1. mnemtsas

    mnemtsas Super Dud

    Messages:
    497
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    0
    #21
    You could pass the score and a MD5 hash of the score and some other secret parameters (like your mothers maiden name or something) and then check the hash at the server end when you receive it.
     
    mnemtsas, Jan 7, 2006 IP
  2. jimrthy

    jimrthy Guest

    Messages:
    283
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #22
    This would be helpful in a custom binary, because the hackers have to disassemble it to figure out what you're doing. But it seems pretty useless if you're doing this in some client-side script. Then it's just a matter of "View Source" and, "Oh, okay, I do this."

    Or am I missing something obvious?
     
    jimrthy, Jan 7, 2006 IP
  3. mnemtsas

    mnemtsas Super Dud

    Messages:
    497
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    0
    #23
    THe way I understand it the game *is* a custom binary, so the hash approach should work fine.
     
    mnemtsas, Jan 8, 2006 IP
  4. qscomputing

    qscomputing Peon

    Messages:
    44
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #24
    I've got the encryption pretty much sorted - I found some Delphi components with an example of how to encrypt in the same way as PHP. Now I have the problem of transporting the data: ciphertext from the algorithm it suggests often contains characters that aren't valid in a URI, so putting it straight into a GET string is out. Any ideas for a simple armouring function to turn a full-ASCII string into alphanumeric, then turn it back again?

    BTW, jimrthy, I'm not intending to use JavaScript to do the encryption.

    Thanks,
    - QS Computing.
     
    qscomputing, Jan 8, 2006 IP
  5. Sham

    Sham Peon

    Messages:
    136
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #25
    try phps urlencode() ?
     
    Sham, Jan 8, 2006 IP
  6. hupu

    hupu Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #26
    Could you please share with us the name of this Delphi component and/or a link to it?
     
    hupu, Jun 1, 2006 IP