Need a keygen. And check the keys in the program.

Can you recommend a sample code?

Can some simple.

Closed due to the fact that the question is too general for the participants Vadizar , αλεχολυτ , ߊߚߤߘ , vp_arth , ThisMan 6 Mar '17 at 4:08 .

Please correct the question so that it describes the specific problem with sufficient detail to determine the appropriate answer. Do not ask a few questions at once. See “How to ask a good question?” For clarification. If the question can be reformulated according to the rules set out in the certificate , edit it .

  • offline check? - vp_arth
  • can and online. - codename0082016
  • If online - it is best to keep a pair of Random - Random) - Andrey NOP
  • I threw the code that interests you here: ru.stackoverflow.com/questions/628404/… - Andrew
  • 3
    I advise you to take a look here , so as not to write "lisapedov" - Bulson

1 answer 1

I threw the code here that interests you:

How to protect the application from the arguments?

but since the question sounds completely different; you do not need to consider this a duplicate. Because I just duplicate the code here:

class Program { static void Main(string[] args) { var mac = GetMacAdress(); Console.WriteLine(GetNumbersFromMac(mac) + GetMirroredCharsFromMac(mac)); } private static string GetMacAdress() { return NetworkInterface.GetAllNetworkInterfaces().Where(nic => nic.OperationalStatus == OperationalStatus.Up) .Select(nic => nic.GetPhysicalAddress().ToString()).FirstOrDefault(); } private static string GetNumbersFromMac(string mac) { string tmpDigit = Regex.Replace(mac, @"[^0-9]+", String.Empty); string getPositionNumber = string.Empty; foreach (char number in tmpDigit) { getPositionNumber += number * 129 / 258; } return getPositionNumber; } private static string GetMirroredCharsFromMac(string mac) { string tmpLetter = Regex.Replace(mac, @"[^AZ]+", String.Empty); string getMirrored = string.Empty; for (int i = tmpLetter.Length; i > 0; i--) { getMirrored += (tmpLetter[i - 1]); } return getMirrored; } } 
  • And why did you choose the MAC адрес , and not, say, the serial number of the HDD or disk partition? Is the MAC адрес easy to change? - Bulson
  • And the HDD serial number is also easy to change / virtualize. Whatever you choose, there will be roundabout ways :) They asked for an example without specific details, I gave an example that was at hand. It is working, I will note) - Andrew