For C# in a winForms environment, I’ve licensed my classes by writing specifics to the regestry, encrypted.
Under Mono there are some facilities that are not available to you. The Registry is one of those. What method would you use to license your code under Mono?
I don’t want a malicious user to be able to delete the application directory, to reset the trial timer or to copy a .LIC file and suddenly have access to the program.
Any ideas would be appreciated.
The registry is available to you using the standard .Net Registry classes. You can write your encrypted values there, and retrieve them later.
However, the registry on Linux is just a file in the user’s home directory, so what you can’t really do is modify it from outside Mono, like from a .msi (as an example, .msi’s don’t exist on Linux).