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 7070383
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T05:33:35+00:00 2026-05-28T05:33:35+00:00

I will release my GAE application in a few months on a closed beta

  • 0

I will release my GAE application in a few months on a closed beta state, so that just a few users can use it and I get some date and know where and how to improve it. My idea was that I use a key system to let them access the application.

What I want to do:

I want to generate a punch of keys and store them with Datastore. When a users comes to the application the first time he logs in with his Google account and has to enter a key to activate his account.

My question:

My previous software didn’t require such license keys or similar so this is a new area for me. Do you think this is good way to realize a closed beta? My second idea was to generate a bunch of keys and validate them with a system like other popular software does it, but I think this is unnecessary and I wan’t to avoid a that someone can make a key-gen. Just generating, storing, then checking the key if it exists in the Datastore, setting it to used and activating the account would be my suggestion.

How can I generate a lot of valid and easily add more (without duplicates) keys. I’m thankful for every experience and suggestion.

  • 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-28T05:33:36+00:00Added an answer on May 28, 2026 at 5:33 am

    As a refinement to Ashley’s suggestion, if you’d like to generate shorter and/or easier to type IDs, you can generate some random data and encode it using base32:

    base64.b32encode(os.urandom(8)).strip('=')
    

    Make it a bit more readable by inserting hyphens:

    '-'.join(base64.b32encode(os.urandom(8)).strip('=')[5*x:5*(x+1)] for x in range(3))
    

    This gives you codes like the following:

    'C6ZVG-NJ6KA-CWE'
    

    Then just store the result in your datastore and hand them out to users. I’d suggest storing the code without the hyphens, and stripping those characters before checking the database. If you want to get really fancy, base32’s alphabet is chosen to avoid characters that look similar; you could substitute those characters before you do the check to account for typos.

    8 bytes of random data gives you 2^64 possible invite codes; if you hand out, say, 2^16 (65,536) of them, an attacker will still have to try 2^48 (about 300 trillion) codes to find a valid one. You can make your codes shorter at the cost of reducing the search space, if you want.

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

Sidebar

Related Questions

I created an application that will release to the market. The minimum SDK version
Their roadmap says their next release will be in March 2009, and that they'll
Will it auto release when the user quit the application? or it will stay
Python 3.0 is in beta with a final release coming shortly. Obviously it will
If one will release a ClickOnce version, how can it be obfuscated by Dotfuscator
I learned that calling an Object's wait() method will release the object monitor, if
I'm working on a project that I will release as open source, but it
I'm working on my first public class, meaning that i will release it under
if Form.Release is called after using the form, it will free all related memory
When I publish my ASP.NET site in RELEASE mode, and set compilation debug=false, will

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.