A
A
Andrey Begin2018-09-27 22:17:10
C++ / C#
Andrey Begin, 2018-09-27 22:17:10

Is there any hope for such a binding on a PC?

I am writing an application for which a monthly payment will be required, so a hardware binding was required.
The application has access to the WEB server (to the database)
I found this method on the Internet, where there is a binding by the HDD serial:

string drive = Environment.GetFolderPath(Environment.SpecialFolder.System).Substring(0, 1);
ManagementObject disk = new ManagementObject("win32_logicaldisk.deviceid=\"" + drive + ":\"");
disk.Get();

string diskLetter = (disk["VolumeSerialNumber"].ToString());
string volumeCrypt = (Crypt(diskLetter.ToString()));

Console.WriteLine("" + volumeCrypt);

After that, the received data is encrypted by the Crypt method.
I would like to ask if there is a risk of hacking or bypassing this method?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question