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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T22:28:43+00:00 2026-06-10T22:28:43+00:00

I am currently in the process of figuring out how to create a serial

  • 0

I am currently in the process of figuring out how to create a serial key-based activation mechanism for a web-based product management platform (the language doesn’t matter as this is more of a design question than anything), in which every product sold has a license key to register for online support.

I have a serial key encoder/decoder class in place, which generates AES-encrypted data which is then base32 encoded to return a human-readable key; I need to figure out what to encrypt in there, if it should hold the actual product code or what.

Also, the encoder is generating a different decryption key for each serial as well, but I’m not sure if I like this approach. Which would be best between this and, say, using a salt for each key? Also, where should I store the decryption keys and salts? I’m thinking on the DB, along with the activation keys, for the salts or for the decryption keys in case the current approach is valid, is this correct?

I also have a requirement to keep the key length at bay, which means I can’t pass a certain number of characters in my encryption. Should the activation key hold actual product data, or just point to a matching row on the DB where the activation key acts as PK and read everything I need from there?

Thanks in advance for your response, I hope my question isn’t too sketchy; please bear with me as I am relatively new to this particular topic. I have read the other questions, but none seems to tackle the problem of actually storing the activation keys in a web-based environment.

  • 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-06-10T22:28:45+00:00Added an answer on June 10, 2026 at 10:28 pm

    It looks to me that there is no need for encryption at all.

    You could create strong random bytes (say, using /dev/urandom) and use that as an activation key.

    Something like 64 bits of randomness (read 8 bytes from urandom) is probably enough, as it gives you about 2^32 “activation keys” without collisions. Of course, make sure it is appropriate for your specific situation.

    Your activation key could look, for example, like this (hex-encoded and spliced with “-“):

    28d7-59bf-0a29-b482
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been having some trouble figuring out how exactly I get a process's
In a program, I currently have process.serialize(System.out); This generally output the object process to
I'm currently in the process of creating a shared Edit/Create view for my game
We've got a process currently which causes ASP.NET websites to be redeployed. The code
We currently have a process where we receive an inventory file from a vendor
I'm currently in a process of creating a new C project and I have
I am currently in the process of updating many test sites on an old
I'm currently in the process of writing a steganography application with Qt. I am
I am currently in the process of creating API documentation using Microsoft Word 2007
I'm currently in the process of creating a Silverlight 3 data driven application. To

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.