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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T03:21:14+00:00 2026-05-25T03:21:14+00:00

I know there are several ways of creating a free trials. My algorithm that

  • 0

I know there are several ways of creating a free trials. My algorithm that I have thought is as follows:

  1. get something that identifies the computer where the application is installed. lets say I chose to get the windows product ID which may look something like: 00247-OEM-8992485-00078.

  2. then hash that string and say I end up with the string: ckeer34kijr9f09uswcojskdfjsdk

  3. then create a file with random letters and numbers something that looks like:

    ksfjksdfjs98w73899wf89u289uf9289frmu2f98um98ry723tyr98re812y89897982433mc98lpokojiaytfwhjdegwdehjhdjwhbdwhdiwhd78ey8378er83r78rhy378wrgt37678er827yhe8162e682eg8gt66gt…..etc

  4. then on the file that was random generated find the second number (in this case is 8) also find the last number (in this case it is 6) now multiply those numbers and you get 48: then that will be the position where I will start putting the hash string that I got which if you recall was: ckeer34kijr9f09uswcojskdfjsdk so the 48 character of the file happens to be a ‘f’ so replace that ‘f’ with the first character of the hash string which is c. so replace the f for c. then move two characters to the right to possition 50 and place the next hash string character etc…

  5. I could also encrypt the file and unencrypt it in order to be more secure.

  6. every time the user opens the program check that file and see if it follows the algorith. if it does not follow the algorithm then it means it is not a full version program.

so as you can see I just need to get something unique about the computer. I thought about getting the windows product key which that I think will be unique but I don’t know how to get that. Another thing that I thought was getting the mac address. But I don’t think that it is efficient because if the user changes it’s nic card then the program will not work. Any information that is unique about the computer will help me a lot.

  • 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-25T03:21:15+00:00Added an answer on May 25, 2026 at 3:21 am

    I know a lot of companies use the MAC address for this. I’m not sure what pros and cons there are to this approach, but it’s worth looking into.

    I believe you can use a method like this to get the MAC address:

    /// <summary>
    /// returns the mac address of the first operation nic found.
    /// </summary>
    /// <returns></returns>
    private string GetMacAddress()
    {
        string macAddresses = "";
    
        foreach (NetworkInterface nic in NetworkInterface.GetAllNetworkInterfaces())
        {
            if (nic.OperationalStatus == OperationalStatus.Up)
            {
                macAddresses += nic.GetPhysicalAddress().ToString();
                break;
            }
        }
        return macAddresses;
    }
    

    This SO question discusses it in detail: Reliable method to get machine's MAC address in C#

    EDIT

    As others have pointed out, MAC address is not guaranteed to be unique. After doing a little more research, there are a couple of other options which might work better. The two that stuck out to me are:

    • Processor Serial Number
    • Hard Drive Volume Serial Number (VSN)

    Get processor serial number:

    using System.Management;
    
    public string GetProcessorSerial()
    {
        ManagementObjectSearcher searcher = new ManagementObjectSearcher("SELECT * FROM Win32_BaseBoard");
        ManagementObjectCollection managementObjects = searcher.Get();
    
        foreach (ManagementObject obj in managementObjects)
        {
            if (obj["SerialNumber"] != null)
                return obj["SerialNumber"].Value.ToString();
        }
    
        return String.Empty;
    }
    

    Get HDD serial number:

    using System.Management;
    
    public string GetHDDSerial()
    {
        ManagementObjectSearcher searcher = new ManagementObjectSearcher("SELECT * FROM Win32_PhysicalMedia");    
        ManagementObjectCollection managementObjects = searcher.Get();
    
        foreach (ManagementObject obj in managementObjects)
        {
            if (obj["SerialNumber"] != null)
                return obj["SerialNumber"].ToString();
        }
    
        return string.Empty;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know that there are several ways to define a function in JavaScript. Two
I have read it on the official website that there are several ways in
I know there are several ways to deploy a .net windows client application: There's
I know there are several plugins that do asynchronous processing. Which one is the
One of the things about programming is that there are several ways to achieve
It came to my attention that there a several ways to compare strings in
I know that a structure can be defined by in several ways such as:
I know there are several ways to do it, but I would like to
I know of several ways to get a character off a string given the
I know it is easy to recommend several cross platform libraries. However, are there

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.