Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 165463
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T11:55:32+00:00 2026-05-11T11:55:32+00:00

I’m working on the backend for a Flash game and I need to secure

  • 0

I’m working on the backend for a Flash game and I need to secure the data going into the scoreboard.

The game is going to be hosted on many sites in a banner ad, the user will play the game in the advert then click through to the main site to save their details.

At the moment I am thinking along the lines of this

  1. User plays the game and clicks to submit their score
  2. In the background, the banner sends the score and the originating domain to a script on the main site.
  3. The script check the domain is one of the valid domains the ad is being hosted on.
  4. If everything is right, the script creates a hash of this score and domain and stores it in the database along side the score.
  5. The script returns the hash to Flash which cobbles it onto the querystring of a getURL which opens the main scoreboard
  6. The scoreboard page checks the referer to make sure it is one of the valid domains.
  7. If it is it then checks the database for the hash to if it’s a valid token
  8. the user then fills in their details and the record is updated based on the hash

Last time I checked FLash doesn’t send referer info, which kinda throws a spanner into my plan. So, is there an already established pattern for this kind of Flash/Database interaction?

What sort of Hashing/Checksuming should I use in step 4? What is the correct name for this kind of operation, is it a hash, a checksum or something else?

I understand that being a clientside technology, Flash will never actually be THAT secure, but in my mind, something like the above is about as dificult as you’re going to make it to hack this kind of application.

UPDATE: My main objective is to make it harder for people to find the URL of the script that adds the score to the database and simply spam it with fake scores.

Thanks, Greg

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T11:55:33+00:00Added an answer on May 11, 2026 at 11:55 am

    I have previously worked in the game industry, and did something along these lines. To my knowledge, no one ever bothered cracking the score submitting part.

    The way it was done was :

    1. Generate a random number as a salt (from flash)
    2. Encode the score using math operations, based on the salt (from flash)
    3. Add a checksum to make sure there was no tempering on the score (from flash)
    4. Send the score and any required data to the score submitting page
    5. On the server, validate that the score has not been tempered using the checksum
    6. If the score is valid, then insert it into the database, else, reject it
    7. If you want, you might log ip adresses of the submitters of scores violating the checksums (maybe a policy of three bad checksums, you’re out) and add a script to ban them from accessing the server for 1h, but this will probably not be required unless someone wants to crack your code that bad.

    Note : The hashing / checksuming was made using a custom function. Did not need something very secure. It was made using a computation on the salt and the score. Some simple math operations like sums, multiplications and subtractions.


    Edit: a simple algorithm / maths for the checksum

    Lets say your user has a score of 5885.
    You generate a random number as a salt of 134789 (constant length, pad with 0)

    cryptedScore = Score * Salt (you should use something a bit more complex here, but it is just an exemple)

    In our example, the crypted score would be : 793233265

    Now for the checksum, lets say you want to have a value of 253 as a checksum.
    You add all the numbers of your crypted score 7+9+3+2+3+3+2+6+5 = 40

    Now, you calculate the value of your checksum for this score
    253 – (Sum of crypted score numbers % 253)

    Now, we have the following numbers:
    the salt = 134789
    the crypted score = 793233265
    the checksum = 40

    You make a request to the server, sending 134789793233265040 as a score.

    On score server, you can divide 793233265 by 134789 giving 5885 and validate the checksum using the same function as before.

    If the checksum fails, then numbers have been tampered.

    you could probably end up with something much more secure, but it should do the trick.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 148k
  • Answers 148k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer There are two commonly used property list formats: proprientary binary… May 12, 2026 at 9:22 am
  • Editorial Team
    Editorial Team added an answer $("#wall_msg").clone(true) .attr("id", "newid") .hide() .insertAfter("#wall_msg") .fadeIn(); May 12, 2026 at 9:22 am
  • Editorial Team
    Editorial Team added an answer did you check How can I import HTML pages? in… May 12, 2026 at 9:22 am

Related Questions

I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I am currently running into a problem where an element is coming back from
Seemingly simple, but I cannot find anything relevant on the web. What is the
Does anyone know how can I replace this 2 symbol below from the string
Configuring TinyMCE to allow for tags, based on a customer requirement. My config is

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.