Security key generated for activation RRS feed

  • Question

  •  I will have two types of user for the software. The license key will assigned differently according the type of user. Is that possible for software to recognised which user that the code generate for? If I only have on installer for the two user
    Saturday, December 20, 2014 3:22 PM

All replies

  • For a simple code, you can do

     if (textBox1.Text == "admin")
                    Form1 f1 = new Form1();
                else if (textBox1.Text == "standard")
                    Form2 f2 = new Form2();
                    System.Windows.Forms.MessageBox.Show("You are not permitted to use this software !");

    Sunday, December 21, 2014 2:46 PM
  • But the time i generate the license key i need to know the target person and generate like MAC address+ "admin" only will send an activation code to the user.
    Sunday, December 21, 2014 3:02 PM
  • You can check the MAC address of the computer in which your software will be used

     NetworkInterface[] nics = NetworkInterface.GetAllNetworkInterfaces();
                foreach (NetworkInterface adapter in nics)
                    PhysicalAddress mac = adapter.GetPhysicalAddress();


    Hope above help !


    Monday, December 22, 2014 3:05 AM