Overview
ToringoDRMInfo is designed for uniquely identifying any computer via some hardware physical information which is unique, stable and hard to be juggled. Features provided by this plugin are useful to implement software registration, license granting (such as a license for allowing someone to play a specific media file or read a specific e-book), data encryption, permission validation, and some other DRM (Digital Rights Management) functions based on a specific machine.
Generally speaking, you will use the information as a part of the cipher key/password or parameter to encrypt something you need. However, ToringoDRMInfo only get information from OS and hardware devices, it doesn’t provide your any encryption function. To implement a DRM system, you may need to use it combine with or some other plugins which developed for encrypting and decrypting data or files with REALbasic.
Classification and brief introductions of functions provided by this plugin will be presented as following:
GetMachineID method is very easy to use. Based on some getatable stable information of computer hardware devices and data passed by your program, it will generate a string. This string can be used to uniquely identify a computer, even different users of a computer.
Under some circumstances, GetMachineID method may not meet your needs. In these cases, you can use some functions provided by this plugin that return information of computer hardware devices to implement identical feature by yourself. These functions include:
GetHDSerialNumber and GetHDSerialNumberStr to get the serial numbers of all ATA/IDE and SATA hard disks.
GetPrimaryMACAddress to get the primary MAC address.
GetSystemMACAddress and GetSystemMACAddressStr to get the MAC addresses of all communication devices.
GetMacSerialNumber to get the serial number of an Apple Macintosh computer.
GetCPUID to get information of a x86 CPU.
Besides the above information functions, ToringoDRMInfo plugin also provides another assistant function, GetCurrentUserName . If your application needs the user to input a username in some place (for example, the register dialog), you can display it as the default value, but usually it should be allowed for users to change.