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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T23:55:53+00:00 2026-05-25T23:55:53+00:00

I really feel stupid for posting this but since i got no answers on

  • 0

I really feel stupid for posting this but since i got no answers on my question and i am still junior programmer i will post this :

        //List of keys
        byte[] Key0 = { 10, 20, 30, 40, 50, 60, 70, 80, 90, 100 }; //mode 10 = 0
        byte[] Key1 = { 1, 3, 5, 7, 9, 11, 13, 15, 17, 19 }; // i + 2
        byte[] Key2 = { 2, 4, 6, 8, 10, 12, 14, 16, 18, 20 }; // i mode 2 = 0 
        byte[] Key3 = { 66, 77, 88, 99, 111, 222, 110, 112, 114, 115 }; // mode 11 = 0
        byte[] Key4 = { 1, 4, 9, 16, 25, 36, 49, 64, 81, 100, 121 }; //x^2
        byte[] Key5 = { 6,17,34,57,86,121,162,209 }; //3x^2+2x+1
        byte[] Key6 = { 77,78,79,80,81,82,83,84,85,86,87 }; // only in range
        //Add all keys to the list
        List<byte[]> oKeysList = new List<byte[]>();
        oKeysList.Add(Key0);
        oKeysList.Add(Key1);
        oKeysList.Add(Key2);
        oKeysList.Add(Key3);
        oKeysList.Add(Key4);
        oKeysList.Add(Key5);
        oKeysList.Add(Key6);

        Random oRandom = new Random();
        //Generate random key index to be used in the encryption
        int ListSelectedIndex = oRandom.Next(0, oKeysList.Count);
        byte[] GeneratedKey = oKeysList[ListSelectedIndex];
        //Generate 3 random number from the selected key and concate the key index to it
        byte[] GeneratedBytes = new byte[4];
        for (int i = 0; i < 3; i++)
        {
            GeneratedBytes[i] = GeneratedKey[oRandom.Next(0,GeneratedKey.Length)];
        }
        //Add the list of key index
        GeneratedBytes[3] = (byte)ListSelectedIndex;
        //Return the genreated bytes
        return GeneratedBytes;

As you see i generate this 4 byte array along with a 8 bytes generated with from RNG Cryptography, and when i want to check my serial i take the last 4 bytes and use the mathematical relations between them, I want to generate many serials and be able to check if they are valid or not. I know its probably pretty old method with a very bad security so please if any one could help me or add anything to my code or suggest anything new i would be really thankful.

  • 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-25T23:55:54+00:00Added an answer on May 25, 2026 at 11:55 pm

    I am not sure that anyone will analyze your code here. I suggest the following: do not make software protection too complex. It won’t make a significant affect on piracy, but 100% will affect people, who purchased your software. Keep your software protection mechanisms as simple as possible.

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

Sidebar

Related Questions

I suspect I am going to feel really stupid after posting this but here
ok... so I feel really stupid asking this question.. but just wondering about the
I feel really stupid for asking a question like this, but I cannot seem
Ok, I feel like this is a really stupid question, but I've been trying
Well! I feel really stupid for this question, and I wholly don't mind if
I apologize for the stupid question, but I feel like I've really struck a
I'm still a bit new to Python, but, I feel really stupid right now
I feel really stupid asking for this, but remarkably I'm banging my head for
I feel really stupid right now since I can remember doing something like this.
I feel really stupid for asking this but I have been thrashing for over

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.