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

  • SEARCH
  • Home
  • 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 7175859
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T16:23:22+00:00 2026-05-28T16:23:22+00:00

I have a multiplayer mobile game out in the wild, it’s backed by a

  • 0

I have a multiplayer mobile game out in the wild, it’s backed by a sql database. Each game gets an ID which is just an auto-increment field. I can look up a game with a url like:

http://www.example.com/gameId=123

That url is not visible to players at the moment, but I was thinking of displaying it so users can invite friends and let non-players look on in the game as they play (through a browser – at the moment everyone plays through a native app).

But the fact that I’m putting the game ID out there in the open seems like a bad idea. If someone guessed an endpoint for say deleting a game, they could do bad stuff knowing the ID (of course my endpoints are protected by user auth, but still).

Do most services mask IDs of this sort, should I send out a url like:

http://www.example.com/gameId=maskedIdAbc

and then my game server has to translate that ID into the corresponding ID in my database?

Not sure if that’s overkill. If not, what’s a good way to generate a unique alpha-numeric string based off a unique integer?

Thanks

  • 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. Editorial Team
    Editorial Team
    2026-05-28T16:23:23+00:00Added an answer on May 28, 2026 at 4:23 pm

    Why not change the primary key of the game from an incremental ID to a GUID? The game is out in the wild but you should be able to get there in a number of steps. Add the Guid as a Field and allow games to be looked up either by ID or GUID. Update your clients to use the GUID, phase out the ID, and finally change the primary key to be the GUID.

    You could hash the int, or even use the hex, but its breakable. Better to implement a complete fix, if you don’t want to use a GUID you could implement your equivalent random characters that you store against each db record but why go to the trouble when GUIDs are usually Nativity supported by databases.

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

Sidebar

Related Questions

just wondering what tips people have for avoiding game synchronisation issues in multiplayer games
I have a multiplayer game which have started to generate some strange errors as
I have a small multiplayer Flash game in which you can display a player
I have to implement multiplayer game in which I am doing p2p communication using
I have a turn-based game in which two players may play against each others.
I have made a multiplayer game using the GameKit Framework where 2 iPhones/iPods can
I've spent the last month writing a multiplayer game. I have only been testing
I'm building a prototype game and have some multiplayer functionality hooked up. I am
In a multiplayer game I'm developing, we have a few values that are floating
I have very recently started development on a multiplayer browser game that will use

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.